fchdir tests: EBADF tests.
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         fchdir tests: EBADF tests.
4         * tests/test-fchdir.c (main): Add more tests for EBADF.
5
6         dup2 tests: EBADF tests.
7         * tests/test-dup2.c (main): Add more tests for EBADF.
8
9         Tests for module 'dup'.
10         * modules/dup-tests: New file.
11         * tests/test-dup.c: New file.
12
13         Tests for module 'close'.
14         * modules/close-tests: New file.
15         * tests/test-close.c: New file.
16
17 2011-09-20  Bruno Haible  <bruno@clisp.org>
18
19         Tests for module 'shutdown'.
20         * modules/shutdown-tests: New file.
21         * tests/test-shutdown.c: New file.
22
23         Tests for module 'setsockopt'.
24         * modules/setsockopt-tests: New file.
25         * tests/test-setsockopt.c: New file.
26
27         Tests for module 'sendto'.
28         * modules/sendto-tests: New file.
29         * tests/test-sendto.c: New file.
30
31         Tests for module 'send'.
32         * modules/send-tests: New file.
33         * tests/test-send.c: New file.
34
35         Tests for module 'recvfrom'.
36         * modules/recvfrom-tests: New file.
37         * tests/test-recvfrom.c: New file.
38
39         Tests for module 'recv'.
40         * modules/recv-tests: New file.
41         * tests/test-recv.c: New file.
42
43         Tests for module 'listen'.
44         * modules/listen-tests: New file.
45         * tests/test-listen.c: New file.
46
47         Tests for module 'getsockopt'.
48         * modules/getsockopt-tests: New file.
49         * tests/test-getsockopt.c: New file.
50
51         Tests for module 'getsockname'.
52         * modules/getsockname-tests: New file.
53         * tests/test-getsockname.c: New file.
54
55         Tests for module 'getpeername'.
56         * modules/getpeername-tests: New file.
57         * tests/test-getpeername.c: New file.
58
59         Tests for module 'connect'.
60         * modules/connect-tests: New file.
61         * tests/test-connect.c: New file.
62
63         Tests for module 'bind'.
64         * modules/bind-tests: New file.
65         * tests/test-bind.c: New file.
66
67         accept4 tests: Fix for native Windows.
68         * tests/test-accept4.c: Include sockets.h.
69         (main): Invoke gl_sockets_startup.
70         * modules/accept4-tests (Depends-on): Add sockets.
71
72         accept tests: Fix for native Windows.
73         * tests/test-accept.c: Include sockets.h.
74         (main): Invoke gl_sockets_startup.
75         * modules/accept-tests (Depends-on): Add sockets.
76
77 2011-09-19  Bruno Haible  <bruno@clisp.org>
78
79         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
80         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
81         do...while(0).
82         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
83         Suggested by Paul Eggert.
84
85 2011-09-19  Bruno Haible  <bruno@clisp.org>
86
87         sched: Ensure pid_t is defined.
88         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
89         not define pid_t.
90         * lib/sched.in.h: Include <sys/types.h>.
91         * doc/posix-headers/sched.texi: Mention the pid_t problem.
92         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
93
94 2011-09-19  Bruno Haible  <bruno@clisp.org>
95
96         msvc-inval: Ensure the entire expansion is a single statement.
97         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
98         of braces.
99
100 2011-09-19  Jim Meyering  <meyering@redhat.com>
101
102         tests: use printf, not echo in init.sh's warn_ function
103         * tests/init.sh (warn_): Use printf, not echo.  The latter would
104         misbehave when given strings containing a backslash or starting
105         with e.g., -n.  James Youngman suggested setting IFS.
106
107 2011-09-19  Eric Blake  <eblake@redhat.com>
108
109         futimens: enhance test
110         * tests/test-futimens.h (test_futimens): Also check for EBADF on
111         closed non-negative fd.
112
113         date: accept 'hence' as opposite of 'ago'
114         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
115         * tests/test-parse-datetime.c (main): Enhance test.
116         Suggested by Jesse Wilson.
117
118 2011-09-19  Jim Meyering  <meyering@redhat.com>
119
120         getcwd: don't fail in a deep directory on a system without openat
121         Before this change, getcwd would fail when called from a directory
122         of depth PATH_MAX / 3 or greater.  That was due to the fact that
123         the non-openat implementation used "..", "../..", "../../..", etc.
124         to access ancestor directories.  With too many, that string would
125         be longer than PATH_MAX.
126         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
127         using gnulib's openat replacement.
128         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
129         we're using the replacement function.
130
131 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
132
133         maint.mk: avoid warnings from perl about missing files
134         * top/maint.mk (def_sym_regex): Ignore files listed in
135         $(gl_other_headers_) that do not exist, say because a project
136         does not use a corresponding module.
137
138 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
139
140         stat: use pathmax.h only if needed
141         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
142         This is better for Emacs, which does not have a mingw port and
143         therefore can avoid the pathmax module.
144
145         utimens: remove dependency on dup2
146         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
147         to work around the Linux kernel bug.
148         * modules/utimens (Depends-on): Remove dup2.
149
150 2011-09-18  Bruno Haible  <bruno@clisp.org>
151
152         inet_ntop, inet_pton: Look for it also in libresolv.
153         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
154         libnsl, search for it in libresolv.
155         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
156         Needed on Solaris 7.
157
158 2011-09-18  Bruno Haible  <bruno@clisp.org>
159
160         accept, accept4 tests: Avoid link error on Solaris.
161         * modules/accept-tests (Makefile.am): Link test-accept against
162         $(LIBSOCKET).
163         * modules/accept4-tests (Makefile.am): Link test-accept4 against
164         $(LIBSOCKET).
165
166         accept4: Avoid link error on Solaris.
167         * modules/accept4 (Link): New section.
168
169         socket functions: Avoid link errors on Solaris.
170         * modules/accept (Depends-on): Add socketlib.
171         (Link): New section.
172         * modules/bind (Depends-on): Add socketlib.
173         (Link): New section.
174         * modules/connect (Depends-on): Add socketlib.
175         (Link): New section.
176         * modules/getpeername (Depends-on): Add socketlib.
177         (Link): New section.
178         * modules/getsockname (Depends-on): Add socketlib.
179         (Link): New section.
180         * modules/getsockopt (Depends-on): Add socketlib.
181         (Link): New section.
182         * modules/listen (Depends-on): Add socketlib.
183         (Link): New section.
184         * modules/recv (Depends-on): Add socketlib.
185         (Link): New section.
186         * modules/recvfrom (Depends-on): Add socketlib.
187         (Link): New section.
188         * modules/send (Depends-on): Add socketlib.
189         (Link): New section.
190         * modules/sendto (Depends-on): Add socketlib.
191         (Link): New section.
192         * modules/setsockopt (Depends-on): Add socketlib.
193         (Link): New section.
194         * modules/shutdown (Depends-on): Add socketlib.
195         (Link): New section.
196         * modules/socket (Depends-on): Add socketlib.
197         (Link): New section.
198
199 2011-09-18  Bruno Haible  <bruno@clisp.org>
200
201         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
202         * tests/test-ptsname.c (main): Terminate the test if it takes longer
203         than 5 seconds.
204         * modules/ptsname-tests (configure.ac): Test for alarm.
205
206 2011-09-18  Bruno Haible  <bruno@clisp.org>
207
208         posix_spawn_file_actions_add*: Fix module dependencies.
209         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
210         posix_spawn_file_actions_init.
211         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
212         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
213
214 2011-09-18  Bruno Haible  <bruno@clisp.org>
215
216         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
217         * tests/test-rename.h (test_rename): Allow error code EEXIST.
218         * tests/test-renameat.c (main): Likewise.
219
220 2011-09-18  Bruno Haible  <bruno@clisp.org>
221
222         Tests for module 'accept4'.
223         * modules/accept4-tests: New file.
224         * tests/test-accept4.c: New file.
225
226 2011-09-18  Bruno Haible  <bruno@clisp.org>
227
228         Tests for module 'accept'.
229         * modules/accept-tests: New file.
230         * tests/test-accept.c: New file.
231
232 2011-09-18  Bruno Haible  <bruno@clisp.org>
233
234         dup2: Support for MSVC.
235         * lib/dup2.c: Include msvc-inval.h.
236         (rpl_dup2): Handle invalid parameter notifications during dup2 and
237         _get_osfhandle calls.
238         * modules/dup2 (Depends-on): Add msvc-inval.
239         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
240
241         New module 'msvc-inval'.
242         * lib/msvc-inval.h: New file.
243         * lib/msvc-inval.c: New file.
244         * m4/msvc-inval.m4: New file.
245         * modules/msvc-inval: New file.
246
247 2011-09-17  Bruno Haible  <bruno@clisp.org>
248
249         Tests for module 'pclose'.
250         * modules/pclose-tests: New file.
251
252         New module 'pclose'.
253         * lib/stdio.in.h (pclose): New declaration.
254         * lib/pclose.c: New file.
255         * m4/pclose.m4: New file.
256         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
258         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
259         * modules/pclose: New file.
260         * modules/popen-tests (Depends-on): Add pclose.
261         * modules/popen-safer-tests (Depends-on): Likewise.
262         * doc/posix-functions/pclose.texi: Mention the new module.
263
264 2011-09-17  Bruno Haible  <bruno@clisp.org>
265
266         popen: Support for MSVC.
267         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
268         * lib/popen.c (popen): Provide alternate definition for native Windows.
269         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
271         * modules/popen (Depends-on, configure.ac): Update condition.
272         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
273         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
274         fixed.
275
276 2011-09-17  Bruno Haible  <bruno@clisp.org>
277
278         isnanl, isnand, isnanf: Work around MSVC bug.
279         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
280
281 2011-09-17  Bruno Haible  <bruno@clisp.org>
282
283         sys_socket tests: Fix recent mistake.
284         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
285
286 2011-09-17  Bruno Haible  <bruno@clisp.org>
287
288         putenv: Support for MSVC.
289         * modules/putenv (Depends-on): Add environ.
290         * lib/putenv.c (environ): Disable declaration.
291         * lib/unistd.in.h: Update comment.
292
293 2011-09-17  Bruno Haible  <bruno@clisp.org>
294
295         math: Avoid macro redefinition warnings on MSVC.
296         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
297         Undefine before redefining.
298
299 2011-09-17  Bruno Haible  <bruno@clisp.org>
300
301         doc: Mention functions which are declared as macros.
302         * doc/posix-functions/*[fl].texi: Mention that some functions are
303         defined as macros with arguments only.
304
305 2011-09-17  Bruno Haible  <bruno@clisp.org>
306
307         Add dependencies to new dirent related modules.
308         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
309         * modules/fts (Depends-on): Likewise.
310         * modules/glob (Depends-on): Likewise.
311         * modules/savedir (Depends-on): Likewise.
312         * modules/scandir (Depends-on): Likewise.
313         * modules/dirent-safer (Depends-on): Add opendir, closedir.
314         * modules/fdopendir (Depends-on): Add opendir.
315
316 2011-09-17  Bruno Haible  <bruno@clisp.org>
317
318         inet_pton: Support for MSVC on Windows Vista or newer.
319         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
320         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
321         HAVE_DECL_INET_PTON is defined.
322         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
323         On platforms with <winsock2.h>, test whether inet_pton is declared in
324         <ws2tcpip.h>. If so, arrange to replace it.
325         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
326         REPLACE_INET_PTON.
327         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
328         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
329         (Depends-on, configure.ac): Update condition.
330         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
331
332 2011-09-17  Bruno Haible  <bruno@clisp.org>
333
334         inet_ntop: Support for MSVC on Windows Vista or newer.
335         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
336         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
337         HAVE_DECL_INET_NTOP is defined.
338         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
339         On platforms with <winsock2.h>, test whether inet_ntop is declared in
340         <ws2tcpip.h>. If so, arrange to replace it.
341         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
342         REPLACE_INET_NTOP.
343         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
344         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
345         (Depends-on, configure.ac): Update condition.
346         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
347
348 2011-09-16  Eric Blake  <eblake@redhat.com>
349
350         test-fsync: yet another enhancement
351         * tests/test-fsync.c (main): Also test behavior on read-only text
352         file.
353
354 2011-09-16  Bruno Haible  <bruno@clisp.org>
355
356         Enhance fsync, fdatasync tests.
357         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
358         * tests/test-fdatasync.c (main): Likewise.
359
360 2011-09-16  Bruno Haible  <bruno@clisp.org>
361
362         Support for MSVC compiler: Ensure mode_t gets defined.
363         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
364         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
366         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
367         * tests/test-fcntl-h.c: Check that mode_t is defined.
368         * tests/test-sys_stat.c: Likewise.
369         * tests/test-sys_types.c: Likewise.
370         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
371         * doc/posix-headers/sys_stat.texi: Likewise.
372         * doc/posix-headers/sys_types.texi: Likewise.
373
374 2011-09-16  Bruno Haible  <bruno@clisp.org>
375
376         sys_stat: Support for MSVC.
377         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
378         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
379         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
380         MSVC.
381
382 2011-09-16  Bruno Haible  <bruno@clisp.org>
383
384         Support for MSVC compiler: Ensure off_t gets defined.
385         * lib/unistd.in.h: Include <sys/types.h>.
386         * tests/test-fcntl-h.c: Check that off_t is defined.
387         * tests/test-sys_stat.c: Likewise.
388         * tests/test-sys_types.c: Likewise.
389
390 2011-09-16  Eric Blake  <eblake@redhat.com>
391
392         fdatasync: port to Solaris
393         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
394         * modules/fdatasync (Link): Document it.
395         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
396
397         fdatasync: port to MacOS X 10.7
398         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
399         declared.
400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
401         * modules/unistd (Makefile.am): Substitute it.
402         * lib/unistd.in.h (fdatasync): Declare on MacOS.
403         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
404
405         fdatasync: minor improvements
406         * modules/fdatasync (Depends-on): Add condition for fsync.
407         * lib/fdatasync.c (fdatasync): Add comment.
408         * tests/test-unistd-c++.cc: Test fdatasync.
409
410         unistd: update refs to newer POSIX
411         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
412         Suggested by Bruno Haible.
413
414         fdatasync: new module
415         * modules/fsync (Description): Document difference to fdatasync.
416         * modules/fdatasync: New module.
417         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
418         * lib/fdatasync.c (fdatasync): Likewise.
419         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
420         defaults.
421         * modules/unistd (Makefile.am): Set witnesses.
422         * lib/unistd.in.h (fdatasync): Declare.
423         * MODULES.html.sh: Document it.
424         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
425         * modules/fdatasync-tests: New test.
426         * tests/test-fdatasync.c: Likewise.
427
428 2011-09-16  Eric Blake  <eblake@redhat.com>
429
430         test-fsync: enhance tests
431         * modules/fsync-tests (Depends-on): Add errno, for mingw.
432         * tests/test-fsync.c (main): Enhance test.
433
434 2011-09-15  Bruno Haible  <bruno@clisp.org>
435
436         Support for MSVC compiler: Ensure ssize_t gets defined.
437         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
438         * doc/posix-headers/stdio.texi: Likewise.
439         * modules/stdio (Depends-on): Add ssize_t.
440         * modules/sys_socket (Depends-on): Likewise.
441         * modules/sys_types (Depends-on): Likewise.
442         * modules/sys_uio (Depends-on): Likewise.
443         * modules/unistd (Depends-on): Likewise.
444         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
445         * tests/test-sys_types.c: Check that ssize_t is defined.
446
447 2011-09-14  Bruno Haible  <bruno@clisp.org>
448
449         Avoid using #, the m4 comment starter character, near brackets.
450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
451         delimiter character in sed expressions.
452         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
453         Suggested by Eric Blake.
454
455         Properly quote AC_CHECK_DECLS' 4th argument.
456         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
457         argument.
458         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
459         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
461         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
462         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
463         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
464         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
465         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
466         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
467         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
468         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
469         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
470         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
471         * m4/isinf.m4 (gl_ISINF): Likewise.
472         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
473         * m4/readutmp.m4 (gl_READUTMP): Likewise.
474         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
475         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
477         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
478         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
479         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
480         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
481         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
482         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
485         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
487         Reported by Eric Blake.
488
489         Properly quote AC_CHECK_DECL's 4th argument.
490         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
491         argument.
492         * m4/argp.m4 (gl_ARGP): Likewise.
493         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
494         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
495         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
496         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
497         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
498         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
500         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
502         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
503         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
504         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
505         Reported by Eric Blake.
506
507 2011-09-14  Eric Blake  <eblake@redhat.com>
508
509         opendir: avoid compile warning
510         * lib/opendir.c (includes): Always include errno.h.
511         Reported by Tatsuro MATSUOKA.
512
513 2011-09-14  Jim Meyering  <meyering@redhat.com>
514
515         maint.mk: sc_tight_scope: propagate failure from sub-make
516         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
517         Reported by Martin von Gagern.
518
519 2011-09-13  Bruno Haible  <bruno@clisp.org>
520
521         tempname: Support for MSVC.
522         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
523         MSVC.
524         * modules/tempname (Depends-on): Add fcntl-h.
525
526 2011-09-13  Bruno Haible  <bruno@clisp.org>
527
528         sys_time: Support for MSVC.
529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
530         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
531         include <winsock2.h>.
532         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
533         function declarations that collide with POSIX.
534         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
535         (Makefile.am): Substitute HAVE_WINSOCK2_H.
536
537 2011-09-13  Bruno Haible  <bruno@clisp.org>
538
539         stat: Support for MSVC.
540         * lib/stat.c: Include pathmax.h.
541         * modules/stat (Depends-on): Add pathmax.
542
543         pathmax: Support for native Windows.
544         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
545
546 2011-09-12  Bruno Haible  <bruno@clisp.org>
547
548         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
549         * lib/dirent.in.h (struct dirent): New type.
550         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
551         DT_WHT): New macros.
552         (DIR): New type.
553         (opendir, closedir): Declare only if the module 'opendir' is enabled.
554         (readdir, rewinddir): New declarations.
555         * lib/dirent-private.h: New file.
556         * lib/opendir.c: New file.
557         * lib/readdir.c: New file.
558         * lib/rewinddir.c: New file.
559         * lib/closedir.c: New file.
560         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
561         * m4/opendir.m4: New file.
562         * m4/readdir.m4: New file.
563         * m4/rewinddir.m4: New file.
564         * m4/closedir.m4: New file.
565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
566         REPLACE_CLOSEDIR here.
567         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
568         readdir, rewinddir are declared.
569         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
570         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
571         HAVE_REWINDDIR, HAVE_CLOSEDIR.
572         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
573         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
574         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
575         * modules/opendir: New file.
576         * modules/readdir: New file.
577         * modules/rewinddir: New file.
578         * modules/closedir: New file.
579         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
580         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
581         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
582         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
583         * NEWS: Mention the 'fchdir' change.
584
585 2011-09-11  Bruno Haible  <bruno@clisp.org>
586
587         asm-underscore.m4: Support for MSVC.
588         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
589         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
590
591 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
592
593         Doc about crypt functions.
594         * doc/posix-functions/crypt.texi: Expand range of glibc versions
595         needing for _GNU_SOURCE to get crypt.
596         * doc/posix-functions/encrypt.texi: Likewise.
597         * doc/posix-functions/setkey.texi: Likewise.
598
599 2011-09-11  Bruno Haible  <bruno@clisp.org>
600
601         doc: Update regarding MSVC 9.
602         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
603         tested".
604         * doc/posix-functions/*.texi: Update with info about MSVC 9.
605         * doc/posix-headers/*.texi: Likewise.
606         * doc/pastposix-functions/*.texi: Likewise.
607         * doc/glibc-functions/*.texi: Likewise.
608         * doc/glibc-headers/*.texi: Likewise.
609
610 2011-09-11  Bruno Haible  <bruno@clisp.org>
611
612         unistd et al.: Don't assume <unistd.h> exists.
613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
614         does not exist.
615         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
616         exist. But include <stdlib.h>.
617         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
618         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
619         symlink() does not exist.
620         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
621         include <io.h> instead.
622         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
623         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
624         include <direct.h> instead.
625         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
626         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
627         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
628         <io.h> instead.
629         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
630         correctly if the system does not have hard links.
631         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
632         <direct.h> instead.
633         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
634         it when looking for function declarations.
635         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
636         <direct.h> and <io.h> instead.
637         * doc/posix-headers/unistd.texi: More details about MSVC problem.
638
639 2011-09-11  Bruno Haible  <bruno@clisp.org>
640
641         strcase: Support for MSVC.
642         * modules/strcase (Status, Notice): Remove obsoletion mark.
643         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
644         * doc/posix-functions/strncasecmp.texi: Likewise.
645
646         strings: Don't assume <strings.h> exists.
647         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
648         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
649         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
650         * doc/posix-headers/strings.texi: Mention the MSVC problem.
651
652 2011-09-11  Bruno Haible  <bruno@clisp.org>
653
654         dirent: Don't assume <dirent.h> exists.
655         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
656         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
657         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
658         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
659
660 2011-09-11  Bruno Haible  <bruno@clisp.org>
661
662         Fix wint_t on MSVC.
663         * lib/wchar.in.h (wint_t): On MSVC, override it.
664         * lib/wctype.in.h (wint_t): Likewise.
665         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
666         MSVC.
667         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
668         * doc/posix-headers/wctype.texi: Likewise.
669
670 2011-09-11  Bruno Haible  <bruno@clisp.org>
671
672         sys_types: Fix typo.
673         * lib/sys_types.in.h: Fix typo in comment.
674         Reported by Paul Eggert.
675
676         Support for MSVC compiler: Ensure size_t gets defined.
677         * modules/strings (Depends-on): Add 'sys_types'.
678         * modules/sys_uio (Depends-on): Likewise.
679         * lib/sys_uio.in.h: Update comment.
680
681         C++ tests for module 'sys_types'.
682         * modules/sys_types-c++-tests: New file.
683         * tests/test-sys_types-c++.cc: New file.
684
685         Tests for module 'sys_types'.
686         * modules/sys_types-tests: New file.
687         * tests/test-sys_types.c: New file.
688
689         New module 'sys_types'.
690         * lib/sys_types.in.h: New file.
691         * m4/sys_types_h.m4: New file.
692         * modules/sys_types: New file.
693         * doc/posix-headers/sys_types.texi: Mention the new module and the
694         size_t problem on MSVC 9.
695
696 2011-09-11  Bruno Haible  <bruno@clisp.org>
697
698         Support for MSVC compiler: Avoid division by a literal 0.
699         * lib/math.in.h (NAN): Define through a function call also on MSVC.
700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
701         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
702         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
703         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
704         * tests/infinity.h: New file.
705         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
706         on MSVC.
707         * tests/test-ceilf1.c: Include infinity.h.
708         (main): Use Infinityf.
709         * tests/test-ceil1.c: Include infinity.h.
710         (main): Use Infinityd.
711         * tests/test-ceill.c: Include infinity.h.
712         (main): Use Infinityl.
713         * tests/test-dprintf-posix.c: Include infinity.h.
714         (test_function): Use Infinityd.
715         * tests/test-floorf1.c: Include infinity.h.
716         (main): Use Infinityf.
717         * tests/test-floor1.c: Include infinity.h.
718         (main): Use Infinityd.
719         * tests/test-floorl.c: Include infinity.h.
720         (main): Use Infinityl.
721         * tests/test-fprintf-posix.c: Include infinity.h.
722         (test_function): Use Infinityd.
723         * tests/test-frexp.c: Include infinity.h.
724         (main): Use Infinityd.
725         * tests/test-frexpl.c: Include infinity.h.
726         (main): Use Infinityl.
727         * tests/test-isfinite.c: Include infinity.h.
728         (test_isfinitef): Use Infinityf.
729         (test_isfinited): Use Infinityd.
730         (test_isfinitel): Use Infinityl.
731         * tests/test-isinf.c: Include infinity.h.
732         (test_isinff): Use Infinityf.
733         (test_isinfd): Use Infinityd.
734         (test_isinfl): Use Infinityl.
735         * tests/test-isnan.c: Include infinity.h.
736         (test_float): Use Infinityf.
737         (test_double): Use Infinityd.
738         (test_long_double): Use Infinityl.
739         * tests/test-isnanf.h: Include infinity.h.
740         (main): Use Infinityf.
741         * tests/test-isnand.h: Include infinity.h.
742         (main): Use Infinityd.
743         * tests/test-isnanl.h: Include infinity.h.
744         (main): Use Infinityl.
745         * tests/test-ldexpl.c: Include infinity.h.
746         (main): Use Infinityl.
747         * tests/test-printf-posix.h: Include infinity.h.
748         (test_function): Use Infinityd.
749         * tests/test-roundf1.c: Include infinity.h.
750         (main): Use Infinityf.
751         * tests/test-round1.c: Include infinity.h.
752         (main): Use Infinityd.
753         * tests/test-roundl.c: Include infinity.h.
754         (main): Use Infinityl.
755         * tests/test-signbit.c: Include infinity.h.
756         (test_signbitf): Use Infinityf.
757         (test_signbitd): Use Infinityd.
758         (test_signbitl): Use Infinityl.
759         * tests/test-snprintf-posix.h: Include infinity.h.
760         (test_function): Use Infinityd, Infinityl.
761         * tests/test-sprintf-posix.h: Include infinity.h.
762         (test_function): Use Infinityd, Infinityl.
763         * tests/test-truncf1.c: Include infinity.h.
764         (main): Use Infinityf.
765         * tests/test-trunc1.c: Include infinity.h.
766         (main): Use Infinityd.
767         * tests/test-truncl.c: Include infinity.h.
768         (main): Use Infinityl.
769         * tests/test-vasnprintf-posix.c: Include infinity.h.
770         (test_function): Use Infinityd, Infinityl.
771         * tests/test-vasprintf-posix.c: Include infinity.h.
772         (test_function): Use Infinityd, Infinityl.
773         * modules/ceilf-tests (Files): Add tests/infinity.h.
774         * modules/ceil-tests (Files): Likewise.
775         * modules/ceill-tests (Files): Likewise.
776         * modules/dprintf-posix-tests (Files): Likewise.
777         * modules/floorf-tests (Files): Likewise.
778         * modules/floor-tests (Files): Likewise.
779         * modules/floorl-tests (Files): Likewise.
780         * modules/fprintf-posix-tests (Files): Likewise.
781         * modules/frexp-tests (Files): Likewise.
782         * modules/frexp-nolibm-tests (Files): Likewise.
783         * modules/frexpl-tests (Files): Likewise.
784         * modules/frexpl-nolibm-tests (Files): Likewise.
785         * modules/isfinite-tests (Files): Likewise.
786         * modules/isinf-tests (Files): Likewise.
787         * modules/isnan-tests (Files): Likewise.
788         * modules/isnanf-tests (Files): Likewise.
789         * modules/isnanf-nolibm-tests (Files): Likewise.
790         * modules/isnand-tests (Files): Likewise.
791         * modules/isnand-nolibm-tests (Files): Likewise.
792         * modules/isnanl-tests (Files): Likewise.
793         * modules/isnanl-nolibm-tests (Files): Likewise.
794         * modules/ldexpl-tests (Files): Likewise.
795         * modules/printf-posix-tests (Files): Likewise.
796         * modules/roundf-tests (Files): Likewise.
797         * modules/round-tests (Files): Likewise.
798         * modules/roundl-tests (Files): Likewise.
799         * modules/signbit-tests (Files): Likewise.
800         * modules/snprintf-posix-tests (Files): Likewise.
801         * modules/sprintf-posix-tests (Files): Likewise.
802         * modules/truncf-tests (Files): Likewise.
803         * modules/trunc-tests (Files): Likewise.
804         * modules/truncl-tests (Files): Likewise.
805         * modules/vasnprintf-posix-tests (Files): Likewise.
806         * modules/vasprintf-posix-tests (Files): Likewise.
807         * modules/vdprintf-posix-tests (Files): Likewise.
808         * modules/vfprintf-posix-tests (Files): Likewise.
809         * modules/vprintf-posix-tests (Files): Likewise.
810         * modules/vsnprintf-posix-tests (Files): Likewise.
811         * modules/vsprintf-posix-tests (Files): Likewise.
812         * modules/xprintf-posix-tests (Files): Likewise.
813
814 2011-09-11  Bruno Haible  <bruno@clisp.org>
815
816         Ensure pid_t gets defined.
817         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
818         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
819         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
820         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
822         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
823         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
824         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
825         * tests/test-fcntl-h.c: Check that pid_t is defined.
826         * tests/test-sched.c: Likewise.
827         * tests/test-termios.c: Likewise.
828         * tests/test-time.c: Likewise.
829         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
830         * doc/posix-headers/signal.texi: Likewise.
831         * doc/posix-headers/sys_types.texi: Likewise.
832         * doc/posix-headers/time.texi: Likewise.
833
834 2011-09-11  Bruno Haible  <bruno@clisp.org>
835
836         acl: Fix compilation on Solaris 10 (older version).
837         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
838         of ACE_EVERYONE.
839         * lib/set-mode-acl.c (qset_acl): Likewise.
840         Reported by Christian Jullien <eligis@orange.fr>.
841
842 2011-09-10  Bruno Haible  <bruno@clisp.org>
843
844         iconv, unsetenv: Add support for MSVC compiler.
845         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
846         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
847
848 2011-09-10  Bruno Haible  <bruno@clisp.org>
849
850         *printf: Add support for MSVC compiler.
851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
852         handles the exception caused by the %n directive. When cross-compiling,
853         guess no on native Windows.
854         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
855         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
856         emulate it through vsnprintf.
857         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
858         * doc/posix-functions/dprintf.texi: Update documentation regarding
859         MSVC 9.
860         * doc/posix-functions/fprintf.texi: Likewise.
861         * doc/posix-functions/printf.texi: Likewise.
862         * doc/posix-functions/snprintf.texi: Likewise.
863         * doc/posix-functions/sprintf.texi: Likewise.
864         * doc/posix-functions/swprintf.texi: Likewise.
865         * doc/posix-functions/vdprintf.texi: Likewise.
866         * doc/posix-functions/vfprintf.texi: Likewise.
867         * doc/posix-functions/vprintf.texi: Likewise.
868         * doc/posix-functions/vsnprintf.texi: Likewise.
869         * doc/posix-functions/vsprintf.texi: Likewise.
870         * doc/glibc-functions/asprintf.texi: Likewise.
871         * doc/glibc-functions/obstack_printf.texi: Likewise.
872         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
873         * doc/glibc-functions/vasprintf.texi: Likewise.
874
875 2011-09-10  Bruno Haible  <bruno@clisp.org>
876
877         nocrash: Add support for native Windows.
878         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
879
880 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
881             Bruno Haible  <bruno@clisp.org>
882
883         absolute-header, include-next: Add support for MSVC compiler.
884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
885         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
886         directory separator in #line directives.
887         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
888         recognize also backslash as directory separator in #line directives.
889
890 2011-09-08  Jim Meyering  <meyering@redhat.com>
891
892         maint.mk: mark the post-release commit log with "maint: " prefix
893         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
894         one-line commit-log summary.
895
896 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
897             Bruno Haible  <bruno@clisp.org>
898
899         Doc about crypt functions.
900         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
901         systems.
902         * doc/posix-functions/encrypt.texi: Likewise.
903         * doc/posix-functions/setkey.texi: Likewise.
904
905 2011-09-08  Simon Josefsson  <simon@josefsson.org>
906
907         * lib/gc.h: Fix copyright header.
908
909 2011-09-07  Bruno Haible  <bruno@clisp.org>
910
911         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
912         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
913         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
914
915 2011-09-07  Bruno Haible  <bruno@clisp.org>
916
917         openat: Work around compilation error with OSF/1 5.1 DTK cc.
918         * lib/fopen.c: Use different syntax for include of <stdio.h>.
919         * lib/freopen.c: Likewise.
920         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
921         * lib/lstat.c: Likewise.
922         * lib/stat.c: Likewise.
923         * lib/open.c: Use different syntax for include of <fcntl.h>.
924         * lib/openat.c: Include fcntl.h again, explicitly.
925
926 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
927
928         parse-datetime: document the newly accepted format
929         * doc/parse-datetime.texi (Combined date and time of day items):
930         New section.
931
932 2011-09-06  Bruno Haible  <bruno@clisp.org>
933
934         acl: Fix a test failure on newer Solaris 10 with ZFS.
935         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
936         ENOSYS as no ACL.
937         Reported by Jim Meyering.
938
939 2011-09-06  Bruno Haible  <bruno@clisp.org>
940
941         acl: Update for AIX >= 5.3 with NFS.
942         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
943         ENOSYS as no ACL.
944
945         acl: Fix a test failure on AIX >= 5.3 with NFS.
946         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
947         as no ACL.
948
949 2011-09-06  Bruno Haible  <bruno@clisp.org>
950
951         acl: Fix a test failure on IRIX 6.5 with NFS.
952         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
953         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
954         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
955         * lib/copy-acl.c (qcopy_acl): Likewise.
956
957 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
958
959         openat: port to AIX 7.1 with large files
960         AIX 7.1 does a "#define openat open64at" if large files are in use,
961         so we can't simply #undef openat.  Use the orig_openat trick (similar
962         to orig_open in lib/open.c) to work around the problem.  Problem
963         reported by Kevin Brott for GNU tar, in the thread containing
964         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
965         * lib/openat.c (__need_system_fcntl_h): Define first.
966         Include <fcntl.h> and <sys/types.h> before undefining.
967         (orig_openat) [HAVE_OPENAT]: New inline function.
968         (openat) [HAVE_OPENAT]: Do not undef.
969         (rpl_openat): Use orig_openat, not openat.
970
971 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
972             Bruno Haible  <bruno@clisp.org>
973
974         acl: Avoid errors on NonStop Kernel.
975         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
976         ENOTSUP errors.
977
978 2011-09-05  Bruno Haible  <bruno@clisp.org>
979
980         acl: Clean up Solaris code.
981         * lib/acl-internal.h: Remove no-op #if.
982         * lib/file-has-acl.c: Likewise.
983         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
984         * lib/copy-acl.c (qcopy_acl): Likewise.
985
986 2011-09-05  Bruno Haible  <bruno@clisp.org>
987
988         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
989         binaries built on the original Solaris 10.
990         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
991         trivial.
992
993 2011-09-05  Bruno Haible  <bruno@clisp.org>
994
995         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
996         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
997         10.
998         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
999         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1000         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1001         instead of acl_get, facl_get, acl_set, facl_set.
1002
1003 2011-09-05  Bruno Haible  <bruno@clisp.org>
1004
1005         copy-file: Try unit tests on more file systems.
1006         * tests/test-copy-file-1.sh: New file.
1007         * tests/test-copy-file-2.sh: New file.
1008         * modules/copy-file-tests (Files): Add them.
1009         (Makefile.am): Add them to TESTS.
1010
1011         acl: Try unit tests on more file systems.
1012         * tests/test-file-has-acl-1.sh: New file.
1013         * tests/test-file-has-acl-2.sh: New file.
1014         * tests/test-set-mode-acl-1.sh: New file.
1015         * tests/test-set-mode-acl-2.sh: New file.
1016         * tests/test-copy-acl-1.sh: New file.
1017         * tests/test-copy-acl-2.sh: New file.
1018         * modules/acl-tests (Files): Add them.
1019         (Makefile.am): Add them to TESTS.
1020
1021 2011-09-04  Bruno Haible  <bruno@clisp.org>
1022
1023         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1024         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1025         10.
1026         (OLD_ALLOW, OLD_DENY): New macros.
1027         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1028         ACE_ACCESS_ALLOWED_ACE_TYPE.
1029         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1030         ACE_ACCESS_DENIED_ACE_TYPE.
1031         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1032         (NEW_ACE_EXECUTE): Fix value.
1033         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1034         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1035         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1036         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1037         NEW_ACE_SYNCHRONIZE): New macros.
1038         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1039         instead of acl_fromtext, acl_set, facl_set.
1040         Fixes a coreutils/tests/cp/perm failure.
1041
1042 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         openat: test for fstatat (..., 0) bug
1045         Further testing with tar suggests that fstatat (..., 0)
1046         does not work in general, on AIX 7.1; see
1047         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1048         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1049         replacement fstatat (which is what older AIX releases were using
1050         anyway).
1051         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1052         use is now changed to orig_fstatat.  This was probably the right
1053         thing to do anyway.
1054         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1055         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1056         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1057         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1058         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1059         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1060         if the bug is found.
1061
1062         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1063         This tests for another fstatat bug on AIX 7.1:
1064         fstatat (AT_FDCWD, ..., 0) does not work.  See
1065         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1066         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1067         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1068         (rpl_fstatat): Adjust so that it works around either (or both)
1069         bugs if present.
1070         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1071
1072 2011-09-03  Karl Berry  <karl@gnu.org>
1073
1074         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1075         in index entries.
1076
1077 2011-09-02  Bruno Haible  <bruno@clisp.org>
1078
1079         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1080         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1081         values of AR, ARFLAGS, RANLIB.
1082         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1083
1084 2011-09-02  Bruno Haible  <bruno@clisp.org>
1085
1086         Find 'ar' program that fits with --host argument.
1087         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1088
1089 2011-09-02  Bruno Haible  <bruno@clisp.org>
1090
1091         tests: init.sh: Support any non-GNU diff.
1092         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1093         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1094         Solaris 8.
1095
1096 2011-09-02  Bruno Haible  <bruno@clisp.org>
1097
1098         tests: init.sh: work also with any non-GNU diff that supports -u
1099         * tests/init.sh: Relax check for diff -u support.
1100         Rather than checking for GNU diff via --version, simply check
1101         for support for -u itself.  Useful at least on OpenBSD 4.9,
1102         AIX 7.1, IRIX 6.5, and Solaris 10.
1103
1104 2011-09-01  Bruno Haible  <bruno@clisp.org>
1105
1106         strtoimax, strtoumax: Document problem on HP-UX 11.
1107         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1108         * doc/posix-functions/strtoumax.texi: Likewise.
1109
1110 2011-09-01  Bruno Haible  <bruno@clisp.org>
1111
1112         strtoumax: Avoid link error on OSF/1 with DTK cc.
1113         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1114         defined as a function.
1115         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1116         strtoumax is defined, not whether it is declared.
1117
1118 2011-09-01  Bruno Haible  <bruno@clisp.org>
1119
1120         strtoimax: Avoid link error on OSF/1 with DTK cc.
1121         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1122         defined as a function.
1123         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1124         strtoimax is defined, not whether it is declared.
1125
1126 2011-09-01  Bruno Haible  <bruno@clisp.org>
1127
1128         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1129         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1130         as a function.
1131         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1132         whether it is declared.
1133
1134 2011-09-01  Bruno Haible  <bruno@clisp.org>
1135
1136         imaxabs: Avoid link error on OSF/1 with DTK cc.
1137         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1138         as a function.
1139         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1140         whether it is declared.
1141
1142 2011-09-01  Bruno Haible  <bruno@clisp.org>
1143
1144         Tests for module 'strtoumax'.
1145         * modules/strtoumax-tests: New file.
1146         * tests/test-strtoumax.c: New file.
1147
1148         Tests for module 'strtoimax'.
1149         * modules/strtoimax-tests: New file.
1150         * tests/test-strtoimax.c: New file.
1151
1152         Tests for module 'imaxdiv'.
1153         * modules/imaxdiv-tests: New file.
1154         * tests/test-imaxdiv.c: New file.
1155
1156         Tests for module 'imaxabs'.
1157         * modules/imaxabs-tests: New file.
1158         * tests/test-imaxabs.c: New file.
1159
1160 2011-09-01  Bruno Haible  <bruno@clisp.org>
1161
1162         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1164         pthread_create.
1165
1166 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1167
1168         openat: work around AIX 7.1 fstatat issue
1169         This should fix the problem that was not properly fixed
1170         in the previous change, dated 2011-08-30.
1171         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1172         __need_system_stat_h defined.
1173         (orig_fstatat) [HAVE_FSTATAT]: New function.
1174         (rpl_fstatat): Go back to the old way of doing things,
1175         except call orig_fstatat instead of fstatat.
1176         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1177         Remove unnecessary check whether fstatat fills in st_size etc.
1178
1179 2011-09-01  Bruno Haible  <bruno@clisp.org>
1180
1181         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1182         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1183         just include the system's header.
1184
1185 2011-08-31  Jim Meyering  <meyering@redhat.com>
1186
1187         tests: avoid spurious assertion failure in test-float.c on ppc64
1188         * tests/test-float.c (test_long_double): Comment out an assertion,
1189         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1190         with gcc-4.4.4.
1191
1192         maint: indent with spaces, not TABs
1193         I need to get in the habit of running gnulib's "make check".
1194         Both of these would have been caught.
1195         * m4/largefile.m4: Indent with spaces, not TABs.
1196         * lib/parse-datetime.y (iso_8601_time): Likewise.
1197         Spotted by Pádraig Brady.
1198
1199         test-parse-datetime.c: accommodate a relatively strict gcc warning
1200         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1201         to avoid a warning from gcc's -Werror=missing-declarations.
1202         Insert a few spaces-before-funcall-parenthesis.
1203
1204 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1205
1206         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1207         The parser now accepts ISO 8601 date-time strings with "T" as the
1208         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1209         with a space between the date and time strings.  Now it also parses
1210         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1211         variants like "2004-02-29T16:21:42.333-07:00"
1212         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1213         of day representation using the 'T' separator character.
1214         * doc/parse-datetime.texi (General date syntax): replace use of
1215         deprecated --iso-8601 option with --rfc-3339 in example of date
1216         command output formats that can be parsed.
1217         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1218         lib/parse-datetime.y.
1219         (gmt_offset): New function.
1220         (main): Add additional test cases to validate ISO8601 extended
1221         date and time of day parsing.
1222
1223 2011-08-31  Bruno Haible  <bruno@clisp.org>
1224
1225         freopen: Documentation.
1226         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1227         name.
1228         Reported by Claudio Bley <claudio.bley@gmail.com>.
1229
1230 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1231
1232         freopen: Don't crash if the filename argument is NULL.
1233         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1234         NULL.
1235
1236 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1237
1238         openat: work around AIX 7.1 fstatat bug
1239         Problem reported by Kevin Brott for GNU tar, in the thread containing
1240         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1241         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1242         FSTATAT_ST_SIZE_ETC_BROKEN.
1243         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1244         rpl_fstatat.
1245         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1246         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1247         AC_CHECK_FUNCS_ONCE for fstatat.
1248         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1249         fchmodat, mkdirat, openat and unlinkat.
1250
1251 2011-08-30  Bruno Haible  <bruno@clisp.org>
1252
1253         Avoid endless recursions if config.h includes some header files.
1254         * lib/fopen.c (__need_FILE): Define already before including config.h.
1255         * lib/freopen.c (__need_FILE): Likewise.
1256         * lib/open.c (__need_system_fcntl_h): Likewise.
1257         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1258         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1259         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1260
1261 2011-08-25  Karl Berry  <karl@gnu.org>
1262
1263         * config/srclist.txt (ylwrap): new try.
1264         * build-aux/ylwrap: new file.
1265
1266 2011-08-23  Bruno Haible  <bruno@clisp.org>
1267
1268         tmpdir: Use a good default directory on native Windows.
1269         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1270         (P_tmpdir): Default to _P_tmpdir on native Windows.
1271         (path_search): On native Windows, try the value returned by GetTempPath
1272         before trying P_tmpdir.
1273         * modules/tmpdir (Depends-on): Add pathmax.
1274         Suggested by John Darrington <john@darrington.wattle.id.au>.
1275
1276 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1277
1278         doc: fix typo in README-release
1279         * top/README-release: Capitalize first word of a sentence.
1280
1281 2011-08-19  Jim Meyering  <meyering@redhat.com>
1282
1283         fts: do not exhaust memory when processing million-entry directories
1284         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1285         directory would require about 256*N bytes of memory.  Thus, it was
1286         easy to construct a directory too large to be processed by any of
1287         those tools.  With this change, fts' maximum memory utilization is
1288         now limited to around 30MB.
1289         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1290         (fts_read): When we've processed the final entry (i.e., when
1291         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1292         using the parent entry to read any remaining entries.  Dispatch
1293         depending on what fts_build returns:
1294         - NULL+stop, aka failure: stop
1295         - NULL otherwise: move up in the dir hierarchy
1296         - non-NULL: handle this new entry
1297         (fts_build): Declare and use new local, continue_readdir.
1298         Prepare to be called from fts_read, when the entries
1299         from a partially-read directory have just been exhausted.
1300         In that case, we'll skip the opendir and instead use the parent's
1301         fts_dirp and derive dir_fd from that.
1302         Finally, in the readdir loop, if we read max_entries entries,
1303         exit the loop ensuring *not* to call closedir.  This is required
1304         so that fts_dirp can be reused on a subsequent call.
1305         Prompted by Ben England's report of memory exhaustion in find
1306         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1307
1308         maint: fts: move decl of `dp' down into while loop; split a long line
1309         * lib/fts.c (fts_build): No semantic change.
1310
1311         fts: add/use new struct member, fts_dirp
1312         We are about to use this to manage any directory with
1313         too many entries to read all of them into memory at once.
1314         To do that, we'll need to save the DIR* pointer in each
1315         affected FTSENT struct.
1316         * lib/fts_.h: Include <dirent.h>.
1317         (struct FTSENT) [fts_dirp]: New member.
1318         * lib/fts.c (closedir_and_clear): Define.
1319         Use it in place of closedir so that we are sure to
1320         clear the new fts_dirp member when done with it.
1321         (fts_alloc): Initialize the new member.
1322         (fts_lfree): Free, if needed.
1323
1324         maint: fts: give __opendir2 a new parameter and rename
1325         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1326         than surreptitiously using sole caller's "dir_fd".
1327         (fts_opendir): Rename from __opendir2.
1328
1329         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1330         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1331
1332         maint: fts.c: correct off-by-one indentation
1333         * lib/fts.c (fts_build): Correct indentation, change style
1334         of a couple of block comments, and bracing style.
1335
1336         maint: fts.c: move __opendir2 #define "up" out of function body
1337         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1338
1339         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1340         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1341         out for a long time and besides was useful only on BSD systems.
1342
1343 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         regex: port to Stratus OpenVOS
1346         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1347         define to empty, rather than attempting nonportable optimizations.
1348         Problem reported by Paul Green in:
1349         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1350         and fix suggested by Eric Blake in:
1351         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1352
1353 2011-08-17  Eric Blake  <eblake@redhat.com>
1354
1355         getcwd: fix test failures on mingw
1356         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1357         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1358         test if long directory cannot be created, and allow mingw errno.
1359
1360         getcwd-lgpl: fix m4 to match relaxed test for BSD
1361         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1362         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1363         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1364         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1365         signature problem.
1366
1367         getcwd: fix compilation on mingw64
1368         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1369         getcwd.
1370         Reported by Marc-André Lureau.
1371
1372         pipe2: silence compiler warning
1373         * lib/pipe2.c (pipe2): Hide label if it is not used.
1374
1375 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1376
1377         relocatable-prog: fix link error
1378         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1379         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1380         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1381         into modules/relocatable-lib without noticing that
1382         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1383         also needs to build relocatable.c.
1384
1385 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1389         shell code: it contained a 'break' that was not in a loop.
1390         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1391         via a shell-language loop; this may have been true in old Autoconf
1392         versions, but it's not true in Autoconf 2.68.  I found this bug
1393         when testing coreutils git on Solaris 8, whose shell complains
1394         about the syntax error.
1395
1396 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1397
1398         * lib/base64.c: Fix comment to reference RFC 4648.
1399         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1400         <gvtulder@gmail.com>.
1401
1402 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1403
1404         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1405
1406         po/Makefile.in.in: fix make -q problem
1407         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1408         rule, since there's no file named 'check-macro-version' and its
1409         use as a file breaks make -q.
1410         (all): Don't depend on check-macro-version.
1411         (CHECK_MACRO_VERSION): New macro.
1412         (stamp-po): Use it.
1413
1414         configmake: fix make -q problem
1415         * modules/configmake (configmake.h): Update configmake.h's time stamp
1416         even if the file does not change.  Otherwise, 'make -q' fails.
1417         Problem reported by Simon Josefsson in
1418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1419
1420 2011-08-11  Jim Meyering  <meyering@redhat.com>
1421
1422         git-version-gen: correct the advice in a comment
1423         * build-aux/git-version-gen: Correct comment.
1424         Don't recommend to list .tarball-version in .gitignore.
1425
1426 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1427
1428         base64: fix off-by-one buffer size bug
1429         Problem and (trivial) fix reported by Gijs van Tulder in
1430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1431         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1432         * tests/test-base64.c (main): Catch the bug.
1433
1434 2011-08-10  Eric Blake  <eblake@redhat.com>
1435
1436         closein: correct comments
1437         * lib/closein.c (close_stdin): Improve comments.
1438
1439 2011-08-09  Bruno Haible  <bruno@clisp.org>
1440
1441         More tests for 'fseeko'.
1442         * tests/test-fseeko3.c: New file, from Eric Blake.
1443         * tests/test-fseeko3.sh: New file.
1444         * modules/fseeko-tests (Files): Add them.
1445         (TESTS): Add test-fseeko3.sh.
1446         (check_PROGRAMS): Add test-fseeko3.
1447
1448 2011-08-09  Eric Blake  <eblake@redhat.com>
1449
1450         fseeko: remove unneeded hack
1451         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1452
1453         fseeko: fix bug on glibc
1454         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1455         Reported by John W. Eaton.
1456
1457 2011-08-08  Bruno Haible  <bruno@clisp.org>
1458
1459         unictype/base: Fix interoperability with preinstalled libunistring.
1460         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1461         Reported by Simon Josefsson.
1462
1463 2011-08-08  Bruno Haible  <bruno@clisp.org>
1464
1465         iswblank: Detect declaration correctly.
1466         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1467         AC_CHECK_DECLS invocation.
1468
1469 2011-08-08  Bruno Haible  <bruno@clisp.org>
1470
1471         tcgetsid: Detect declaration correctly.
1472         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1473         AC_CHECK_DECLS invocation.
1474         Reported by Simon Josefsson.
1475
1476 2011-08-08  Eric Blake  <eblake@redhat.com>
1477
1478         largefile: fix typo that regressed large file support
1479         * modules/largefile (configure.ac-early): Fix section name.
1480
1481 2011-08-06  Karl Berry  <karl@gnu.org>
1482
1483         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1484         a separate module.
1485
1486 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1487
1488         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1489         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1490         get prototype for free.
1491
1492 2011-08-04  Bruno Haible  <bruno@clisp.org>
1493
1494         Tests for module 'pathmax'.
1495         * modules/pathmax-tests: New file.
1496         * tests/test-pathmax.c: New file.
1497
1498         canonicalize-lgpl: Support larger filenames on the Hurd.
1499         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1500         Reported by Paul Eggert.
1501
1502         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1503         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1504         * lib/chdir-long.h: Include pathmax.h.
1505         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1506         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1507         (PATH_MAX): Remove code that is done by pathmax.h.
1508         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1509         * lib/tmpfile.c: Add a comment.
1510         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1511         * modules/chdir-long (Depends-on): Add pathmax.
1512         * modules/getcwd (Depends-on): Add pathmax.
1513         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1514         is not defined.
1515         * doc/posix-headers/limits.texi: Mention the pathmax module.
1516         * NEWS: Mention the change.
1517
1518 2011-08-02  Bruno Haible  <bruno@clisp.org>
1519
1520         pthread_sigmask: Actually use results of gl_THREADLIB.
1521         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1522         gl_THREADLIB, not gl_[]THREADLIB.
1523         Reported by Eric Blake.
1524
1525 2011-08-02  Jim Meyering  <meyering@redhat.com>
1526
1527         maint.mk: relax the default _gl_TS_function_match regexp
1528         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1529         space between function name and "(" in an "extern" declaration.
1530         That would fail to match a decl with no space there: extern void foo();
1531
1532 2011-07-31  Iain Nicol  <iain@thenicols.net>
1533
1534         git-version-gen: document that EXTRA_DIST must include .version
1535         * build-aux/git-version-gen: In the how-to-use comment, document
1536         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1537         will fail when run from an unpacked distribution tarball.
1538
1539 2011-08-01  Bruno Haible  <bruno@clisp.org>
1540
1541         wctype-h: Fix last change.
1542         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1543         REPLACE_TOWLOWER to 0.
1544         Reported by Sam Steingold <sds@gnu.org>.
1545
1546 2011-07-31  Bruno Haible  <bruno@clisp.org>
1547
1548         frexpl: Update autoconf test.
1549         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1550         according to changes of 2011-06-20.
1551
1552 2011-07-31  Bruno Haible  <bruno@clisp.org>
1553
1554         sys_utsname: Add support for Minix.
1555         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1556         <sys/utsname.h>.
1557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1558         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1559
1560 2011-07-31  Bruno Haible  <bruno@clisp.org>
1561
1562         strings: Add support for Minix.
1563         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1564         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1565         * doc/posix-headers/strings.texi: Document the Minix problem.
1566
1567 2011-07-31  Bruno Haible  <bruno@clisp.org>
1568
1569         wctype-h: Add support for Minix.
1570         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1571         REPLACE_TOWLOWER.
1572         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1573         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1574         REPLACE_ISWCNTRL.
1575
1576 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1577
1578         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1579         This is a performance improvement for 64-bit hosts: it causes the
1580         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1581
1582 2011-07-31  Bruno Haible  <bruno@clisp.org>
1583
1584         stdioext: Add support for Minix.
1585         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1586         * lib/fpurge.c (fpurge): Likewise.
1587         * lib/freadahead.c (freadahead): Likewise.
1588         * lib/freadable.c (freadable): Likewise.
1589         * lib/freading.c (freading): Likewise.
1590         * lib/freadptr.c (freadptr): Likewise.
1591         * lib/freadseek.c (freadptrinc): Likewise.
1592         * lib/fseeko.c (rpl_fseeko): Likewise.
1593         * lib/fseterr.c (fseterr): Likewise.
1594         * lib/fwritable.c (fwritable): Likewise.
1595         * lib/fwriting.c (fwriting): Likewise.
1596         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1597         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1598
1599 2011-07-31  Bruno Haible  <bruno@clisp.org>
1600
1601         errno: Port to Minix.
1602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1603         ECONNABORTED are defined.
1604         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1605         GNULIB_defined_ECONNABORTED): New macros.
1606         * lib/strerror-override.h (strerror_override): Test also
1607         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1608         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1609         ECONNABORTED.
1610         * doc/posix-headers/errno.texi: Mention the Minix problem.
1611
1612 2011-07-31  Bruno Haible  <bruno@clisp.org>
1613
1614         Work around declaration collisions on Minix.
1615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1616         defined, set REPLACE_MBSINIT.
1617         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1618         defined, set REPLACE_MBRTOWC.
1619         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1620         set REPLACE_MBRLEN.
1621         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1622         defined, set REPLACE_MBSRTOWCS.
1623         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1624         defined, set REPLACE_WCRTOMB.
1625         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1626         defined, set REPLACE_WCSRTOMBS.
1627
1628 2011-07-31  Bruno Haible  <bruno@clisp.org>
1629
1630         Add support for Minix with ACK compiler.
1631         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1632         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1633         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1634
1635 2011-07-31  Bruno Haible  <bruno@clisp.org>
1636
1637         Documentation about Minix.
1638         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1639         * doc/glibc-headers/*.texi: Likewise.
1640         * doc/posix-functions/*.texi: Likewise.
1641         * doc/glibc-functions/*.texi: Likewise.
1642
1643 2011-07-31  Bruno Haible  <bruno@clisp.org>
1644
1645         snippet/warn-on-use: Fix indentation.
1646         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1647
1648 2011-07-25  Jim Meyering  <meyering@redhat.com>
1649
1650         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1651         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1652         commands.
1653
1654 2011-07-27  Jim Meyering  <meyering@redhat.com>
1655
1656         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1657         * top/maint.mk (gl_extract_significant_defines_): Now that
1658         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1659         gnulib/lib/signal.in.h, and now that we recommend to
1660         define-if-undefined those two symbols in application code,
1661         we must filter them out of the "significant" list.
1662         This avoids a "make syntax-check" failure in coreutils.
1663
1664 2011-07-26  Eric Blake  <eblake@redhat.com>
1665
1666         warnings: add comments about previous patch
1667         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1668         * m4/include_next.m4: Likewise.
1669         * m4/warn-on-use.m4: Likewise.
1670         * m4/warnings.m4: Likewise, and simplify use.
1671         Suggested by Stefano Lattarini.
1672
1673         include-next, warnings: support older autoconf
1674         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1675         AS_VAR_PUSHDEF in a way that works with older autoconf.
1676         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1677         Reported by Daniel P. Berrange.
1678
1679 2011-07-25  Bruno Haible  <bruno@clisp.org>
1680
1681         fseek, ftell: Fix doc.
1682         * doc/posix-functions/fseek.texi: Reword statement about
1683         AC_SYS_LARGEFILE.
1684         * doc/posix-functions/ftell.texi: Likewise.
1685
1686 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1687             Bruno Haible  <bruno@clisp.org>
1688
1689         Add dependencies to the 'largefile' module.
1690         * modules/fopen (Depends-on): Add 'largefile'.
1691         * modules/freopen (Depends-on): Likewise.
1692         * modules/fseeko (Depends-on): Likewise.
1693         * modules/ftello (Depends-on): Likewise.
1694         * modules/glob (Depends-on): Likewise.
1695         * modules/lseek (Depends-on): Likewise.
1696         * modules/lstat (Depends-on): Likewise.
1697         * modules/mkostemp (Depends-on): Likewise.
1698         * modules/mkostemps (Depends-on): Likewise.
1699         * modules/mkstemp (Depends-on): Likewise.
1700         * modules/mkstemps (Depends-on): Likewise.
1701         * modules/open (Depends-on): Likewise.
1702         * modules/openat (Depends-on): Likewise.
1703         * modules/pread (Depends-on): Likewise.
1704         * modules/pwrite (Depends-on): Likewise.
1705         * modules/scandir (Depends-on): Likewise.
1706         * modules/stat (Depends-on): Likewise.
1707         * modules/tmpfile (Depends-on): Likewise.
1708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1709         since the containing module now depends on the largefile module.
1710         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1711         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1712         off_t is fixed by gnulib.
1713         * doc/posix-functions/freopen.texi: Likewise.
1714         * doc/posix-functions/fseeko.texi: Likewise.
1715         * doc/posix-functions/fstatat.texi: Likewise.
1716         * doc/posix-functions/ftello.texi: Likewise.
1717         * doc/posix-functions/glob.texi: Likewise.
1718         * doc/posix-functions/lseek.texi: Likewise.
1719         * doc/posix-functions/lstat.texi: Likewise.
1720         * doc/posix-functions/mkstemp.texi: Likewise.
1721         * doc/posix-functions/open.texi: Likewise.
1722         * doc/posix-functions/openat.texi: Likewise.
1723         * doc/posix-functions/pread.texi: Likewise.
1724         * doc/posix-functions/pwrite.texi: Likewise.
1725         * doc/posix-functions/scandir.texi: Likewise.
1726         * doc/posix-functions/stat.texi: Likewise.
1727         * doc/posix-functions/tmpfile.texi: Likewise.
1728         * doc/glibc-functions/mkostemp.texi: Likewise.
1729         * doc/glibc-functions/mkostemps.texi: Likewise.
1730         * doc/glibc-functions/mkstemps.texi: Likewise.
1731
1732 2011-07-25  Bruno Haible  <bruno@clisp.org>
1733
1734         fcntl: Move AC_LIBOBJ invocation to module description.
1735         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1736         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1737
1738         fcntl: Remove call-in from fchdir.m4.
1739         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1741
1742         dup3: Remove potential call-in from fchdir.m4.
1743         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1745
1746         dup2: Move AC_LIBOBJ invocation to module description.
1747         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1748         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1749         Don't invoke AC_LIBOBJ.
1750         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1751
1752         dup2: Remove call-in from fchdir.m4.
1753         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1755
1756         fclose: Move AC_LIBOBJ invocation to module description.
1757         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1758         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1759         to 1.
1760         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1761
1762         fclose: Remove call-in from close.m4.
1763         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1764         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1765
1766         close: Move AC_LIBOBJ invocation to module description.
1767         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1768         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1769         1.
1770         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1771
1772         close: Remove call-in from fchdir.m4.
1773         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1775
1776         open: Move AC_LIBOBJ invocation to module description.
1777         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1778         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1779         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1780
1781         open: Remove call-in from fchdir.m4.
1782         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1784
1785         fchdir: Start to remove gl_REPLACE_* idiom.
1786         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1787         (gl_FUNC_FCHDIR): Invoke it.
1788
1789 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1790
1791         * lib/ftell.c (ftell): Comment out cast.
1792
1793         close: use gl_REPLACE_FCLOSE only if defined
1794         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1795         is defined.  The close module doesn't depend on the fclose module
1796         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1798         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1799
1800 2011-07-24  Jim Meyering  <meyering@redhat.com>
1801
1802         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1803         * tests/test-select.h (test_function): Declare as "static".
1804
1805 2011-07-24  Bruno Haible  <bruno@clisp.org>
1806
1807         doc: Mention the effects of AC_SYS_LARGEFILE.
1808         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1809         on this function.
1810         * doc/posix-functions/aio_error.texi: Likewise.
1811         * doc/posix-functions/aio_fsync.texi: Likewise.
1812         * doc/posix-functions/aio_read.texi: Likewise.
1813         * doc/posix-functions/aio_return.texi: Likewise.
1814         * doc/posix-functions/aio_suspend.texi: Likewise.
1815         * doc/posix-functions/aio_write.texi: Likewise.
1816         * doc/posix-functions/fgetpos.texi: Likewise.
1817         * doc/posix-functions/fopen.texi: Likewise.
1818         * doc/posix-functions/freopen.texi: Likewise.
1819         * doc/posix-functions/fsetpos.texi: Likewise.
1820         * doc/posix-functions/fstatvfs.texi: Likewise.
1821         * doc/posix-functions/ftruncate.texi: Likewise.
1822         * doc/posix-functions/ftw.texi: Likewise.
1823         * doc/posix-functions/getrlimit.texi: Likewise.
1824         * doc/posix-functions/glob.texi: Likewise.
1825         * doc/posix-functions/lio_listio.texi: Likewise.
1826         * doc/posix-functions/lockf.texi: Likewise.
1827         * doc/posix-functions/mkstemp.texi: Likewise.
1828         * doc/posix-functions/mmap.texi: Likewise.
1829         * doc/posix-functions/nftw.texi: Likewise.
1830         * doc/posix-functions/openat.texi: Likewise.
1831         * doc/posix-functions/opendir.texi: Likewise.
1832         * doc/posix-functions/posix_fadvise.texi: Likewise.
1833         * doc/posix-functions/posix_fallocate.texi: Likewise.
1834         * doc/posix-functions/pread.texi: Likewise.
1835         * doc/posix-functions/pwrite.texi: Likewise.
1836         * doc/posix-functions/readdir.texi: Likewise.
1837         * doc/posix-functions/readdir_r.texi: Likewise.
1838         * doc/posix-functions/rewinddir.texi: Likewise.
1839         * doc/posix-functions/scandir.texi: Likewise.
1840         * doc/posix-functions/seekdir.texi: Likewise.
1841         * doc/posix-functions/setrlimit.texi: Likewise.
1842         * doc/posix-functions/statvfs.texi: Likewise.
1843         * doc/posix-functions/telldir.texi: Likewise.
1844         * doc/posix-functions/tmpfile.texi: Likewise.
1845         * doc/posix-functions/truncate.texi: Likewise.
1846         * doc/glibc-functions/fallocate.texi: Likewise.
1847         * doc/glibc-functions/fstatfs.texi: Likewise.
1848         * doc/glibc-functions/fts_children.texi: Likewise.
1849         * doc/glibc-functions/fts_read.texi: Likewise.
1850         * doc/glibc-functions/getdirentries.texi: Likewise.
1851         * doc/glibc-functions/mkostemp.texi: Likewise.
1852         * doc/glibc-functions/mkostemps.texi: Likewise.
1853         * doc/glibc-functions/mkstemps.texi: Likewise.
1854         * doc/glibc-functions/preadv.texi: Likewise.
1855         * doc/glibc-functions/pwritev.texi: Likewise.
1856         * doc/glibc-functions/sendfile.texi: Likewise.
1857         * doc/glibc-functions/statfs.texi: Likewise.
1858
1859 2011-07-24  Bruno Haible  <bruno@clisp.org>
1860
1861         doc: Fix typo.
1862         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1863
1864 2011-07-24  Bruno Haible  <bruno@clisp.org>
1865
1866         doc: Mention fsusage.
1867         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1868
1869 2011-07-24  Bruno Haible  <bruno@clisp.org>
1870
1871         doc: Mention new glibc headers and functions.
1872         * doc/glibc-headers/gshadow.texi: New file.
1873         * doc/glibc-functions/endsgent.texi: New file.
1874         * doc/glibc-functions/fgetsgent.texi: New file.
1875         * doc/glibc-functions/fgetsgent_r.texi: New file.
1876         * doc/glibc-functions/getsgent.texi: New file.
1877         * doc/glibc-functions/getsgent_r.texi: New file.
1878         * doc/glibc-functions/getsgnam.texi: New file.
1879         * doc/glibc-functions/getsgnam_r.texi: New file.
1880         * doc/glibc-functions/putsgent.texi: New file.
1881         * doc/glibc-functions/setsgent.texi: New file.
1882         * doc/glibc-functions/sgetsgent.texi: New file.
1883         * doc/glibc-functions/sgetsgent_r.texi: New file.
1884         * doc/glibc-functions/malloc_info.texi: New file.
1885         * doc/glibc-functions/preadv.texi: New file.
1886         * doc/glibc-functions/pwritev.texi: New file.
1887         * doc/glibc-functions/register_printf_modifier.texi: New file.
1888         * doc/glibc-functions/register_printf_specifier.texi: New file.
1889         * doc/glibc-functions/register_printf_type.texi: New file.
1890         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1891         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1892         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1893         * doc/glibc-functions/pthread_getname_np.texi: New file.
1894         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1895         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1896         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1897         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1898         * doc/glibc-functions/pthread_setname_np.texi: New file.
1899         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1900         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1901         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1902         * doc/glibc-functions/qsort_r.texi: New file.
1903         * doc/glibc-functions/quick_exit.texi: New file.
1904         * doc/glibc-functions/syncfs.texi: New file.
1905         * doc/gnulib.texi: Include them.
1906         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1907         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1908         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1909         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1910         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1911         * doc/glibc-functions/execvpe.texi: Likewise.
1912
1913 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1914
1915         ftell: don't include <unistd.h>
1916         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1917         guaranteed to define off_t, and the ftell module depends on the
1918         stdio module.
1919
1920         ftell: do not assume wraparound signed arithmetic
1921         * lib/ftell.c: Include <limits.h>.
1922         (ftell): Don't assume wraparound signed arithmetic.
1923
1924 2011-07-24  Bruno Haible  <bruno@clisp.org>
1925
1926         close: No longer depend on module 'fclose'.
1927         * modules/close (Depends-on): Remove fclose.
1928         * NEWS: Mention the change.
1929         Suggested by Sam Steingold <sds@gnu.org>.
1930
1931 2011-07-24  Bruno Haible  <bruno@clisp.org>
1932
1933         fsusage: Enable large volume support on AIX >= 5.2.
1934         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1935         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1936         instead of STAT_STATVFS.
1937         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1938
1939         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1941         f_blocks field only on MacOS X.
1942
1943         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1945         * modules/fsusage (Depends-on): Add largefile.
1946
1947 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         * README: Modernize discussion of signed integers.
1950         Assuming overflow wraparound is no longer safe.
1951         Mention ones' complement and signed magnitude.
1952
1953 2011-07-22  Bruno Haible  <bruno@clisp.org>
1954
1955         select tests, pselect tests: Refactor.
1956         * tests/test-select.h: New file, extracted from tests/test-select.c.
1957         (select_fn): New type.
1958         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1959         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1960         test_pipe): Add my_select argument.
1961         (test_function): Renamed from main. Add my_select argument.
1962         * tests/test-select.c: Move most code to tests/test-select.h. Include
1963         test-select.h.
1964         * modules/select-tests (Files): Add tests/test-select.h.
1965         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1966         (my_select, main): New functions.
1967         * modules/pselect-tests (Files): Add tests/test-select.h,
1968         tests/macros.h, tests/signature.h.
1969         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1970         (configure.ac): Check for <sys/wait.h>.
1971
1972 2011-07-22  Bruno Haible  <bruno@clisp.org>
1973
1974         sys_select tests: Check the signature of FD_*.
1975         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1976         signature tests from here...
1977         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1978         here.
1979         * modules/sys_select-tests (Files): Add tests/signature.h.
1980
1981 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         largefile: new module, replacing large-inode
1984         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1985         * MODULES.html.sh: Add largefile, remove large-inode.
1986         * modules/largefile, m4/largefile.m4: New files.
1987         * modules/large-inode, m4/large-inode.m4: Remove.
1988
1989         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1991         implementations that use only 32 bits to count blocks.
1992         On typical hosts with 1024-byte blocks, this fails with file
1993         systems as small as 4 TiB.  Problem reported by Herb Wartens
1994         <http://debbugs.gnu.org/9140> and this should also fix a similar
1995         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1996
1997         large-inode: New module
1998         * MODULES.html.sh: Add it.
1999         * modules/large-inode, m4/large-inode.m4: New files.
2000
2001         extensions: Enable extensions on MacOS X 10.5 and later.
2002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2003
2004 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2005
2006         file-has-acl: use acl_extended_file_nofollow if available
2007         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2008         (acl_extended_file): New macro.
2009         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2010         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2011
2012 2011-07-21  Bruno Haible  <bruno@clisp.org>
2013
2014         Declare system functions in a way that works with C++.
2015         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2016         declare fdopendir as extern "C".
2017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2018         declare frexpl as extern "C".
2019         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2020         declare gai_strerror as extern "C".
2021         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2022         programs, declare gai_strerror as extern "C".
2023         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2024         declare getlogin_r as extern "C".
2025         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2026         as extern "C".
2027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2028         declare ldexpl as extern "C".
2029         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2030         as extern "C".
2031         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2032         program, declare getmntinfo as extern "C".
2033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2034         stpncpy as extern "C".
2035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2036         program, declare __xpg_strerror_r as extern "C".
2037         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2038         strndup as extern "C".
2039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2040         declare memset and bzero as extern "C".
2041         Reported by Sam Steingold <sds@gnu.org>.
2042
2043 2011-07-12  Jim Meyering  <meyering@redhat.com>
2044
2045         maint.mk: prohibit inclusion of "verify.h" without use
2046         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2047
2048 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2049
2050         timer-time: A new module to check for timer_settime()
2051         * m4/timer_time.m4: Check for the posix function.
2052         * modules/timer-time: Add the new module.
2053         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2054         Mention it.
2055
2056 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2057             Bruno Haible  <bruno@clisp.org>
2058
2059         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2060         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2061         not defined, assume POSIX threads and look for pthread_sigmask in
2062         $LIBS, without changing $CPPFLAGS.
2063
2064 2011-07-19  Bruno Haible  <bruno@clisp.org>
2065
2066         strstr: Update cross-compilation guess.
2067         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2068         CPUs, guess no, in view of glibc
2069         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2070         Suggested by Eric Blake. Reported by Reuben Thomas.
2071
2072 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2073
2074         getopt-gnu: suppress core dumps from detection code
2075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2076         to suppress core dumps that may well occur on glibc systems.
2077         * modules/getopt-gnu: Depend on nocrash.
2078
2079 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         pthread_sigmask: ensure usleep is declared
2082         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2083         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2084
2085 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2086
2087         doc: Document NonStop portability issues.
2088         * doc/posix-functions/sigaction.texi (sigaction):
2089         * doc/posix-headers/signal.texi (signal.h):
2090         Document NonStop.  See Joachim Schmitz in
2091         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2092
2093 2011-07-15  Bruno Haible  <bruno@clisp.org>
2094
2095         ffsl, ffsll: Avoid unportable behaviour.
2096         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2097
2098 2011-07-15  Bruno Haible  <bruno@clisp.org>
2099
2100         ffs: More tests.
2101         * tests/test-ffs.c (NBITS): New macro.
2102         (main): Add more tests.
2103         * tests/test-ffsl.c (NBITS): New macro.
2104         (main): Add more tests.
2105         * tests/test-ffsll.c (NBITS): New macro.
2106         (main): Add more tests.
2107
2108 2011-07-15  Eric Blake  <eblake@redhat.com>
2109
2110         ffsl, ffsll: new modules
2111         * modules/ffsl: New file.
2112         * modules/ffsll: Likewise.
2113         * m4/ffsl.m4: Likewise.
2114         * m4/ffsll.m4: Likewise.
2115         * lib/ffsl.c: Likewise.
2116         * lib/ffsl.h: Likewise.
2117         * lib/ffsll.c: Likewise.
2118         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2119         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2120         * modules/string (Makefile.am): Substitute witnesses.
2121         * lib/strings.in.h (ffsl, ffsll): Declare.
2122         * modules/ffsl-tests: New test file.
2123         * modules/ffsll-tests: Likewise.
2124         * tests/test-ffsl.c: Likewise.
2125         * tests/test-ffsll.c: Likewise.
2126         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2127         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2128         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2129
2130         ffs: fix m4 prerequisite
2131         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2132
2133         ffs: avoid undefined behavior
2134         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2135         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2136         Reported by Bruno Haible.
2137
2138 2011-07-12  Bruno Haible  <bruno@clisp.org>
2139
2140         pthread_sigmask: Rely on module 'threadlib'.
2141         * modules/pthread_sigmask (Depends-on): Add threadlib.
2142         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2143         is defined.
2144
2145 2011-07-12  Bruno Haible  <bruno@clisp.org>
2146
2147         regex: Depend on module 'strcase'.
2148         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2149
2150 2011-07-12  Jim Meyering  <meyering@redhat.com>
2151
2152         warn-on-use: fix typo in file name
2153         * modules/snippet/warn-on-use (Files): Correct file name:
2154         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2155
2156 2011-07-12  Bruno Haible  <bruno@clisp.org>
2157
2158         strings: Document module.
2159         * doc/posix-headers/strings.texi: Mention module 'strings'.
2160
2161 2011-07-12  Bruno Haible  <bruno@clisp.org>
2162
2163         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2164         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2165         (Files, Makefile.am): Update.
2166         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2167         * modules/stdlib (Depends-on): Update.
2168
2169 2011-07-12  Bruno Haible  <bruno@clisp.org>
2170
2171         * NEWS: Mention the changes.
2172
2173         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2174         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2175         (Files, Makefile.am): Update.
2176         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2177         * modules/arpa_inet (Depends-on): Update.
2178         * modules/ctype (Depends-on): Update.
2179         * modules/dirent (Depends-on): Update.
2180         * modules/fcntl-h (Depends-on): Update.
2181         * modules/glob (Depends-on): Update.
2182         * modules/iconv-h (Depends-on): Update.
2183         * modules/inttypes-incomplete (Depends-on): Update.
2184         * modules/langinfo (Depends-on): Update.
2185         * modules/locale (Depends-on): Update.
2186         * modules/math (Depends-on): Update.
2187         * modules/netdb (Depends-on): Update.
2188         * modules/poll-h (Depends-on): Update.
2189         * modules/pty (Depends-on): Update.
2190         * modules/search (Depends-on): Update.
2191         * modules/signal (Depends-on): Update.
2192         * modules/spawn (Depends-on): Update.
2193         * modules/stdio (Depends-on): Update.
2194         * modules/stdlib (Depends-on): Update.
2195         * modules/string (Depends-on): Update.
2196         * modules/strings (Depends-on): Update.
2197         * modules/sys_file (Depends-on): Update.
2198         * modules/sys_ioctl (Depends-on): Update.
2199         * modules/sys_select (Depends-on): Update.
2200         * modules/sys_socket (Depends-on): Update.
2201         * modules/sys_stat (Depends-on): Update.
2202         * modules/sys_time (Depends-on): Update.
2203         * modules/sys_times (Depends-on): Update.
2204         * modules/sys_utsname (Depends-on): Update.
2205         * modules/sys_wait (Depends-on): Update.
2206         * modules/termios (Depends-on): Update.
2207         * modules/time (Depends-on): Update.
2208         * modules/unistd (Depends-on): Update.
2209         * modules/wchar (Depends-on): Update.
2210         * modules/wctype-h (Depends-on): Update.
2211         * MODULES.html.sh (Support for building libraries and executables):
2212         Update.
2213
2214         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2215         * modules/snippet/unused-parameter: Renamed from
2216         modules/unused-parameter.
2217         (Files, Makefile.am): Update.
2218         * build-aux/snippet/unused-parameter.h: Renamed from
2219         build-aux/unused-parameter.h.
2220         * modules/selinux-h (Depends-on): Update.
2221         * modules/unistr/base (Depends-on): Update.
2222         * MODULES.html.sh (Core language properties): Update.
2223
2224         Rename module 'link-warning' to 'snippet/link-warning'.
2225         * modules/snippet/link-warning: Renamed from modules/link-warning.
2226         (Files, Makefile.am): Update.
2227         * build-aux/snippet/link-warning.h: Renamed from
2228         build-aux/link-warning.h.
2229         * MODULES.html.sh (Support for building libraries and executables):
2230         Update.
2231
2232         Rename module 'c++defs' to 'snippet/c++defs'.
2233         * modules/snippet/c++defs: Renamed from modules/c++defs.
2234         (Files, Makefile.am): Update.
2235         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2236         * modules/arpa_inet (Depends-on): Update.
2237         * modules/ctype (Depends-on): Update.
2238         * modules/dirent (Depends-on): Update.
2239         * modules/fcntl-h (Depends-on): Update.
2240         * modules/glob (Depends-on): Update.
2241         * modules/iconv-h (Depends-on): Update.
2242         * modules/langinfo (Depends-on): Update.
2243         * modules/locale (Depends-on): Update.
2244         * modules/math (Depends-on): Update.
2245         * modules/netdb (Depends-on): Update.
2246         * modules/poll-h (Depends-on): Update.
2247         * modules/pty (Depends-on): Update.
2248         * modules/search (Depends-on): Update.
2249         * modules/signal (Depends-on): Update.
2250         * modules/spawn (Depends-on): Update.
2251         * modules/stdio (Depends-on): Update.
2252         * modules/stdlib (Depends-on): Update.
2253         * modules/string (Depends-on): Update.
2254         * modules/strings (Depends-on): Update.
2255         * modules/sys_ioctl (Depends-on): Update.
2256         * modules/sys_select (Depends-on): Update.
2257         * modules/sys_socket (Depends-on): Update.
2258         * modules/sys_stat (Depends-on): Update.
2259         * modules/sys_time (Depends-on): Update.
2260         * modules/sys_wait (Depends-on): Update.
2261         * modules/termios (Depends-on): Update.
2262         * modules/time (Depends-on): Update.
2263         * modules/unistd (Depends-on): Update.
2264         * modules/wchar (Depends-on): Update.
2265         * modules/wctype-h (Depends-on): Update.
2266
2267         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2268         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2269         (Files, Makefile.am): Update.
2270         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2271         * modules/argv-iter (Depends-on): Update.
2272         * modules/arpa_inet (Depends-on): Update.
2273         * modules/dirent (Depends-on): Update.
2274         * modules/fcntl-h (Depends-on): Update.
2275         * modules/fnmatch (Depends-on): Update.
2276         * modules/getopt-posix (Depends-on): Update.
2277         * modules/glob (Depends-on): Update.
2278         * modules/iconv-h (Depends-on): Update.
2279         * modules/inttypes-incomplete (Depends-on): Update.
2280         * modules/locale (Depends-on): Update.
2281         * modules/math (Depends-on): Update.
2282         * modules/netdb (Depends-on): Update.
2283         * modules/search (Depends-on): Update.
2284         * modules/signal (Depends-on): Update.
2285         * modules/spawn (Depends-on): Update.
2286         * modules/stdio (Depends-on): Update.
2287         * modules/stdlib (Depends-on): Update.
2288         * modules/string (Depends-on): Update.
2289         * modules/strings (Depends-on): Update.
2290         * modules/sys_socket (Depends-on): Update.
2291         * modules/sys_stat (Depends-on): Update.
2292         * modules/sys_time (Depends-on): Update.
2293         * modules/sys_times (Depends-on): Update.
2294         * modules/sys_utsname (Depends-on): Update.
2295         * modules/time (Depends-on): Update.
2296         * modules/unistd (Depends-on): Update.
2297         * modules/wchar (Depends-on): Update.
2298         * MODULES.html.sh (Support for building libraries and executables):
2299         Update.
2300
2301 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2302
2303         Improvements on _Noreturn and related modules.
2304
2305         modules/_Exit-tests: test _Noreturn too
2306         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2307         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2308         (main): Use them.
2309
2310         stdnoreturn, stdnoreturn-tests: remove modules
2311         They're not needed here and a bit premature for use elsewhere.  See
2312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2313         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2314         * tests/test-stdnoreturn.c: Remove files.
2315         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2316         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2317         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2318         and using noreturn.
2319         * modules/openat, modules/sigpipe-die, modules/xalloc:
2320         * modules/xmemdup0, modules/xstrtol:
2321         Remove dependency on stdnoreturn.
2322
2323         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2324         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2325         Reparenthesize to avoid GCC warning.
2326         Support Microsoft's syntax.
2327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2328
2329         _Noreturn-tests: remove module
2330         * modules/_Noreturn-tests: Remove.
2331         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2332         * tests/test-_Noreturn.c: Remove.
2333         * tests/test-stdnoreturn.c: Merge from the old
2334         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2335
2336 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2337
2338         _Noreturn, stdnoreturn, and related modules.
2339
2340         * top/maint.mk: Adjust to new noreturn support.
2341         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2342         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2343
2344         xalloc: use stdnoreturn.h
2345         * lib/xalloc.h: Include <stdnoreturn.h>.
2346         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2347         * modules/xalloc (Depends-on): Add stdnoreturn.
2348
2349         xstrtol: use stdnoreturn.h
2350         * lib/xstrtol.h: Include <stdnoreturn.h>.
2351         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2352         * modules/xstrtol (Depends-on): Add stdnoreturn.
2353
2354         xmemdup0: use stdnoreturn.h
2355         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2356         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2357         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2358
2359         sigpipe-die: use stdnoreturn.h
2360         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2361         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2362         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2363
2364         openat: use stdnoreturn.h
2365         * lib/openat.h: Include <stdnoreturn.h>.
2366         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2367         * modules/openat (Depends-on): Add stdnoreturn.
2368
2369         * lib/openat-die.c (openat_save_fail): Modernize comment.
2370
2371         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2372
2373         * lib/glthread/thread.h: Modernize comment.
2374
2375         obstack: use _Noreturn
2376         * lib/obstack.c (__attribute__): Remove macro.
2377         (print_and_abort): Use _Noreturn.
2378
2379         c-stack: use _Noreturn
2380         * lib/c-stack.c (die, overflow_handler, segv_handler):
2381         Use _Noreturn rather than __attribute__((noreturn)).
2382
2383         argmatch-tests, exclude_tests: use _Noreturn
2384         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2385         Remove.
2386         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2387
2388         stdlib: use _Noreturn
2389         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2390         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2391         * modules/stdlib (Depends-on): Add _Noreturn.
2392         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2393
2394         stdnoreturn-tests: new module
2395         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2396
2397         stdnoreturn: new module
2398         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2399         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2400
2401         _Noreturn-tests: new module
2402         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2403
2404         _Noreturn: new module
2405         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2406         New section, mentioning it.
2407         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2408
2409         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2410
2411 2011-07-11  Eric Blake  <eblake@redhat.com>
2412
2413         ffs: new module
2414         * modules/ffs: New file.
2415         * m4/ffs.m4: Likewise.
2416         * lib/ffs.c: Likewise.
2417         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2418         * modules/strings (Makefile.am): Substitute witness.
2419         (Depends-on): Add c++defs.
2420         * lib/strings.in.h (ffs): Declare.
2421         * modules/ffs-tests: New test file.
2422         * tests/test-ffs.c: Test new module.
2423         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2424         * doc/posix-functions/ffs.texi (ffs): Likewise.
2425
2426         regex: avoid compiler warning
2427         * lib/regex.c (includes): Include <strings.h>, for use of
2428         strcasecmp in regcomp.c.
2429         Reported by Joachim Schmitz.
2430
2431 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2432
2433         stdint: respect system's intmax_t if INTMAX_MAX
2434         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2435         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2436         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2437         long but int64_t is long long, and where we will clash with the
2438         system intmax_t if we override it.  See
2439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2440         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2441         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2442         similarly for UINTMAX_C.
2443
2444 2011-07-08  Bruno Haible  <bruno@clisp.org>
2445
2446         pthread_sigmask tests: Avoid a compiler warning.
2447         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2448         non-zero.
2449
2450         sigprocmask tests: A better way to avoid a compiler warning.
2451         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2452         (main): Complain if system() returns non-zero.
2453         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2454
2455 2011-07-08  Bruno Haible  <bruno@clisp.org>
2456
2457         pthread_sigmask: Work around IRIX bug.
2458         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2459         bug.
2460         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2461         there may be unblocked pending signals.
2462         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2463
2464 2011-07-08  Bruno Haible  <bruno@clisp.org>
2465
2466         pthread_sigmask: Work around Cygwin bug.
2467         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2468         bug.
2469         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2470         the system's pthread_sigmask function.
2471         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2472
2473 2011-07-08  Bruno Haible  <bruno@clisp.org>
2474
2475         pthread_sigmask: Work around bug in single-threaded implementation.
2476         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2477         FreeBSD, HP-UX, Solaris bug.
2478         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2479         * lib/pthread_sigmask.c: Include <stddef.h>.
2480         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2481         the system's pthread_sigmask function.
2482         * modules/pthread_sigmask (configure.ac): Invoke
2483         gl_PREREQ_PTHREAD_SIGMASK.
2484         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2485         HP-UX, Solaris.
2486
2487 2011-07-08  Eric Blake  <eblake@redhat.com>
2488
2489         test-sigprocmask: avoid compiler warning
2490         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2491         * tests/test-sigprocmask.c (main): Use it to silence warning.
2492         Reported by Jim Meyering.
2493
2494         test-snprintf: avoid compiler warning
2495         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2496         * tests/test-vsnprintf.c (main): Likewise.
2497         Reported by Jim Meyering.
2498
2499 2011-07-08  Bruno Haible  <bruno@clisp.org>
2500
2501         Tests for module 'pthread_sigmask'.
2502         * modules/pthread_sigmask-tests: New file.
2503         * tests/test-pthread_sigmask1.c: New file, based on
2504         tests/test-sigprocmask.c.
2505         * tests/test-pthread_sigmask2.c: New file.
2506
2507 2011-07-08  Jim Meyering  <meyering@redhat.com>
2508
2509         test-getopt.h: avoid warning about an unused variable
2510         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2511
2512 2011-07-07  Jim Meyering  <meyering@redhat.com>
2513
2514         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2515         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2516         now that it no longer contains leading TABs.
2517         Remove unused "url=FIXME" statement.
2518
2519 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2520
2521         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2522         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2523         When gl_THREADLIB is not in use, assume that the POSIX sematics
2524         are desired.  This is better for Emacs, which uses POSIX semantics
2525         on GNUish and/or POSIXish platforms, and does not use threads at
2526         all otherwise.
2527
2528         pthread_sigmask: fix typo when testing for libraries
2529         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2530         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2531
2532 2011-07-08  Eric Blake  <eblake@redhat.com>
2533
2534         fts: introduce FTS_NOATIME
2535         * lib/fts_.h (FTS_NOATIME): New bit flag.
2536         (FTS_OPTIONMASK): Adjust.
2537         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2538         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2539
2540 2011-07-08  Bruno Haible  <bruno@clisp.org>
2541
2542         Tests for module 'thread'.
2543         * modules/thread-tests: New file.
2544         * tests/test-thread_self.c: New file.
2545         * tests/test-thread_create.cc: New file.
2546
2547 2011-07-08  Bruno Haible  <bruno@clisp.org>
2548
2549         thread: Avoid gcc warnings when using gl_thread_self().
2550         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2551         'void *'.
2552         (gl_thread_self_pointer): Update.
2553
2554 2011-07-07  Bruno Haible  <bruno@clisp.org>
2555
2556         signal-c++-tests: Check declaration of pthread_sigmask.
2557         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2558         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2559         $(LIB_PTHREAD_SIGMASK).
2560
2561 2011-07-07  Bruno Haible  <bruno@clisp.org>
2562
2563         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2564         * lib/signal.in.h (pthread_sigmask): Override if
2565         REPLACE_PTHREAD_SIGMASK is 1.
2566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2567         REPLACE_PTHREAD_SIGMASK.
2568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2569         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2570         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2571         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2572         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2573
2574 2011-07-07  Bruno Haible  <bruno@clisp.org>
2575
2576         pthread_sigmask: Ensure declaration in <signal.h>.
2577         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2578         include <pthread.h>.
2579         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2580         problem.
2581
2582 2011-07-07  Bruno Haible  <bruno@clisp.org>
2583
2584         pthread_sigmask: Document the module.
2585         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2586
2587 2011-07-07  Bruno Haible  <bruno@clisp.org>
2588
2589         pthread_sigmask: Follow gnulib conventions.
2590         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2591         gl_PTHREAD_SIGMASK.
2592         * modules/pthread_sigmask (configure.ac): Update.
2593
2594 2011-07-07  Bruno Haible  <bruno@clisp.org>
2595
2596         pthread_sigmask: Make declaration C++ safe.
2597         * lib/signal.in.h: In two special conditions, just do an #include_next.
2598         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2599         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2601         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2602         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2603         not REPLACE_PTHREAD_MASK.
2604         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2605         not REPLACE_PTHREAD_MASK.
2606         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2607
2608 2011-07-07  Bruno Haible  <bruno@clisp.org>
2609
2610         pthread_sigmask: Fix return value.
2611         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2612         * lib/pthread_sigmask.c: New file.
2613         * modules/pthread_sigmask (Files): Add it.
2614         (configure.ac): Invoke AC_LIBOBJ.
2615
2616 2011-07-07  Eric Blake  <eblake@redhat.com>
2617
2618         getopt: more portable argv creation
2619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2620         const, use char arrays rather than strings.
2621         Suggested by Paul Eggert.
2622
2623 2011-07-07  Bruno Haible  <bruno@clisp.org>
2624
2625         Tests for module 'sigprocmask'.
2626         * modules/sigprocmask-tests: New file.
2627         * tests/test-sigprocmask.c: New file.
2628
2629 2011-07-07  Bruno Haible  <bruno@clisp.org>
2630
2631         float tests: Tweak.
2632         * tests/test-float.c (main): Tweak skip message.
2633
2634 2011-07-07  Eric Blake  <eblake@redhat.com>
2635
2636         getopt: avoid compiler warning during configure
2637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2638         assigning string literals to non-const pointer.
2639
2640         getopt-gnu: avoid crash in glibc getopt
2641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2642         * tests/test-getopt.h (test_getopt): Enhance test.
2643         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2644         * doc/posix-functions/getopt.texi (getopt): Document it.
2645         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2646         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2647         Likewise.
2648
2649 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2650
2651         getopt: handle W; without long options in getopt [BZ #12922]
2652         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2653         but no long options are defined, just return 'W'.
2654
2655 2011-07-07  Bruno Haible  <bruno@clisp.org>
2656
2657         Avoid literal tabs.
2658         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2659         variable containing a tab instead of a literal tab.
2660         Reported by Jim Meyering.
2661
2662 2011-07-07  Bruno Haible  <bruno@clisp.org>
2663
2664         Comments.
2665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2666
2667 2011-07-06  Bruno Haible  <bruno@clisp.org>
2668
2669         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2670         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2671         <winsock2.h>.
2672         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2673         lib/sys_socket.in.h.
2674         (close, gethostname): Hide declarations from <winsock2.h>.
2675         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2676         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2677         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2678         (select): Don't override if gnulib's <sys/select.h> was already
2679         included.
2680         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2681         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2682         setsockopt, shutdown, select): Tweak indentation.
2683
2684 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2685
2686         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2687         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2688         in an application that does not use the sys_select module.
2689
2690 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2691
2692         poll: do not return 0 on timeout=-1
2693         * lib/poll.c: Loop with yield if no events occured
2694
2695 2011-07-06  Eric Blake  <eblake@redhat.com>
2696
2697         pthread_sigmask: always replace when not using pthread
2698         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2699         replacement when using some threading other than pthread.  Fix
2700         logic bug.
2701
2702 2011-07-06  Bruno Haible  <bruno@clisp.org>
2703
2704         Comments.
2705         * m4/printf.m4: Update comments about mingw.
2706
2707 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2708
2709         sys_select: define sigset_t more portably
2710         * lib/sys_select.in.h: Always include <sys/types.h>, since
2711         we now need sigset_t and mingw defines it there.
2712         Include <signal.h> before split inclusion guard, to avoid
2713         mishaps on Solaris, whose <signal.h> eventually includes us.
2714         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2715         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2716         which come from ...
2717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2718         gl_CHECK_TYPE_SIGSET_T.
2719         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2720         does the real work.
2721         * modules/sys_select (Depends-on): Add 'signal'.
2722
2723         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2724         Suggested by Bruno Haible.
2725
2726         pselect: Use pthread_sigmask, not sigprocmask.
2727         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2728         multithreaded apps better than sigprocmask does.
2729         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2730         sigprocmask directly.
2731
2732 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2733
2734         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2735         Don't #undef,  since we don't need any underlying pselect.
2736         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2737         (Depends-on): Add select.
2738         (Link): Add $(LIBSOCKET).
2739         These changes suggested by Bruno Haible.
2740
2741         pselect: document better
2742         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2743         * doc/posix-functions/pselect.texi (pselect): Document new module.
2744
2745         pthread_sigmask: new module
2746         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2747         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2748         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2749         This is done only as a macro; I don't know how well that'll
2750         work for C++.  Move <sys/types.h> include before the include_next,
2751         to avoid mishap on Solaris.
2752         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2753         * modules/signal (Makefile.am): Substitute the check's results.
2754         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2755
2756         test-pselect: new module
2757         * modules/pselect-tests, tests/test-pselect.c: New files.
2758         * tests/test-select.c, tests/test-sys_select-c++.cc:
2759         If TEST_PSELECT is defined, test pselect instead of testing select.
2760
2761         * tests/test-sys_select.c (sigset_t): Test for it, too.
2762         Suggested by Bruno Haible.
2763
2764 2011-07-05  Eric Blake  <eblake@redhat.com>
2765
2766         snprintf: guarantee %1$d, for libintl
2767         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2768         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2769         * doc/posix-functions/snprintf.texi (snprintf): Update.
2770         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2771         * tests/test-snprintf.c (main): Enhance test.
2772         * tests/test-vsnprintf.c (main): Likewise.
2773
2774 2011-07-05  Jim Meyering  <meyering@redhat.com>
2775
2776         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2777         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2778         per Bruno's request, to accommodate this idiom (no space after "#")
2779         even when the function is inside an #if block:
2780         char *
2781         gets (char *s)
2782         #undef gets
2783         {
2784           ...
2785         }
2786
2787 2011-07-04  Jim Meyering  <meyering@redhat.com>
2788
2789         maint: indent with spaces, not TABs, and add a rule to check this
2790         * tests/test-userspec.c: Indent with spaces, not TABs.
2791         * tests/test-argp.c: Likewise.
2792         * tests/test-c-stack2.sh: Likewise.
2793         * tests/test-parse-duration.sh: Likewise
2794         * m4/strtod.m4: Likewise.
2795         * m4/alloca.m4: Likewise.
2796         * m4/pselect.m4: Likewise.
2797         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2798
2799 2011-07-03  Jim Meyering  <meyering@redhat.com>
2800
2801         maint.mk: correct omissions in prohibit_argmatch_without_use check
2802         This rule would mistakenly report that argmatch.h is included without
2803         use even when both the argmatch and invalid_arg macro were used.
2804         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2805         of argmatch and invalid_arg.
2806
2807 2011-07-03  Bruno Haible  <bruno@clisp.org>
2808
2809         Comments about EINTR.
2810         * lib/safe-read.h: Explain the purpose of this module.
2811         * lib/safe-write.h: Likewise.
2812         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2813         module.
2814         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2815         module.
2816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2817
2818 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2819
2820         xnanosleep: Rewrite to use new dtotimespec module.
2821         It has the conversion code that used to be in xnanosleep.
2822         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2823         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2824         (TIME_T_MAX): Remove.
2825         (xnanosleep): Rewrite in terms of dtotimespec.
2826         * modules/xnanosleep (Depends-on): Add dtotimespec.
2827         Remove intprops, stdbool.
2828
2829         timespec-add, timespec-sub: new modules
2830         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2831         * lib/timespec-add.c, lib/timespec-sub.c:
2832         * modules/timespec-add, modules/timespec-sub: New files.
2833
2834         dtotimespec: new module
2835         * lib/timespec.h (dtotimespec): New decl.
2836         * lib/dtotimespec.c, modules/dtotimespec: New files.
2837
2838         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2839
2840         pselect: new module
2841         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2842         (pselect): New decls.
2843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2844         since the standard pselect decl uses 'restrict'.
2845         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2846         HAVE_PSELECT, REPLACE_PSELECT.
2847         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2848         HAVE_PSELECT, REPLACE_PSELECT.
2849         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2850
2851         sys_select: don't depend on sys_socket
2852         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2854         This fix works on GNU and GNU-like platforms, but has not been tested
2855         on native Windows.
2856         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2858         gl_HEADER_SYS_SOCKET.
2859         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2860         gl_PREREQ_SYS_H_WINSOCK2.
2861
2862 2011-06-29  Eric Blake  <eblake@redhat.com>
2863
2864         pipe2: fix C89 compile problem
2865         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2866         Reported by Bruno Haible.
2867
2868         pipe, pipe2: don't corrupt fd on error
2869         * lib/pipe.c (pipe): Leave fd unchanged on error.
2870         * lib/pipe2.c (pipe2): Likewise.
2871         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2872         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2873
2874 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2875
2876         mmap-anon: do not use regular expressions inadvertently
2877         * m4/mmap-anon.m4: Remove trailing period from strings sought
2878         in the output.
2879
2880 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2881
2882         nanosleep: fix integer overflow problem
2883         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2884         arithmetic wraps around on overflow.
2885
2886         nanosleep: simplify carrying
2887         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2888         first call to the underyling nanosleep, not for the last one.
2889         This doesn't fix any bugs, but it simplifies the computation of
2890         the remaining delay.  Found while auditing integer overflow issues.
2891
2892         dup2: remove test for existence of fcntl
2893         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2894         "#if HAVE_FCNTL", in the configure-time test program.
2895         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2896         and therefore speeds up "configure" a bit.  Found while
2897         adding the dup2 module to Emacs.
2898
2899 2011-06-24  Eric Blake  <eblake@redhat.com>
2900
2901         maint.mk: enhance useless header checks
2902         * top/maint.mk (_sc_header_without_use): Check both include
2903         styles.
2904         (sc_prohibit_assert_without_use)
2905         (sc_prohibit_close_stream_without_use)
2906         (sc_prohibit_getopt_without_use)
2907         (sc_prohibit_quotearg_without_use)
2908         (sc_prohibit_quote_without_use)
2909         (sc_prohibit_long_options_without_use)
2910         (sc_prohibit_inttostr_without_use)
2911         (sc_prohibit_ignore_value_without_use)
2912         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2913         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2914         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2915         (sc_prohibit_hash_pjw_without_use)
2916         (sc_prohibit_safe_read_without_use)
2917         (sc_prohibit_argmatch_without_use)
2918         (sc_prohibit_canonicalize_without_use)
2919         (sc_prohibit_root_dev_ino_without_use)
2920         (sc_prohibit_openat_without_use)
2921         (sc_prohibit_c_ctype_without_use)
2922         (sc_prohibit_signal_without_use)
2923         (sc_prohibit_stdio--_without_use)
2924         (sc_prohibit_stdio-safer_without_use)
2925         (sc_prohibit_strings_without_use)
2926         (sc_prohibit_intprops_without_use)
2927         (sc_prohibit_stddef_without_use)
2928         (sc_prohibit_xfreopen_without_use): Update clients.
2929
2930 2011-06-24  Jim Meyering  <meyering@redhat.com>
2931
2932         syntax-check: keep one maint.mk rule in sync with its header
2933         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2934         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2935         I prefer to avoid temporary files here, so use <(...), but that
2936         is not supported by /bin/sh, so...
2937         (SHELL): Define to /bin/bash.
2938
2939 2011-06-24  Eric Blake  <eblake@redhat.com>
2940
2941         maint.mk: update sc_prohibit_intprops_without_use
2942         * top/maint.mk (_intprops_names): Match recent changes.
2943
2944 2011-06-24  Bruno Haible  <bruno@clisp.org>
2945
2946         strerror-override: No-op tweak.
2947         * lib/strerror-override.h (strerror_override): Reorder conditions,
2948         for consistency with lib/strerror-override.c.
2949
2950 2011-06-23  Eric Blake  <eblake@redhat.com>
2951
2952         maint.mk: test further PATH_MAX issues
2953         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2954         (sc_prohibit_path_max_allocation): ...and also test alloca.
2955         Suggested by Jim Meyering.
2956
2957 2011-06-22  Eric Blake  <eblake@redhat.com>
2958
2959         maint.mk: add syntax-check to avoid char[PATH_MAX]
2960         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2961
2962         stat: be robust to PATH_MAX definition
2963         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2964         * modules/stat (Depends-on): Add verify.
2965
2966         link: work around IRIX bug
2967         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2968         * lib/link.c (rpl_link): Work around it.
2969         * tests/test-link.h (test_link): Enhance test.
2970         * doc/posix-functions/link.texi (link): Document the bug.
2971
2972         getopt: silence clang warning
2973         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2974         dereference.
2975         Reported by Gustavo Martin Domato.
2976
2977 2011-06-22  Jim Meyering  <meyering@redhat.com>
2978
2979         bootstrap: do not insert a blank line into each .gitignore file
2980         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2981
2982 2011-06-21  Eric Blake  <eblake@redhat.com>
2983
2984         perror: test for output mismatch
2985         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2986         perror on IRIX.
2987
2988         strerror_r: fix OpenBSD behavior on out-of-range
2989         * lib/strerror_r.c (strerror_r): Always use maximal string.
2990         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2991
2992         strerror_r: fix OpenBSD behavior on 0
2993         * lib/strerror-override.c (strerror_override): Also override 0
2994         when needed.
2995         * lib/strerror-override.h (strerror_override): Likewise.
2996         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2997         earlier.
2998         * lib/strerror_r.c (strerror_r): Likewise.
2999         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3000         behavior...
3001         (gl_FUNC_STRERROR_0): ...into new macro.
3002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3003         is overridden.
3004         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3005         * modules/strerror-override (Files): Add strerror.m4.
3006         (configure.ac): Also provide override for 0 when needed.
3007         * doc/posix-functions/strerror.texi (strerror): Document this.
3008         * doc/posix-functions/perror.texi (perror): Likewise.
3009
3010         perror: adjust array size
3011         * modules/perror (Depends-on): Add strerror-override.
3012         * lib/perror.c (perror): Use it to avoid magic number.
3013
3014         strerror-override: reduce size
3015         * lib/strerror-override.c (strerror_override): Use fewer lines.
3016
3017 2011-06-20  Bruno Haible  <bruno@clisp.org>
3018
3019         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3020         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3021
3022 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3023
3024         alloca: port to compilers that can optimize like GCC 4.6.0
3025         * lib/alloca.c (find_stack_direction): New signature, taken from
3026         Autoconf git.  This works with GCC 4.6.0.  This code should never
3027         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3028         be used with other compilers that optimize as well as GCC 4.6.0 does.
3029         (alloca): Adjust to new signature.
3030         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3031         New macro, which patches Autoconf in a similar way.
3032
3033         c-stack: stop worrying about stack direction
3034         * lib/c-stack.c (find_stack_direction): Remove.
3035         (segv_handler): Don't worry about stack direction growth, as it's
3036         too much of a pain to configure this correctly, given how compilers
3037         are optimizing-away our stack-growth detection code.  Instead, assume
3038         that any access to just before or just after the stack is OK.
3039         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3040         Don't require AC_FUNC_ALLOCA; no longer needed.
3041
3042 2011-06-20  Eric Blake  <eblake@redhat.com>
3043
3044         test-stat: don't allocate PATH_MAX bytes
3045         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3046         PATH_MAX-sized buffer.
3047         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3048         * modules/stat-tests (Depends-on): Likewise.
3049         * tests/test-fstatat.c (includes): Drop pathmax.h.
3050         * tests/test-stat.c (includes): Likewise.
3051         Reported by Bruno Haible.
3052
3053 2011-06-20  Bruno Haible  <bruno@clisp.org>
3054
3055         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3056         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3057         * lib/float.c: New file.
3058         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3059         REPLACE_FLOAT_LDBL.
3060         * modules/float (Files): Add lib/float.c.
3061         (configure.ac): Invoke AC_LIBOBJ.
3062         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3063
3064 2011-06-20  Bruno Haible  <bruno@clisp.org>
3065
3066         Tests for module 'float'.
3067         * modules/float-tests: New file.
3068         * tests/test-float.c: New file.
3069
3070 2011-06-19  Bruno Haible  <bruno@clisp.org>
3071
3072         isinf: Coding style.
3073         * lib/isinf.c: Use GNU coding style.
3074
3075 2011-06-19  Bruno Haible  <bruno@clisp.org>
3076
3077         linkat test: Avoid test failure on AIX 7.1.
3078         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3079         * tests/test-link.h (test_link): Likewise.
3080
3081 2011-06-19  Bruno Haible  <bruno@clisp.org>
3082
3083         pread test: Avoid test failure on OpenBSD 4.9.
3084         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3085
3086 2011-06-19  Bruno Haible  <bruno@clisp.org>
3087
3088         sprintf-posix: Fix test failure on AIX 7.1.
3089         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3090         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3091         on AIX.
3092         * doc/posix-functions/fprintf.texi: Likewise.
3093         * doc/posix-functions/printf.texi: Likewise.
3094         * doc/posix-functions/snprintf.texi: Likewise.
3095         * doc/posix-functions/sprintf.texi: Likewise.
3096         * doc/posix-functions/vdprintf.texi: Likewise.
3097         * doc/posix-functions/vfprintf.texi: Likewise.
3098         * doc/posix-functions/vprintf.texi: Likewise.
3099         * doc/posix-functions/vsnprintf.texi: Likewise.
3100         * doc/posix-functions/vsprintf.texi: Likewise.
3101
3102 2011-06-19  Bruno Haible  <bruno@clisp.org>
3103
3104         roundl-ieee: Fix test failure on AIX 7.1.
3105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3106         * doc/posix-functions/roundl.texi: Mention problem with negative
3107         arguments.
3108
3109 2011-06-19  Bruno Haible  <bruno@clisp.org>
3110
3111         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3112         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3113         * doc/posix-functions/round.texi: Mention problem with negative
3114         arguments.
3115         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3116
3117 2011-06-19  Bruno Haible  <bruno@clisp.org>
3118
3119         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3121         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3122         * doc/posix-functions/roundf.texi: Mention problem with negative
3123         arguments.
3124         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3125
3126 2011-06-19  Bruno Haible  <bruno@clisp.org>
3127
3128         ceilf-ieee: Work around bug on MacOS X 10.5.
3129         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3130
3131         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3132         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3133         IEEE compliant, avoid compiler optimizations.
3134         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3135         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3136         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3137         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3138         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3139         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3140         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3142         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3144
3145 2011-06-19  Bruno Haible  <bruno@clisp.org>
3146
3147         ceilf-ieee: Work around bug on AIX 7.1.
3148         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3149         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3150
3151 2011-06-19  Bruno Haible  <bruno@clisp.org>
3152
3153         ceil-ieee: Work around bug on AIX 7.1.
3154         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3155         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3156
3157 2011-06-18  Bruno Haible  <bruno@clisp.org>
3158
3159         fsync test: Avoid test failure on MacOS X and AIX.
3160         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3161         EINVAL.
3162
3163 2011-06-18  Bruno Haible  <bruno@clisp.org>
3164
3165         openat, fdopendir tests: Fix link errors.
3166         * modules/openat-tests (Depends-on): Add progname.
3167         * modules/fdopendir-tests (Depends-on): Likewise.
3168         * tests/test-fchownat.c: Include progname.h.
3169         (main): Call set_program_name.
3170         * tests/test-fstatat.c: Include progname.h.
3171         (main): Call set_program_name.
3172         * tests/test-mkdirat.c: Include progname.h.
3173         (main): Call set_program_name.
3174         * tests/test-openat.c: Include progname.h.
3175         (main): Call set_program_name.
3176         * tests/test-unlinkat.c: Include progname.h.
3177         (main): Call set_program_name.
3178         * tests/test-fdopendir.c: Include progname.h.
3179         (main): Call set_program_name.
3180
3181 2011-06-18  Bruno Haible  <bruno@clisp.org>
3182
3183         Doc update.
3184         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3185         HP-UX.
3186         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3187
3188 2011-06-18  Bruno Haible  <bruno@clisp.org>
3189
3190         getcwd tests: Avoid compilation error on HP-UX 11.31.
3191         * modules/getcwd-tests (Depends-on): Add pathmax.
3192         * tests/test-getcwd.c: Include pathmax.h.
3193
3194 2011-06-18  Bruno Haible  <bruno@clisp.org>
3195
3196         isfinite, isinf: Fix link error on AIX 6 and 7.
3197         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3198         needed, also test the macro with a 'float' argument.
3199         * m4/isinf.m4 (gl_ISINF): Likewise.
3200
3201 2011-06-18  Bruno Haible  <bruno@clisp.org>
3202
3203         getloadavg: Don't clobber LIBS. Regression from previous commit.
3204         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3205         AC_CHECK_LIB from here...
3206         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3207         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3208         gl_func_getloadavg_done.
3209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3210
3211 2011-06-18  Bruno Haible  <bruno@clisp.org>
3212
3213         clean-temp: Improve documentation.
3214         * lib/clean-temp.h: Explain better how to use this module.
3215         Reported by John Darrington <john@darrington.wattle.id.au>.
3216
3217 2011-06-17  Bruno Haible  <bruno@clisp.org>
3218
3219         pread, pwrite: Avoid cc warning on AIX.
3220         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3221         (pwrite): Likewise.
3222
3223 2011-06-17  Bruno Haible  <bruno@clisp.org>
3224
3225         spawn-pipe tests: Fix link error.
3226         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3228
3229 2011-06-17  Bruno Haible  <bruno@clisp.org>
3230
3231         Tests: Remove unnecessary dependency.
3232         * modules/canonicalize-tests (Depends-on): Remove progname.
3233         * modules/chown-tests (Depends-on): Likewise.
3234         * modules/dirname-tests (Depends-on): Likewise.
3235         * modules/fdopendir-tests (Depends-on): Likewise.
3236         * modules/fdutimensat-tests (Depends-on): Likewise.
3237         * modules/hash-tests (Depends-on): Likewise.
3238         * modules/lchown-tests (Depends-on): Likewise.
3239         * modules/linkat-tests (Depends-on): Likewise.
3240         * modules/renameat-tests (Depends-on): Likewise.
3241         * modules/spawn-pipe-tests (Depends-on): Likewise.
3242         * modules/utimensat-tests (Depends-on): Likewise.
3243
3244 2011-06-17  Bruno Haible  <bruno@clisp.org>
3245
3246         spawn-pipe tests: Fix link error.
3247         * tests/test-spawn-pipe-child.c: Undefine fflush.
3248
3249 2011-06-17  Bruno Haible  <bruno@clisp.org>
3250
3251         Fix tests link errors.
3252         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3253         * modules/chown-tests (Makefile.am): Don't link test-chown with
3254         LIBINTL.
3255         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3256         LIBINTL.
3257         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3258         LIBINTL.
3259         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3260         LIBINTL.
3261
3262 2011-06-16  Bruno Haible  <bruno@clisp.org>
3263
3264         crypto/gc-sha1: Fix recent regression.
3265         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3266         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3267
3268         crypto/gc-md5: Fix recent regression.
3269         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3270
3271         crypto/gc-md4: Fix recent regression.
3272         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3273         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3274
3275         crypto/gc-arctwo: Fix recent regression.
3276         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3277         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3278
3279         crypto/gc-rijndael: Fix recent regression.
3280         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3281         (configure.ac): Invoke AC_LIBOBJ here.
3282         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3284
3285         crypto/gc-hmac-sha1: Fix recent regression.
3286         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3287         (configure.ac): Invoke AC_LIBOBJ here.
3288         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3290
3291         crypto/gc-hmac-md5: Fix recent regression.
3292         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3293         (configure.ac): Invoke AC_LIBOBJ here.
3294         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3296
3297         crypto/gc-des: Fix recent regression.
3298         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3299         (configure.ac): Invoke AC_LIBOBJ here.
3300         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3302
3303         crypto/gc-arcfour: Fix recent regression.
3304         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3305         (configure.ac): Invoke AC_LIBOBJ here.
3306         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3308
3309 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3310
3311         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3312         After the 2011-05-21 change, this macro requires
3313         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3314         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3315
3316 2011-06-16  Bruno Haible  <bruno@clisp.org>
3317
3318         fprintftime: Move AC_LIBOBJ invocations to module description.
3319         * m4/fprintftime.m4: Remove file.
3320         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3321         (configure.ac): Remove gl_FPRINTFTIME call.
3322         (Makefile.am): Augment lib_SOURCES.
3323         Reported by Jim Meyering.
3324
3325 2011-06-16  Bruno Haible  <bruno@clisp.org>
3326
3327         tmpfile-safer: Finish 2011-05-23 commit.
3328         * m4/stdio-safer.m4: Really remove file.
3329         Reported by Jim Meyering.
3330
3331 2011-06-16  Bruno Haible  <bruno@clisp.org>
3332
3333         syntax-check: Fix typo.
3334         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3335         printf-posix.m4.
3336         Reported by Jim Meyering.
3337
3338 2011-06-13  Jim Meyering  <meyering@redhat.com>
3339
3340         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3341         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3342
3343 2011-05-23  Bruno Haible  <bruno@clisp.org>
3344
3345         yesno: Move AC_LIBOBJ invocations to module description.
3346         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3347         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3348
3349 2011-05-23  Bruno Haible  <bruno@clisp.org>
3350
3351         xstrtol: Move AC_LIBOBJ invocations to module description.
3352         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3353         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3354
3355 2011-05-23  Bruno Haible  <bruno@clisp.org>
3356
3357         xstrtold: Move AC_LIBOBJ invocations to module description.
3358         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3359         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3360
3361 2011-05-23  Bruno Haible  <bruno@clisp.org>
3362
3363         xstrtod: Move AC_LIBOBJ invocations to module description.
3364         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3365         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3366
3367 2011-05-23  Bruno Haible  <bruno@clisp.org>
3368
3369         xnanosleep: Move AC_LIBOBJ invocations to module description.
3370         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3371         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3372
3373 2011-05-23  Bruno Haible  <bruno@clisp.org>
3374
3375         xgetcwd: Move AC_LIBOBJ invocations to module description.
3376         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3377         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3378
3379 2011-05-23  Bruno Haible  <bruno@clisp.org>
3380
3381         xalloc: Move AC_LIBOBJ invocations to module description.
3382         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3383         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3384
3385 2011-05-23  Bruno Haible  <bruno@clisp.org>
3386
3387         write-any-file: Move AC_LIBOBJ invocations to module description.
3388         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3389         invocation.
3390         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3391
3392 2011-05-23  Bruno Haible  <bruno@clisp.org>
3393
3394         utimens: Move AC_LIBOBJ invocations to module description.
3395         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3396         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3397
3398 2011-05-23  Bruno Haible  <bruno@clisp.org>
3399
3400         utimecmp: Move AC_LIBOBJ invocations to module description.
3401         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3402         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3403
3404 2011-05-23  Bruno Haible  <bruno@clisp.org>
3405
3406         userspec: Move AC_LIBOBJ invocations to module description.
3407         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3408         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3409
3410 2011-05-23  Bruno Haible  <bruno@clisp.org>
3411
3412         unlinkdir: Move AC_LIBOBJ invocations to module description.
3413         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3414         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3415
3416 2011-05-23  Bruno Haible  <bruno@clisp.org>
3417
3418         unistd-safer: Move AC_LIBOBJ invocations to module description.
3419         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3420         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3421
3422 2011-05-23  Bruno Haible  <bruno@clisp.org>
3423
3424         tempname: Move AC_LIBOBJ invocations to module description.
3425         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3426         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3427
3428 2011-05-23  Bruno Haible  <bruno@clisp.org>
3429
3430         strftime: Move AC_LIBOBJ invocations to module description.
3431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3432         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3433
3434 2011-05-23  Bruno Haible  <bruno@clisp.org>
3435
3436         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3437         * m4/stdlib-safer.m4: Remove file.
3438         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3439         (configure.ac): Remove gl_STDLIB_SAFER call.
3440         (Makefile.am): Augment lib_SOURCES.
3441
3442 2011-05-23  Bruno Haible  <bruno@clisp.org>
3443
3444         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3445         * m4/stdio-safer.m4: Remove file.
3446         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3447         (configure.ac): Remove gl_TMPFILE_SAFER call.
3448         (Makefile.am): Augment lib_SOURCES.
3449
3450 2011-05-23  Bruno Haible  <bruno@clisp.org>
3451
3452         popen-safer: Move AC_LIBOBJ invocations to module description.
3453         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3454         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3455         (configure.ac): Remove gl_POPEN_SAFER call.
3456         (Makefile.am): Augment lib_SOURCES.
3457
3458 2011-05-23  Bruno Haible  <bruno@clisp.org>
3459
3460         freopen-safer: Move AC_LIBOBJ invocations to module description.
3461         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3462         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3463         (configure.ac): Remove gl_FREOPEN_SAFER call.
3464         (Makefile.am): Augment lib_SOURCES.
3465
3466 2011-05-23  Bruno Haible  <bruno@clisp.org>
3467
3468         fopen-safer: Move AC_LIBOBJ invocations to module description.
3469         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3470         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3471         (configure.ac): Remove gl_FOPEN_SAFER call.
3472         (Makefile.am): Augment lib_SOURCES.
3473
3474 2011-05-23  Bruno Haible  <bruno@clisp.org>
3475
3476         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3477         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3478         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3479
3480 2011-05-23  Bruno Haible  <bruno@clisp.org>
3481
3482         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3483         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3484         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3485
3486 2011-05-23  Bruno Haible  <bruno@clisp.org>
3487
3488         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3489         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3490         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3491
3492 2011-05-23  Bruno Haible  <bruno@clisp.org>
3493
3494         settime: Move AC_LIBOBJ invocations to module description.
3495         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3496         * modules/settime (Makefile.am): Augment lib_SOURCES.
3497
3498 2011-05-23  Bruno Haible  <bruno@clisp.org>
3499
3500         savedir: Move AC_LIBOBJ invocations to module description.
3501         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3502         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3503
3504 2011-05-23  Bruno Haible  <bruno@clisp.org>
3505
3506         save-cwd: Move AC_LIBOBJ invocations to module description.
3507         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3508         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3509
3510 2011-05-23  Bruno Haible  <bruno@clisp.org>
3511
3512         same: Move AC_LIBOBJ invocations to module description.
3513         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3514         * modules/same (Makefile.am): Augment lib_SOURCES.
3515
3516 2011-05-23  Bruno Haible  <bruno@clisp.org>
3517
3518         safe-write: Move AC_LIBOBJ invocations to module description.
3519         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3520         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3521         instead of gl_SAFE_WRITE.
3522         (Makefile.am): Augment lib_SOURCES.
3523
3524 2011-05-23  Bruno Haible  <bruno@clisp.org>
3525
3526         safe-read: Move AC_LIBOBJ invocations to module description.
3527         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3528         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3529         of gl_SAFE_READ.
3530         (Makefile.am): Augment lib_SOURCES.
3531
3532 2011-05-23  Bruno Haible  <bruno@clisp.org>
3533
3534         safe-alloc: Move AC_LIBOBJ invocations to module description.
3535         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3536         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3537
3538 2011-05-23  Bruno Haible  <bruno@clisp.org>
3539
3540         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3541         * m4/rijndael.m4: Remove file.
3542         * modules/crypto/rijndael (Files): Remove it.
3543         (configure.ac): Remove gl_RIJNDAEL call.
3544         (Makefile.am): Augment lib_SOURCES.
3545
3546 2011-05-23  Bruno Haible  <bruno@clisp.org>
3547
3548         readtokens: Move AC_LIBOBJ invocations to module description.
3549         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3550         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3551
3552 2011-05-23  Bruno Haible  <bruno@clisp.org>
3553
3554         read-file: Move AC_LIBOBJ invocations to module description.
3555         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3556         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3557         of gl_FUNC_READ_FILE.
3558         (Makefile.am): Augment lib_SOURCES.
3559
3560 2011-05-23  Bruno Haible  <bruno@clisp.org>
3561
3562         quotearg: Move AC_LIBOBJ invocations to module description.
3563         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3564         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3565
3566 2011-05-23  Bruno Haible  <bruno@clisp.org>
3567
3568         quote: Move AC_LIBOBJ invocations to module description.
3569         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3570         * modules/quote (Makefile.am): Augment lib_SOURCES.
3571
3572 2011-05-23  Bruno Haible  <bruno@clisp.org>
3573
3574         posixver: Move AC_LIBOBJ invocations to module description.
3575         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3576         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3577
3578 2011-05-23  Bruno Haible  <bruno@clisp.org>
3579
3580         posixtm: Move AC_LIBOBJ invocations to module description.
3581         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3582         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3583
3584 2011-05-23  Bruno Haible  <bruno@clisp.org>
3585
3586         physmem: Move AC_LIBOBJ invocations to module description.
3587         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3588         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3589
3590 2011-05-23  Bruno Haible  <bruno@clisp.org>
3591
3592         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3593         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3594         invocation.
3595         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3596
3597 2011-05-23  Bruno Haible  <bruno@clisp.org>
3598
3599         mpsort: Move AC_LIBOBJ invocations to module description.
3600         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3601         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3602
3603 2011-05-23  Bruno Haible  <bruno@clisp.org>
3604
3605         modechange: Move AC_LIBOBJ invocations to module description.
3606         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3607         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3608
3609 2011-05-23  Bruno Haible  <bruno@clisp.org>
3610
3611         mkdir-p: Move AC_LIBOBJ invocations to module description.
3612         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3613         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3614
3615 2011-05-23  Bruno Haible  <bruno@clisp.org>
3616
3617         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3618         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3619         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3620
3621 2011-05-23  Bruno Haible  <bruno@clisp.org>
3622
3623         mgetgroups: Move AC_LIBOBJ invocations to module description.
3624         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3625         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3626
3627 2011-05-23  Bruno Haible  <bruno@clisp.org>
3628
3629         memxor: Move AC_LIBOBJ invocations to module description.
3630         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3631         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3632
3633 2011-05-23  Bruno Haible  <bruno@clisp.org>
3634
3635         memcoll: Move AC_LIBOBJ invocations to module description.
3636         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3637         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3638
3639 2011-05-23  Bruno Haible  <bruno@clisp.org>
3640
3641         memcasecmp: Move AC_LIBOBJ invocations to module description.
3642         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3643         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3644
3645 2011-05-23  Bruno Haible  <bruno@clisp.org>
3646
3647         crypto/md5: Move AC_LIBOBJ invocations to module description.
3648         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3649         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3650
3651 2011-05-23  Bruno Haible  <bruno@clisp.org>
3652
3653         crypto/md4: Move AC_LIBOBJ invocations to module description.
3654         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3655         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3656
3657 2011-05-23  Bruno Haible  <bruno@clisp.org>
3658
3659         crypto/md2: Move AC_LIBOBJ invocations to module description.
3660         * m4/md2.m4: Remove file.
3661         * modules/crypto/md2 (Files): Remove it.
3662         (configure.ac): Remove gl_MD2 call.
3663         (Makefile.am): Augment lib_SOURCES.
3664
3665 2011-05-23  Bruno Haible  <bruno@clisp.org>
3666
3667         long-options: Move AC_LIBOBJ invocations to module description.
3668         * m4/long-options.m4: Remove file.
3669         * modules/long-options (Files): Remove it.
3670         (configure.ac): Remove gl_LONG_OPTIONS call.
3671         (Makefile.am): Augment lib_SOURCES.
3672
3673 2011-05-23  Bruno Haible  <bruno@clisp.org>
3674
3675         i-ring: Move AC_LIBOBJ invocations to module description.
3676         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3677         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3678
3679 2011-05-23  Bruno Haible  <bruno@clisp.org>
3680
3681         idcache: Move AC_LIBOBJ invocations to module description.
3682         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3683         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3684
3685 2011-05-23  Bruno Haible  <bruno@clisp.org>
3686
3687         human: Move AC_LIBOBJ invocations to module description.
3688         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3689         * modules/human (Makefile.am): Augment lib_SOURCES.
3690
3691 2011-05-23  Bruno Haible  <bruno@clisp.org>
3692
3693         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3694         * m4/hmac-sha1.m4: Remove file.
3695         * modules/crypto/hmac-sha1 (Files): Remove it.
3696         (configure.ac): Remove gl_HMAC_SHA1 call.
3697         (Makefile.am): Augment lib_SOURCES.
3698
3699 2011-05-23  Bruno Haible  <bruno@clisp.org>
3700
3701         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3702         * m4/hmac-md5.m4: Remove file.
3703         * modules/crypto/hmac-md5 (Files): Remove it.
3704         (configure.ac): Remove gl_HMAC_MD5 call.
3705         (Makefile.am): Augment lib_SOURCES.
3706
3707 2011-05-23  Bruno Haible  <bruno@clisp.org>
3708
3709         hash: Move AC_LIBOBJ invocations to module description.
3710         * m4/hash.m4: Remove file.
3711         * modules/hash (Files): Remove it.
3712         (configure.ac): Remove gl_HASH call.
3713         (Makefile.am): Augment lib_SOURCES.
3714
3715 2011-05-23  Bruno Haible  <bruno@clisp.org>
3716
3717         hard-locale: Move AC_LIBOBJ invocations to module description.
3718         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3719         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3720
3721 2011-05-23  Bruno Haible  <bruno@clisp.org>
3722
3723         getugroups: Move AC_LIBOBJ invocations to module description.
3724         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3725         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3726
3727 2011-05-23  Bruno Haible  <bruno@clisp.org>
3728
3729         gettime: Move AC_LIBOBJ invocations to module description.
3730         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3731         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3732
3733 2011-05-23  Bruno Haible  <bruno@clisp.org>
3734
3735         getndelim2: Move AC_LIBOBJ invocations to module description.
3736         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3737         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3738
3739 2011-05-23  Bruno Haible  <bruno@clisp.org>
3740
3741         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3742         * m4/gc-pbkdf2-sha1.m4: Remove file.
3743         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3744         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3745         (Makefile.am): Augment lib_SOURCES.
3746
3747 2011-05-23  Bruno Haible  <bruno@clisp.org>
3748
3749         fts: Move AC_LIBOBJ invocations to module description.
3750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3751         * modules/fts (configure.ac): ... to here.
3752
3753 2011-05-23  Bruno Haible  <bruno@clisp.org>
3754
3755         file-type: Move AC_LIBOBJ invocations to module description.
3756         * m4/file-type.m4: Remove file.
3757         * modules/file-type (Files): Remove it.
3758         (configure.ac): Remove gl_FILE_TYPE call.
3759         (Makefile.am): Augment lib_SOURCES.
3760
3761 2011-05-23  Bruno Haible  <bruno@clisp.org>
3762
3763         filenamecat*: Respect rules for use of AC_LIBOBJ.
3764         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3765         Remove AC_LIBOBJ invocation.
3766         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3767         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3768
3769 2011-05-23  Bruno Haible  <bruno@clisp.org>
3770
3771         filemode: Move AC_LIBOBJ invocations to module description.
3772         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3773         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3774
3775 2011-05-23  Bruno Haible  <bruno@clisp.org>
3776
3777         openat-safer: Move AC_LIBOBJ invocations to module description.
3778         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3779         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3780
3781 2011-05-23  Bruno Haible  <bruno@clisp.org>
3782
3783         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3784         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3785         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3786
3787 2011-05-23  Bruno Haible  <bruno@clisp.org>
3788
3789         exclude: Move AC_LIBOBJ invocations to module description.
3790         * m4/exclude.m4: Remove file.
3791         * modules/exclude (Files): Remove it.
3792         (configure.ac): Remove gl_EXCLUDE call.
3793         (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         dirname*: Respect rules for use of AC_LIBOBJ.
3798         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3799         invocations.
3800         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3801         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3802
3803 2011-05-23  Bruno Haible  <bruno@clisp.org>
3804
3805         dirent-safer: Move AC_LIBOBJ invocations to module description.
3806         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3807         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3808
3809 2011-05-23  Bruno Haible  <bruno@clisp.org>
3810
3811         crypto/des: Move AC_LIBOBJ invocations to module description.
3812         * m4/des.m4: Remove file.
3813         * modules/crypto/des (Files): Remove it.
3814         (configure.ac): Remove gl_DES call.
3815         (Makefile.am): Augment lib_SOURCES.
3816
3817 2011-05-23  Bruno Haible  <bruno@clisp.org>
3818
3819         cycle-check: Move AC_LIBOBJ invocations to module description.
3820         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3821         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3822
3823 2011-05-23  Bruno Haible  <bruno@clisp.org>
3824
3825         c-strtold: Move AC_LIBOBJ invocations to module description.
3826         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3827         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3828
3829 2011-05-23  Bruno Haible  <bruno@clisp.org>
3830
3831         c-strtod: Move AC_LIBOBJ invocations to module description.
3832         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3833         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3834
3835 2011-05-23  Bruno Haible  <bruno@clisp.org>
3836
3837         crc: Move AC_LIBOBJ invocations to module description.
3838         * m4/crc.m4: Remove file.
3839         * modules/crc (Files): Remove it.
3840         (configure.ac): Remove gl_CRC call.
3841         (Makefile.am): Augment lib_SOURCES.
3842
3843 2011-05-23  Bruno Haible  <bruno@clisp.org>
3844
3845         close-stream: Move AC_LIBOBJ invocations to module description.
3846         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3847         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3848
3849 2011-05-23  Bruno Haible  <bruno@clisp.org>
3850
3851         closeout: Move AC_LIBOBJ invocations to module description.
3852         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3853         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3854
3855 2011-05-23  Bruno Haible  <bruno@clisp.org>
3856
3857         closein: Move AC_LIBOBJ invocations to module description.
3858         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3859         * modules/closein (Makefile.am): Augment lib_SOURCES.
3860
3861 2011-05-23  Bruno Haible  <bruno@clisp.org>
3862
3863         cloexec: Move AC_LIBOBJ invocations to module description.
3864         * m4/cloexec.m4: Remove file.
3865         * modules/cloexec (Files): Remove it.
3866         (configure.ac): Remove gl_CLOEXEC call.
3867         (Makefile.am): Augment lib_SOURCES.
3868
3869 2011-05-23  Bruno Haible  <bruno@clisp.org>
3870
3871         check-version: Move AC_LIBOBJ invocations to module description.
3872         * m4/check-version.m4: Remove file.
3873         * modules/check-version (Files): Remove it.
3874         (configure.ac): Remove gl_CHECK_VERSION call.
3875         (Makefile.am): Augment lib_SOURCES.
3876
3877 2011-05-23  Bruno Haible  <bruno@clisp.org>
3878
3879         chdir-safer: Move AC_LIBOBJ invocations to module description.
3880         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3881         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3882
3883 2011-05-23  Bruno Haible  <bruno@clisp.org>
3884
3885         canonicalize: Move AC_LIBOBJ invocations to module description.
3886         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3887         AC_LIBOBJ invocation.
3888         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3889
3890 2011-05-23  Bruno Haible  <bruno@clisp.org>
3891
3892         canon-host: Move AC_LIBOBJ invocations to module description.
3893         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3894         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3895         instead of gl_CANON_HOST.
3896         (Makefile.am): Augment lib_SOURCES.
3897
3898 2011-05-23  Bruno Haible  <bruno@clisp.org>
3899
3900         backupfile: Move AC_LIBOBJ invocations to module description.
3901         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3902         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3903
3904 2011-05-23  Bruno Haible  <bruno@clisp.org>
3905
3906         argmatch: Move AC_LIBOBJ invocations to module description.
3907         * m4/argmatch.m4: Remove file.
3908         * modules/argmatch (Files): Remove it.
3909         (configure.ac): Remove gl_ARGMATCH call.
3910         (Makefile.am): Augment lib_SOURCES.
3911
3912 2011-05-23  Bruno Haible  <bruno@clisp.org>
3913
3914         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3915         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3916         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3917
3918 2011-05-23  Bruno Haible  <bruno@clisp.org>
3919
3920         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3921         * m4/arcfour.m4: Remove file.
3922         * modules/crypto/arcfour (Files): Remove it.
3923         (configure.ac): Remove gl_ARCFOUR call.
3924         (Makefile.am): Augment lib_SOURCES.
3925
3926 2011-05-22  Bruno Haible  <bruno@clisp.org>
3927
3928         write: Move AC_LIBOBJ invocations to module description.
3929         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3930         * modules/write (configure.ac): ... to here.
3931
3932 2011-05-22  Bruno Haible  <bruno@clisp.org>
3933
3934         wmemset: Move AC_LIBOBJ invocations to module description.
3935         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3936         here...
3937         * modules/wmemset (configure.ac): ... to here.
3938
3939 2011-05-22  Bruno Haible  <bruno@clisp.org>
3940
3941         wmemmove: Move AC_LIBOBJ invocations to module description.
3942         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3943         here...
3944         * modules/wmemmove (configure.ac): ... to here.
3945
3946 2011-05-22  Bruno Haible  <bruno@clisp.org>
3947
3948         wmemcpy: Move AC_LIBOBJ invocations to module description.
3949         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3950         here...
3951         * modules/wmemcpy (configure.ac): ... to here.
3952
3953 2011-05-22  Bruno Haible  <bruno@clisp.org>
3954
3955         wmemcmp: Move AC_LIBOBJ invocations to module description.
3956         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3957         here...
3958         * modules/wmemcmp (configure.ac): ... to here.
3959
3960 2011-05-22  Bruno Haible  <bruno@clisp.org>
3961
3962         wmemchr: Move AC_LIBOBJ invocations to module description.
3963         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3964         here...
3965         * modules/wmemchr (configure.ac): ... to here.
3966
3967 2011-05-22  Bruno Haible  <bruno@clisp.org>
3968
3969         wcswidth: Move AC_LIBOBJ invocations to module description.
3970         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3971         here...
3972         * modules/wcswidth (configure.ac): ... to here.
3973
3974 2011-05-22  Bruno Haible  <bruno@clisp.org>
3975
3976         wcwidth: Respect rules for use of AC_LIBOBJ.
3977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3978         invocation from here...
3979         * modules/wcwidth (configure.ac): ... to here.
3980         (Depends-on): Update conditions.
3981
3982 2011-05-22  Bruno Haible  <bruno@clisp.org>
3983
3984         wctype: Move AC_LIBOBJ invocations to module description.
3985         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3986         invocation from here...
3987         * modules/wctype (configure.ac): ... to here.
3988         (Depends-on): Update conditions.
3989
3990 2011-05-22  Bruno Haible  <bruno@clisp.org>
3991
3992         wctrans: Move AC_LIBOBJ invocations to module description.
3993         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3994         invocation from here...
3995         * modules/wctrans (configure.ac): ... to here.
3996
3997 2011-05-22  Bruno Haible  <bruno@clisp.org>
3998
3999         wctomb: Move AC_LIBOBJ invocations to module description.
4000         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4001         invocations from here...
4002         * modules/wctomb (configure.ac): ... to here.
4003
4004 2011-05-22  Bruno Haible  <bruno@clisp.org>
4005
4006         wctob: Move AC_LIBOBJ invocations to module description.
4007         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4008         gl_PREREQ_WCTOB invocations from here...
4009         * modules/wctob (configure.ac): ... to here.
4010         (Depends-on): Update conditions.
4011
4012 2011-05-22  Bruno Haible  <bruno@clisp.org>
4013
4014         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4015         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4016         here...
4017         * modules/wcsxfrm (configure.ac): ... to here.
4018
4019 2011-05-22  Bruno Haible  <bruno@clisp.org>
4020
4021         wcstok: Move AC_LIBOBJ invocations to module description.
4022         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4023         * modules/wcstok (configure.ac): ... to here.
4024
4025 2011-05-22  Bruno Haible  <bruno@clisp.org>
4026
4027         wcsstr: Move AC_LIBOBJ invocations to module description.
4028         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4029         * modules/wcsstr (configure.ac): ... to here.
4030
4031 2011-05-22  Bruno Haible  <bruno@clisp.org>
4032
4033         wcsspn: Move AC_LIBOBJ invocations to module description.
4034         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4035         * modules/wcsspn (configure.ac): ... to here.
4036
4037 2011-05-22  Bruno Haible  <bruno@clisp.org>
4038
4039         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4040         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4041         gl_PREREQ_WCSRTOMBS invocations from here...
4042         * modules/wcsrtombs (configure.ac): ... to here.
4043
4044 2011-05-22  Bruno Haible  <bruno@clisp.org>
4045
4046         wcsrchr: Move AC_LIBOBJ invocations to module description.
4047         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4048         here...
4049         * modules/wcsrchr (configure.ac): ... to here.
4050
4051 2011-05-22  Bruno Haible  <bruno@clisp.org>
4052
4053         wcspbrk: Move AC_LIBOBJ invocations to module description.
4054         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4055         here...
4056         * modules/wcspbrk (configure.ac): ... to here.
4057
4058 2011-05-22  Bruno Haible  <bruno@clisp.org>
4059
4060         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4062         gl_PREREQ_WCSNRTOMBS invocations from here...
4063         * modules/wcsnrtombs (configure.ac): ... to here.
4064
4065 2011-05-22  Bruno Haible  <bruno@clisp.org>
4066
4067         wcsnlen: Move AC_LIBOBJ invocations to module description.
4068         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4069         here...
4070         * modules/wcsnlen (configure.ac): ... to here.
4071
4072 2011-05-22  Bruno Haible  <bruno@clisp.org>
4073
4074         wcsncpy: Move AC_LIBOBJ invocations to module description.
4075         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4076         here...
4077         * modules/wcsncpy (configure.ac): ... to here.
4078
4079 2011-05-22  Bruno Haible  <bruno@clisp.org>
4080
4081         wcsncmp: Move AC_LIBOBJ invocations to module description.
4082         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4083         here...
4084         * modules/wcsncmp (configure.ac): ... to here.
4085
4086 2011-05-22  Bruno Haible  <bruno@clisp.org>
4087
4088         wcsncat: Move AC_LIBOBJ invocations to module description.
4089         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4090         here...
4091         * modules/wcsncat (configure.ac): ... to here.
4092
4093 2011-05-22  Bruno Haible  <bruno@clisp.org>
4094
4095         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4096         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4097         from here...
4098         * modules/wcsncasecmp (configure.ac): ... to here.
4099
4100 2011-05-22  Bruno Haible  <bruno@clisp.org>
4101
4102         wcslen: Move AC_LIBOBJ invocations to module description.
4103         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4104         * modules/wcslen (configure.ac): ... to here.
4105
4106 2011-05-22  Bruno Haible  <bruno@clisp.org>
4107
4108         wcsdup: Move AC_LIBOBJ invocations to module description.
4109         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4110         * modules/wcsdup (configure.ac): ... to here.
4111
4112 2011-05-22  Bruno Haible  <bruno@clisp.org>
4113
4114         wcscspn: Move AC_LIBOBJ invocations to module description.
4115         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4116         here...
4117         * modules/wcscspn (configure.ac): ... to here.
4118
4119 2011-05-22  Bruno Haible  <bruno@clisp.org>
4120
4121         wcscpy: Move AC_LIBOBJ invocations to module description.
4122         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4123         * modules/wcscpy (configure.ac): ... to here.
4124
4125 2011-05-22  Bruno Haible  <bruno@clisp.org>
4126
4127         wcscoll: Move AC_LIBOBJ invocations to module description.
4128         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4129         here...
4130         * modules/wcscoll (configure.ac): ... to here.
4131
4132 2011-05-22  Bruno Haible  <bruno@clisp.org>
4133
4134         wcscmp: Move AC_LIBOBJ invocations to module description.
4135         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4136         * modules/wcscmp (configure.ac): ... to here.
4137
4138 2011-05-22  Bruno Haible  <bruno@clisp.org>
4139
4140         wcschr: Move AC_LIBOBJ invocations to module description.
4141         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4142         * modules/wcschr (configure.ac): ... to here.
4143
4144 2011-05-22  Bruno Haible  <bruno@clisp.org>
4145
4146         wcscat: Move AC_LIBOBJ invocations to module description.
4147         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4148         * modules/wcscat (configure.ac): ... to here.
4149
4150 2011-05-22  Bruno Haible  <bruno@clisp.org>
4151
4152         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4153         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4154         here...
4155         * modules/wcscasecmp (configure.ac): ... to here.
4156
4157 2011-05-22  Bruno Haible  <bruno@clisp.org>
4158
4159         wcrtomb: Move AC_LIBOBJ invocations to module description.
4160         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4161         invocations from here...
4162         * modules/wcrtomb (configure.ac): ... to here.
4163
4164 2011-05-22  Bruno Haible  <bruno@clisp.org>
4165
4166         wcpncpy: Move AC_LIBOBJ invocations to module description.
4167         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4168         here...
4169         * modules/wcpncpy (configure.ac): ... to here.
4170
4171 2011-05-22  Bruno Haible  <bruno@clisp.org>
4172
4173         wcpcpy: Move AC_LIBOBJ invocations to module description.
4174         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4175         * modules/wcpcpy (configure.ac): ... to here.
4176
4177 2011-05-22  Bruno Haible  <bruno@clisp.org>
4178
4179         waitpid: Move AC_LIBOBJ invocations to module description.
4180         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4181         invocation from here...
4182         * modules/waitpid (configure.ac): ... to here.
4183
4184 2011-05-22  Bruno Haible  <bruno@clisp.org>
4185
4186         utimensat: Move AC_LIBOBJ invocations to module description.
4187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4188         here...
4189         * modules/utimensat (configure.ac): ... to here.
4190
4191 2011-05-22  Bruno Haible  <bruno@clisp.org>
4192
4193         usleep: Move AC_LIBOBJ invocations to module description.
4194         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4195         here...
4196         * modules/usleep (configure.ac): ... to here.
4197
4198 2011-05-22  Bruno Haible  <bruno@clisp.org>
4199
4200         unlockpt: Move AC_LIBOBJ invocations to module description.
4201         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4202         gl_PREREQ_UNLOCKPT invocations from here...
4203         * modules/unlockpt (configure.ac): ... to here.
4204
4205 2011-05-22  Bruno Haible  <bruno@clisp.org>
4206
4207         unlink: Respect rules for use of AC_LIBOBJ.
4208         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4209         * modules/unlink (configure.ac): ... to here.
4210
4211 2011-05-22  Bruno Haible  <bruno@clisp.org>
4212
4213         uname: Move AC_LIBOBJ invocations to module description.
4214         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4216         here...
4217         * modules/uname (configure.ac): ... to here.
4218
4219 2011-05-22  Bruno Haible  <bruno@clisp.org>
4220
4221         ttyname_r: Move AC_LIBOBJ invocations to module description.
4222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4223         gl_PREREQ_TTYNAME_R invocations from here...
4224         * modules/ttyname_r (configure.ac): ... to here.
4225
4226 2011-05-22  Bruno Haible  <bruno@clisp.org>
4227
4228         tsearch: Move AC_LIBOBJ invocations to module description.
4229         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4230         invocations from here...
4231         * modules/tsearch (configure.ac): ... to here.
4232
4233 2011-05-22  Bruno Haible  <bruno@clisp.org>
4234
4235         towctrans: Move AC_LIBOBJ invocations to module description.
4236         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4237         AC_LIBOBJ invocation from here...
4238         * modules/towctrans (configure.ac): ... to here.
4239
4240 2011-05-22  Bruno Haible  <bruno@clisp.org>
4241
4242         tmpfile: Move AC_LIBOBJ invocations to module description.
4243         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4244         invocations from here...
4245         * modules/tmpfile (configure.ac): ... to here.
4246
4247 2011-05-22  Bruno Haible  <bruno@clisp.org>
4248
4249         times: Move AC_LIBOBJ invocations to module description.
4250         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4251         * modules/times (configure.ac): ... to here.
4252
4253 2011-05-22  Bruno Haible  <bruno@clisp.org>
4254
4255         time_r: Move AC_LIBOBJ invocations to module description.
4256         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4257         invocations from here...
4258         * modules/time_r (configure.ac): ... to here.
4259
4260 2011-05-22  Bruno Haible  <bruno@clisp.org>
4261
4262         timegm: Move AC_LIBOBJ invocations to module description.
4263         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4264         invocations from here...
4265         * modules/timegm (configure.ac): ... to here.
4266
4267 2011-05-22  Bruno Haible  <bruno@clisp.org>
4268
4269         tcgetsid: Move AC_LIBOBJ invocations to module description.
4270         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4271         and gl_PREREQ_TCGETSID invocations from here...
4272         * modules/tcgetsid (configure.ac): ... to here.
4273         (Depends-on): Update conditions.
4274
4275 2011-05-22  Bruno Haible  <bruno@clisp.org>
4276
4277         symlinkat: Move AC_LIBOBJ invocations to module description.
4278         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4279         here...
4280         * modules/symlinkat (configure.ac): ... to here.
4281
4282 2011-05-22  Bruno Haible  <bruno@clisp.org>
4283
4284         symlink: Move AC_LIBOBJ invocations to module description.
4285         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4286         here...
4287         * modules/symlink (configure.ac): ... to here.
4288
4289 2011-05-22  Bruno Haible  <bruno@clisp.org>
4290
4291         strverscmp: Move AC_LIBOBJ invocations to module description.
4292         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4294         from here...
4295         * modules/strverscmp (configure.ac): ... to here.
4296
4297 2011-05-22  Bruno Haible  <bruno@clisp.org>
4298
4299         strtok_r: Move AC_LIBOBJ invocations to module description.
4300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4301         and gl_PREREQ_STRTOK_R invocations from here...
4302         * modules/strtok_r (configure.ac): ... to here.
4303         (Depends-on): Update conditions.
4304
4305 2011-05-22  Bruno Haible  <bruno@clisp.org>
4306
4307         strtoumax: Move AC_LIBOBJ invocations to module description.
4308         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4310         from here...
4311         * modules/strtoumax (configure.ac): ... to here.
4312
4313 2011-05-22  Bruno Haible  <bruno@clisp.org>
4314
4315         strtoimax: Move AC_LIBOBJ invocations to module description.
4316         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4317         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4318         from here...
4319         * modules/strtoimax (configure.ac): ... to here.
4320
4321 2011-05-22  Bruno Haible  <bruno@clisp.org>
4322
4323         strtoull: Move AC_LIBOBJ invocations to module description.
4324         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4326         from here...
4327         * modules/strtoull (configure.ac): ... to here.
4328
4329 2011-05-22  Bruno Haible  <bruno@clisp.org>
4330
4331         strtoll: Move AC_LIBOBJ invocations to module description.
4332         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4334         here...
4335         * modules/strtoll (configure.ac): ... to here.
4336
4337 2011-05-22  Bruno Haible  <bruno@clisp.org>
4338
4339         strtoul: Move AC_LIBOBJ invocations to module description.
4340         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4341         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4342         * modules/strtoul (configure.ac): ... to here.
4343
4344 2011-05-22  Bruno Haible  <bruno@clisp.org>
4345
4346         strtol: Move AC_LIBOBJ invocations to module description.
4347         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4348         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4349         * modules/strtol (configure.ac): ... to here.
4350
4351 2011-05-22  Bruno Haible  <bruno@clisp.org>
4352
4353         strtod: Move AC_LIBOBJ invocations to module description.
4354         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4355         invocations from here...
4356         * modules/strtod (configure.ac): ... to here.
4357
4358 2011-05-22  Bruno Haible  <bruno@clisp.org>
4359
4360         strstr*: Move AC_LIBOBJ invocations to module description.
4361         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4362         invocations from here...
4363         * modules/strstr-simple (configure.ac): ... to here.
4364         * modules/strstr (configure.ac): ... and here.
4365
4366 2011-05-22  Bruno Haible  <bruno@clisp.org>
4367
4368         strsignal: Move AC_LIBOBJ invocations to module description.
4369         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4370         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4371         * modules/strsignal (configure.ac): ... to here.
4372         (Depends-on): Update conditions.
4373
4374 2011-05-22  Bruno Haible  <bruno@clisp.org>
4375
4376         strsep: Move AC_LIBOBJ invocations to module description.
4377         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4379         here...
4380         * modules/strsep (configure.ac): ... to here.
4381
4382 2011-05-22  Bruno Haible  <bruno@clisp.org>
4383
4384         strptime: Move AC_LIBOBJ invocations to module description.
4385         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4386         gl_PREREQ_STRPTIME invocations from here...
4387         * modules/strptime (configure.ac): ... to here.
4388
4389 2011-05-22  Bruno Haible  <bruno@clisp.org>
4390
4391         strpbrk: Move AC_LIBOBJ invocations to module description.
4392         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4394         here...
4395         * modules/strpbrk (configure.ac): ... to here.
4396
4397 2011-05-22  Bruno Haible  <bruno@clisp.org>
4398
4399         strnlen: Move AC_LIBOBJ invocations to module description.
4400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4401         invocations from here...
4402         * modules/strnlen (configure.ac): ... to here.
4403
4404 2011-05-22  Bruno Haible  <bruno@clisp.org>
4405
4406         strndup: Move AC_LIBOBJ invocations to module description.
4407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4408         invocations from here...
4409         * modules/strndup (configure.ac): ... to here.
4410         (Depends-on): Update conditions.
4411
4412 2011-05-22  Bruno Haible  <bruno@clisp.org>
4413
4414         strncat: Move AC_LIBOBJ invocations to module description.
4415         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4416         invocations from here...
4417         * modules/strncat (configure.ac): ... to here.
4418
4419 2011-05-22  Bruno Haible  <bruno@clisp.org>
4420
4421         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4422         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4423         invocations from here...
4424         * modules/strdup (configure.ac): ... to here.
4425         * modules/strdup-posix (configure.ac): ... and here.
4426
4427 2011-05-22  Bruno Haible  <bruno@clisp.org>
4428
4429         strcspn: Move AC_LIBOBJ invocations to module description.
4430         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4432         here...
4433         * modules/strcspn (configure.ac): ... to here.
4434
4435 2011-05-22  Bruno Haible  <bruno@clisp.org>
4436
4437         strchrnul: Move AC_LIBOBJ invocations to module description.
4438         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4439         gl_PREREQ_STRCHRNUL invocations from here...
4440         * modules/strchrnul (configure.ac): ... to here.
4441
4442 2011-05-22  Bruno Haible  <bruno@clisp.org>
4443
4444         strcasestr*: Move AC_LIBOBJ invocations to module description.
4445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4446         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4447         * modules/strcasestr-simple (configure.ac): ... to here.
4448         * modules/strcasestr (configure.ac): ... and here.
4449
4450 2011-05-22  Bruno Haible  <bruno@clisp.org>
4451
4452         strcase: Move AC_LIBOBJ invocations to module description.
4453         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4454         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4455         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4456         gl_PREREQ_STRNCASECMP invocations from here...
4457         * modules/strcase (configure.ac): ... to here.
4458
4459 2011-05-22  Bruno Haible  <bruno@clisp.org>
4460
4461         stpncpy: Move AC_LIBOBJ invocations to module description.
4462         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4463         here...
4464         * modules/stpncpy (configure.ac): ... to here.
4465
4466 2011-05-22  Bruno Haible  <bruno@clisp.org>
4467
4468         stpcpy: Move AC_LIBOBJ invocations to module description.
4469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4471         here...
4472         * modules/stpcpy (configure.ac): ... to here.
4473
4474 2011-05-21  Bruno Haible  <bruno@clisp.org>
4475
4476         stat: Move AC_LIBOBJ invocations to module description.
4477         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4478         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4479         here...
4480         * modules/stat (configure.ac): ... to here.
4481
4482 2011-05-21  Bruno Haible  <bruno@clisp.org>
4483
4484         sleep: Move AC_LIBOBJ invocations to module description.
4485         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4486         * modules/sleep (configure.ac): ... to here.
4487
4488 2011-05-21  Bruno Haible  <bruno@clisp.org>
4489
4490         signbit: Move AC_LIBOBJ invocations to module description.
4491         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4492         * modules/signbit (configure.ac): ... to here.
4493
4494 2011-05-21  Bruno Haible  <bruno@clisp.org>
4495
4496         sigprocmask: Move AC_LIBOBJ invocations to module description.
4497         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4498         gl_PREREQ_SIGPROMASK invocations from here...
4499         * modules/sigprocmask (configure.ac): ... to here.
4500
4501 2011-05-21  Bruno Haible  <bruno@clisp.org>
4502
4503         sigaction: Move AC_LIBOBJ invocations to module description.
4504         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4505         gl_PREREQ_SIGACTION invocations from here...
4506         * modules/sigaction (configure.ac): ... to here.
4507
4508 2011-05-21  Bruno Haible  <bruno@clisp.org>
4509
4510         sig2str: Move AC_LIBOBJ invocations to module description.
4511         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4513         here...
4514         * modules/sig2str (configure.ac): ... to here.
4515
4516 2011-05-21  Bruno Haible  <bruno@clisp.org>
4517
4518         setlocale: Move AC_LIBOBJ invocations to module description.
4519         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4520         gl_PREREQ_SETLOCALE invocations from here...
4521         * modules/setlocale (configure.ac): ... to here.
4522
4523 2011-05-21  Bruno Haible  <bruno@clisp.org>
4524
4525         unsetenv: Move AC_LIBOBJ invocations to module description.
4526         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4527         and gl_PREREQ_UNSETENV invocations from here...
4528         * modules/unsetenv (configure.ac): ... to here.
4529         (Depends-on): Update.
4530
4531 2011-05-21  Bruno Haible  <bruno@clisp.org>
4532
4533         setenv: Move AC_LIBOBJ invocations to module description.
4534         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4535         here...
4536         * modules/setenv (configure.ac): ... to here.
4537
4538 2011-05-21  Bruno Haible  <bruno@clisp.org>
4539
4540         selinux-h: Move AC_LIBOBJ invocations to module description.
4541         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4542         AC_LIBOBJ invocation from here...
4543         * modules/selinux-h (configure.ac): ... to here.
4544
4545 2011-05-21  Bruno Haible  <bruno@clisp.org>
4546
4547         select: Respect rules for use of AC_LIBOBJ.
4548         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4549         here...
4550         * modules/select (configure.ac): ... to here.
4551
4552 2011-05-21  Bruno Haible  <bruno@clisp.org>
4553
4554         scandir: Move AC_LIBOBJ invocations to module description.
4555         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4556         invocations from here...
4557         * modules/scandir (configure.ac): ... to here.
4558
4559 2011-05-21  Bruno Haible  <bruno@clisp.org>
4560
4561         rpmatch: Move AC_LIBOBJ invocations to module description.
4562         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4563         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4564         here...
4565         * modules/rpmatch (configure.ac): ... to here.
4566
4567 2011-05-21  Bruno Haible  <bruno@clisp.org>
4568
4569         rmdir: Respect rules for use of AC_LIBOBJ.
4570         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4571         * modules/rmdir (configure.ac): ... to here.
4572
4573 2011-05-21  Bruno Haible  <bruno@clisp.org>
4574
4575         renameat: Move AC_LIBOBJ invocations to module description.
4576         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4577         here...
4578         * modules/renameat (configure.ac): ... to here.
4579
4580 2011-05-21  Bruno Haible  <bruno@clisp.org>
4581
4582         rename: Respect rules for use of AC_LIBOBJ.
4583         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4584         here...
4585         * modules/rename (configure.ac): ... to here.
4586
4587 2011-05-21  Bruno Haible  <bruno@clisp.org>
4588
4589         remove: Move AC_LIBOBJ invocations to module description.
4590         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4591         here...
4592         * modules/remove (configure.ac): ... to here.
4593
4594 2011-05-21  Bruno Haible  <bruno@clisp.org>
4595
4596         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4597         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4598         macro.
4599         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4600         * modules/relocatable-lib (configure.ac): ... to here.
4601         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4602         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4603
4604 2011-05-21  Bruno Haible  <bruno@clisp.org>
4605
4606         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4607         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4608         here...
4609         * modules/relocatable-prog (configure.ac): ... to here.
4610
4611 2011-05-21  Bruno Haible  <bruno@clisp.org>
4612
4613         regex: Move AC_LIBOBJ invocations to module description.
4614         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4615         invocations from here...
4616         * modules/regex (configure.ac): ... to here.
4617
4618 2011-05-21  Bruno Haible  <bruno@clisp.org>
4619
4620         realloc-*: Move AC_LIBOBJ invocations to module description.
4621         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4622         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4623         AC_LIBOBJ invocations from here...
4624         * modules/realloc-gnu (configure.ac): ... to here.
4625         * modules/realloc-posix (configure.ac): ... and here.
4626
4627 2011-05-21  Bruno Haible  <bruno@clisp.org>
4628
4629         readutmp: Move AC_LIBOBJ invocations to module description.
4630         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4631         * modules/readutmp (configure.ac): ... to here.
4632
4633 2011-05-21  Bruno Haible  <bruno@clisp.org>
4634
4635         readlinkat: Move AC_LIBOBJ invocations to module description.
4636         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4637         here...
4638         * modules/readlinkat (configure.ac): ... to here.
4639
4640 2011-05-21  Bruno Haible  <bruno@clisp.org>
4641
4642         readlink: Move AC_LIBOBJ invocations to module description.
4643         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4644         gl_PREREQ_READLINK invocations from here...
4645         * modules/readlink (configure.ac): ... to here.
4646
4647 2011-05-21  Bruno Haible  <bruno@clisp.org>
4648
4649         readline: Move AC_LIBOBJ invocations to module description.
4650         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4651         gl_PREREQ_READLINE invocations from here...
4652         * modules/readline (configure.ac): ... to here.
4653
4654 2011-05-21  Bruno Haible  <bruno@clisp.org>
4655
4656         read: Move AC_LIBOBJ invocations to module description.
4657         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4658         * modules/read (configure.ac): ... to here.
4659
4660 2011-05-21  Bruno Haible  <bruno@clisp.org>
4661
4662         rawmemchr: Move AC_LIBOBJ invocations to module description.
4663         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4665         from here...
4666         * modules/rawmemchr (configure.ac): ... to here.
4667
4668 2011-05-21  Bruno Haible  <bruno@clisp.org>
4669
4670         random_r: Move AC_LIBOBJ invocations to module description.
4671         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4672         gl_PREREQ_RANDOM_R invocations from here...
4673         * modules/random_r (configure.ac): ... to here.
4674
4675 2011-05-21  Bruno Haible  <bruno@clisp.org>
4676
4677         pwrite: Move AC_LIBOBJ invocations to module description.
4678         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4679         * modules/pwrite (configure.ac): ... to here.
4680
4681 2011-05-21  Bruno Haible  <bruno@clisp.org>
4682
4683         putenv: Move AC_LIBOBJ invocations to module description.
4684         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4685         * modules/putenv (configure.ac): ... to here.
4686
4687 2011-05-21  Bruno Haible  <bruno@clisp.org>
4688
4689         login_tty: Move AC_LIBOBJ invocations to module description.
4690         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4691         * modules/login_tty (configure.ac): ... to here.
4692
4693 2011-05-21  Bruno Haible  <bruno@clisp.org>
4694
4695         openpty: Move AC_LIBOBJ invocations to module description.
4696         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4697         * modules/openpty (configure.ac): ... to here.
4698
4699 2011-05-21  Bruno Haible  <bruno@clisp.org>
4700
4701         forkpty: Move AC_LIBOBJ invocations to module description.
4702         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4703         * modules/forkpty (configure.ac): ... to here.
4704
4705 2011-05-21  Bruno Haible  <bruno@clisp.org>
4706
4707         ptsname: Move AC_LIBOBJ invocations to module description.
4708         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4709         invocations from here...
4710         * modules/ptsname (configure.ac): ... to here.
4711
4712 2011-05-21  Bruno Haible  <bruno@clisp.org>
4713
4714         pread: Move AC_LIBOBJ invocations to module description.
4715         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4716         * modules/pread (configure.ac): ... to here.
4717
4718 2011-05-21  Bruno Haible  <bruno@clisp.org>
4719
4720         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4721         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4722         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4723         * modules/posix_spawn (configure.ac): ... to here.
4724         * modules/posix_spawnp (configure.ac): ... and here.
4725
4726 2011-05-21  Bruno Haible  <bruno@clisp.org>
4727
4728         popen: Move AC_LIBOBJ invocations to module description.
4729         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4730         invocations from here...
4731         * modules/popen (configure.ac): ... to here.
4732
4733 2011-05-21  Bruno Haible  <bruno@clisp.org>
4734
4735         poll: Move AC_LIBOBJ invocations to module description.
4736         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4737         invocations from here...
4738         * modules/poll (configure.ac): ... to here.
4739
4740 2011-05-21  Bruno Haible  <bruno@clisp.org>
4741
4742         pipe-posix: Move AC_LIBOBJ invocations to module description.
4743         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4744         * modules/pipe-posix (configure.ac): ... to here.
4745
4746 2011-05-21  Bruno Haible  <bruno@clisp.org>
4747
4748         openat: Respect rules for use of AC_LIBOBJ.
4749         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4750         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4751         * modules/openat (configure.ac): ... to here.
4752
4753 2011-05-21  Bruno Haible  <bruno@clisp.org>
4754
4755         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4756         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4757         invocation from here...
4758         * modules/obstack-printf (configure.ac): ... to here.
4759         * modules/obstack-printf-posix (configure.ac): ... and here.
4760
4761 2011-05-21  Bruno Haible  <bruno@clisp.org>
4762
4763         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4764         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4765         from here...
4766         * modules/nl_langinfo (configure.ac): ... to here.
4767
4768 2011-05-21  Bruno Haible  <bruno@clisp.org>
4769
4770         nanosleep: Move AC_LIBOBJ invocations to module description.
4771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4772         gl_PREREQ_NANOSLEEP invocations from here...
4773         * modules/nanosleep (configure.ac): ... to here.
4774
4775 2011-05-21  Bruno Haible  <bruno@clisp.org>
4776
4777         mountlist: Move AC_LIBOBJ invocations to module description.
4778         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4779         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4780         * modules/mountlist (configure.ac): ... to here.
4781
4782 2011-05-21  Bruno Haible  <bruno@clisp.org>
4783
4784         mktime: Respect rules for use of AC_LIBOBJ.
4785         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4786         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4787         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4788         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4789         * modules/mktime (configure.ac): ... to here.
4790         * modules/mktime-internal (configure.ac): ... and here.
4791         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4792
4793 2011-05-21  Bruno Haible  <bruno@clisp.org>
4794
4795         mkstemps: Move AC_LIBOBJ invocations to module description.
4796         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4797         here...
4798         * modules/mkstemps (configure.ac): ... to here.
4799
4800 2011-05-21  Bruno Haible  <bruno@clisp.org>
4801
4802         mkstemp: Move AC_LIBOBJ invocations to module description.
4803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4804         gl_PREREQ_MKSTEMP invocations from here...
4805         * modules/mkstemp (configure.ac): ... to here.
4806
4807 2011-05-21  Bruno Haible  <bruno@clisp.org>
4808
4809         mkostemps: Move AC_LIBOBJ invocations to module description.
4810         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4811         here...
4812         * modules/mkostemps (configure.ac): ... to here.
4813
4814 2011-05-21  Bruno Haible  <bruno@clisp.org>
4815
4816         mkostemp: Move AC_LIBOBJ invocations to module description.
4817         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4818         gl_PREREQ_MKOSTEMP invocations from here...
4819         * modules/mkostemp (configure.ac): ... to here.
4820
4821 2011-05-21  Bruno Haible  <bruno@clisp.org>
4822
4823         mknod: Move AC_LIBOBJ invocations to module description.
4824         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4825         * modules/mknod (configure.ac): ... to here.
4826
4827 2011-05-21  Bruno Haible  <bruno@clisp.org>
4828
4829         mkfifoat: Move AC_LIBOBJ invocations to module description.
4830         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4831         here...
4832         * modules/mkfifoat (configure.ac): ... to here.
4833
4834 2011-05-21  Bruno Haible  <bruno@clisp.org>
4835
4836         mkfifo: Respect rules for use of AC_LIBOBJ.
4837         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4838         here...
4839         * modules/mkfifo (configure.ac): ... to here.
4840
4841 2011-05-21  Bruno Haible  <bruno@clisp.org>
4842
4843         mkdtemp: Move AC_LIBOBJ invocations to module description.
4844         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4845         invocations from here...
4846         * modules/mkdtemp (configure.ac): ... to here.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         mkdir: Move AC_LIBOBJ invocations to module description.
4851         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4852         * modules/mkdir (configure.ac): ... to here.
4853
4854 2011-05-21  Bruno Haible  <bruno@clisp.org>
4855
4856         memset: Move AC_LIBOBJ invocations to module description.
4857         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4859         here...
4860         * modules/memset (configure.ac): ... to here.
4861
4862 2011-05-21  Bruno Haible  <bruno@clisp.org>
4863
4864         memrchr: Move AC_LIBOBJ invocations to module description.
4865         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4866         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4867         here...
4868         * modules/memrchr (configure.ac): ... to here.
4869
4870 2011-05-21  Bruno Haible  <bruno@clisp.org>
4871
4872         mempcpy: Move AC_LIBOBJ invocations to module description.
4873         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4875         here...
4876         * modules/mempcpy (configure.ac): ... to here.
4877
4878 2011-05-21  Bruno Haible  <bruno@clisp.org>
4879
4880         memmove: Move AC_LIBOBJ invocations to module description.
4881         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4883         here...
4884         * modules/memmove (configure.ac): ... to here.
4885
4886 2011-05-21  Bruno Haible  <bruno@clisp.org>
4887
4888         memmem*: Move AC_LIBOBJ invocations to module description.
4889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4890         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4891         here...
4892         (gl_FUNC_MEMMEM): ... and here...
4893         * modules/memmem-simple (configure.ac): ... to here.
4894         * modules/memmem (configure.ac): ... and here.
4895
4896 2011-05-21  Bruno Haible  <bruno@clisp.org>
4897
4898         memcpy: Move AC_LIBOBJ invocations to module description.
4899         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4901         here...
4902         * modules/memcpy (configure.ac): ... to here.
4903
4904 2011-05-21  Bruno Haible  <bruno@clisp.org>
4905
4906         memcmp: Simplify autoconf macro.
4907         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4908         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4909         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4910
4911 2011-05-21  Bruno Haible  <bruno@clisp.org>
4912
4913         memcmp: Move AC_LIBOBJ invocations to module description.
4914         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4915         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4916         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4917         * modules/memcmp (configure.ac): ... to here.
4918         (Depends-on): Update conditions.
4919
4920 2011-05-21  Bruno Haible  <bruno@clisp.org>
4921
4922         memchr: Respect rules for use of AC_LIBOBJ.
4923         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4924         invocations from here...
4925         * modules/memchr (configure.ac): ... to here.
4926
4927 2011-05-21  Bruno Haible  <bruno@clisp.org>
4928
4929         mbtowc: Move AC_LIBOBJ invocations to module description.
4930         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4931         invocations from here...
4932         * modules/mbtowc (configure.ac): ... to here.
4933
4934 2011-05-21  Bruno Haible  <bruno@clisp.org>
4935
4936         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4937         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4938         gl_PREREQ_MBSRTOWCS invocations from here...
4939         * modules/mbsrtowcs (configure.ac): ... to here.
4940
4941 2011-05-21  Bruno Haible  <bruno@clisp.org>
4942
4943         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4944         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4945         gl_PREREQ_MBSNRTOWCS invocations from here...
4946         * modules/mbsnrtowcs (configure.ac): ... to here.
4947
4948 2011-05-21  Bruno Haible  <bruno@clisp.org>
4949
4950         mbsinit: Move AC_LIBOBJ invocations to module description.
4951         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4952         invocations from here...
4953         * modules/mbsinit (configure.ac): ... to here.
4954
4955 2011-05-21  Bruno Haible  <bruno@clisp.org>
4956
4957         mbrlen: Move AC_LIBOBJ invocations to module description.
4958         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4959         invocations from here...
4960         * modules/mbrlen (configure.ac): ... to here.
4961
4962 2011-05-21  Bruno Haible  <bruno@clisp.org>
4963
4964         mbrtowc: Respect rules for use of AC_LIBOBJ.
4965         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4966         invocations from here...
4967         * modules/mbrtowc (configure.ac): ... to here.
4968
4969 2011-05-21  Bruno Haible  <bruno@clisp.org>
4970
4971         malloc-*: Move AC_LIBOBJ invocations to module description.
4972         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4973         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4974         AC_LIBOBJ invocations from here...
4975         * modules/malloc-gnu (configure.ac): ... to here.
4976         * modules/malloc-posix (configure.ac): ... and here.
4977
4978 2011-05-21  Bruno Haible  <bruno@clisp.org>
4979
4980         lstat, openat: Respect rules for use of AC_LIBOBJ.
4981         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4982         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4983         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4984         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4985         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4986         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4987         here.
4988         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4989
4990 2011-05-21  Bruno Haible  <bruno@clisp.org>
4991
4992         lseek: Move AC_LIBOBJ invocations to module description.
4993         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4994         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4995         * modules/lseek (configure.ac): ... to here.
4996
4997 2011-05-21  Bruno Haible  <bruno@clisp.org>
4998
4999         linkat: Move AC_LIBOBJ invocations to module description.
5000         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5001         here...
5002         * modules/linkat (configure.ac): ... to here.
5003
5004 2011-05-21  Bruno Haible  <bruno@clisp.org>
5005
5006         link: Respect rules for use of AC_LIBOBJ.
5007         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5008         * modules/link (configure.ac): ... to here.
5009
5010 2011-05-21  Bruno Haible  <bruno@clisp.org>
5011
5012         lchown: Move AC_LIBOBJ invocations to module description.
5013         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5014         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5015         * modules/lchown (configure.ac): ... to here.
5016
5017 2011-05-21  Bruno Haible  <bruno@clisp.org>
5018
5019         iswctype: Move AC_LIBOBJ invocations to module description.
5020         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5021         here...
5022         * modules/iswctype (configure.ac): ... to here.
5023
5024 2011-05-21  Bruno Haible  <bruno@clisp.org>
5025
5026         iswblank: Move AC_LIBOBJ invocations to module description.
5027         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5028         here...
5029         * modules/iswblank (configure.ac): ... to here.
5030
5031 2011-05-21  Bruno Haible  <bruno@clisp.org>
5032
5033         atanl: Move AC_LIBOBJ invocations to module description.
5034         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5035         * modules/atanl (configure.ac): ... to here.
5036
5037 2011-05-21  Bruno Haible  <bruno@clisp.org>
5038
5039         acosl: Move AC_LIBOBJ invocations to module description.
5040         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5041         * modules/acosl (configure.ac): ... to here.
5042
5043 2011-05-21  Bruno Haible  <bruno@clisp.org>
5044
5045         asinl: Respect rules for use of AC_LIBOBJ.
5046         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5047         * modules/asinl (configure.ac): ... to here.
5048
5049 2011-05-21  Bruno Haible  <bruno@clisp.org>
5050
5051         tanl: Move AC_LIBOBJ invocations to module description.
5052         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5053         * modules/tanl (configure.ac): ... to here.
5054
5055 2011-05-21  Bruno Haible  <bruno@clisp.org>
5056
5057         cosl: Move AC_LIBOBJ invocations to module description.
5058         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5059         * modules/cosl (configure.ac): ... to here.
5060
5061 2011-05-21  Bruno Haible  <bruno@clisp.org>
5062
5063         sinl: Move AC_LIBOBJ invocations to module description.
5064         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5065         * modules/sinl (configure.ac): ... to here.
5066
5067 2011-05-21  Bruno Haible  <bruno@clisp.org>
5068
5069         logl: Move AC_LIBOBJ invocations to module description.
5070         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5071         * modules/logl (configure.ac): ... to here.
5072
5073 2011-05-21  Bruno Haible  <bruno@clisp.org>
5074
5075         expl: Move AC_LIBOBJ invocations to module description.
5076         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5077         * modules/expl (configure.ac): ... to here.
5078
5079 2011-05-21  Bruno Haible  <bruno@clisp.org>
5080
5081         roundl: Move AC_LIBOBJ invocations to module description.
5082         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5083         * modules/roundl (configure.ac): ... to here.
5084
5085 2011-05-21  Bruno Haible  <bruno@clisp.org>
5086
5087         round: Move AC_LIBOBJ invocations to module description.
5088         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5089         * modules/round (configure.ac): ... to here.
5090
5091 2011-05-21  Bruno Haible  <bruno@clisp.org>
5092
5093         roundf: Move AC_LIBOBJ invocations to module description.
5094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5095         * modules/roundf (configure.ac): ... to here.
5096
5097 2011-05-21  Bruno Haible  <bruno@clisp.org>
5098
5099         truncl: Move AC_LIBOBJ invocations to module description.
5100         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5101         * modules/truncl (configure.ac): ... to here.
5102
5103 2011-05-21  Bruno Haible  <bruno@clisp.org>
5104
5105         trunc: Move AC_LIBOBJ invocations to module description.
5106         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5107         * modules/trunc (configure.ac): ... to here.
5108
5109 2011-05-21  Bruno Haible  <bruno@clisp.org>
5110
5111         truncf: Move AC_LIBOBJ invocations to module description.
5112         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5113         * modules/truncf (configure.ac): ... to here.
5114
5115 2011-05-21  Bruno Haible  <bruno@clisp.org>
5116
5117         ceill: Move AC_LIBOBJ invocations to module description.
5118         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5119         * modules/ceill (configure.ac): ... to here.
5120
5121 2011-05-21  Bruno Haible  <bruno@clisp.org>
5122
5123         ceil: Move AC_LIBOBJ invocations to module description.
5124         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5125         * modules/ceil (configure.ac): ... to here.
5126
5127 2011-05-21  Bruno Haible  <bruno@clisp.org>
5128
5129         ceilf: Move AC_LIBOBJ invocations to module description.
5130         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5131         * modules/ceilf (configure.ac): ... to here.
5132
5133 2011-05-21  Bruno Haible  <bruno@clisp.org>
5134
5135         floorl: Respect rules for use of AC_LIBOBJ.
5136         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5137         * modules/floorl (configure.ac): ... to here.
5138
5139 2011-05-21  Bruno Haible  <bruno@clisp.org>
5140
5141         floor: Respect rules for use of AC_LIBOBJ.
5142         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5143         * modules/floor (configure.ac): ... to here.
5144
5145 2011-05-21  Bruno Haible  <bruno@clisp.org>
5146
5147         floorf: Move AC_LIBOBJ invocations to module description.
5148         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5149         * modules/floorf (configure.ac): ... to here.
5150
5151 2011-05-20  Bruno Haible  <bruno@clisp.org>
5152
5153         sqrtl: Respect rules for use of AC_LIBOBJ.
5154         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5155         * modules/sqrtl (configure.ac): ... to here.
5156
5157 2011-05-20  Bruno Haible  <bruno@clisp.org>
5158
5159         ldexpl: Respect rules for use of AC_LIBOBJ.
5160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5161         * modules/ldexpl (configure.ac): ... to here.
5162
5163 2011-05-20  Bruno Haible  <bruno@clisp.org>
5164
5165         frexpl*: Respect rules for use of AC_LIBOBJ.
5166         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5167         invocation from here...
5168         * modules/frexpl (configure.ac): ... to here.
5169         * modules/frexpl-nolibm (configure.ac): ... and here.
5170
5171 2011-05-20  Bruno Haible  <bruno@clisp.org>
5172
5173         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5174         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5175         invocation from here...
5176         * modules/frexp (configure.ac): ... to here.
5177         * modules/frexp-nolibm (configure.ac): ... and here.
5178
5179 2011-05-20  Bruno Haible  <bruno@clisp.org>
5180
5181         isnan: Respect rules for use of AC_LIBOBJ.
5182         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5183         invocations here.
5184         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5185         REPLACE_ISNAN.
5186         * modules/isnand (configure.ac): Likewise.
5187         * modules/isnanl (configure.ac): Likewise.
5188
5189 2011-05-20  Bruno Haible  <bruno@clisp.org>
5190
5191         isnanl*: Respect rules for use of AC_LIBOBJ.
5192         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5193         invocation from here...
5194         * modules/isnanl (configure.ac): ... to here.
5195         * modules/isnanl-nolibm (configure.ac): ... and here.
5196
5197 2011-05-20  Bruno Haible  <bruno@clisp.org>
5198
5199         isnand*: Move AC_LIBOBJ invocations to module description.
5200         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5201         invocation from here...
5202         * modules/isnand (configure.ac): ... to here.
5203         * modules/isnand-nolibm (configure.ac): ... and here.
5204
5205 2011-05-20  Bruno Haible  <bruno@clisp.org>
5206
5207         isnanf*: Move AC_LIBOBJ invocations to module description.
5208         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5209         invocation from here...
5210         * modules/isnanf (configure.ac): ... to here.
5211         * modules/isnanf-nolibm (configure.ac): ... and here.
5212
5213 2011-05-20  Bruno Haible  <bruno@clisp.org>
5214
5215         isnan*: Separate the AC_LIBOBJ invocations.
5216         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5217         AC_LIBOBJ invocation.
5218         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5219         here.
5220         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5221         AC_LIBOBJ invocation.
5222         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5223         here.
5224         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5225         AC_LIBOBJ invocation.
5226         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5227         here.
5228         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5229
5230 2011-05-08  Bruno Haible  <bruno@clisp.org>
5231
5232         isinf: Move AC_LIBOBJ invocations to module description.
5233         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5234         * modules/isinf (configure.ac): ... to here.
5235
5236 2011-05-08  Bruno Haible  <bruno@clisp.org>
5237
5238         isfinite: Move AC_LIBOBJ invocations to module description.
5239         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5240         * modules/isfinite (configure.ac): ... to here.
5241
5242 2011-05-08  Bruno Haible  <bruno@clisp.org>
5243
5244         isblank: Move AC_LIBOBJ invocations to module description.
5245         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5246         here...
5247         * modules/isblank (configure.ac): ... to here.
5248
5249 2011-05-08  Bruno Haible  <bruno@clisp.org>
5250
5251         isapipe: Move AC_LIBOBJ invocations to module description.
5252         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5253         gl_PREREQ_ISAPIPE invocations from here...
5254         * modules/isapipe (configure.ac): ... to here.
5255         (Depends-on): Update condition.
5256
5257 2011-05-08  Bruno Haible  <bruno@clisp.org>
5258
5259         ioctl: Move AC_LIBOBJ invocations to module description.
5260         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5261         invocations from here...
5262         * modules/ioctl (configure.ac): ... to here.
5263         (Depends-on): Update condition.
5264
5265 2011-05-08  Bruno Haible  <bruno@clisp.org>
5266
5267         imaxdiv: Move AC_LIBOBJ invocations to module description.
5268         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5269         invocations from here...
5270         * modules/imaxdiv (configure.ac): ... to here.
5271
5272 2011-05-08  Bruno Haible  <bruno@clisp.org>
5273
5274         imaxabs: Move AC_LIBOBJ invocations to module description.
5275         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5276         invocations from here...
5277         * modules/imaxabs (configure.ac): ... to here.
5278
5279 2011-05-08  Bruno Haible  <bruno@clisp.org>
5280
5281         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5282         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5283         AC_LIBOBJ invocations from here...
5284         * modules/getaddrinfo (configure.ac): ... to here.
5285         (Depends-on): Add conditions.
5286
5287 2011-05-08  Bruno Haible  <bruno@clisp.org>
5288
5289         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5290         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5291         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5292         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5293         (gl_PREREQ_INET_PTON): ... from here.
5294         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5295         gl_PREREQ_INET_PTON here.
5296         (Depends-on): Update condition.
5297
5298 2011-05-08  Bruno Haible  <bruno@clisp.org>
5299
5300         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5301         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5302         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5303         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5304         (gl_PREREQ_INET_NTOP): ... from here.
5305         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5306         gl_PREREQ_INET_NTOP here.
5307         (Depends-on): Update condition.
5308
5309 2011-05-08  Bruno Haible  <bruno@clisp.org>
5310
5311         iconv_open: Move AC_LIBOBJ invocations to module description.
5312         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5313         AC_LIBOBJ invocations from here...
5314         * modules/iconv_open (configure.ac): ... to here.
5315
5316 2011-05-08  Bruno Haible  <bruno@clisp.org>
5317
5318         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5319         If module 'iconv_open' is among the main modules and module
5320         'iconv_open-utf' is among the tests dependencies, then
5321         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5322         return the special iconv_t values. Therefore iconv() and iconv_close()
5323         must support these special iconv_t values, already in lib, not only in
5324         tests.
5325         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5327         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5328         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5329         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5330         (Depends-on): Add the dependencies of iconv_open-utf.
5331         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5332         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5333         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5334
5335 2011-05-08  Bruno Haible  <bruno@clisp.org>
5336
5337         group-member: Move AC_LIBOBJ invocations to module description.
5338         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5339         gl_PREREQ_GROUP_MEMBER invocations from here...
5340         * modules/group-member (configure.ac): ... to here.
5341
5342 2011-05-08  Bruno Haible  <bruno@clisp.org>
5343
5344         grantpt: Move AC_LIBOBJ invocations to module description.
5345         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5346         invocations from here...
5347         * modules/grantpt (configure.ac): ... to here.
5348
5349 2011-05-08  Bruno Haible  <bruno@clisp.org>
5350
5351         glob: Move AC_LIBOBJ invocations to module description.
5352         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5353         from here...
5354         * modules/glob (configure.ac): ... to here.
5355
5356 2011-05-08  Bruno Haible  <bruno@clisp.org>
5357
5358         getusershell: Move AC_LIBOBJ invocations to module description.
5359         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5360         Move AC_LIBOBJ invocation from here...
5361         * modules/getusershell (configure.ac): ... to here.
5362         (Depends-on): Update condition.
5363
5364 2011-05-08  Bruno Haible  <bruno@clisp.org>
5365
5366         gettimeofday: Move AC_LIBOBJ invocations to module description.
5367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5368         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5369         gl_PREREQ_GETTIMEOFDAY invocations from here...
5370         * modules/gettimeofday (configure.ac): ... to here.
5371
5372 2011-05-08  Bruno Haible  <bruno@clisp.org>
5373
5374         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5375         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5376         just gl_FUNC_TZSET.
5377         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5378         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5380         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5381
5382 2011-05-08  Bruno Haible  <bruno@clisp.org>
5383
5384         getsubopt: Move AC_LIBOBJ invocations to module description.
5385         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5386         gl_PREREQ_GETSUBOPT invocations from here...
5387         * modules/getsubopt (configure.ac): ... to here.
5388
5389 2011-05-08  Bruno Haible  <bruno@clisp.org>
5390
5391         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5392         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5393         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5394         * modules/getpass-gnu (configure.ac): ... to here.
5395
5396 2011-05-08  Bruno Haible  <bruno@clisp.org>
5397
5398         getpass: Move AC_LIBOBJ invocations to module description.
5399         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5400         gl_PREREQ_GETPASS invocations from here...
5401         * modules/getpass (configure.ac): ... to here.
5402
5403 2011-05-08  Bruno Haible  <bruno@clisp.org>
5404
5405         getpagesize: Move AC_LIBOBJ invocations to module description.
5406         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5407         from here...
5408         * modules/getpagesize (configure.ac): ... to here.
5409
5410 2011-05-08  Bruno Haible  <bruno@clisp.org>
5411
5412         getopt: Move AC_LIBOBJ invocations to module description.
5413         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5414         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5415         invocations from here...
5416         * modules/getopt-gnu (configure.ac): ... to here.
5417         * modules/getopt-posix (configure.ac): ... and here.
5418         (Depends-on): Update condition.
5419
5420 2011-05-08  Bruno Haible  <bruno@clisp.org>
5421
5422         getopt, argp: Respect rules for use of AC_LIBOBJ.
5423         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5424         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5425         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5426         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5427
5428 2011-05-08  Bruno Haible  <bruno@clisp.org>
5429
5430         getlogin_r: Move AC_LIBOBJ invocations to module description.
5431         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5432         gl_PREREQ_GETLOGIN_R invocations from here...
5433         * modules/getlogin_r (configure.ac): ... to here.
5434
5435 2011-05-08  Bruno Haible  <bruno@clisp.org>
5436
5437         getlogin: Move AC_LIBOBJ invocations to module description.
5438         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5439         here...
5440         * modules/getlogin (configure.ac): ... to here.
5441
5442 2011-05-08  Bruno Haible  <bruno@clisp.org>
5443
5444         getloadavg: Move AC_LIBOBJ invocations to module description.
5445         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5446         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5447         * modules/getloadavg (configure.ac): ... to here.
5448
5449 2011-05-08  Bruno Haible  <bruno@clisp.org>
5450
5451         gethrxtime: Move AC_LIBOBJ invocations to module description.
5452         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5453         LIB_GETHRXTIME from here...
5454         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5455         invocations from here...
5456         * modules/gethrxtime (configure.ac): ... to here.
5457
5458 2011-05-08  Bruno Haible  <bruno@clisp.org>
5459
5460         gethostname: Move AC_LIBOBJ invocations to module description.
5461         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5462         gl_PREREQ_GETHOSTNAME invocations from here...
5463         * modules/gethostname (configure.ac): ... to here.
5464
5465 2011-05-08  Bruno Haible  <bruno@clisp.org>
5466
5467         getgroups: Move AC_LIBOBJ invocations to module description.
5468         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5469         here...
5470         * modules/getgroups (configure.ac): ... to here.
5471
5472 2011-05-08  Bruno Haible  <bruno@clisp.org>
5473
5474         getdtablesize: Move AC_LIBOBJ invocations to module description.
5475         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5476         invocation from here...
5477         * modules/getdtablesize (configure.ac): ... to here.
5478
5479 2011-05-08  Bruno Haible  <bruno@clisp.org>
5480
5481         getdomainname: Move AC_LIBOBJ invocations to module description.
5482         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5483         gl_PREREQ_GETDOMAINNAME invocations from here...
5484         * modules/getdomainname (configure.ac): ... to here.
5485
5486 2011-05-08  Bruno Haible  <bruno@clisp.org>
5487
5488         getline: Move AC_LIBOBJ invocations to module description.
5489         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5490         invocations from here...
5491         * modules/getline (configure.ac): ... to here.
5492
5493 2011-05-08  Bruno Haible  <bruno@clisp.org>
5494
5495         getline: Simplify.
5496         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5497         It's already handled through the module dependency.
5498
5499 2011-05-08  Bruno Haible  <bruno@clisp.org>
5500
5501         getdelim: Move AC_LIBOBJ invocations to module description.
5502         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5503         and gl_PREREQ_GETDELIM invocations from here...
5504         * modules/getdelim (configure.ac): ... to here.
5505         (Depends-on): Fix condition.
5506
5507 2011-05-08  Bruno Haible  <bruno@clisp.org>
5508
5509         getcwd: Move AC_LIBOBJ invocations to module description.
5510         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5511         invocations from here...
5512         * modules/getcwd (configure.ac): ... to here.
5513
5514 2011-05-08  Bruno Haible  <bruno@clisp.org>
5515
5516         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5517         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5518         here...
5519         * modules/getcwd-lgpl (configure.ac): ... to here.
5520
5521 2011-05-07  Bruno Haible  <bruno@clisp.org>
5522
5523         crypto/gc: Move AC_LIBOBJ invocations to module description.
5524         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5525         * modules/crypto/gc (configure.ac): ... to here.
5526
5527 2011-05-07  Bruno Haible  <bruno@clisp.org>
5528
5529         fwriting: Move AC_LIBOBJ invocations to module description.
5530         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5531         here...
5532         * modules/fwriting (configure.ac): ... to here.
5533
5534 2011-05-07  Bruno Haible  <bruno@clisp.org>
5535
5536         fwritable: Move AC_LIBOBJ invocations to module description.
5537         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5538         here...
5539         * modules/fwritable (configure.ac): ... to here.
5540
5541 2011-05-07  Bruno Haible  <bruno@clisp.org>
5542
5543         futimens: Move AC_LIBOBJ invocations to module description.
5544         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5545         here...
5546         * modules/futimens (configure.ac): ... to here.
5547
5548 2011-05-07  Bruno Haible  <bruno@clisp.org>
5549
5550         ftruncate: Move AC_LIBOBJ invocations to module description.
5551         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5552         gl_PREREQ_FTRUNCATE invocations from here...
5553         * modules/ftruncate (configure.ac): ... to here.
5554
5555 2011-05-07  Bruno Haible  <bruno@clisp.org>
5556
5557         fsync: Move AC_LIBOBJ invocations to module description.
5558         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5559         invocations from here...
5560         * modules/fsync (configure.ac): ... to here.
5561
5562 2011-05-07  Bruno Haible  <bruno@clisp.org>
5563
5564         fsusage: Move AC_LIBOBJ invocations to module description.
5565         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5566         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5567         * modules/fsusage (configure.ac): ... to here.
5568
5569 2011-05-07  Bruno Haible  <bruno@clisp.org>
5570
5571         freopen: Move AC_LIBOBJ invocations to module description.
5572         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5573         invocations from here...
5574         * modules/freopen (configure.ac): ... to here.
5575
5576 2011-05-07  Bruno Haible  <bruno@clisp.org>
5577
5578         free: Move AC_LIBOBJ invocations to module description.
5579         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5580         invocations from here...
5581         * modules/free (configure.ac): ... to here.
5582
5583 2011-05-07  Bruno Haible  <bruno@clisp.org>
5584
5585         freadable: Move AC_LIBOBJ invocations to module description.
5586         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5587         here...
5588         * modules/freadable (configure.ac): ... to here.
5589
5590 2011-05-07  Bruno Haible  <bruno@clisp.org>
5591
5592         fpurge: Move AC_LIBOBJ invocations to module description.
5593         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5594         invocations from here...
5595         * modules/fpurge (configure.ac): ... to here.
5596
5597 2011-05-07  Bruno Haible  <bruno@clisp.org>
5598
5599         fpending: Move AC_LIBOBJ invocations to module description.
5600         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5601         gl_FUNC_FPENDING.
5602         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5603         invocations from here...
5604         * modules/fpending (configure.ac): ... to here.
5605
5606 2011-05-07  Bruno Haible  <bruno@clisp.org>
5607
5608         fopen: Move AC_LIBOBJ invocations to module description.
5609         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5610         invocations from here...
5611         * modules/fopen (configure.ac): ... to here.
5612
5613 2011-05-07  Bruno Haible  <bruno@clisp.org>
5614
5615         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5616         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5617         gl_FUNC_FNMATCH_POSIX.
5618         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5619         invocations from here...
5620         * modules/fnmatch (configure.ac): ... to here.
5621         * modules/fnmatch-gnu (configure.ac): ... and here.
5622
5623 2011-05-07  Bruno Haible  <bruno@clisp.org>
5624
5625         flock: Move AC_LIBOBJ invocations to module description.
5626         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5627         invocations from here...
5628         * modules/flock (configure.ac): ... to here.
5629
5630 2011-05-07  Bruno Haible  <bruno@clisp.org>
5631
5632         fileblocks: Move AC_LIBOBJ invocations to module description.
5633         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5634         gl_PREREQ_FILEBLOCKS invocations from here...
5635         * modules/fileblocks (configure.ac): ... to here.
5636
5637 2011-05-06  Bruno Haible  <bruno@clisp.org>
5638
5639         fflush: Move AC_LIBOBJ invocations to module description.
5640         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5641         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5642         invocations from here...
5643         * modules/fflush (configure.ac): ... to here.
5644
5645 2011-05-06  Bruno Haible  <bruno@clisp.org>
5646
5647         fdopendir: Move AC_LIBOBJ invocations to module description.
5648         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5649         here...
5650         * modules/fdopendir (configure.ac): ... to here.
5651         (Depends-on): Improve conditions.
5652
5653 2011-05-06  Bruno Haible  <bruno@clisp.org>
5654
5655         _Exit: Move AC_LIBOBJ invocations to module description.
5656         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5657         invocations from here...
5658         * modules/_Exit (configure.ac): ... to here.
5659
5660 2011-05-21  Bruno Haible  <bruno@clisp.org>
5661
5662         euidaccess: Respect rules for use of AC_LIBOBJ.
5663         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5665         from here...
5666         * modules/euidaccess (configure.ac): ... to here.
5667
5668 2011-05-06  Bruno Haible  <bruno@clisp.org>
5669
5670         error: Move AC_LIBOBJ invocations to module description.
5671         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5672         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5673         invocations from here...
5674         * modules/error (configure.ac): ... to here.
5675
5676 2011-05-06  Bruno Haible  <bruno@clisp.org>
5677
5678         duplocale: Move AC_LIBOBJ invocations to module description.
5679         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5680         gl_PREREQ_DUPLOCALE invocations from here...
5681         * modules/duplocale (configure.ac): ... to here.
5682
5683 2011-05-05  Bruno Haible  <bruno@clisp.org>
5684
5685         dirfd: Move AC_LIBOBJ invocations to module description.
5686         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5687         gl_FUNC_DIRFD.
5688         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5689         here...
5690         * modules/dirfd (configure.ac): ... to here.
5691         (Depends-on): Fix condition.
5692
5693 2011-05-05  Bruno Haible  <bruno@clisp.org>
5694
5695         chown: Respect rules for use of AC_LIBOBJ.
5696         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5697         * modules/chown (configure.ac): ... to here.
5698
5699 2011-05-05  Bruno Haible  <bruno@clisp.org>
5700
5701         chdir-long: Move AC_LIBOBJ invocations to module description.
5702         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5703         gl_PREREQ_CHDIR_LONG invocations from here...
5704         * modules/chdir-long (configure.ac): ... to here.
5705
5706 2011-05-05  Bruno Haible  <bruno@clisp.org>
5707
5708         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5709         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5710         from here...
5711         * modules/canonicalize-lgpl (configure.ac): ... to here.
5712
5713 2011-05-05  Bruno Haible  <bruno@clisp.org>
5714
5715         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5716         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5717         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5718         REPLACE_CALLOC.
5719         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5720         * modules/calloc-gnu (configure.ac): Likewise.
5721
5722 2011-05-05  Bruno Haible  <bruno@clisp.org>
5723
5724         btowc: Move AC_LIBOBJ invocations to module description.
5725         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5726         invocations from here...
5727         * modules/btowc (configure.ac): ... to here.
5728
5729 2011-05-21  Bruno Haible  <bruno@clisp.org>
5730
5731         atexit: Move AC_LIBOBJ invocations to module description.
5732         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5734         here...
5735         * modules/atexit (configure.ac): ... to here.
5736
5737 2011-05-05  Bruno Haible  <bruno@clisp.org>
5738
5739         atoll: Move AC_LIBOBJ invocations to module description.
5740         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5741         invocations from here...
5742         * modules/atoll (configure.ac): ... to here.
5743
5744 2011-05-05  Bruno Haible  <bruno@clisp.org>
5745
5746         argz: Move AC_LIBOBJ invocations to module description.
5747         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5748         * modules/argz (configure.ac): ... to here.
5749
5750 2011-05-05  Bruno Haible  <bruno@clisp.org>
5751
5752         alphasort: Move AC_LIBOBJ invocations to module description.
5753         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5754         gl_PREREQ_ALPHASORT invocations from here...
5755         * modules/alphasort (configure.ac): ... to here.
5756
5757 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5758
5759         verify: new macro verify_expr; verify_true deprecated
5760         * NEWS: Mention this.
5761         * doc/verify.texi (Compile-time Assertions): Document this.
5762         * lib/verify.h (verify_true): Deprecate.
5763         (verify_expr): New macro.
5764         * tests/test-verify.c (function): Test verify_expr.
5765
5766 2011-06-14  Jim Meyering  <meyering@redhat.com>
5767
5768         init.sh: give more portable redirection-related advice in a comment
5769         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5770         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5771         for lots of discussion.  Stefano Lattarini suggested the solution
5772         of putting "9>&2" after the command.  Reported by Bruno Haible.
5773
5774 2011-06-13  Bruno Haible  <bruno@clisp.org>
5775
5776         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5777         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5778         'none'.
5779
5780 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5781
5782         ftoastr: use strtof only if HAVE_STRTOF
5783         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5785         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5786         * modules/ftoastr (configure.ac): Check for strtof.
5787
5788 2011-06-13  Bruno Haible  <bruno@clisp.org>
5789
5790         gnulib-tool: Addendum to 2011-06-08 commit.
5791         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5792         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5793
5794 2011-06-13  Bruno Haible  <bruno@clisp.org>
5795
5796         fseeko: Provide a non-inline replacement of fseek().
5797         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5798         * modules/fseeko (Depends-on): Add fseek.
5799         * modules/fseek (License): Change to LGPLv2+.
5800
5801 2011-06-13  Bruno Haible  <bruno@clisp.org>
5802
5803         ftello: Provide a non-inline replacement of ftell().
5804         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5805         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5806         not have ftello() (such as on mingw).
5807         * modules/ftello (Depends-on): Add ftell.
5808         * modules/ftell (License): Change to LGPLv2+.
5809
5810 2011-05-07  Bruno Haible  <bruno@clisp.org>
5811
5812         ftell: Move AC_LIBOBJ invocations to module description.
5813         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5814         * modules/ftell (configure.ac): ... to here.
5815
5816 2011-05-07  Bruno Haible  <bruno@clisp.org>
5817
5818         ftello: Respect rules for use of AC_LIBOBJ.
5819         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5820         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5821         here...
5822         * modules/ftello (configure.ac): ... to here.
5823
5824 2011-05-07  Bruno Haible  <bruno@clisp.org>
5825
5826         fseeko: Simplify.
5827         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5828         (gl_FUNC_FSEEKO): Inline it here.
5829
5830 2011-05-07  Bruno Haible  <bruno@clisp.org>
5831
5832         fseek: Move AC_LIBOBJ invocations to module description.
5833         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5834         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5835         * modules/fseek (configure.ac): ... to here.
5836
5837 2011-05-07  Bruno Haible  <bruno@clisp.org>
5838
5839         fseek: Respect rules for use of AC_LIBOBJ.
5840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5841         here...
5842         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5843
5844 2011-05-07  Bruno Haible  <bruno@clisp.org>
5845
5846         fseeko: Respect rules for use of AC_LIBOBJ.
5847         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5848         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5849         here...
5850         * modules/fseeko (configure.ac): ... to here.
5851
5852 2011-06-13  Bruno Haible  <bruno@clisp.org>
5853
5854         gnulib-tool: Allow comments in the 'Depends-on' section.
5855         * doc/gnulib.texi (Module description): Mention comment syntax in the
5856         Depends-on section.
5857         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5858
5859 2011-06-13  Bruno Haible  <bruno@clisp.org>
5860
5861         file-set.h: guard __attibute__ use, now that it's not always defined
5862         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5863         versions that support it.  This fixes a coreutils build failure with
5864         the vendor cc on HP-UX 11.31.
5865
5866 2011-06-12  Bruno Haible  <bruno@clisp.org>
5867
5868         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5869         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5870         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5871         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5872         (acl, aclsort): New declarations.
5873         (aclv_nontrivial): New declaration.
5874         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5875         (file_has_acl): Read also the second kind of HP-UX ACLs.
5876         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5877         kind of HP-UX ACLs if the first kind fails.
5878         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5879         second kind of HP-UX ACLs.
5880         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5881         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5882         agree.
5883         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5884         hpuxjfs.
5885         Handle hpuxjfs.
5886         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5887         hpuxjfs.
5888         Handle hpuxjfs.
5889         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5890         (func_test_same_acls): Use both lsacl and getacl.
5891         Handle hpuxjfs.
5892         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5893         (func_test_same_acls): Use both lsacl and getacl.
5894         Handle hpuxjfs.
5895
5896 2011-06-12  Bruno Haible  <bruno@clisp.org>
5897
5898         acl: Complete the 2010-08-10 fix.
5899         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5900         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5901         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5902         explicitly.
5903         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5904         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5905
5906 2011-06-12  Bruno Haible  <bruno@clisp.org>
5907
5908         spawn-pipe tests: Comments.
5909         * tests/test-spawn-pipe-child.c (main): Update comment.
5910         Reported by James Youngman <jay@gnu.org>.
5911
5912 2011-06-11  James Youngman  <jay@gnu.org>
5913
5914         New module 'stat-size'.
5915         * modules/stat-size: New module.  Provides macros for accessing
5916         file size information in instances of struct stat.  Depends on the
5917         fileblocks module because it calls st_blocks.
5918         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5919         * doc/gnulib.texi: Include stat-size.texi.
5920         * doc/stat-size.texi: Documentation for this module.
5921         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5922         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5923         AC_STRUCT_ST_BLOCKS.
5924
5925 2011-06-09  Bruno Haible  <bruno@clisp.org>
5926
5927         thread: Support pthreads-win32.
5928         * lib/glthread/thread.h (gl_thread_self): Define differently on
5929         pthreads-win32.
5930         (gl_null_thread): New declaration.
5931         (gl_thread_self_pointer): New macro.
5932         * lib/glthread/thread.c (gl_null_thread): New constant.
5933         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5934         gl_thread_self.
5935         * tests/test-tls.c: Likewise.
5936         Suggested by Paul Eggert. Reported by Eric Blake.
5937
5938 2011-06-09  Bruno Haible  <bruno@clisp.org>
5939
5940         thread: Fix confusion between NULL and 0.
5941         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5942         Reported by Paul Eggert.
5943
5944 2011-06-09  Bruno Haible  <bruno@clisp.org>
5945
5946         spawn-pipe tests: Avoid test failure on HP-UX 11.
5947         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5948         is closed.
5949
5950 2011-06-09  Bruno Haible  <bruno@clisp.org>
5951
5952         acl tests: Fix compilation error on HP-UX 11.
5953         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5954
5955 2011-06-09  Bruno Haible  <bruno@clisp.org>
5956
5957         rmdir: Avoid test failure on HP-UX 10.20.
5958         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5959         EEXIST.
5960
5961 2011-06-08  Eric Blake  <eblake@redhat.com>
5962
5963         perror: fix test on mingw
5964         * modules/perror-tests (Depends-on): Add dup2.
5965
5966         strerror_r-posix: fix on MacOS
5967         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5968         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5969         logic bug.
5970         * lib/strerror_r.c (strerror_r): Fix the bug.
5971         * lib/strerror.c (strerror): Likewise.
5972         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5973         problem.
5974         * doc/posix-functions/strerror.texi (strerror): Likewise.
5975         * doc/posix-functions/perror.texi (perror): Likewise.
5976         * tests/test-strerror.c (main): Enhance test.
5977         * tests/test-strerror_r.c (main): Likewise.
5978
5979 2011-06-08  Bruno Haible  <bruno@clisp.org>
5980
5981         gnulib-tool: Better isolation between different gnulib-tool invocations.
5982         * gnulib-tool: New option --witness-c-macro.
5983         (witness_c_macro): New variable.
5984         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5985         AM_CPPFLAGS define it as a C macro.
5986         (func_emit_tests_Makefile_am): Likewise.
5987         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5988         read it from there.
5989         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5990         m4_define, not AC_DEFUN.
5991         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5992         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5993         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5994         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5995         s|...|...|, to substitute the values of the GNULIB_* module indicator
5996         variables.
5997         * modules/dirent (Makefile.am): Likewise.
5998         * modules/fcntl-h (Makefile.am): Likewise.
5999         * modules/iconv-h (Makefile.am): Likewise.
6000         * modules/langinfo (Makefile.am): Likewise.
6001         * modules/locale (Makefile.am): Likewise.
6002         * modules/math (Makefile.am): Likewise.
6003         * modules/netdb (Makefile.am): Likewise.
6004         * modules/poll-h (Makefile.am): Likewise.
6005         * modules/pty (Makefile.am): Likewise.
6006         * modules/search (Makefile.am): Likewise.
6007         * modules/signal (Makefile.am): Likewise.
6008         * modules/spawn (Makefile.am): Likewise.
6009         * modules/stdio (Makefile.am): Likewise.
6010         * modules/stdlib (Makefile.am): Likewise.
6011         * modules/string (Makefile.am): Likewise.
6012         * modules/sys_ioctl (Makefile.am): Likewise.
6013         * modules/sys_select (Makefile.am): Likewise.
6014         * modules/sys_socket (Makefile.am): Likewise.
6015         * modules/sys_stat (Makefile.am): Likewise.
6016         * modules/sys_times (Makefile.am): Likewise.
6017         * modules/sys_utsname (Makefile.am): Likewise.
6018         * modules/sys_wait (Makefile.am): Likewise.
6019         * modules/termios (Makefile.am): Likewise.
6020         * modules/time (Makefile.am): Likewise.
6021         * modules/unistd (Makefile.am): Likewise.
6022         * modules/wchar (Makefile.am): Likewise.
6023
6024 2011-06-08  Eric Blake  <eblake@redhat.com>
6025
6026         strerror: simplify replacement
6027         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6028         * modules/strerror (configure.ac): No prereqs needed here...
6029         * modules/strerror-override (configure.ac): ...but this needs it.
6030         (Files): Add file for needed prereq macro.
6031
6032 2011-06-08  Bruno Haible  <bruno@clisp.org>
6033
6034         strerror_r-posix: Tweaks.
6035         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6036         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6038         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6039         (gl_FUNC_STRERROR_R): ... to here.
6040         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6041
6042 2011-06-07  Eric Blake  <eblake@redhat.com>
6043
6044         perror: document fixed bugs
6045         * doc/posix-functions/perror.texi (perror): Document recent
6046         patches.
6047
6048 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6049
6050         stat-time: get_stat_birthtime failure is better-defined
6051         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6052         return a timestamp whose tv_sec and tv_nsec values are both -1.
6053         Previously, the spec said only that the tv_nsec value was negative.
6054         This upward-compatible change simplifies GNU tar a bit.
6055
6056 2011-06-07  Eric Blake  <eblake@redhat.com>
6057
6058         strerror_r-posix: work around cygwin 1.7.9
6059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6060         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6061         bug without replacing strerror_r.
6062         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6063         strerror_r is buggy, but without requiring strerror_r compilation.
6064         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6065
6066         test-perror: relax test to ignore cygwin bug
6067         * tests/test-perror2.c (main): Relax test on requiring detection
6068         of stream errors, and use unbuffered stream.
6069         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6070         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6071         * doc/posix-functions/fputc.texi (fputc): Likewise.
6072         * doc/posix-functions/fputs.texi (fputs): Likewise.
6073         * doc/posix-functions/fputws.texi (fputws): Likewise.
6074         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6075         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6076         * doc/posix-functions/getopt.texi (getopt): Likewise.
6077         * doc/posix-functions/perror.texi (perror): Likewise.
6078         * doc/posix-functions/printf.texi (printf): Likewise.
6079         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6080         * doc/posix-functions/psignal.texi (psignal): Likewise.
6081         * doc/posix-functions/putc.texi (putc): Likewise.
6082         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6083         Likewise.
6084         * doc/posix-functions/putchar.texi (putchar): Likewise.
6085         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6086         Likewise.
6087         * doc/posix-functions/puts.texi (puts): Likewise.
6088         * doc/posix-functions/putwc.texi (putwc): Likewise.
6089         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6090         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6091         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6092         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6093         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6094         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6095         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6096         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6097
6098 2011-05-22  Bruno Haible  <bruno@clisp.org>
6099
6100         strerror: Move AC_LIBOBJ invocations to module description.
6101         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6102         gl_PREREQ_STRERROR invocations from here...
6103         * modules/strerror (configure.ac): ... to here.
6104
6105 2011-05-21  Bruno Haible  <bruno@clisp.org>
6106
6107         perror: Use common idiom.
6108         * modules/perror (configure.ac): Reorder statements.
6109
6110 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6111
6112         tests: fix usage message in 'mktempd_'
6113         * tests/init.sh (mktempd_): In the usage message, use literal
6114         'mktempd_', not '$ME' (which is even undefined), as the name of
6115         the subroutine.
6116
6117 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6118
6119         tests init: new function 'fatal_', for hard errors
6120         Before this patch, the only way offered by tests/init.sh to
6121         properly signal a hard error was the `framework_failure_'
6122         function.  But the error message issued by that function,
6123         as its name would suggest, refers to a set-up failure in the
6124         testsuite, while hard errors can obviously also be due to
6125         other reasons.  The best way to fix this inconsistency is to
6126         introduce a new function with a more general error message.
6127         * tests/init.sh (fatal_): New function.
6128
6129 2011-06-06  Eric Blake  <eblake@redhat.com>
6130
6131         canonicalize-lgpl: use common idiom
6132         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6133         over newer POSIX -Rf.
6134         Reported by Bruno Haible.
6135
6136         canonicalize-lgpl: work around AIX realpath bug
6137         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6138         * doc/posix-functions/realpath.texi (realpath): Document it.
6139         Reported by Bruno Haible.
6140
6141         strerror: work around FreeBSD bug
6142         * lib/strerror.c (strerror): Special case 0.
6143         Reported by Bruno Haible.
6144
6145         strerror-override: avoid bloating errno module
6146         * modules/errno (Files, configure.ac): Move replacement strings...
6147         * modules/strerror-override: ...to new module.
6148         * modules/strerror (Depends-on): Add strerror-override.
6149         * modules/strerror_r-posix (Depends-on): Likewise.
6150         * MODULES.html.sh: Document new module.
6151         Reported by Bruno Haible.
6152
6153 2011-06-06  Bruno Haible  <bruno@clisp.org>
6154
6155         spawn-pipe tests: Rename program.
6156         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6157         * tests/test-spawn-pipe-child.c: Update comment.
6158         * tests/test-spawn-pipe.sh: Update.
6159         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6160
6161         spawn-pipe tests: Link the child program only against libc.
6162         * tests/test-spawn-pipe-child.c: New file, extracted from
6163         tests/test-spawn-pipe.c.
6164         (main): Expect only one argument.
6165         (is_open): New function, copied from tests/test-pipe.c.
6166         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6167         (child_main): Remove function.
6168         (test_pipe): Pass only one argument to the child program.
6169         (main): Remove child process code. Expect the child program's name as
6170         first argument.
6171         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6172         argument.
6173         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6174         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6175         test-spawn-pipe-child against no libraries.
6176
6177 2011-06-06  Bruno Haible  <bruno@clisp.org>
6178
6179         careadlinkat: Avoid mismatch between ssize_t and int.
6180         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6181         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6182
6183 2011-06-06  Jim Meyering  <meyering@redhat.com>
6184
6185         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6186         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6187         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6188
6189 2011-06-05  Bruno Haible  <bruno@clisp.org>
6190
6191         ansi-c++-opt: Interoperability with libtool.
6192         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6193         set the variable to "no", not to ":".
6194         * NEWS: Mention the change.
6195
6196 2011-06-05  Bruno Haible  <bruno@clisp.org>
6197
6198         acl: Fix test failure on AIX 7.
6199         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6200         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6201
6202 2011-06-05  Bruno Haible  <bruno@clisp.org>
6203
6204         pipe-filter-ii: Fix test failure on AIX and IRIX.
6205         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6206         with EAGAIN, retry with a smaller buffer size.
6207
6208 2011-06-05  Bruno Haible  <bruno@clisp.org>
6209
6210         localename: Fix link dependencies.
6211         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6212         * modules/localename-tests (Makefile.am): Link test-localename with
6213         $(LIBTHREAD).
6214
6215 2011-06-05  Bruno Haible  <bruno@clisp.org>
6216
6217         error: Avoid gcc warning.
6218         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6219
6220 2011-06-05  Bruno Haible  <bruno@clisp.org>
6221
6222         unsetenv: Avoid gcc warning.
6223         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6224
6225 2011-06-05  Bruno Haible  <bruno@clisp.org>
6226
6227         setenv: Avoid gcc warning.
6228         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6229
6230 2011-06-05  Bruno Haible  <bruno@clisp.org>
6231
6232         sys_select: Ensure memset is declared also on AIX 7.
6233         * lib/sys_select.in.h: Include <string.h> also on AIX.
6234         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6235         self-contained also on AIX 7.1.
6236
6237 2011-06-04  Jim Meyering  <meyering@redhat.com>
6238
6239         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6240         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6241         function name, "error".
6242         (_gl_translatable_diag_func_re): New configurable variable.
6243
6244 2011-06-04  Bruno Haible  <bruno@clisp.org>
6245
6246         getopt: Avoid gcc warning.
6247         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6248
6249 2011-06-04  Bruno Haible  <bruno@clisp.org>
6250
6251         strerror_r: Fix comments.
6252         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6253         commit.
6254
6255 2011-06-04  Bruno Haible  <bruno@clisp.org>
6256
6257         perror: Fix compilation error.
6258         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6259         Undefine fprintf, not sprintf.
6260         * modules/perror (Depends-on): Remove intprops, verify.
6261
6262 2011-06-04  Bruno Haible  <bruno@clisp.org>
6263
6264         setlocale: Enable replacement on Cygwin 1.5.
6265         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6266         Cygwin 1.5.x.
6267         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6268         LC_CTYPE category also exists on Cygwin 1.5.x.
6269
6270 2011-06-04  Bruno Haible  <bruno@clisp.org>
6271
6272         strerror-override: Don't disable symbol renamings.
6273         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6274         * lib/strerror-override.c: Include config.h.
6275         (strerror_override): Don't undefine.
6276
6277 2011-06-03  Bruno Haible  <bruno@clisp.org>
6278
6279         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6280         * lib/localename.h: Update copyright header.
6281         * lib/localename.c: Likewise.
6282         * lib/relocatable.h: Likewise.
6283         * lib/relocatable.c: Likewise.
6284
6285 2011-06-02  Bruno Haible  <bruno@clisp.org>
6286
6287         doc: Fix a module name.
6288         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6289
6290 2011-06-02  Bruno Haible  <bruno@clisp.org>
6291
6292         pipe2: Remove dependency on 'nonblocking' module.
6293         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6294         O_NONBLOCK is defined by gnulib.
6295         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6296         is zero.
6297         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6298         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6299         defined by gnulib.
6300         (get_nonblocking_flag): New function.
6301         (main): Test O_NONBLOCK flag only if it is nonzero.
6302         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6303
6304 2011-06-03  Jim Meyering  <meyering@redhat.com>
6305
6306         maint: three new prohibit-header-without-use rules
6307         Prohibit use of cloexec.h, posixver.h, same.h without use.
6308         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6309         (sc_prohibit_posixver_without_use): Likewise.
6310         (sc_prohibit_same_without_use): Likewise.
6311
6312 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6313
6314         allocator: 'die' routine is now given requested size
6315         * lib/allocator.h (struct allocator.die): New size arg.
6316         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6317         If the actual problem is an ssize_t limitation, not a size_t or
6318         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6319
6320 2011-06-01  Eric Blake  <eblake@redhat.com>
6321
6322         strerror: drop strerror_r dependency
6323         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6324         * lib/strerror-override.c (strerror_override): ...to new file.
6325         * lib/strerror-override.h: Add prototype.
6326         * lib/strerror-impl.h: Delete.
6327         * lib/strerror.c (strerror): New implementation.
6328         * modules/errno (Files): Add new files.
6329         (configure.ac): Compile new file as appropriate.
6330         * modules/strerror (Files): Drop unused file.
6331         (Depends-on): Drop strerror_r-posix.
6332         * MODULES.html.sh: Document strerror_r-posix.
6333         Requested by Sam Steingold.
6334
6335         perror: call strerror_r directly
6336         * modules/perror (Files): Drop strerror-impl.h.
6337         * lib/perror.c (perror): Use our own stack buffer, rather than
6338         calling a wrapper that uses static storage.
6339         * doc/posix-functions/perror.texi (perror): Document a limitation
6340         of our replacement.
6341
6342         strerror_r: fix includes for FreeBSD
6343         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6344         since we use abort on some platforms.
6345         Reported by Matthias Bolte.
6346
6347 2011-05-31  Bruno Haible  <bruno@clisp.org>
6348
6349         Fix link errors in tests: openat-die uses gettext-h.
6350         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6351         against $(LIBINTL).
6352         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6353         against $(LIBINTL).
6354         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6355         $(LIBINTL).
6356         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6357         against $(LIBINTL).
6358         * modules/linkat-tests (Makefile.am): Link test-linkat against
6359         $(LIBINTL).
6360         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6361         $(LIBINTL).
6362         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6363         against $(LIBINTL).
6364         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6365         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6366         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6367         $(LIBINTL).
6368         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6369         $(LIBINTL).
6370         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6371         $(LIBINTL).
6372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6373
6374 2011-05-31  Bruno Haible  <bruno@clisp.org>
6375
6376         Fix link errors in tests: wait-process uses gettext-h.
6377         * modules/nonblocking-pipe-tests (Makefile.am): Set
6378         test_nonblocking_pipe_main_LDADD.
6379         * modules/nonblocking-socket-tests (Makefile.am): Link
6380         test-nonblocking-socket-main against $(LIBINTL).
6381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6382
6383 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         assert-h: work around 'verify' incompatibility
6386         * lib/verify.h: Use @...@ directives, not ifdef.
6387         * modules/assert-h (assert.h): Implement the directives.
6388         (assert.h): Substitute the symbol-prefix more consistently.
6389
6390 2011-05-29  Jim Meyering  <meyering@redhat.com>
6391
6392         trim: remove three superfluous assignments
6393         * lib/trim.c (trim2): Remove three superfluous assignments
6394         and correct brace positioning.
6395
6396 2011-05-29  Bruno Haible  <bruno@clisp.org>
6397
6398         wctype-h: Avoid namespace pollution on Solaris 2.6.
6399         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6400         identifiers.
6401         * doc/posix-headers/wctype.texi: Mention the problem.
6402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6403
6404 2011-05-28  Jim Meyering  <meyering@redhat.com>
6405
6406         parse-datetime.y: accommodate -Wstrict-overflow
6407         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6408         placate -Wstrict-overflow.
6409
6410         trim: avoid a warning from -O2 -Wstrict-overflow
6411         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6412
6413 2011-05-29  Bruno Haible  <bruno@clisp.org>
6414
6415         gnulib-tool: Fix bug in yesterday's commit.
6416         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6417         twice.
6418
6419 2011-05-29  Bruno Haible  <bruno@clisp.org>
6420
6421         Allow multiple gnulib generated include files to be combined.
6422         * gnulib-tool (func_compute_include_guard_prefix): New function.
6423         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6424         ${gl_include_guard_prefix} references.
6425         (func_import, func_create_testdir): Invoke
6426         func_compute_include_guard_prefix.
6427         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6428         * lib/ctype.in.h: Likewise.
6429         * lib/dirent.in.h: Likewise.
6430         * lib/errno.in.h: Likewise.
6431         * lib/fcntl.in.h: Likewise.
6432         * lib/float.in.h: Likewise.
6433         * lib/getopt.in.h: Likewise.
6434         * lib/iconv.in.h: Likewise.
6435         * lib/langinfo.in.h: Likewise.
6436         * lib/locale.in.h: Likewise.
6437         * lib/math.in.h: Likewise.
6438         * lib/netdb.in.h: Likewise.
6439         * lib/netinet_in.in.h: Likewise.
6440         * lib/poll.in.h: Likewise.
6441         * lib/pthread.in.h: Likewise.
6442         * lib/pty.in.h: Likewise.
6443         * lib/sched.in.h: Likewise.
6444         * lib/se-selinux.in.h: Likewise.
6445         * lib/search.in.h: Likewise.
6446         * lib/signal.in.h: Likewise.
6447         * lib/spawn.in.h: Likewise.
6448         * lib/stdarg.in.h: Likewise.
6449         * lib/stddef.in.h: Likewise.
6450         * lib/stdint.in.h: Likewise.
6451         * lib/stdio.in.h: Likewise.
6452         * lib/stdlib.in.h: Likewise.
6453         * lib/string.in.h: Likewise.
6454         * lib/strings.in.h: Likewise.
6455         * lib/sys_file.in.h: Likewise.
6456         * lib/sys_ioctl.in.h: Likewise.
6457         * lib/sys_select.in.h: Likewise.
6458         * lib/sys_socket.in.h: Likewise.
6459         * lib/sys_stat.in.h: Likewise.
6460         * lib/sys_time.in.h: Likewise.
6461         * lib/sys_times.in.h: Likewise.
6462         * lib/sys_uio.in.h: Likewise.
6463         * lib/sys_utsname.in.h: Likewise.
6464         * lib/sys_wait.in.h: Likewise.
6465         * lib/sysexits.in.h: Likewise.
6466         * lib/termios.in.h: Likewise.
6467         * lib/time.in.h: Likewise.
6468         * lib/unistd.in.h: Likewise.
6469         * lib/wchar.in.h: Likewise.
6470         * lib/wctype.in.h: Likewise.
6471         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6472         * modules/ctype (Makefile.am): Likewise.
6473         * modules/dirent (Makefile.am): Likewise.
6474         * modules/errno (Makefile.am): Likewise.
6475         * modules/fcntl-h (Makefile.am): Likewise.
6476         * modules/float (Makefile.am): Likewise.
6477         * modules/getopt-posix (Makefile.am): Likewise.
6478         * modules/iconv-h (Makefile.am): Likewise.
6479         * modules/langinfo (Makefile.am): Likewise.
6480         * modules/locale (Makefile.am): Likewise.
6481         * modules/math (Makefile.am): Likewise.
6482         * modules/netdb (Makefile.am): Likewise.
6483         * modules/netinet_in (Makefile.am): Likewise.
6484         * modules/poll-h (Makefile.am): Likewise.
6485         * modules/pthread (Makefile.am): Likewise.
6486         * modules/pty (Makefile.am): Likewise.
6487         * modules/sched (Makefile.am): Likewise.
6488         * modules/search (Makefile.am): Likewise.
6489         * modules/selinux-h (Makefile.am): Likewise.
6490         * modules/signal (Makefile.am): Likewise.
6491         * modules/spawn (Makefile.am): Likewise.
6492         * modules/stdarg (Makefile.am): Likewise.
6493         * modules/stddef (Makefile.am): Likewise.
6494         * modules/stdint (Makefile.am): Likewise.
6495         * modules/stdio (Makefile.am): Likewise.
6496         * modules/stdlib (Makefile.am): Likewise.
6497         * modules/string (Makefile.am): Likewise.
6498         * modules/strings (Makefile.am): Likewise.
6499         * modules/sys_file (Makefile.am): Likewise.
6500         * modules/sys_ioctl (Makefile.am): Likewise.
6501         * modules/sys_select (Makefile.am): Likewise.
6502         * modules/sys_socket (Makefile.am): Likewise.
6503         * modules/sys_stat (Makefile.am): Likewise.
6504         * modules/sys_time (Makefile.am): Likewise.
6505         * modules/sys_times (Makefile.am): Likewise.
6506         * modules/sys_uio (Makefile.am): Likewise.
6507         * modules/sys_utsname (Makefile.am): Likewise.
6508         * modules/sys_wait (Makefile.am): Likewise.
6509         * modules/sysexits (Makefile.am): Likewise.
6510         * modules/termios (Makefile.am): Likewise.
6511         * modules/time (Makefile.am): Likewise.
6512         * modules/unistd (Makefile.am): Likewise.
6513         * modules/wchar (Makefile.am): Likewise.
6514         * modules/wctype-h (Makefile.am): Likewise.
6515         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6516
6517 2011-05-29  Bruno Haible  <bruno@clisp.org>
6518
6519         assert-h: Allow multiple gnulib generated replacements to coexist.
6520         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6521
6522 2011-05-29  Bruno Haible  <bruno@clisp.org>
6523
6524         argp: Allow coexistence with strerror_r-posix module.
6525         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6526         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6527         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6528         not the glibc signature.
6529
6530 2011-05-28  Bruno Haible  <bruno@clisp.org>
6531
6532         gnulib-tool: Alternative structure of testdirs, similar to --import.
6533         * gnulib-tool: New option --single-configure.
6534         (func_usage): Document it.
6535         (single_configure): New variable.
6536         (func_modules_transitive_closure_separately,
6537         func_modules_transitive_closure_separately,
6538         func_determine_use_libtests, func_modules_add_dummy_separately,
6539         func_modules_to_filelist_separately): New functions, extracted from
6540         func_import.
6541         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6542         (func_import): Use the new functions.
6543         (func_create_testdir): Set final_modules. Handle $single_configure =
6544         true case.
6545
6546 2011-05-28  Bruno Haible  <bruno@clisp.org>
6547
6548         getloadavg: Remove an unreliable safety check.
6549         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6550         getloadavg.c is in place.
6551         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6552         Reported by Sam Steingold <sds@gnu.org>.
6553
6554 2011-05-28  Bruno Haible  <bruno@clisp.org>
6555
6556         doc: Cleanup yet another file produced by texinfo.tex.
6557         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6558
6559 2011-05-28  Bruno Haible  <bruno@clisp.org>
6560
6561         Finish the conditional dependencies mechanism.
6562         * gnulib-tool: New option --no-conditional-dependencies.
6563         (func_usage): Document it. Don't mark --conditional-dependencies as
6564         experimental.
6565         (cond_dependencies): The possible values can now be true, false, empty.
6566         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6567         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6568         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6569
6570 2011-05-28  Bruno Haible  <bruno@clisp.org>
6571
6572         doc: Use a recent texinfo.tex.
6573         * doc/Makefile (tex_opts): New variable.
6574         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6575
6576 2011-05-28  Jim Meyering  <meyering@redhat.com>
6577
6578         intprops.h: adjust comment to match code change
6579         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6580         only once, it *may* have side effects.  Also fix an unrelated typo.
6581         (_GL_INT_SIGNED): Likewise.
6582
6583 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6584
6585         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6586
6587 2011-05-26  Bruno Haible  <bruno@clisp.org>
6588
6589         mbsrchr: Avoid collision with system function on Interix.
6590         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6591         Reported by Markus Duft <mduft@gentoo.org>.
6592
6593 2011-05-15  James Youngman  <jay@gnu.org>
6594
6595         getopt: for ambiguous options, enumerate the possibilities.
6596         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6597         the ambiguous options when an ambiguous prefix is given. This was
6598         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6599         glibc change was
6600         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6601
6602 2011-05-25  Eric Blake  <eblake@redhat.com>
6603
6604         getcwd: work around mingw bug
6605         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6606         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6607         Reported by Matthias Bolte.
6608
6609 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6610
6611         test-intprops: disable -Wtype-limits diagnostics
6612         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6613         diagnostics.  Otherwise, the integer overflow macros generate many
6614         diagnostics.  Reported by Jim Meyering in
6615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6616
6617         intprops: shorten, to pacify gcc -Woverlength-strings
6618         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6619         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6620         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6621         likely to run afoul of C compiler limits for string constant lengths.
6622         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6623
6624 2011-05-24  Eric Blake  <eblake@redhat.com>
6625
6626         docs: document recently fixed glibc printf bug
6627         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6628         * doc/posix-functions/printf.texi (printf): Likewise.
6629         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6630         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6631
6632         closein-tests: convert to init.sh
6633         * modules/closein-tests (Files): Add init.sh
6634         * tests/test-closein.sh Use it.
6635
6636         yesno-tests: convert to init.sh
6637         * modules/yesno-tests (Files): Add init.sh.
6638         * tests/test-yesno.sh: Use it.
6639
6640         atexit-tests: ensure reliable exit status
6641         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6642         Reported by Bruno Haible.
6643
6644 2011-05-24  Bruno Haible  <bruno@clisp.org>
6645
6646         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6648         gl_PREREQ_STRERROR_R invocations from here...
6649         * modules/strerror_r-posix (configure.ac): ... to here.
6650
6651 2011-05-24  Eric Blake  <eblake@redhat.com>
6652
6653         strerror_r: fix missing header
6654         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6655
6656         strerror_r: fix AIX test failures
6657         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6658         ERANGE failure.
6659
6660         strerror_r: fix Solaris test failures
6661         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6662         failures.
6663         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6664
6665         strerror_r: enforce POSIX recommendations
6666         * lib/strerror_r.c (safe_copy): New helper method.
6667         (strerror_r): Guarantee a non-empty string.
6668         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6669         recent POSIX rulings and to match our strerror guarantees.
6670         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6671
6672 2011-05-24  Jim Meyering  <meyering@redhat.com>
6673
6674         test-perror2.c: avoid warning about unused variable
6675         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6676
6677 2011-05-24  Eric Blake  <eblake@redhat.com>
6678
6679         perror: avoid spurious test failure on HP-UX
6680         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6681
6682         tests: fix logic bug in init.sh
6683         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6684         shell.
6685
6686 2011-05-24  Jim Meyering  <meyering@redhat.com>
6687
6688         utimensat: do not reference an out-of-scope buffer
6689         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6690         declared in an inner scope, yet "times" would be dereferenced outside
6691         the scope in which "ts" was valid.
6692         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6693         of ts[2] "out/up", so that the use of aliased "times" (via
6694         "times = ts;") does not end up referencing an out-of-scope "ts"
6695
6696         opendir-safer.c: don't clobber errno; don't close negative FD
6697         * lib/opendir-safer.c (opendir_safer):
6698         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6699         file descriptor, and more importantly, don't clobber the
6700         offending errno value with EINVAL.  Before, upon failure
6701         of dup_safer, we would pass the negative file descriptor to
6702         fdopendir, which would clobber errno.
6703
6704 2011-05-23  Bruno Haible  <bruno@clisp.org>
6705
6706         idcache: Fix module description.
6707         * modules/idcache (Include): Set to "idcache.h".
6708
6709 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6710
6711         gnulib-tool: fix portability problem with MacOS sed
6712         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6713         before the "}".  Problem reported by Leo in
6714         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6715         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6716         sed_extract_condition1, sed_extract_condition2.
6717
6718 2011-05-23  Bruno Haible  <bruno@clisp.org>
6719
6720         hash: Simplify autoconf macro.
6721         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6722
6723 2011-05-23  Bruno Haible  <bruno@clisp.org>
6724
6725         getugroups: Fix module description.
6726         * modules/getugroups (Include): Set to "getugroups.h".
6727
6728 2011-05-23  Bruno Haible  <bruno@clisp.org>
6729
6730         linkat: Simplify autoconf macro.
6731         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6732
6733 2011-05-23  Bruno Haible  <bruno@clisp.org>
6734             Eric Blake  <eblake@redhat.com>
6735
6736         linkat, renameat: Update dependencies.
6737         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6738         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6739         symlinkat.
6740
6741 2011-05-23  Jim Meyering  <meyering@redhat.com>
6742
6743         maint.mk: more tight_scope improvements
6744         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6745         (_gl_TS_headers): Define only in if-0'd block.
6746         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6747         sometimes we must *not* use it.  Adjust uses accordingly.
6748         (sc_tight_scope): Use much simpler grep-based test to determine
6749         whether we skip this rule.
6750
6751         maint.mk: generalize/improve the tight-scope rule
6752         * top/maint.mk: Emit a warning when the test is skipped.
6753         (_gl_TS_dir): Add $(srcdir)/ prefix.
6754         (_gl_TS_function_match): Simplify, rather than trying
6755         to enumerate common types.  Otherwise, it would fail to match an
6756         "extern unsigned char const *" declaration in idutils.
6757         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6758         a way to support use of that type of macro.
6759         (_gl_TS_var_match): Simplify regexp.
6760         (_gl_TS_obj_files): New configurable variable.
6761         (_gl_TS_headers): Likewise.
6762
6763 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6764
6765         verify: fix bug when gnulib <assert.h> is also included
6766         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6767         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6768         Perhaps there's a better way, but this fixes the immediate problem.
6769         Problem reported by Bruno Haible in
6770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6771
6772 2011-05-22  Bruno Haible  <bruno@clisp.org>
6773
6774         xgetcwd: Simplify autoconf macro.
6775         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6776
6777 2011-05-22  Bruno Haible  <bruno@clisp.org>
6778
6779         New module 'mktime-internal'.
6780         * modules/mktime-internal: New file.
6781         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6782         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6783         mktime_internal as a C macro if libc has __mktime_internal.
6784         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6785         conditions.
6786         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6787
6788 2011-05-22  Bruno Haible  <bruno@clisp.org>
6789
6790         timegm: Correct mktime replacement statements.
6791         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6792         defining mktime as a C macro. This completes a 2009-07-28 commit.
6793
6794 2011-05-22  Bruno Haible  <bruno@clisp.org>
6795
6796         timegm: Simplify autoconf macro.
6797         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6798
6799 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6800
6801         clock-time: change to LGPLv2+.
6802         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6803         BSD-like but we have no mark for that; this is good enough for now.
6804
6805 2011-05-21  Bruno Haible  <bruno@clisp.org>
6806
6807         strerror_r: Fix comments.
6808         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6809
6810 2011-05-21  Bruno Haible  <bruno@clisp.org>
6811
6812         relocatable-prog-wrapper: Fix possible link error.
6813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6814         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6815         (gl_FUNC_SETENV): ... to here.
6816         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6817         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6818
6819 2011-05-21  Bruno Haible  <bruno@clisp.org>
6820
6821         relocatable-prog-wrapper: Assume strerror() exists.
6822         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6823         m4/strerror.m4.
6824         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6825         * lib/relocwrapper.c: Remove mention of strerror module.
6826         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6827         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6828         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6829         C macro.
6830
6831 2011-05-21  Bruno Haible  <bruno@clisp.org>
6832
6833         select: Simplify replacement idiom.
6834         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6835         Win32 platforms.
6836         * lib/sys_select.in.h (select): Simplify accordingly.
6837         * modules/select (Depends-on): Likewise.
6838
6839 2011-05-21  Bruno Haible  <bruno@clisp.org>
6840
6841         mkdir-p: Simplify autoconf macro.
6842         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6843         gl_FUNC_LCHOWN.
6844
6845 2011-05-21  Eric Blake  <eblake@redhat.com>
6846
6847         strerror_r: avoid clobbering strerror on cygwin
6848         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6849         fall back instead to sys_errlist.
6850         * modules/strerror (configure.ac): Add witness.
6851         * tests/test-strerror_r.c (main): Enhance test.
6852         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6853         * tests/test-perror2.c (main): Free memory before exit.
6854
6855 2011-05-21  Bruno Haible  <bruno@clisp.org>
6856
6857         mkdtemp: Use gnulib naming conventions.
6858         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6859         * modules/mkdtemp (configure.ac): Update.
6860
6861 2011-05-20  Eric Blake  <eblake@redhat.com>
6862
6863         strerror_r: avoid corrupting errno on Solaris
6864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6865         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6866
6867         strerror_r: avoid compiler warning
6868         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6869
6870         strerror_r: simplify AIX code
6871         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6872
6873         test-perror: avoid spurious failure on FreeBSD
6874         * modules/perror-tests (Depends-on): Add strerror, now that
6875         strerror_r no longer pulls it in.
6876
6877 2011-05-20  Bruno Haible  <bruno@clisp.org>
6878
6879         strerror_r-posix: Remove unused dependencies.
6880         * modules/strerror_r-posix (Depends-on): Remove strerror.
6881         Reported by Eric Blake.
6882
6883 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6884
6885         intprops: remove assumption about A|B representation
6886         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6887         is a valid integer if both A and B are.  Although this is true for
6888         all known practical hosts, the C standard doesn't guarantee it,
6889         and the code need not assume it.  Also, this change may work around
6890         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6892
6893 2011-05-20  Eric Blake  <eblake@redhat.com>
6894
6895         perror: work around FreeBSD bug
6896         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6897         is broken.  Move AC_LIBOBJ...
6898         * modules/perror (configure.ac): Here.
6899         * doc/posix-functions/perror.texi (perror): Document this.
6900         * tests/test-perror2.c (main): Enhance test.
6901
6902         test-perror: check for strerror interactions
6903         * tests/macros.h (STREQ): Add macro.
6904         * modules/perror-tests (Files): Add second test.
6905         * tests/test-perror2.c (main): New file.
6906         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6907
6908         test-perror: rewrite to use init script
6909         * modules/perror-tests (Files): Add init.sh.
6910         * tests/test-perror.sh: Use temporary directory.
6911
6912 2011-05-20  Jim Meyering  <meyering@redhat.com>
6913
6914         maint: replace misused "a" with "an"
6915         * doc/intprops.texi: "a integer"
6916         * doc/regex.texi: "a explanation"
6917         * lib/alignof.h: "a object"
6918         * lib/argmatch.h: "a explanation"
6919         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6920         * lib/stdint.in.h: "a integer"
6921         * lib/userspec.c: "a owner"
6922         * doc/gnulib.texi: Fix "a idea", and reword.
6923
6924 2011-05-19  Jim Meyering  <meyering@redhat.com>
6925
6926         maint: correct misuse of "a" and "an"
6927         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6928         * lib/argp-help.c: "an docum...": s/an/a/
6929         * lib/argp-parse.c: "An vector": s/An/A/
6930         * lib/execute.c: "an native": s/an/a/
6931         * lib/spawn-pipe.c: Likewise.
6932         * lib/gc.h: "an Gc_rc": s/an/a/
6933         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6934         * lib/fts.c: "an stat.st_dev": s/an/a/
6935
6936 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6937
6938         intprops-tests: work around HP-UX 11.23 cc bug with constants
6939         * tests/test-intprops.c (VERIFY): New macro.
6940         (main): Use it, instead of verify, to work around the compiler bug; see
6941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6942
6943         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6944         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6945         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6946         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6947         (_GL_REMAINDER_OVERFLOW): Use it.
6948
6949         intprops-tests: revert unsigned part of previous change
6950         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6951         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6952         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6954
6955 2011-05-19  Bruno Haible  <bruno@clisp.org>
6956
6957         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6958         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6959         strerror_r() returned without filling the buffer.
6960         Reported by Eric Blake.
6961
6962 2011-05-19  Eric Blake  <eblake@redhat.com>
6963
6964         strerror_r: guarantee unchanged errno
6965         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6966         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6967         failure.
6968         * tests/test-strerror_r.c (main): Enhance test.
6969
6970 2011-05-19  Bruno Haible  <bruno@clisp.org>
6971
6972         strerror_r: Reorder #if blocks.
6973         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6974         for consistency with the previous commit.
6975
6976 2011-05-19  Bruno Haible  <bruno@clisp.org>
6977
6978         perror: Avoid clobbering the strerror buffer when possible.
6979         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6980         * lib/strerror.c: Include it.
6981         * modules/strerror (Files): Add lib/strerror-impl.h.
6982         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6983         (my_strerror): New function, defined through lib/strerror-impl.h.
6984         (perror): Use it instead of strerror.
6985         * modules/perror (Files): Add lib/strerror-impl.h.
6986         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6987
6988 2011-05-19  Eric Blake  <eblake@redhat.com>
6989
6990         strerror_r: fix on newer cygwin
6991         * lib/strerror_r.c (strerror_r): Cygwin now has
6992         __xpg_strerror_r, use it.
6993
6994 2011-05-19  Bruno Haible  <bruno@clisp.org>
6995
6996         strerror_r: Avoid clobbering the strerror buffer when possible.
6997         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6998         (sys_nerr, sys_errlist): New declarations.
6999         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7000         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7001         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7002
7003 2011-05-19  Bruno Haible  <bruno@clisp.org>
7004
7005         strerror_r: Fix test failure on mingw.
7006         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7007         EXTEND_STRERROR_R.
7008         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7009         macros from errno.in.h instead.
7010
7011 2011-05-19  Eric Blake  <eblake@redhat.com>
7012
7013         strerror: relax test for Solaris
7014         * tests/test-strerror.c (main): Permit Solaris behavior.
7015         * tests/test-strerror_r.c (main): Likewise.
7016
7017         strerror: enforce POSIX ruling on strerror(0)
7018         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7020         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7021         * doc/posix-functions/strerror.texi (strerror): Document it.
7022         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7023         * tests/test-strerror.c (main): Strengthen test.
7024         * tests/test-strerror_r.c (main): Likewise.
7025
7026 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7027
7028         intprop-tests: port to older and more-pedantic compilers
7029         * modules/intprops-tests (Files): Add tests/macros.h.
7030         * tests/test-intprops.c: Include macros.h.
7031         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7032         it's no longer documented to expand to an integer constant expression.
7033         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7034         argument is floating point, as it's no longer documented to expand
7035         to an integer constant expression in that case.
7036         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7037         compiler bugs reported by Bruno Haible.  See
7038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7039         (U0, U1): New constants, to work around the same bugs.  Also,
7040         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7041
7042         intprops: work around C compiler bugs
7043         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7044         bug in Sun C 5.11 2010/08/13 and other compilers; see
7045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7046
7047         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7048         * doc/intprops.texi (Integer Type Determination): Fix
7049         documentation for TYPE_IS_INTEGER: it returns an constant
7050         expression, not an integer constant expression.  Fix doc for
7051         TYPE_SIGNED: it returns an integer constant expression only if its
7052         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7053         hardly worth documented that way....)
7054
7055 2011-05-18  Bruno Haible  <bruno@clisp.org>
7056
7057         strerror_r: Avoid clobbering the strerror buffer when possible.
7058         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7059         Handle gnulib defined errno values here. When strerror() returns NULL
7060         or an empty string, return EINVAL.
7061         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7062         gnulib defined errno values here.
7063         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7064
7065 2011-05-18  Eric Blake  <eblake@redhat.com>
7066
7067         fnmatch: avoid compiler warning
7068         * lib/fnmatch_loop.c (FCT): Use correct type.
7069         Reported by Matthias Bolte.
7070
7071 2011-05-13  Jim Meyering  <meyering@redhat.com>
7072
7073         maint.mk: three new prohibit_<HDR>_without_use rules
7074         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7075         (sc_prohibit_stdio-safer_without_use): Likewise.
7076         (sc_prohibit_xfreopen_without_use): Likewise.
7077
7078 2011-05-17  Jim Meyering  <meyering@redhat.com>
7079
7080         announce-gen: fail if the NEWS delta is empty
7081         If there's nothing noteworthy in NEWS, then either you forgot
7082         or you shouldn't be releasing.
7083         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7084
7085 2011-05-17  Pádraig Brady <P@draigBrady.com>
7086
7087         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7088         reserved symbols starting with double underscore from the check.
7089
7090 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7091
7092         intprops: add doc
7093         * doc/intprops.texi: New file, documenting intprops.
7094         * doc/gnulib.texi (Particular Modules): Include it.
7095
7096         verify: add doc to gnulib manual and fix example
7097         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7098         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7099         (Compile-time Assertions): Fix example so it can't overflow.
7100
7101 2011-05-17  Jim Meyering  <meyering@redhat.com>
7102
7103         warnings.m4: don't usurp save_CPPFLAGS variable name
7104         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7105
7106         doc: fix typo
7107         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7108
7109 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7110             Bruno Haible  <bruno@clisp.org>
7111
7112         doc: Tweak recent change.
7113         * README (Portability guidelines): Tweak new text.
7114         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7115         Interix 6.1.
7116
7117 2011-05-16  Eric Blake  <eblake@redhat.com>
7118
7119         inttypes: avoid autoconf warning
7120         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7121         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7122
7123 2011-05-16  Sam Steingold <sds@gnu.org>
7124         and Eric Blake  <eblake@redhat.com>
7125
7126         vc-list-files: accept multiple directory operands
7127         * build-aux/vc-list-files: Iterate over all remaining operands.
7128
7129 2011-05-16  Bruno Haible  <bruno@clisp.org>
7130
7131         Fix confusion regarding deprecated modules.
7132         * modules/calloc (Status, Notice): Mark module as deprecated, not
7133         obsolete.
7134         * modules/fnmatch-posix (Status, Notice): Likewise.
7135         * modules/getdate (Status, Notice): Likewise.
7136         * modules/getopt (Status, Notice): Likewise.
7137         * modules/malloc (Status, Notice): Likewise.
7138         * modules/pipe (Status, Notice): Likewise.
7139         * modules/realloc (Status, Notice): Likewise.
7140         * modules/rename-dest-slash (Status, Notice): Likewise.
7141         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7142         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7143         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7144         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7145         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7146
7147 2011-05-16  Bruno Haible  <bruno@clisp.org>
7148
7149         doc: List the target platforms.
7150         * doc/gnulib-intro.texi (Target Platforms): New section.
7151         * doc/gnulib.texi (Introduction): Update menu.
7152         * README (Portability guidelines): Refer to the new section. Update
7153         statement about oldest supported environment. Remove rationale why
7154         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7155         unportable C89 function.
7156         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7157         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7158
7159 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7160
7161         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7162
7163 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7164
7165         intprops-tests: new module
7166         * modules/intprops-tests, tests/test-intprops.c: New files.
7167
7168         intprops: add safe, portable integer overflow checking
7169         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7170         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7171         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7172         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7173         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7174         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7175         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7176         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7177         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7178         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7179         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7180
7181 2011-05-12  James Youngman  <jay@gnu.org>
7182
7183         Add a test for glibc's Bugzilla bug #12378.
7184         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7185         doesn't allow the literal matching of a lone "[" (which is
7186         required by POSIX).
7187         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7188
7189 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7190
7191         Sync glibc change fixing Bugzilla bug #12378.
7192         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7193         beginning and fall back to matching as normal character if the
7194         string ends before the matching ']' is found.  This is what POSIX
7195         requires.
7196
7197 2011-05-13  Eric Blake  <eblake@redhat.com>
7198
7199         getcwd-lgpl: relax test for FreeBSD
7200         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7201         issue.
7202         * tests/test-getcwd-lgpl.c (main): Relax test.
7203         Reported by Matthias Bolte.
7204
7205 2011-05-11  Eric Blake  <eblake@redhat.com>
7206
7207         test-fflush: silence compiler warning
7208         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7209
7210 2011-05-11  Bruno Haible  <bruno@clisp.org>
7211
7212         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7213         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7214         * modules/canonicalize (Depends-on): Add 'nocrash'.
7215         * modules/canonicalize-lgpl (Depends-on): Likewise.
7216         * doc/posix-functions/realpath.texi: Update platforms list.
7217         Reported by Ryan Schmidt <ryandesign@macports.org>.
7218
7219 2011-05-11  Bruno Haible  <bruno@clisp.org>
7220
7221         group-member: Declare function in <unistd.h>.
7222         * lib/unistd.in.h (group_member): New declaration.
7223         * lib/group-member.h: Remove file.
7224         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7225         * tests/test-unistd-c++.cc: Check signature of group_member.
7226         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7227         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7228         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7229         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7230         HAVE_GROUP_MEMBER.
7231         * modules/group-member (Files): Remove lib/group-member.h.
7232         (Depends-on): Add unistd. Specify conditions.
7233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7234         (Include): Change to <unistd.h>.
7235         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7236         HAVE_GROUP_MEMBER.
7237         * NEWS: Mention the change.
7238         * lib/euidaccess.c: Don't include group-member.h.
7239
7240 2011-05-11  Bruno Haible  <bruno@clisp.org>
7241
7242         group-member: Document module.
7243         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7244         module.
7245
7246 2011-05-11  Bruno Haible  <bruno@clisp.org>
7247
7248         fclose: Fix mistake earlier today.
7249         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7250
7251 2011-05-11  Eric Blake  <eblake@redhat.com>
7252
7253         fclose: preserve fflush errors
7254         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7255         Reported by Jim Meyering.
7256
7257         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7258         * build-aux/bootstrap (check_versions): When no specific version
7259         is required, merely check that the app produces an exit status
7260         that indicates its existence.
7261
7262         maint.mk: drop redundant check
7263         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7264         the same but better.
7265
7266 2011-05-11  Bruno Haible  <bruno@clisp.org>
7267
7268         fclose: Fix possible link error.
7269         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7270         unregister_shadow_fd. Improve comments.
7271         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7272         Eric Blake.
7273
7274 2011-05-11  Jim Meyering  <meyering@redhat.com>
7275
7276         maint.mk: improve "can not" detection and generalize rule name
7277         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7278         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7279         Use the same technique as in sc_prohibit_doubled_word, so that
7280         we recognize "can not" also when the words are separated by a newline.
7281         Suggested by Eric Blake.
7282         (perl_filename_lineno_text_): Define.  Factored out of...
7283         (prohibit_doubled_word_): ...here.  Use the new definition.
7284         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7285         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7286         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7287
7288 2011-05-10  Eric Blake  <eblake@redhat.com>
7289
7290         fclose: avoid double close race when possible
7291         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7292         all but WINDOWS_SOCKETS.
7293
7294 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7295
7296         openat: correct new comment
7297         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7298
7299 2011-05-10  Jim Meyering  <meyering@redhat.com>
7300
7301         openat: add comments
7302         * lib/openat-proc.c (openat_proc_name): Add comments,
7303         mostly from Eric Blake.
7304
7305 2011-05-09  Eric Blake  <eblake@redhat.com>
7306
7307         openat: reduce syscalls in first probe of /proc
7308         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7309         be a directory.  Simplify the probe for .. bugs.
7310         * modules/openat (Depends-on): Drop same-inode.
7311         Reported by Bastien ROUCARIES.
7312
7313 2011-05-09  Jim Meyering  <meyering@redhat.com>
7314
7315         maint.mk: change semantics/name of tight_scope variables
7316         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7317         Rename variables to align with semantics that make them more useful.
7318
7319         maint.mk: tweak new rule's name not to impinge
7320         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7321         (sc_tight_scope): Use new rule name rather than $@-0.
7322
7323         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7324         * top/maint.mk (sc_tight_scope): New rule.
7325         (sc_tight_scope-0): New rule, ifdef'd out.
7326         (_gl_TS_dir): Default.
7327         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7328         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7329
7330 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7331
7332         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7333         Haible <bruno@clisp.org>.
7334
7335 2011-05-08  Bruno Haible  <bruno@clisp.org>
7336
7337         Comments.
7338         * m4/isnanf.m4: Add comment.
7339         * m4/isnanl.m4: Likewise.
7340
7341 2011-05-08  Bruno Haible  <bruno@clisp.org>
7342
7343         glob: Remove obsolete macro.
7344         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7345
7346 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7347
7348         intprops: Sun C 5.11 supports __typeof__
7349         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7350         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7351         which is new.
7352         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7353
7354         intprops: switch to usual gnulib indenting and naming
7355         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7356         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7357
7358         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7359
7360 2011-05-08  Jim Meyering  <meyering@redhat.com>
7361
7362         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7363         * top/maint.mk (release-prep): Use make's --no-print-directory
7364         option when generating the announcement.  This eliminates the
7365         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7366         generated announcement template.
7367
7368 2011-05-08  Bruno Haible  <bruno@clisp.org>
7369
7370         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7371         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7372         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7373
7374 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7375
7376         ignore-value, verify: Omit include files from lib_SOURCES.
7377         * modules/ignore-value, modules/verify (Makefile.am):
7378         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7379         that leads Automake to duplicate use of am__objects_... variables
7380         in Makefile.in.  See
7381         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7382
7383 2011-05-07  Bruno Haible  <bruno@clisp.org>
7384
7385         fclose: Simplify autoconf macro.
7386         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7387         defined.
7388
7389 2011-05-07  Bruno Haible  <bruno@clisp.org>
7390
7391         canonicalize-lgpl: Fix autoconf macro ordering bug.
7392         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7393         gl_STDLIB_H_DEFAULTS.
7394
7395 2011-05-06  Eric Blake  <eblake@redhat.com>
7396
7397         maintainer-makefile: make sc_po_check easier to tune
7398         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7399         to probe for strings, such as an alternate location for gnulib.
7400
7401         fclose: guarantee behavior on seekable stdin
7402         * modules/fclose (Depends-on): Add fflush.
7403         * doc/posix-functions/fclose.texi (fclose): Document this.
7404         * tests/test-fclose.c (main): Make test for this unconditional.
7405
7406 2011-05-06  Bruno Haible  <bruno@clisp.org>
7407
7408         fflush, fpurge: Relicense under LGPLv2+.
7409         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7410         * modules/fpurge (License): Likewise.
7411         With permission from Eric Blake and Jim Meyering.
7412         Suggested by Eric Blake.
7413
7414 2011-05-06  Karl Berry  <karl@gnu.org>
7415
7416         * MODULES.html.sh (func_all_modules): remove exit.
7417
7418 2011-05-06  Jim Meyering  <meyering@redhat.com>
7419
7420         maint.mk: use info-gnu@ as the default only for a stable release
7421         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7422         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7423         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7425
7426 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7427
7428         assert-h: new module, which supports C1X-style static_assert
7429         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7430         * lib/verify.h: Revamp so that this can be copied into assert.h,
7431         while retaining the ability to use it standalone as before.
7432         Rename private identifiers so as not to encroach on the
7433         standard C namespace, since this is now used by assert.h.
7434         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7435         the old verify_true.
7436         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7437         the old verify_true.  Use _GL_VERIFY_TYPE.
7438         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7439         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7440         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7441         defined when this file is copied into the replacement assert.h.
7442         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7443         and _Static_assert is not built in.
7444         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7445         defined, and use the new macros mentioned above.
7446         * doc/posix-headers/assert.texi: Document this.
7447
7448 2011-05-05  Bruno Haible  <bruno@clisp.org>
7449
7450         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7452         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7453         gl_REPLACE_FCLOSE here.
7454         * modules/fflush (Depends-on): Remove fclose.
7455         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7456         combination with module 'fclose'.
7457
7458 2011-05-05  Bruno Haible  <bruno@clisp.org>
7459
7460         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7461         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7462         gl_FUNC_FFLUSH.
7463         (gl_FUNC_FFLUSH): Use it.
7464         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7466         gl_REPLACE_FSEEKO here.
7467
7468 2011-05-05  Bruno Haible  <bruno@clisp.org>
7469
7470         tzset: Relicense under LGPL.
7471         * modules/tzset (License): Change to LGPL.
7472         No agreement needed; it's a no-op.
7473
7474         strtoimax, strtoumax: Relicense under LGPL.
7475         * modules/strtoimax (License): Change to LGPL.
7476         * modules/strtoumax (License): Likewise.
7477         With permission from Jim Meyering, Paul Eggert:
7478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7480
7481         getgroups: Relicense under LGPL.
7482         * modules/getgroups (License): Change to LGPL.
7483         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7487
7488         nanosleep: Relicense under LGPL.
7489         * modules/nanosleep (License): Change to LGPL.
7490         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7491         Haible:
7492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7496
7497         futimens: Relicense under LGPL.
7498         * modules/futimens (License): Change to LGPL.
7499         With permission from Eric Blake:
7500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7501
7502         fflush: Relicense under LGPL.
7503         * modules/fflush (License): Change to LGPL.
7504         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7508
7509         tmpfile: Relicense under LGPL.
7510         * modules/tmpfile (License): Change to LGPL.
7511         With permission from Ben Pfaff:
7512         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7513
7514         isfinite: Relicense under LGPL.
7515         * modules/isfinite (License): Change to LGPL.
7516         With permission from Ben Pfaff, Bruno Haible:
7517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7519
7520         acosl..tanl: Relicense under LGPL.
7521         * modules/acosl (License): Change to LGPL.
7522         * modules/asinl (License): Likewise.
7523         * modules/atanl (License): Likewise.
7524         * modules/cosl (License): Likewise.
7525         * modules/expl (License): Likewise.
7526         * modules/logl (License): Likewise.
7527         * modules/sinl (License): Likewise.
7528         * modules/sqrtl (License): Likewise.
7529         * modules/tanl (License): Likewise.
7530         Source code originally from glibc and Paolo Bonzini. Agreements:
7531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7533
7534 2011-05-05  Bruno Haible  <bruno@clisp.org>
7535
7536         signal: Define sighandler_t.
7537         * lib/signal.in.h (sighandler_t): New type.
7538         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7539         whether sighandler_t is defined.
7540         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7541         * modules/signal (Depends-on): Add extensions.
7542         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7543         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7544         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7545
7546 2011-05-05  Eric Blake  <eblake@redhat.com>
7547
7548         maint: remove useless REPLACE_*_H macros
7549         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7550         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7552         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7553         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7554         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7555         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7556         * m4/btowc.m4: Update callers.
7557         * m4/dirfd.m4: Likewise.
7558         * m4/duplocale.m4: Likewise.
7559         * m4/fchdir.m4: Likewise.
7560         * m4/fdopendir.m4: Likewise.
7561         * m4/inet_ntop.m4: Likewise.
7562         * m4/inet_pton.m4: Likewise.
7563         * m4/ioctl.m4: Likewise.
7564         * m4/mbrlen.m4: Likewise.
7565         * m4/mbrtowc.m4: Likewise.
7566         * m4/mbsinit.m4: Likewise.
7567         * m4/mbsnrtowcs.m4: Likewise.
7568         * m4/mbsrtowcs.m4: Likewise.
7569         * m4/poll.m4: Likewise.
7570         * m4/setlocale.m4: Likewise.
7571         * m4/wcrtomb.m4: Likewise.
7572         * m4/wcsnrtombs.m4: Likewise.
7573         * m4/wcsrtombs.m4: Likewise.
7574         * m4/wctob.m4: Likewise.
7575         * m4/wcwidth.m4: Likewise.
7576         * modules/posix_spawn: Likewise.
7577         * modules/posix_spawn_file_actions_addclose: Likewise.
7578         * modules/posix_spawn_file_actions_adddup2: Likewise.
7579         * modules/posix_spawn_file_actions_addopen: Likewise.
7580         * modules/posix_spawn_file_actions_destroy: Likewise.
7581         * modules/posix_spawn_file_actions_init: Likewise.
7582         * modules/posix_spawnattr_destroy: Likewise.
7583         * modules/posix_spawnattr_getflags: Likewise.
7584         * modules/posix_spawnattr_getpgroup: Likewise.
7585         * modules/posix_spawnattr_getschedparam: Likewise.
7586         * modules/posix_spawnattr_getschedpolicy: Likewise.
7587         * modules/posix_spawnattr_getsigdefault: Likewise.
7588         * modules/posix_spawnattr_getsigmask: Likewise.
7589         * modules/posix_spawnattr_init: Likewise.
7590         * modules/posix_spawnattr_setflags: Likewise.
7591         * modules/posix_spawnattr_setpgroup: Likewise.
7592         * modules/posix_spawnattr_setschedparam: Likewise.
7593         * modules/posix_spawnattr_setschedpolicy: Likewise.
7594         * modules/posix_spawnattr_setsigdefault: Likewise.
7595         * modules/posix_spawnattr_setsigmask: Likewise.
7596         * modules/posix_spawnp: Likewise.
7597
7598 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7599
7600         Add option to do-release-commit-and-tag to specify branch.
7601         * build-aux/do-release-commit-and-tag: Add --branch.
7602
7603 2011-05-03  Bruno Haible  <bruno@clisp.org>
7604
7605         Avoid unnecessary compilation units, through conditional dependencies.
7606         * modules/accept (Depends-on): Add conditions to the dependencies.
7607         * modules/acosl (Depends-on): Likewise.
7608         * modules/argz (Depends-on): Likewise.
7609         * modules/asinl (Depends-on): Likewise.
7610         * modules/atanl (Depends-on): Likewise.
7611         * modules/atoll (Depends-on): Likewise.
7612         * modules/bind (Depends-on): Likewise.
7613         * modules/btowc (Depends-on): Likewise.
7614         * modules/canonicalize-lgpl (Depends-on): Likewise.
7615         * modules/ceil (Depends-on): Likewise.
7616         * modules/ceilf (Depends-on): Likewise.
7617         * modules/ceill (Depends-on): Likewise.
7618         * modules/chdir-long (Depends-on): Likewise.
7619         * modules/chown (Depends-on): Likewise.
7620         * modules/close (Depends-on): Likewise.
7621         * modules/connect (Depends-on): Likewise.
7622         * modules/cosl (Depends-on): Likewise.
7623         * modules/dirfd (Depends-on): Likewise.
7624         * modules/dprintf (Depends-on): Likewise.
7625         * modules/dprintf-posix (Depends-on): Likewise.
7626         * modules/error (Depends-on): Likewise.
7627         * modules/euidaccess (Depends-on): Likewise.
7628         * modules/expl (Depends-on): Likewise.
7629         * modules/faccessat (Depends-on): Likewise.
7630         * modules/fchdir (Depends-on): Likewise.
7631         * modules/fclose (Depends-on): Likewise.
7632         * modules/fcntl (Depends-on): Likewise.
7633         * modules/fdopendir (Depends-on): Likewise.
7634         * modules/fflush (Depends-on): Likewise.
7635         * modules/floor (Depends-on): Likewise.
7636         * modules/floorf (Depends-on): Likewise.
7637         * modules/floorl (Depends-on): Likewise.
7638         * modules/fnmatch (Depends-on): Likewise.
7639         * modules/fopen (Depends-on): Likewise.
7640         * modules/fprintf-posix (Depends-on): Likewise.
7641         * modules/frexp (Depends-on): Likewise.
7642         * modules/frexp-nolibm (Depends-on): Likewise.
7643         * modules/frexpl (Depends-on): Likewise.
7644         * modules/frexpl-nolibm (Depends-on): Likewise.
7645         * modules/fseek (Depends-on): Likewise.
7646         * modules/fsusage (Depends-on): Likewise.
7647         * modules/ftell (Depends-on): Likewise.
7648         * modules/ftello (Depends-on): Likewise.
7649         * modules/futimens (Depends-on): Likewise.
7650         * modules/getcwd (Depends-on): Likewise.
7651         * modules/getcwd-lgpl (Depends-on): Likewise.
7652         * modules/getdelim (Depends-on): Likewise.
7653         * modules/getdomainname (Depends-on): Likewise.
7654         * modules/getgroups (Depends-on): Likewise.
7655         * modules/gethostname (Depends-on): Likewise.
7656         * modules/getline (Depends-on): Likewise.
7657         * modules/getlogin_r (Depends-on): Likewise.
7658         * modules/getopt-posix (Depends-on): Likewise.
7659         * modules/getpeername (Depends-on): Likewise.
7660         * modules/getsockname (Depends-on): Likewise.
7661         * modules/getsockopt (Depends-on): Likewise.
7662         * modules/getsubopt (Depends-on): Likewise.
7663         * modules/getusershell (Depends-on): Likewise.
7664         * modules/glob (Depends-on): Likewise.
7665         * modules/grantpt (Depends-on): Likewise.
7666         * modules/iconv_open (Depends-on): Likewise.
7667         * modules/iconv_open-utf (Depends-on): Likewise.
7668         * modules/inet_ntop (Depends-on): Likewise.
7669         * modules/inet_pton (Depends-on): Likewise.
7670         * modules/ioctl (Depends-on): Likewise.
7671         * modules/isapipe (Depends-on): Likewise.
7672         * modules/isfinite (Depends-on): Likewise.
7673         * modules/isinf (Depends-on): Likewise.
7674         * modules/lchown (Depends-on): Likewise.
7675         * modules/ldexpl (Depends-on): Likewise.
7676         * modules/link (Depends-on): Likewise.
7677         * modules/linkat (Depends-on): Likewise.
7678         * modules/listen (Depends-on): Likewise.
7679         * modules/logl (Depends-on): Likewise.
7680         * modules/lstat (Depends-on): Likewise.
7681         * modules/mbrlen (Depends-on): Likewise.
7682         * modules/mbrtowc (Depends-on): Likewise.
7683         * modules/mbsinit (Depends-on): Likewise.
7684         * modules/mbsnrtowcs (Depends-on): Likewise.
7685         * modules/mbsrtowcs (Depends-on): Likewise.
7686         * modules/mbtowc (Depends-on): Likewise.
7687         * modules/memcmp (Depends-on): Likewise.
7688         * modules/mkdir (Depends-on): Likewise.
7689         * modules/mkdtemp (Depends-on): Likewise.
7690         * modules/mkfifo (Depends-on): Likewise.
7691         * modules/mkfifoat (Depends-on): Likewise.
7692         * modules/mknod (Depends-on): Likewise.
7693         * modules/mkostemp (Depends-on): Likewise.
7694         * modules/mkostemps (Depends-on): Likewise.
7695         * modules/mkstemp (Depends-on): Likewise.
7696         * modules/mkstemps (Depends-on): Likewise.
7697         * modules/mktime (Depends-on): Likewise.
7698         * modules/nanosleep (Depends-on): Likewise.
7699         * modules/open (Depends-on): Likewise.
7700         * modules/openat (Depends-on): Likewise.
7701         * modules/perror (Depends-on): Likewise.
7702         * modules/poll (Depends-on): Likewise.
7703         * modules/popen (Depends-on): Likewise.
7704         * modules/posix_spawn (Depends-on): Likewise.
7705         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7706         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7707         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7708         * modules/posix_spawnp (Depends-on): Likewise.
7709         * modules/pread (Depends-on): Likewise.
7710         * modules/printf-posix (Depends-on): Likewise.
7711         * modules/ptsname (Depends-on): Likewise.
7712         * modules/putenv (Depends-on): Likewise.
7713         * modules/pwrite (Depends-on): Likewise.
7714         * modules/readline (Depends-on): Likewise.
7715         * modules/readlink (Depends-on): Likewise.
7716         * modules/readlinkat (Depends-on): Likewise.
7717         * modules/recv (Depends-on): Likewise.
7718         * modules/recvfrom (Depends-on): Likewise.
7719         * modules/regex (Depends-on): Likewise.
7720         * modules/remove (Depends-on): Likewise.
7721         * modules/rename (Depends-on): Likewise.
7722         * modules/renameat (Depends-on): Likewise.
7723         * modules/rmdir (Depends-on): Likewise.
7724         * modules/round (Depends-on): Likewise.
7725         * modules/roundf (Depends-on): Likewise.
7726         * modules/roundl (Depends-on): Likewise.
7727         * modules/rpmatch (Depends-on): Likewise.
7728         * modules/select (Depends-on): Likewise.
7729         * modules/send (Depends-on): Likewise.
7730         * modules/sendto (Depends-on): Likewise.
7731         * modules/setenv (Depends-on): Likewise.
7732         * modules/setlocale (Depends-on): Likewise.
7733         * modules/setsockopt (Depends-on): Likewise.
7734         * modules/shutdown (Depends-on): Likewise.
7735         * modules/sigaction (Depends-on): Likewise.
7736         * modules/signbit (Depends-on): Likewise.
7737         * modules/sigprocmask (Depends-on): Likewise.
7738         * modules/sinl (Depends-on): Likewise.
7739         * modules/sleep (Depends-on): Likewise.
7740         * modules/snprintf (Depends-on): Likewise.
7741         * modules/snprintf-posix (Depends-on): Likewise.
7742         * modules/socket (Depends-on): Likewise.
7743         * modules/sprintf-posix (Depends-on): Likewise.
7744         * modules/sqrtl (Depends-on): Likewise.
7745         * modules/stat (Depends-on): Likewise.
7746         * modules/strchrnul (Depends-on): Likewise.
7747         * modules/strdup-posix (Depends-on): Likewise.
7748         * modules/strerror (Depends-on): Likewise.
7749         * modules/strerror_r-posix (Depends-on): Likewise.
7750         * modules/strndup (Depends-on): Likewise.
7751         * modules/strnlen (Depends-on): Likewise.
7752         * modules/strptime (Depends-on): Likewise.
7753         * modules/strsep (Depends-on): Likewise.
7754         * modules/strsignal (Depends-on): Likewise.
7755         * modules/strstr-simple (Depends-on): Likewise.
7756         * modules/strtod (Depends-on): Likewise.
7757         * modules/strtoimax (Depends-on): Likewise.
7758         * modules/strtok_r (Depends-on): Likewise.
7759         * modules/strtoumax (Depends-on): Likewise.
7760         * modules/symlink (Depends-on): Likewise.
7761         * modules/symlinkat (Depends-on): Likewise.
7762         * modules/tanl (Depends-on): Likewise.
7763         * modules/tcgetsid (Depends-on): Likewise.
7764         * modules/tmpfile (Depends-on): Likewise.
7765         * modules/trunc (Depends-on): Likewise.
7766         * modules/truncf (Depends-on): Likewise.
7767         * modules/truncl (Depends-on): Likewise.
7768         * modules/uname (Depends-on): Likewise.
7769         * modules/unlink (Depends-on): Likewise.
7770         * modules/unlockpt (Depends-on): Likewise.
7771         * modules/unsetenv (Depends-on): Likewise.
7772         * modules/usleep (Depends-on): Likewise.
7773         * modules/utimensat (Depends-on): Likewise.
7774         * modules/vasprintf (Depends-on): Likewise.
7775         * modules/vdprintf (Depends-on): Likewise.
7776         * modules/vdprintf-posix (Depends-on): Likewise.
7777         * modules/vfprintf-posix (Depends-on): Likewise.
7778         * modules/vprintf-posix (Depends-on): Likewise.
7779         * modules/vsnprintf (Depends-on): Likewise.
7780         * modules/vsnprintf-posix (Depends-on): Likewise.
7781         * modules/vsprintf-posix (Depends-on): Likewise.
7782         * modules/wcrtomb (Depends-on): Likewise.
7783         * modules/wcscasecmp (Depends-on): Likewise.
7784         * modules/wcscspn (Depends-on): Likewise.
7785         * modules/wcsdup (Depends-on): Likewise.
7786         * modules/wcsncasecmp (Depends-on): Likewise.
7787         * modules/wcsnrtombs (Depends-on): Likewise.
7788         * modules/wcspbrk (Depends-on): Likewise.
7789         * modules/wcsrtombs (Depends-on): Likewise.
7790         * modules/wcsspn (Depends-on): Likewise.
7791         * modules/wcsstr (Depends-on): Likewise.
7792         * modules/wcstok (Depends-on): Likewise.
7793         * modules/wcswidth (Depends-on): Likewise.
7794         * modules/wctob (Depends-on): Likewise.
7795         * modules/wctomb (Depends-on): Likewise.
7796         * modules/wctype (Depends-on): Likewise.
7797         * modules/wcwidth (Depends-on): Likewise.
7798         * modules/write (Depends-on): Likewise.
7799
7800 2011-05-03  Bruno Haible  <bruno@clisp.org>
7801
7802         Support for conditional dependencies.
7803         * doc/gnulib.texi (Module description): Document the syntax of
7804         conditional dependencies.
7805         * gnulib-tool: New option --conditional-dependencies.
7806         (func_usage): Document it.
7807         (cond_dependencies): New variable.
7808         (func_get_automake_snippet_conditional,
7809         func_get_automake_snippet_unconditional): New functions, extracted from
7810         func_get_automake_snippet.
7811         (func_get_automake_snippet): Use them.
7812         (sed_first_32_chars): New variable.
7813         (func_module_shellfunc_name): New function.
7814         (func_module_shellvar_name): New function.
7815         (func_module_conditional_name): New function.
7816         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7817         func_cond_module_condition): New functions.
7818         (func_modules_transitive_closure): Add support for conditional
7819         dependencies.
7820         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7821         conditional automake snippet in an automake conditional.
7822         (func_emit_autoconf_snippets): Emit shell functions that contain the
7823         code for conditional modules.
7824         (func_import, func_create_testdir): Update specification.
7825
7826 2011-05-03  Eric Blake  <eblake@redhat.com>
7827
7828         test-getaddrinfo: report error information
7829         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7830
7831 2011-05-03  Jim Meyering  <meyering@redhat.com>
7832
7833         bootstrap: avoid build failure when $GZIP is set
7834         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7835         program name.  If defined at all, it is supposed to list gzip options.
7836         Reported by Alan Curry in http://debbugs.gnu.org/8609
7837
7838 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7839
7840         readme-release: new module with release instructions
7841         * modules/readme-release: New module.
7842         * top/README-release: New file, from coreutils, grep, diffutils.
7843         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7844
7845 2011-05-02  Eric Blake  <eblake@redhat.com>
7846
7847         fflush: also replace fclose when fixing fflush
7848         * modules/fflush (Depends-on): Add fclose.
7849         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7850         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7851         memstreams with no backing fd.
7852         * doc/posix-functions/fclose.texi (fclose): Document the use of
7853         fflush module to fix the bug.
7854         * tests/test-fclose.c (main): Relax test when fclose is used in
7855         isolation.
7856
7857         fclose: add some tests
7858         * modules/fclose-tests: New test module.
7859         * tests/test-fclose.c: New file.
7860         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7861
7862         fclose: reduced dependencies
7863         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7864         simpler lseek.
7865         * lib/fclose.c (rpl_fclose): Likewise.
7866         Reported by Simon Josefsson.
7867
7868         exit: drop remaining clients
7869         * modules/argmatch (Depends-on): Replace exit with stdlib.
7870         * modules/copy-file (Depends-on): Likewise.
7871         * modules/execute (Depends-on): Likewise.
7872         * modules/exitfail (Depends-on): Likewise.
7873         * modules/obstack (Depends-on): Likewise.
7874         * modules/pagealign_alloc (Depends-on): Likewise.
7875         * modules/pipe-filter-gi (Depends-on): Likewise.
7876         * modules/pipe-filter-ii (Depends-on): Likewise.
7877         * modules/savewd (Depends-on): Likewise.
7878         * modules/spawn-pipe (Depends-on): Likewise.
7879         * modules/wait-process (Depends-on): Likewise.
7880         * modules/xsetenv (Depends-on): Likewise.
7881         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7882         * modules/git-merge-changelog (Depends-on): Likewise.
7883         * modules/long-options (Depends-on): Likewise.
7884         * modules/pt_chown (Depends-on): Likewise.
7885         * modules/sysexits (Depends-on): Likewise.
7886
7887         freading: relax license from LGPLv3+ to LGPLv2+
7888         * modules/freading (License): Relax LGPL version.
7889
7890 2011-05-02  Bruno Haible  <bruno@clisp.org>
7891
7892         fchdir: Remove unused dependencies.
7893         * modules/fchdir (Depends-on): Remove include_next.
7894
7895 2011-05-02  Bruno Haible  <bruno@clisp.org>
7896
7897         gnulib-tool: Refactor.
7898         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7899         from func_emit_autoconf_snippets.
7900         (func_emit_autoconf_snippets): Use it.
7901
7902 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7903
7904         * NEWS: Document removal of 'exit'.
7905         * modules/exit: Remove file.
7906
7907 2011-05-01  Bruno Haible  <bruno@clisp.org>
7908
7909         Update DEPENDENCIES.
7910         * DEPENDENCIES (gettext): Recommend the newest release.
7911         Reported by Simon Josefsson.
7912
7913 2011-05-01  Bruno Haible  <bruno@clisp.org>
7914
7915         gnulib-tool: Reduce code duplication.
7916         * gnulib-tool (func_emit_autoconf_snippets): New function.
7917         (func_import, func_create_testdir): Use it.
7918
7919 2011-04-30  Eric Blake  <eblake@redhat.com>
7920
7921         fclose: don't fail on non-seekable input stream
7922         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7923         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7924         since fflush is allowed to fail in that case.
7925
7926 2011-04-30  Bruno Haible  <bruno@clisp.org>
7927
7928         dup3: cleanup
7929         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7930
7931 2011-04-30  Bruno Haible  <bruno@clisp.org>
7932
7933         netdb: Make it work in C++ mode.
7934         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7935         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7936         module.
7937         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7938         gl_MODULE_INDICATOR_FOR_TESTS.
7939         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7940         * modules/netdb-c++-tests: New file.
7941         * tests/test-netdb-c++.cc: New file.
7942
7943 2011-04-30  Bruno Haible  <bruno@clisp.org>
7944
7945         New modules 'vfscanf', 'vscanf'.
7946         * modules/vfscanf: New file.
7947         * modules/vscanf: New file.
7948         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7949         here.
7950         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7951         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7952
7953 2011-04-30  Bruno Haible  <bruno@clisp.org>
7954
7955         passfd: Add comments.
7956         * lib/passfd.c: Add comments about platforms.
7957
7958 2011-04-30  Bruno Haible  <bruno@clisp.org>
7959
7960         sys_uio: Make <sys/uio.h> self-contained.
7961         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7962         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7963
7964 2011-04-30  Bruno Haible  <bruno@clisp.org>
7965
7966         sys_socket: Ensure 'struct iovec' definition.
7967         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7968         <sys/socket.h>.
7969         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7970
7971 2011-04-30  Bruno Haible  <bruno@clisp.org>
7972
7973         sys_uio: Protect definition of 'struct iovec'.
7974         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7975         it as a C struct.
7976
7977 2011-04-30  Bruno Haible  <bruno@clisp.org>
7978
7979         manywarnings: fix indentation
7980         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7981
7982 2011-04-30  Pádraig Brady <P@draigBrady.com>
7983
7984         manywarnings: add -Wno-missing-field-initializers if needed.
7985         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7986         option if it's needed to allow initialization with { 0, }
7987
7988 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7989
7990         announce-gen: cosmetic improvement
7991         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7992
7993 2011-04-29  Jim Meyering  <meyering@redhat.com>
7994
7995         vc-list-files: indent with spaces, not TABs
7996         * build-aux/vc-list-files: Convert leading TABs to spaces,
7997         to match the style of most other files in gnulib.
7998
7999         announce-gen: indent with spaces, not TABs
8000         * build-aux/announce-gen: Convert all TABs to spaces, to match
8001         the style of most other files in gnulib.
8002
8003 2011-04-29  Eric Blake  <eblake@redhat.com>
8004
8005         quotearg: avoid uninitialized variable use
8006         * lib/quotearg.c (quoting_options_from_style): Initialize
8007         remaining fields, and ensure that custom styles are only used via
8008         quoting_options rather than quoting_style.
8009
8010 2011-04-29  Jim Meyering  <meyering@redhat.com>
8011
8012         maint.mk: remove unused VC-tag variable
8013         * top/maint.mk (VC-tag): Remove unused variable.
8014
8015 2011-04-29  Bruno Haible  <bruno@clisp.org>
8016
8017         netdb: fix gai_strerror replacements
8018         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8019         * modules/netdb: Substitute it.
8020
8021 2011-04-29  Jim Meyering  <meyering@redhat.com>
8022
8023         test-getcwd.c: avoid new set-but-not-used warning
8024         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8025         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8026         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8027         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8028
8029         test-hash.c: avoid a new shadowing warning
8030         * tests/test-hash.c (main): Don't shadow "dup".
8031
8032 2011-04-28  Eric Blake  <eblake@redhat.com>
8033
8034         getaddrinfo: fix gai_strerror signature
8035         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8036         and work around mingw with UNICODE defined.
8037         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8038         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8039         * modules/netdb (Makefile.am): Substitute it.
8040         * lib/netdb.in.h (gai_strerror): Declare replacement.
8041         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8042         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8043         the fix.
8044
8045         getsockopt: avoid compiler warning
8046         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8047         Reported by Matthias Bolte.
8048
8049         tests: drop unused link dependency
8050         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8051         * modules/dirent-safer-tests (Makefile.am): Likewise.
8052         * modules/fdopendir-tests (Makefile.am): Likewise.
8053         * modules/mkfifoat-tests (Makefile.am): Likewise.
8054         * modules/openat-safer-tests (Makefile.am): Likewise.
8055         * modules/openat-tests (Makefile.am): Likewise.
8056         * modules/readlinkat-tests (Makefile.am): Likewise.
8057         * modules/symlinkat-tests (Makefile.am): Likewise.
8058         * modules/linkat-tests (Makefile.am): Likewise.
8059         (Depends-on): Switch to filenamecat-lgpl.
8060         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8061         LIBINTL.
8062         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8063         * tests/test-linkat.c (main): Don't require xalloc.
8064
8065         hash, mgetgroups: drop xalloc dependency
8066         * lib/hash.c (includes): Adjust includes.
8067         * lib/mgetgroups.c (includes): Likewise.
8068         (xgetgroups): Move...
8069         * lib/xgetgroups.c: ...to new file.
8070         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8071         * modules/xgetgroups: New file, split from...
8072         * modules/mgetgroups: ...here.
8073         (Depends-on): Add xalloc-oversized.
8074         * modules/hash (Depends-on): Likewise.
8075         * modules/hash-tests (Depends-on): Drop xalloc.
8076         (test_hash_LDADD): Drop unused library.
8077         * tests/test-hash.c (main): Break xalloc dependency.
8078         (includes): Drop unused include.
8079
8080         xalloc-oversized: new module
8081         * modules/xalloc-oversized: New module.
8082         * modules/xalloc (Depends-on): Add it.
8083         * lib/xalloc.h (xalloc_oversized): Move...
8084         * lib/xalloc-oversized.h: ...into new file.
8085
8086         utimecmp: drop dependency on xmalloc
8087         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8088         due to memory pressure.
8089         * modules/utimecmp (Depends-on): Drop xalloc.
8090
8091 2011-04-27  Eric Blake  <eblake@redhat.com>
8092
8093         getcwd: fix mingw bugs
8094         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8095         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8096         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8097
8098 2011-04-27  Bruno Haible  <bruno@clisp.org>
8099
8100         mkstemps: Ensure declaration on MacOS X 10.5.
8101         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8102         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8103         MacOS X.
8104
8105 2011-04-27  Bruno Haible  <bruno@clisp.org>
8106
8107         mkstemp: More documentation.
8108         * doc/posix-functions/mkstemp.texi: Document header file problem on
8109         MacOS X.
8110
8111 2011-04-27  Bruno Haible  <bruno@clisp.org>
8112
8113         mkstemp: Tweak configure message when cross-compiling.
8114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8115         result as a guess.
8116
8117 2011-04-27  Bruno Haible  <bruno@clisp.org>
8118
8119         clean-temp: Clarify what it does.
8120         * lib/clean-temp.h: Add more comments.
8121         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8122         module.
8123         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8124         * doc/glibc-functions/mkstemps.texi: Likewise.
8125         * doc/glibc-functions/mkostemps.texi: Likewise.
8126
8127 2011-04-27  Eric Blake  <eblake@redhat.com>
8128
8129         fchdir: avoid extra chdir and fix test
8130         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8131         getcwd-lgpl.
8132         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8133         have to be canonical.
8134         (canonicalize_file_name): Drop unused macro.
8135         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8136
8137         filenamecat-lgpl: fix licence
8138         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8139         when it was first created.
8140
8141         linkat, renameat: add missing dependency
8142         * modules/linkat (Depends-on): Require getcwd-lgpl.
8143         * modules/renameat (Depends-on): Likewise.
8144
8145         tests: reduce dependencies
8146         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8147         * tests/test-renameat.c (main): Likewise.
8148         * modules/linkat-tests (Depends-on): Relax dependency.
8149         * modules/renameat-tests (Depends-on): Likewise.
8150         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8151         dependency explicit.
8152
8153         save-cwd: reduce default dependency
8154         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8155         * lib/save-cwd.c: Update comments.
8156         * NEWS: Document the semantic change.
8157
8158         getcwd: enhance tests
8159         * tests/test-getcwd-lgpl.c: New file, taken from...
8160         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8161         repeat long path stress tests from m4 probe.
8162         * modules/getcwd-lgpl-tests: New module.
8163         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8164         * m4/getcwd-abort-bug.m4: Update comment.
8165         * m4/getcwd-path-max.m4: Likewise.
8166
8167         getcwd-lgpl: new module
8168         * modules/getcwd-lgpl: New module.
8169         * lib/getcwd-lgpl.c: New file.
8170         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8171         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8172         * modules/getcwd (configure.ac): Set C witness.
8173         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8174
8175         getcwd: tweak comments
8176         * m4/getcwd-abort-bug.m4: Fix comments.
8177         * m4/getcwd-path-max.m4: Likewise.
8178         * m4/getcwd.m4: Likewise.
8179
8180 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8181         and Eric Blake  <eblake@redhat.com>
8182
8183         mkstemp: replace if system version uses wrong permissions
8184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8185         read/write mode bits set in file created by mkstemp.
8186         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8187
8188 2011-04-27  Eric Blake  <eblake@redhat.com>
8189
8190         passfd: avoid compiler warning
8191         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8192         Reported by Laine Stump.
8193
8194 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8195
8196         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8197         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8198
8199 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8200         and Eric Blake  <eblake@redhat.com>
8201
8202         mkstemp: mention clean-temp module
8203         * lib/mkstemp.c: Add comment.
8204         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8205
8206 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8207
8208         inttypes: also provide default values for 32-bit tests
8209         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8210         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8211
8212 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8213
8214         strtoumax: remove dependency on strtoimax
8215         This is like the strtoull change of yesterday.
8216         * modules/strtoumax (Files): Add lib/strtoimax.c.
8217         (Depends-on): Remove strtoimax and add verify.
8218
8219         inttypes-incomplete: new module
8220         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8221         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8222         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8223         of gl_INTTYPES_H.
8224         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8225         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8226         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8227         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8228         * modules/strtoumax, modules/xstrtol (Depends-on):
8229         Depend on inttypes-incomplete, not inttypes.
8230         * modules/inttypes-incomplete: New module, containing the contents
8231         of the old modules/inttypes module, except that the Files: section
8232         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8233         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8234         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8235         (Depends-on): Depend only on inttypes-incomplete.
8236         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8237
8238         inttypes: omit now-redundant strtoimax and strtoumax work
8239         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8240         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8241
8242         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8243         This supports apps that need pointers to strtoimax and strtoumax,
8244         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8245         nonexistent functions.  See
8246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8247         et seq.
8248         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8249         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8250         a macro.
8251         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8252
8253 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8254
8255         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8256
8257 2011-04-25  Bruno Haible  <bruno@clisp.org>
8258
8259         strtol, strtoul: Mark modules as obsolete.
8260         * modules/strtol (Status, Notice): New sections.
8261         * modules/strtoul (Status, Notice): New sections.
8262
8263 2011-04-25  Bruno Haible  <bruno@clisp.org>
8264
8265         strtod: Remove check for strtod, unless supporting old platforms.
8266         * modules/strtod-obsolete: New file.
8267         * m4/strtod-obsolete.m4: New file.
8268         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8269         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8270         * modules/strtod (Depends-on): Add strtod-obsolete.
8271         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8272
8273 2011-04-25  Bruno Haible  <bruno@clisp.org>
8274
8275         strcase: Make module obsolete.
8276         * modules/strcase (Status, Notice): New sections.
8277
8278 2011-04-25  Bruno Haible  <bruno@clisp.org>
8279
8280         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8281         * modules/dup2-obsolete: New file.
8282         * m4/dup2-obsolete.m4: New file.
8283         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8284         gl_FUNC_DUP2_OBSOLETE is not also defined.
8285         * modules/dup2 (Depends-on): Add dup2-obsolete.
8286         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8287
8288 2011-04-25  Bruno Haible  <bruno@clisp.org>
8289
8290         strnlen: Avoid memchr related link error on old obsolete platforms.
8291         * modules/memchr-obsolete: New file.
8292         * m4/memchr-obsolete.m4: New file.
8293         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8294         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8295         * modules/memchr (Depends-on): Add memchr-obsolete.
8296         * modules/strnlen (Depends-on): Likewise.
8297         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8298
8299 2011-04-25  Jim Meyering  <meyering@redhat.com>
8300
8301         maint.mk: makefile_at_at_check extend and clean up
8302         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8303         in addition to */Makefile.am.
8304         Exempt legitimate uses of @VAR@ notation, e.g.,
8305         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8306         Remove obsolete coreutils-specific comment.
8307         Prompted by discussion here:
8308         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8309
8310 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8311
8312         strtoul: remove dependency on strtol
8313         This is so that 'configure' need not check for strtol merely because
8314         the application needs strtoul.
8315         * modules/strtoul (Files): Add lib/strtol.c.
8316         (Depends-on): Remove strtol.
8317
8318         strtoull: remove dependency on strtoul
8319         This is like the strtoll change.
8320         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8321         (Depends-on): Remove strtoul.
8322
8323         strtoll: remove dependency on strtol
8324         This is so that 'configure' need not check for strtol merely because
8325         the application needs strtoll.
8326         * modules/strtoll (Files): Add lib/strtol.c.
8327         (Depends-on): Remove strtol.
8328
8329 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8330
8331         inttypes: Move some configure check to module 'imaxdiv'.
8332         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8333         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8334         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8335
8336 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8337
8338         inttypes: Move some configure check to module 'imaxabs'.
8339         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8340         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8341         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8342
8343 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8344
8345         inttypes: Remove configure tests that are not needed since 2009-12-31.
8346         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8347         gl_cv_header_working_inttypes_h.
8348
8349 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         * modules/strnlen (Depends-on): Remove memchr.
8352         The strnlen implementation doesn't need the memchr module's fixes; see
8353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8354
8355         strtol: remove dependency on wchar
8356         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8357         * modules/strtol (Depends-on): Remove wchar.
8358
8359 2011-04-21  Eric Blake  <eblake@redhat.com>
8360
8361         passfd: fix test regression on Linux
8362         * modules/passfd-tests (configure.ac): Correct socketpair check.
8363
8364         passfd: speed up configure and drop unused code
8365         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8366         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8367         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8368         Instead of probing at configure for unix_scm_rights_bsd44_way,
8369         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8370         check to a struct member probe.
8371         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8372         (sendfd, recvfd): Update preprocessor checks.
8373         * modules/passfd (Files): Reflect rename, and drop unused file.
8374         (Depends-on): Drop unused dependency.
8375
8376         passfd: allow compilation on mingw
8377         * modules/sys_socket (Depends-on): Add sys_uio.
8378         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8379         iovec and a minimal struct msghdr.
8380         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8381         * tests/test-sys_socket.c (main): Enhance test.
8382         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8383         guaranteed to provide what we need.
8384         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8385         * modules/passfd-tests (Depends-on): Add sys_wait.
8386         * tests/test-passfd.c (main): Skip test on mingw, for now.
8387         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8388         partial 'struct msghdr' implementation.
8389
8390         sys_uio: new module
8391         * modules/sys_uio: New module.
8392         * modules/sys_uio-tests: Likewise.
8393         * lib/sys_uio.in.h: New file.
8394         * m4/sys_uio_h.m4: Likewise.
8395         * tests/test-sys_uio.c: Likewise.
8396         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8397         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8398
8399 2011-04-20  Jim Meyering  <meyering@redhat.com>
8400
8401         useless-if-before-free: avoid false-positive
8402         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8403         disjunct so that it too requires a terminating ";".  Without that,
8404         this script would identify as useless one statement from gcc that
8405         was not:
8406           if (aligned_ptr)
8407             free (((void **) aligned_ptr) [-1]);
8408
8409 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8410
8411         doc: update users.txt.
8412         * users.txt: Add barcode.
8413
8414 2011-04-19  Bruno Haible  <bruno@clisp.org>
8415
8416         ioctl: Remove link dependency on native Windows.
8417         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8418         (gl_close_fn, gl_ioctl_fn): New types.
8419         (struct fd_hook): Renamed from struct close_hook. Change type of
8420         private_close_fn field. Add private_ioctl_fn field.
8421         (close_hook_fn): Add parameter for primary close method.
8422         (execute_close_hooks, execute_all_close_hooks): Likewise.
8423         (ioctl_hook_fn): New type.
8424         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8425         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8426         argument.
8427         (unregister_fd_hook): Renamed from unregister_close_hook.
8428         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8429         Don't include <unistd.h>.
8430         (close): Remove undef.
8431         (anchor): Update.
8432         (execute_close_hooks): Add argument for primary close method.
8433         (execute_all_close_hooks): Likewise.
8434         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8435         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8436         argument. Allow each argument to be NULL.
8437         (unregister_fd_hook): Renamed from unregister_close_hook.
8438         * lib/close.c (rpl_close): Pass 'close' function pointer to
8439         execute_all_close_hooks.
8440         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8441         (primary_ioctl): New function.
8442         (ioctl): Don't call ioctlsocket here. Instead, call
8443         execute_all_ioctl_hooks.
8444         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8445         close method.
8446         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8447         (fd_sockets_hook): Renamed from close_sockets_hook.
8448         (gl_sockets_startup, gl_sockets_cleanup): Update.
8449         * modules/fd-hook: Renamed from modules/close-hook. Update.
8450         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8451         * modules/sockets (Depends-on): Likewise.
8452         * modules/ioctl (Depends-on): Add fd-hook.
8453         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8454         GNULIB_SOCKET.
8455
8456 2011-04-19  Bruno Haible  <bruno@clisp.org>
8457
8458         Move the support of O_NONBLOCK in open() to the 'open' module.
8459         * modules/nonblocking (Depends-on): Remove 'open'.
8460         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8461         gl_cv_have_open_O_NONBLOCK.
8462         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8463         O_NONBLOCK support.
8464         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8465
8466 2011-04-17  Bruno Haible  <bruno@clisp.org>
8467
8468         pipe2: Simplify code.
8469         * lib/pipe2.c (pipe2): Reduce code duplication.
8470
8471 2011-04-17  Bruno Haible  <bruno@clisp.org>
8472
8473         nonblocking: Add comment.
8474         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8475
8476 2011-04-17  Bruno Haible  <bruno@clisp.org>
8477
8478         nonblocking: Add tests for sockets.
8479         * tests/test-nonblocking-socket.sh: New file.
8480         * tests/test-nonblocking-socket-main.c: New file.
8481         * tests/test-nonblocking-socket-child.c: New file.
8482         * tests/test-nonblocking-socket.h: New file.
8483         * tests/socket-server.h: New file.
8484         * tests/socket-client.h: New file.
8485         * modules/nonblocking-socket-tests: New file.
8486         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8487
8488 2011-04-17  Bruno Haible  <bruno@clisp.org>
8489
8490         nonblocking: Add tests for pipes.
8491         * tests/test-nonblocking-pipe.sh: New file.
8492         * tests/test-nonblocking-pipe-main.c: New file.
8493         * tests/test-nonblocking-pipe-child.c: New file.
8494         * tests/test-nonblocking-pipe.h: New file.
8495         * tests/test-nonblocking-writer.h: New file.
8496         * tests/test-nonblocking-reader.h: New file.
8497         * tests/test-nonblocking-misc.h: New file.
8498         * modules/nonblocking-pipe-tests: New file.
8499         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8500
8501 2011-04-16  Bruno Haible  <bruno@clisp.org>
8502
8503         gettext: Clarify the needed programmer actions.
8504         * modules/gettext (Notice): New field.
8505         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8506
8507 2011-04-16  Bruno Haible  <bruno@clisp.org>
8508
8509         strchrnul: Tweak last commit.
8510         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8511         bug.
8512         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8513         as in _GL_FUNCDECL_SYS.
8514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8515         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8516
8517 2011-04-15  Eric Blake  <eblake@redhat.com>
8518
8519         strchrnul: work around cygwin bug
8520         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8521         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8523         * modules/string (Makefile.am): Substitute it.
8524         * lib/string.in.h (strchrnul): Use it.
8525
8526 2011-04-15  Bruno Haible  <bruno@clisp.org>
8527
8528         Don't require lib/stdio-write.c when only module 'stdio' is used.
8529         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8530         invocation.
8531         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8532
8533 2011-04-14  Bruno Haible  <bruno@clisp.org>
8534
8535         Support non-blocking pipe I/O in read() on native Windows.
8536         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8537         (read): New declaration.
8538         * lib/read.c: New file.
8539         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8540         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8541         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8542         vscanf): New declarations.
8543         * lib/stdio-read.c: New file.
8544         * m4/read.m4: New file.
8545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8546         REPLACE_READ.
8547         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8548         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8549         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8550         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8551         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8552         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8553         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8554         * modules/read: New file.
8555         * modules/nonblocking (Files): Add lib/stdio-read.c.
8556         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8557         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8558         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8559         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8560         * modules/pread (Depends-on): Add read.
8561         * modules/safe-read (Depends-on): Likewise.
8562         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8563         gets, scanf, vfscanf, vscanf): Verify signatures.
8564         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8565         problem with non-blocking pipes.
8566         * doc/posix-functions/fgetc.texi: Likewise.
8567         * doc/posix-functions/fgets.texi: Likewise.
8568         * doc/posix-functions/fread.texi: Likewise.
8569         * doc/posix-functions/fscanf.texi: Likewise.
8570         * doc/posix-functions/getc.texi: Likewise.
8571         * doc/posix-functions/getchar.texi: Likewise.
8572         * doc/posix-functions/gets.texi: Likewise.
8573         * doc/posix-functions/scanf.texi: Likewise.
8574         * doc/posix-functions/vfscanf.texi: Likewise.
8575         * doc/posix-functions/vscanf.texi: Likewise.
8576
8577 2011-04-14  Bruno Haible  <bruno@clisp.org>
8578
8579         Support non-blocking pipe I/O in write() on native Windows.
8580         * lib/write.c (rpl_write): Split a write request that failed merely
8581         because the byte count was larger than the pipe buffer's size.
8582         * doc/posix-functions/write.texi: Mention the problem with large byte
8583         counts.
8584
8585 2011-04-14  Bruno Haible  <bruno@clisp.org>
8586
8587         wchar: Ensure that wchar_t gets defined on uClibc.
8588         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8589         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8590
8591 2011-04-13  Bruno Haible  <bruno@clisp.org>
8592
8593         safe-write, full-read: Avoid unnecessary compilation units.
8594         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8595         (Depends-on): Remove safe-read. Add ssize_t.
8596         * modules/full-read (Files): Add lib/full-write.c.
8597         (Depends-on): Add full-write.
8598
8599 2011-04-13  Bruno Haible  <bruno@clisp.org>
8600
8601         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8602         * modules/pwrite (Depends-on): Add 'write'.
8603
8604 2011-04-13  Bruno Haible  <bruno@clisp.org>
8605
8606         Support non-blocking pipe I/O in write() on native Windows.
8607         * lib/unistd.in.h (write): Enable replacement also if
8608         GNULIB_UNISTD_H_NONBLOCKING is 1.
8609         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8610         (rpl_write): When failing to write on a non-blocking pipe, change
8611         errno from ENOSPC to EAGAIN.
8612         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8613         putchar, puts, vfprintf, vprintf): Enable replacement also if
8614         GNULIB_STDIO_H_NONBLOCKING is 1.
8615         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8616         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8617         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8618         CALL_WITH_SIGPIPE_EMULATION.
8619         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8620         * m4/nonblocking.m4: New file.
8621         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8622         for non-blocking I/O support.
8623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8624         GNULIB_UNISTD_H_NONBLOCKING.
8625         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8626         required for non-blocking I/O support.
8627         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8628         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8629         lib/stdio-write.c, m4/asm-underscore.m4.
8630         (Depends-on): Add stdio, unistd.
8631         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8632         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8633         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8634         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8635         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8636         problem with non-blocking pipes.
8637         * doc/posix-functions/fputc.texi: Likewise.
8638         * doc/posix-functions/fputs.texi: Likewise.
8639         * doc/posix-functions/fwrite.texi: Likewise.
8640         * doc/posix-functions/printf.texi: Likewise.
8641         * doc/posix-functions/putc.texi: Likewise.
8642         * doc/posix-functions/putchar.texi: Likewise.
8643         * doc/posix-functions/puts.texi: Likewise.
8644         * doc/posix-functions/vfprintf.texi: Likewise.
8645         * doc/posix-functions/vprintf.texi: Likewise.
8646         * doc/posix-functions/write.texi: Likewise.
8647
8648 2011-04-10  Jim Meyering  <meyering@redhat.com>
8649
8650         maint.mk: prohibit doubled words
8651         Detect them also when they're separated by a newline.
8652         There are 3 ways to customize it:
8653           - disable the test on a per file basis, as usual with rules using
8654             $(VC_LIST_EXCEPT)
8655           - replace the default doubled-word-selecting regexp (affects all files)
8656           - ignore a particular file-vs-doubled-word match
8657         I nearly used that last one to ignore the "is is" match in
8658         coreutils' NEWS file, since the text was "ls -is is ..."
8659         To do that, I would have added this line to cfg.mk:
8660           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8661         but it would have ignored any "is is" match in NEWS.
8662         Low probability, but still...
8663         Instead, I changed the text, slightly:
8664           -  ls -is is now consistent with ls -lis in ignoring values returned
8665           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8666         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8667         (prohibit_doubled_word_): Define.
8668         (sc_prohibit_doubled_word): New rule.
8669         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8670
8671 2011-04-10  Jim Meyering  <meyering@redhat.com>
8672
8673         maint: fix doubled-word typo in comment
8674         * m4/gethostname.m4: s/is is/it is/
8675         * m4/getdomainname.m4: Likewise.
8676
8677 2011-04-10  Jim Meyering  <meyering@redhat.com>
8678
8679         maint: remove doubled word: s/it it/it/
8680         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8681
8682 2011-04-10  Jim Meyering  <meyering@redhat.com>
8683
8684         maint.mk: remove useless semicolon and backslash
8685         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8686         semicolon and backslash.
8687
8688 2011-04-10  Bruno Haible  <bruno@clisp.org>
8689
8690         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8691         * modules/stdint-tests (Depends-on): Add wchar.
8692
8693 2011-04-10  Jim Meyering  <meyering@redhat.com>
8694
8695         maint: remove doubled words in comments, e.g., s/a a/a/
8696         * lib/strptime.c (day_of_the_week): s/the the/the/
8697         * tests/test-chown.h (test_chown): s/a a/a/
8698
8699         test-chown.h: correct a cast
8700         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8701         when the destination is a stat.st_gid.
8702
8703 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8704
8705         getaddrinfo: Fix test for sa_len member.
8706         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8707         include <sys/types.h> before <sys/socket.h>.
8708
8709 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8710
8711         maint: change "can not" to "cannot"
8712         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8713         boundaries.
8714
8715 2011-04-09  Jim Meyering  <meyering@redhat.com>
8716
8717         maint: change "a a" to "a"
8718         * tests/test-lchown.h (test_lchown): s/a a/a/
8719
8720         maint.mk: prohibit \<the the\>
8721         * top/maint.mk (sc_prohibit_the_the): New rule.
8722
8723         maint: fix "the the" in comment
8724         * lib/count-one-bits.h: s/the the/the/
8725
8726         maint: change "can not" to "cannot"
8727         But do not change the occurrences in maintain.texi or in
8728         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8729         * doc/gnulib-tool.texi: s/can not/cannot/
8730         * doc/posix-functions/accept.texi (accept): Likewise.
8731         * doc/posix-functions/socket.texi (socket): Likewise.
8732         * lib/mbrtowc.c: Likewise.
8733
8734         maint.mk: prohibit use of "can not"
8735         * top/maint.mk (sc_prohibit_can_not): New rule.
8736         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8737
8738 2011-04-09  Bruno Haible  <bruno@clisp.org>
8739
8740         careadlinkat: Guard against misuse of careadlinkatcwd.
8741         * lib/careadlinkat.c: Include <stdlib.h>.
8742         (careadlinkatcwd): Check that the fd argument is as expected.
8743
8744 2011-04-09  Bruno Haible  <bruno@clisp.org>
8745
8746         careadlinkat: Use common coding style.
8747         * lib/careadlinkat.c: Move gnulib includes after system includes.
8748
8749 2011-04-09  Bruno Haible  <bruno@clisp.org>
8750
8751         careadlinkat: Clarify specification.
8752         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8753         (careadlinkatcwd): Add comment.
8754         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8755
8756 2011-04-09  Bruno Haible  <bruno@clisp.org>
8757
8758         areadlinkat: Avoid link error on many platforms.
8759         * modules/areadlinkat (Depends-on): Add areadlink.
8760
8761 2011-04-09  Bruno Haible  <bruno@clisp.org>
8762
8763         allocator, careadlinkat: Fix double-inclusion guard.
8764         * lib/allocator.h: Fix double-inclusion guard.
8765         * lib/careadlinkat.h: Likewise.
8766
8767 2011-04-09  Bruno Haible  <bruno@clisp.org>
8768
8769         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8770         * lib/relocwrapper.c: Update dependencies hierarchy.
8771         * build-aux/install-reloc: Update list of files to be compiled.
8772         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8773         lib/allocator.[hc].
8774
8775 2011-04-08  Eric Blake  <eblake@redhat.com>
8776
8777         strftime: silence gnulib-tool warning
8778         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8779
8780 2011-04-08  Bruno Haible  <bruno@clisp.org>
8781
8782         verify: Fix syntax error with GCC 4.6 in C++ mode.
8783         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8784         (HAVE_STATIC_ASSERT): New macro.
8785         (verify_true, verify): Use 'static_assert' if it is supported and
8786         '_Static_assert' is not supported.
8787
8788 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8789
8790         allocator: New module.
8791         * modules/allocator, lib/allocator.c: New files.
8792         * lib/allocator.h (stdlib_allocator): New decl.
8793         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8794         Remove.  Do not include <stdlib.h>.
8795         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8796         * modules/careadlinkat (Files): Remove lib/allocator.h.
8797         (Depends-on): Add allocator.
8798
8799         stdlib: let modules use system malloc, realloc
8800         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8801         if !_GL_USE_STDLIB_ALLOC.
8802         (malloc, realloc): Limit this change to a smaller scope.
8803
8804         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8805         (malloc, realloc): Don't #undef; no longer needed.
8806         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8807         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8808         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8809         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8810         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8811         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8812         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8813         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8814
8815         careadlinkat: rename members to avoid problem
8816         * lib/allocator.h (struct allocator): Rename members from
8817         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8818         and realloc are #define'd.  Reported by Eric Blake in
8819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8820         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8821
8822 2011-04-08  Eric Blake  <eblake@redhat.com>
8823
8824         nonblocking: reduce dependency
8825         * tests/test-nonblocking.c: Only test sockets when in use.
8826         * modules/nonblocking-tests (Depends-on): Drop socket.
8827         (Makefile.am): Link even if sockets are not present.
8828         * modules/pipe2-tests (Makefile.am): Likewise.
8829         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8830
8831         pipe2: fix O_NONBLOCK support on mingw
8832         * modules/pipe2 (Depends-on): Add nonblocking.
8833         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8834         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8835         * tests/test-nonblocking.c (main): Likewise.
8836         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8837
8838         fcntl-h: fix O_ACCMODE on cygwin
8839         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8840         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8841
8842         pipe-filter: drop O_NONBLOCK workarounds
8843         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8844         * modules/pipe-filter-ii (Depends-on): Likewise.
8845         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8846
8847         nonblocking: provide O_NONBLOCK for mingw
8848         * modules/nonblocking (Depends-on): Add open.
8849         (configure.ac): Set new witness macro.
8850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8851         * modules/fcntl-h (Makefile.am): Substitute it.
8852         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8853         nonblocking module is in use.
8854         * lib/nonblocking.c: Adjust portability test.
8855         * lib/open.c (open): Don't let native open see gnulib flag.
8856         * tests/test-fcntl-h.c (main): Enhance test.
8857         * tests/test-open.h (test_open): Likewise.
8858         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8859
8860         careadlinkat: fix compilation error on mingw
8861         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8862         within struct allocator.
8863
8864 2011-04-06  Eric Blake  <eblake@redhat.com>
8865
8866         binary-io: relicense under LGPLv2+
8867         * modules/binary-io (License): Relax to LGPLv2+.
8868         Requested for libvirt, and required by pipe2.
8869
8870 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8871
8872         verify: use _Static_assert if available
8873         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8874         (verify_true, verify): Use it if available.  This generates better
8875         diagnostics with GCC 4.6.0 and later.
8876
8877 2011-04-05  Bruno Haible  <bruno@clisp.org>
8878
8879         Remove leftover generated .h files after config.status changed.
8880
8881         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8882         GL_GENERATE_ALLOCA_H.
8883         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8884         GL_GENERATE_ALLOCA_H evaluates to false.
8885
8886         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8887         GL_GENERATE_ARGZ_H.
8888         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8889         evaluates to false.
8890
8891         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8892         GL_GENERATE_BYTESWAP_H.
8893         * modules/byteswap (Makefile.am): Remove byteswap.h if
8894         GL_GENERATE_BYTESWAP_H evaluates to false.
8895
8896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8897         GL_GENERATE_ERRNO_H.
8898         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8899         evaluates to false.
8900
8901         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8902         GL_GENERATE_FLOAT_H.
8903         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8904         evaluates to false.
8905
8906         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8907         GL_GENERATE_FNMATCH_H.
8908         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8909         GL_GENERATE_FNMATCH_H evaluates to false.
8910
8911         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8912         GL_GENERATE_GLOB_H.
8913         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8914         evaluates to false.
8915
8916         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8917         automake conditional GL_GENERATE_ICONV_H.
8918         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8919         evaluates to false.
8920
8921         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8922         GL_GENERATE_NETINET_IN_H.
8923         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8924         GL_GENERATE_NETINET_IN_H evaluates to false.
8925
8926         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8927         conditional GL_GENERATE_PTHREAD_H.
8928         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8929         * modules/pthread (Makefile.am): Remove pthread.h if
8930         GL_GENERATE_PTHREAD_H evaluates to false.
8931
8932         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8933         GL_GENERATE_SCHED_H.
8934         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8935         evaluates to false.
8936
8937         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8938         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8939         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8940         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8941
8942         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8943         GL_GENERATE_STDARG_H.
8944         * modules/stdarg (Makefile.am): Remove stdarg.h if
8945         GL_GENERATE_STDARG_H evaluates to false.
8946
8947         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8948         GL_GENERATE_STDBOOL_H.
8949         * modules/stdbool (Makefile.am): Remove stdbool.h if
8950         GL_GENERATE_STDBOOL_H evaluates to false.
8951
8952         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8953         conditional GL_GENERATE_STDDEF_H.
8954         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8955         * modules/stddef (Makefile.am): Remove stddef.h if
8956         GL_GENERATE_STDDEF_H evaluates to false.
8957
8958         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8959         GL_GENERATE_STDINT_H.
8960         * modules/stdint (Makefile.am): Remove stdint.h if
8961         GL_GENERATE_STDINT_H evaluates to false.
8962
8963         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8964         GL_GENERATE_SYSEXITS_H.
8965         * modules/sysexits (Makefile.am): Remove sysexits.h if
8966         GL_GENERATE_SYSEXITS_H evaluates to false.
8967
8968         Reported by Karl Berry and Ralf Wildenhues.
8969
8970 2011-04-05  Bruno Haible  <bruno@clisp.org>
8971
8972         Ensure to rebuild generated .h files when config.status has changed.
8973         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8974         config.status.
8975         * modules/ctype (Makefile.am): Likewise.
8976         * modules/dirent (Makefile.am): Likewise.
8977         * modules/errno (Makefile.am): Likewise.
8978         * modules/fcntl-h (Makefile.am): Likewise.
8979         * modules/float (Makefile.am): Likewise.
8980         * modules/getopt-posix (Makefile.am): Likewise.
8981         * modules/glob (Makefile.am): Likewise.
8982         * modules/iconv-h (Makefile.am): Likewise.
8983         * modules/inttypes (Makefile.am): Likewise.
8984         * modules/langinfo (Makefile.am): Likewise.
8985         * modules/locale (Makefile.am): Likewise.
8986         * modules/math (Makefile.am): Likewise.
8987         * modules/netdb (Makefile.am): Likewise.
8988         * modules/netinet_in (Makefile.am): Likewise.
8989         * modules/poll-h (Makefile.am): Likewise.
8990         * modules/pthread (Makefile.am): Likewise.
8991         * modules/pty (Makefile.am): Likewise.
8992         * modules/sched (Makefile.am): Likewise.
8993         * modules/search (Makefile.am): Likewise.
8994         * modules/selinux-h (Makefile.am): Likewise.
8995         * modules/signal (Makefile.am): Likewise.
8996         * modules/spawn (Makefile.am): Likewise.
8997         * modules/stdarg (Makefile.am): Likewise.
8998         * modules/stdbool (Makefile.am): Likewise.
8999         * modules/stddef (Makefile.am): Likewise.
9000         * modules/stdint (Makefile.am): Likewise.
9001         * modules/stdio (Makefile.am): Likewise.
9002         * modules/stdlib (Makefile.am): Likewise.
9003         * modules/string (Makefile.am): Likewise.
9004         * modules/strings (Makefile.am): Likewise.
9005         * modules/sys_file (Makefile.am): Likewise.
9006         * modules/sys_ioctl (Makefile.am): Likewise.
9007         * modules/sys_select (Makefile.am): Likewise.
9008         * modules/sys_socket (Makefile.am): Likewise.
9009         * modules/sys_stat (Makefile.am): Likewise.
9010         * modules/sys_time (Makefile.am): Likewise.
9011         * modules/sys_times (Makefile.am): Likewise.
9012         * modules/sys_utsname (Makefile.am): Likewise.
9013         * modules/sys_wait (Makefile.am): Likewise.
9014         * modules/sysexits (Makefile.am): Likewise.
9015         * modules/termios (Makefile.am): Likewise.
9016         * modules/time (Makefile.am): Likewise.
9017         * modules/unistd (Makefile.am): Likewise.
9018         * modules/wchar (Makefile.am): Likewise.
9019         * modules/wctype-h (Makefile.am): Likewise.
9020         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9021
9022 2011-04-05  Bruno Haible  <bruno@clisp.org>
9023
9024         pipe2: Relicense under LGPLv2+.
9025         * modules/pipe2 (License): Change to LGPLv2+.
9026         Requested by Eric Blake, for libvirt.
9027
9028 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9029
9030         bootstrap: compute gnulib_extra_files after updating build_aux
9031         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9032         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9033
9034 2011-04-05  Eric Blake  <eblake@redhat.com>
9035
9036         bootstrap: preserve git whitelist item sorting
9037         * build-aux/bootstrap (sort_patterns): New function.
9038         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9039
9040 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9041
9042         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9043         sc_space_tab check.
9044
9045 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9046
9047         areadlink, areadlinkat: rewrite in terms of careadlinkat
9048         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9049         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9050         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9051         (malloc, realloc): Remove #undefs.
9052         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9053         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9054         readlink, ssize_t, stdint, unistd.
9055         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9056         areadlink, stdint.
9057
9058         careadlinkat: new module
9059         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9060         * modules/careadlinkat: New files, written by me with
9061         a review and feedback from Ben Pfaff in
9062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9063
9064 2011-04-01  Bruno Haible  <bruno@clisp.org>
9065
9066         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9067         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9068         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9069         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9070         Reported by Bruce Korb <bruce.korb@gmail.com>.
9071
9072 2011-04-01  Bruno Haible  <bruno@clisp.org>
9073
9074         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9075         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9076         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9077         * modules/wcpcpy (Depends-on): Add extensions.
9078         * modules/wcpncpy (Depends-on): Likewise.
9079         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9080         systems.
9081         * doc/posix-functions/wcpncpy.texi: Likewise.
9082         * doc/posix-functions/wcwidth.texi: Likewise.
9083
9084 2011-03-31  Eric Blake  <eblake@redhat.com>
9085
9086         nonblocking: fix mingw test failures
9087         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9088         non-blocking flag on regular file.
9089         (get_nonblocking_flag): Set errno on invalid fd.
9090         * tests/test-nonblocking.c (main): Avoid test failure on
9091         directories if fchdir is not active.
9092         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9093
9094 2011-03-31  Bruno Haible  <bruno@clisp.org>
9095
9096         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9097         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9098         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9099         Reported by Simon Josefsson <simon@josefsson.org>.
9100
9101 2011-03-31  Bruno Haible  <bruno@clisp.org>
9102         and Eric Blake  <eblake@redhat.com>
9103
9104         nonblocking: new module
9105         * modules/nonblocking: New module.
9106         * modules/nonblocking-tests: Likewise.
9107         * lib/nonblocking.h: New file.
9108         * lib/nonblocking.c: Likewise.
9109         * tests/test-nonblocking.c: New test.
9110         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9111
9112 2011-03-30  Bruno Haible  <bruno@clisp.org>
9113
9114         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9115         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9116         instead of 'printf' format for GCC >= 4.4.
9117         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9118         (fprintf, printf, vfprintf, vprintf): Declare with
9119         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9120         the system's vfprintf() function.
9121         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9122
9123 2011-03-30  Eric Blake  <eblake@redhat.com>
9124
9125         passfd: fix scoping bug
9126         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9127         before sendmsg/recvmsg.
9128
9129         passfd: standardize coding conventions
9130         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9131         can be learned at compile time.
9132         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9133         ifdefs.
9134         (sendfd, recvfd): Follow gnulib code conventions.
9135
9136         passfd: fix incorrect sendmsg arguments
9137         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9138         incorrect msg_controllen value.
9139         * modules/passfd-tests (Depends-on): Check for alarm.
9140         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9141         Reported by Bastien ROUCARIES.
9142
9143 2011-03-30  Bruno Haible  <bruno@clisp.org>
9144
9145         c-strcasestr: Relicense under LGPLv2+.
9146         * modules/c-strcasestr (License): Change to LGPLv2+.
9147         Requested by Eric Blake, for libvirt.
9148
9149 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9150
9151         * users.txt: Add libidn2.  Fix libtasn1 link.
9152
9153 2011-03-30  Jim Meyering  <meyering@redhat.com>
9154
9155         tests: readlink* ("",... fails with EINVAL on newer kernels
9156         readlink and readlinkat have typically failed with ENOENT for
9157         the invalid, empty file name,  "".  However, with the advent
9158         of linux-2.6.39, they fail with EINVAL.
9159         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9160         when operating on the empty file name.
9161         * tests/test-readlink.h (test_readlink): Likewise.
9162
9163 2011-03-29  Bruno Haible  <bruno@clisp.org>
9164
9165         Relicense some modules under LGPLv2+, for libidn2.
9166         * modules/array-mergesort (License): Change to LGPLv2+.
9167         * modules/c-strcaseeq (License): Likewise.
9168         * modules/striconveh (License): Likewise.
9169         * modules/striconveha (License): Likewise.
9170         * modules/uniconv/base (License): Likewise.
9171         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9172         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9173         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9174         * modules/unictype/base (License): Likewise.
9175         * modules/unictype/bidiclass-of (License): Likewise.
9176         * modules/unictype/category-M (License): Likewise.
9177         * modules/unictype/category-none (License): Likewise.
9178         * modules/unictype/category-of (License): Likewise.
9179         * modules/unictype/category-test (License): Likewise.
9180         * modules/unictype/category-test-withtable (License): Likewise.
9181         * modules/unictype/combining-class (License): Likewise.
9182         * modules/unictype/joiningtype-of (License): Likewise.
9183         * modules/unictype/scripts (License): Likewise.
9184         * modules/uninorm/base (License): Likewise.
9185         * modules/uninorm/canonical-decomposition (License): Likewise.
9186         * modules/uninorm/composition (License): Likewise.
9187         * modules/uninorm/decompose-internal (License): Likewise.
9188         * modules/uninorm/decomposition-table (License): Likewise.
9189         * modules/uninorm/nfc (License): Likewise.
9190         * modules/uninorm/nfd (License): Likewise.
9191         * modules/uninorm/u32-normalize (License): Likewise.
9192         * modules/unistr/base (License): Likewise.
9193         * modules/unistr/u32-cpy (License): Likewise.
9194         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9195         * modules/unistr/u32-to-u8 (License): Likewise.
9196         * modules/unistr/u32-uctomb (License): Likewise.
9197         * modules/unistr/u8-check (License): Likewise.
9198         * modules/unistr/u8-mblen (License): Likewise.
9199         * modules/unistr/u8-mbtouc (License): Likewise.
9200         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9201         * modules/unistr/u8-mbtoucr (License): Likewise.
9202         * modules/unistr/u8-prev (License): Likewise.
9203         * modules/unistr/u8-strlen (License): Likewise.
9204         * modules/unistr/u8-to-u32 (License): Likewise.
9205         * modules/unistr/u8-uctomb (License): Likewise.
9206         * modules/unitypes (License): Likewise.
9207         Requested by Simon Josefsson.
9208
9209 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9210
9211         lib-symbol-visibility: Add a notice.
9212         * modules/lib-symbol-visibility (Notice): New field.
9213
9214 2011-03-29  Bruno Haible  <bruno@clisp.org>
9215
9216         getaddrinfo: Doc fix.
9217         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9218         section "fixed in Gnulib".
9219
9220 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9221
9222         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9223         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9224
9225 2011-03-26  Bruno Haible  <bruno@clisp.org>
9226
9227         unictype/property-byname: Reduce the number of load-time relocations.
9228         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9229         (UC_PROPERTY_INDEX_*): New enumeration values.
9230         (uc_property_byname): Convert an index from the lookup table to an
9231         uc_property_t.
9232         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9233         values.
9234
9235 2011-03-26  Bruno Haible  <bruno@clisp.org>
9236
9237         unictype/property-byname: Allow omitted word separators and aliases.
9238         * lib/unictype/pr_byname.gperf: Add property names without word
9239         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9240         for 'space'.
9241
9242 2011-03-26  Bruno Haible  <bruno@clisp.org>
9243
9244         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9245         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9246         also hyphens to space.
9247         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9248         without spaces.
9249         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9250
9251 2011-03-26  Bruno Haible  <bruno@clisp.org>
9252
9253         unictype/joiningtype-byname: Recognize long names as well.
9254         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9255         a long name.
9256         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9257         unictype/joiningtype_byname.h.
9258         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9259         * lib/unictype/joiningtype_byname.gperf: New file.
9260         * modules/unictype/joiningtype-byname (Files): Add
9261         lib/unictype/joiningtype_byname.gperf.
9262         (Depends-on): Add gperf.
9263         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9264         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9265         long names.
9266
9267         Tests for module 'unictype/joiningtype-longname'.
9268         * modules/unictype/joiningtype-longname-tests: New file.
9269         * tests/unictype/test-joiningtype_longname.c: New file.
9270
9271         New module 'unictype/joiningtype-longname'.
9272         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9273         * lib/unictype/joiningtype_longname.c: New file.
9274         * modules/unictype/joiningtype-longname: New file.
9275         * modules/unictype/joiningtype-all (Depends-on): Add
9276         unictype/joiningtype-longname.
9277
9278 2011-03-26  Bruno Haible  <bruno@clisp.org>
9279
9280         unictype/bidiclass-byname: Recognize long names as well.
9281         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9282         name.
9283         * lib/unictype/bidi_byname.c: Include <string.h>,
9284         unictype/bidi_byname.h.
9285         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9286         * lib/unictype/bidi_byname.gperf: New file.
9287         * modules/unictype/bidiclass-byname (Files): Add
9288         lib/unictype/bidi_byname.gperf.
9289         (Depends-on): Add gperf.
9290         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9291         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9292         long names.
9293
9294         Tests for module 'unictype/bidiclass-longname'.
9295         * modules/unictype/bidiclass-longname-tests: New file.
9296         * tests/unictype/test-bidi_longname.c: New file.
9297
9298         New module 'unictype/bidiclass-longname'.
9299         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9300         * lib/unictype/bidi_longname.c: New file.
9301         * modules/unictype/bidiclass-longname: New file.
9302         * modules/unictype/bidiclass-all (Depends-on): Add
9303         unictype/bidiclass-longname.
9304
9305 2011-03-26  Bruno Haible  <bruno@clisp.org>
9306
9307         unictype/bidi*: Rename modules.
9308         * modules/unictype/bidiclass-all: Renamed from
9309         modules/unictype/bidicategory-all.
9310         * modules/unictype/bidiclass-name: Renamed from
9311         modules/unictype/bidiclass-name.
9312         (Description): Update.
9313         * modules/unictype/bidiclass-name-tests: Renamed from
9314         modules/unictype/bidicategory-name-tests.
9315         * modules/unictype/bidiclass-byname: Renamed from
9316         modules/unictype/bidicategory-byname.
9317         (Description): Update.
9318         * modules/unictype/bidiclass-byname-tests: Renamed from
9319         modules/unictype/bidicategory-byname-tests.
9320         * modules/unictype/bidiclass-of: Renamed from
9321         modules/unictype/bidicategory-of.
9322         (Description): Update.
9323         * modules/unictype/bidiclass-of-tests: Renamed from
9324         modules/unictype/bidicategory-of-tests.
9325         * modules/unictype/bidiclass-test: Renamed from
9326         modules/unictype/bidicategory-test.
9327         (Description): Update.
9328         * modules/unictype/bidiclass-test-tests: Renamed from
9329         modules/unictype/bidicategory-test-tests.
9330         * modules/unictype/bidicategory-all: New file, a simple redirection.
9331         * modules/unictype/bidicategory-name: Likewise.
9332         * modules/unictype/bidicategory-byname: Likewise.
9333         * modules/unictype/bidicategory-of: Likewise.
9334         * modules/unictype/bidicategory-test: Likewise.
9335         * modules/unictype/property-bidi-* (Dependencies): Update.
9336         * lib/unictype/bidi_*.c: Update comment.
9337
9338 2011-03-26  Bruno Haible  <bruno@clisp.org>
9339
9340         unictype/bidi*: Rename functions, part 2.
9341         * modules/unictype/bidicategory-name (configure.ac): Update required
9342         libunistring version.
9343         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9344
9345 2011-03-25  Bruno Haible  <bruno@clisp.org>
9346
9347         New module 'unictype/combining-class-all'.
9348         * modules/unictype/combining-class-all: New file.
9349
9350         Tests for module 'unictype/combining-class-byname'.
9351         * modules/unictype/combining-class-byname-tests: New file.
9352         * tests/unictype/test-combiningclass_byname.c: New file.
9353
9354         New module 'unictype/combining-class-byname'.
9355         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9356         * lib/unictype/combiningclass_byname.c: New file.
9357         * lib/unictype/combiningclass_byname.gperf: New file.
9358         * modules/unictype/combining-class-byname: New file.
9359
9360         Tests for module 'unictype/combining-class-longname'.
9361         * modules/unictype/combining-class-longname-tests: New file.
9362         * tests/unictype/test-combiningclass_longname.c: New file.
9363
9364         New module 'unictype/combining-class-longname'.
9365         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9366         * lib/unictype/combiningclass_longname.c: New file.
9367         * modules/unictype/combining-class-longname: New file.
9368
9369         Tests for module 'unictype/combining-class-name'.
9370         * modules/unictype/combining-class-name-tests: New file.
9371         * tests/unictype/test-combiningclass_name.c: New file.
9372
9373         New module 'unictype/combining-class-name'.
9374         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9375         * lib/unictype/combiningclass_name.c: New file.
9376         * modules/unictype/combining-class-name: New file.
9377
9378 2011-03-25  Bruno Haible  <bruno@clisp.org>
9379
9380         unictype/combining-class: Rename source files.
9381         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9382         of unictype/combining.h.
9383         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9384         Update.
9385         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9386         * modules/unictype/combining-class (Description): Fix.
9387         (Files, Makefile.am): Update.
9388         * tests/unictype/test-combiningclass.c: Renamed from
9389         tests/unictype/test-combining.c.
9390         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9391
9392 2011-03-25  Bruno Haible  <bruno@clisp.org>
9393
9394         unictype: Update list of canonical combining classes.
9395         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9396
9397 2011-03-25  Bruno Haible  <bruno@clisp.org>
9398
9399         unictype/category-byname: Recognize long names as well.
9400         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9401         a long name.
9402         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9403         unictype/categ_byname.h.
9404         (UC_CATEGORY_INDEX_*): New enumeration values.
9405         (uc_general_category_byname): Use uc_general_category_lookup and
9406         convert from index to value.
9407         * lib/unictype/categ_byname.gperf: New file.
9408         * modules/unictype/category-byname (Files): Add
9409         lib/unictype/categ_byname.gperf.
9410         (Depends-on): Add gperf.
9411         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9412         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9413         long names.
9414
9415         Tests for module 'unictype/category-longname'.
9416         * modules/unictype/category-longname-tests: New file.
9417         * tests/unictype/test-categ_longname.c: New file.
9418
9419         New module 'unictype/category-longname'.
9420         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9421         * lib/unictype/categ_longname.c: New file.
9422         * modules/unictype/category-longname: New file.
9423         * modules/unictype/category-all (Depends-on): Add it.
9424
9425 2011-03-25  Bruno Haible  <bruno@clisp.org>
9426
9427         Tests for module 'unictype/category-LC'.
9428         * modules/unictype/category-LC-tests: New file.
9429         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9430
9431         New module 'unictype/category-LC'.
9432         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9433         (UC_CATEGORY_LC): New declaration.
9434         (UC_CASED_LETTER): New macro.
9435         * lib/gen-uni-tables.c (is_category_LC): New function.
9436         (output_categories): Also handle category LC.
9437         (UC_CATEGORY_MASK_LC): New enumeration value.
9438         (general_category_byname): Also handle category LC.
9439         * lib/unictype/categ_LC.c: New file.
9440         * lib/unictype/categ_LC.h: New file, automatically generated.
9441         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9442         category LC.
9443         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9444         * modules/unictype/category-LC: New file.
9445         * modules/unictype/category-byname (Depends-on): Add
9446         unictype/category-LC.
9447         * modules/unictype/category-all (Depends-on): Likewise.
9448
9449 2011-03-25  Eric Blake  <eblake@redhat.com>
9450
9451         xmalloc: revert yesterday's regression
9452         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9453         realloc's underlying behavior (allowing allocation of zero-size
9454         objects, especially if malloc-gnu is also in use).
9455
9456 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9457
9458         maint.mk: add missing version to VC-tag
9459         * top/maint.mk: git tag was missing actual tag name; add it.
9460
9461         valgrind: do leak checking, and exit with code 1 on error (not 0)
9462         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9463         to VALGRIND.
9464
9465 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9466
9467         posix-modules: say what it does.
9468         * posix-modules: Add a line to the --help output saying what it does.
9469
9470 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9471
9472         xmalloc: Do not leak if underlying realloc is C99 compatible.
9473         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9474         This avoids a leak on C99-based systems.  See
9475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9476
9477 2011-03-24  Eric Blake  <eblake@redhat.com>
9478
9479         realloc: document portability problem
9480         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9481         passing 0 size to realloc.
9482
9483 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9484
9485         doc: update users.txt
9486         * users.txt: Add cvsps, tmpwatch
9487
9488 2011-03-23  Matt Rice  <ratmice@gmail.com>
9489
9490         doc: update users.txt
9491         * users.txt: Add gdb.
9492
9493 2011-03-23  Jim Meyering  <meyering@redhat.com>
9494
9495         doc: update users.txt
9496         Looking through matches up to the following URL (there are still
9497         several more pages), I found several projects that use gnulib:
9498         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9499         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9500         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9501
9502 2011-03-22  Bruno Haible  <bruno@clisp.org>
9503
9504         unictype/bidi*: Rename functions.
9505         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9506         uc_bidi_class, uc_is_bidi_class): New declarations.
9507         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9508         uc_bidi_category_byname.
9509         (uc_bidi_category_byname): New function.
9510         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9511         u_bidi_category_name.
9512         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9513         (uc_bidi_category_name): New function.
9514         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9515         uc_bidi_category.
9516         (uc_bidi_category): New function.
9517         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9518         uc_is_bidi_category. Invoke uc_bidi_class.
9519         (uc_is_bidi_category): New function.
9520         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9521         instead of uc_bidi_category_byname.
9522         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9523         instead of uc_bidi_category_name.
9524         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9525         uc_bidi_category.
9526         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9527         instead of uc_is_bidi_category.
9528
9529 2011-03-21  Bruno Haible  <bruno@clisp.org>
9530
9531         New module 'unictype/joininggroup-all'.
9532         * modules/unictype/joininggroup-all: New file.
9533
9534         Tests for module 'unictype/joininggroup-of'.
9535         * modules/unictype/joininggroup-of-tests: New file.
9536         * tests/unictype/test-joininggroup_of.c: New file.
9537         * tests/unictype/test-joininggroup_of.h: New file, automatically
9538         generated by gen-uni-tables.
9539
9540         New module 'unictype/joininggroup-of'.
9541         * modules/unictype/joininggroup-of: New file.
9542         * lib/unictype/joininggroup_of.c: New file.
9543         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9544         gen-uni-tables.
9545
9546         Tests for module 'unictype/joininggroup-byname'.
9547         * modules/unictype/joininggroup-byname-tests: New file.
9548         * tests/unictype/test-joininggroup_byname.c: New file.
9549
9550         New module 'unictype/joininggroup-byname'.
9551         * modules/unictype/joininggroup-byname: New file.
9552         * lib/unictype/joininggroup_byname.c: New file.
9553         * lib/unictype/joininggroup_byname.gperf: New file.
9554
9555         Tests for module 'unictype/joininggroup-name'.
9556         * modules/unictype/joininggroup-name-tests: New file.
9557         * tests/unictype/test-joininggroup_name.c: New file.
9558
9559         New module 'unictype/joininggroup-name'.
9560         * modules/unictype/joininggroup-name: New file.
9561         * lib/unictype/joininggroup_name.c: New file.
9562         * lib/unictype/joininggroup_name.h: New file.
9563
9564         New module 'unictype/joiningtype-all'.
9565         * modules/unictype/joiningtype-all: New file.
9566
9567         Tests for module 'unictype/joiningtype-of'.
9568         * modules/unictype/joiningtype-of-tests: New file.
9569         * tests/unictype/test-joiningtype_of.c: New file.
9570         * tests/unictype/test-joiningtype_of.h: New file, automatically
9571         generated by gen-uni-tables.
9572
9573         New module 'unictype/joiningtype-of'.
9574         * modules/unictype/joiningtype-of: New file.
9575         * lib/unictype/joiningtype_of.c: New file.
9576         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9577         gen-uni-tables.
9578
9579         Tests for module 'unictype/joiningtype-byname'.
9580         * modules/unictype/joiningtype-byname-tests: New file.
9581         * tests/unictype/test-joiningtype_byname.c: New file.
9582
9583         New module 'unictype/joiningtype-byname'.
9584         * modules/unictype/joiningtype-byname: New file.
9585         * lib/unictype/joiningtype_byname.c: New file.
9586
9587         Tests for module 'unictype/joiningtype-name'.
9588         * modules/unictype/joiningtype-name-tests: New file.
9589         * tests/unictype/test-joiningtype_name.c: New file.
9590
9591         New module 'unictype/joiningtype-name'.
9592         * modules/unictype/joiningtype-name: New file.
9593         * lib/unictype/joiningtype_name.c: New file.
9594
9595         unictype: Add support for Arabic shaping properties.
9596         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9597         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9598         declarations.
9599         (UC_JOINING_GROUP_*): New enumeration values.
9600         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9601         declarations.
9602         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9603         (unicode_joining_type): New variable.
9604         (UC_JOINING_GROUP_*): New enumeration values.
9605         (unicode_joining_group): New variable.
9606         (fill_arabicshaping, joining_type_as_c_identifier,
9607         output_joining_type_test, output_joining_type,
9608         joining_group_as_c_identifier, output_joining_group_test,
9609         output_joining_group): New functions.
9610         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9611         fill_arabicshaping and output_joining_type_test, output_joining_type,
9612         output_joining_group_test, output_joining_group.
9613         Reported by Simon Josefsson.
9614
9615 2011-03-21  Jim Meyering  <meyering@redhat.com>
9616
9617         strftime: fix a bug in yesterday's change
9618         * lib/strftime.c (add): Accommodate width's initial value of -1.
9619         Otherwise, nstrftime would copy uninitialized data into
9620         the result buffer.
9621
9622 2011-03-21  Jim Meyering  <meyering@redhat.com>
9623
9624         tests: add strftime-tests module
9625         * tests/test-strftime.c: New file.
9626         * modules/strftime-tests: New module.
9627
9628 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9629
9630         strftime: don't assume a byte count fits in 'int'
9631         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9632         found this problem by static analysis, using gcc -Wstrict-overflow
9633         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9634         on an integer overflow having undefined behavior, but it turns out
9635         that the argument is a size, which might not fit in 'int' anyway,
9636
9637 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9638
9639         stdio: don't require ignore_value around fwrite
9640
9641         This patch works around libc bug 11959
9642         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9643         Without this patch, applications must often write
9644         ignore_value (fwrite (...)) even though the ignore_value is
9645         not helpful here.  It's common to write many objects, using
9646         fwrite/printf/etc., and then use ferror to detect output error.
9647
9648         I considered making this patch optional, but decided against it,
9649         because libc is obviously being inconsistent here: there is no
9650         reason libc should insist that user code must inspect fwrite
9651         return's value without also insisting that it inspect printf's,
9652         putchar's, etc.  If user code wants to have a strict style where
9653         all these functions' values are checked (so that ferror need not
9654         be checked), we could add support for that style in a new gnulib
9655         module, but in the meantime it's better to be consistent and to
9656         support common usage.
9657
9658         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9659         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9660         that we are compiling in checking mode, and if not C++, and
9661         if not already wrapping fwrite for some other reason.
9662         (fwrite): #define to rpl_fwrite if the latter is defined.
9663
9664 2011-03-20  Bruno Haible  <bruno@clisp.org>
9665
9666         verror: Fix compilation error introduced on 2011-02-13.
9667         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9668         instead of __attribute__.
9669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9670
9671 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9672             Bruno Haible  <bruno@clisp.org>
9673
9674         socklen: do not depend on sys_socket
9675         While trying to modify Emacs to use gnulib's socklen module,
9676         I discovered a circular dependency: socklen depends on sys_socket
9677         and vice versa.  Emacs can use socklen, but it does not need
9678         sys_socket because it has its own substitute for sys/socket.h.
9679         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9680         gl_TYPE_SOCKLEN_T.
9681         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9682         gl_PREREQ_SYS_H_SOCKET.
9683         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9684         gl_PREREQ_SYS_H_SOCKET.
9685         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9686         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9687         * modules/socklen (Depends-on): Do not depend on sys_socket.
9688         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9689
9690 2011-03-20  Jim Meyering  <meyering@redhat.com>
9691
9692         maint.mk: sort file names *after* new transformation
9693         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9694         prefix would have led to an unwarranted failure in GNU parted.
9695         Sort after that transformation.
9696
9697 2011-03-19  Jim Meyering  <meyering@redhat.com>
9698
9699         maint.mk: fix po-file syntax-check rule
9700         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9701         Patch by Bruno Haible.
9702
9703 2011-03-19  Bruno Haible  <bruno@clisp.org>
9704
9705         socklen: Update comment.
9706         * m4/socklen.m4: Update comment about platforms.
9707
9708 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9709             Bruno Haible  <bruno@clisp.org>
9710
9711         inet_ntop, inet_pton: Simplify.
9712         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9713         documented to provide socklen_t and we already depend on sys_socket.
9714         * modules/inet_pton (Depends-on): Likewise.
9715         * lib/arpa_inet.in.h: Adjust comment.
9716
9717 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9718             Bruno Haible  <bruno@clisp.org>
9719
9720         netdb: Simplify.
9721         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9722         documented to provide socklen_t and we already depend on sys_socket.
9723         * lib/netdb.in.h: Adjust comment.
9724
9725 2011-03-19  Bruno Haible  <bruno@clisp.org>
9726
9727         sys_socket, netdb: Document problem with socklen_t.
9728         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9729         platforms.
9730         * doc/posix-headers/netdb.texi: Likewise.
9731
9732 2011-03-18  Eric Blake  <eblake@redhat.com>
9733
9734         maint.mk: let po check work in VPATH build
9735         * top/maint.mk (po_file): Allow cfg.mk override.
9736         (sc_po_check): Allow VPATH use.
9737         Reported by Jiri Denemark.
9738
9739 2011-03-16  Jim Meyering  <meyering@redhat.com>
9740
9741         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9742         Before, you would have had to create one .x-sc_ file per rule in order
9743         to exempt offending files.  Now, you may instead use a Make variable --
9744         usually defined in cfg.mk -- whose name identifies the affected rule.
9745         * top/maint.mk (_sc_excl): Define.
9746         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9747         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9748
9749 2011-03-13  Bruno Haible  <bruno@clisp.org>
9750
9751         ignore-value tests: Avoid warnings.
9752         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9753         empty for gcc < 3.4.
9754
9755 2011-03-13  Bruno Haible  <bruno@clisp.org>
9756
9757         passfd: Fix link error on Solaris.
9758         * modules/passfd (Description): Correct.
9759         (Depends-on): Add socketlib.
9760         (Link): New section.
9761         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9762
9763 2011-03-13  Bruno Haible  <bruno@clisp.org>
9764
9765         passfd: Fix link error on AIX 5.2.
9766         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9767
9768 2011-03-13  Bruno Haible  <bruno@clisp.org>
9769
9770         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9771         * lib/sys_socket.in.h: Include <stddef.h>.
9772         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9773         CMSG_FIRSTHDR. Remove unused variable.
9774
9775 2011-03-13  Bruno Haible  <bruno@clisp.org>
9776
9777         passfd: Fix compilation error on OpenBSD.
9778         * lib/passfd.c: Include <sys/uio.h>.
9779
9780 2011-03-13  Bruno Haible  <bruno@clisp.org>
9781
9782         passfd test: Fix warnings.
9783         * tests/test-passfd.c: Include <sys/wait.h>.
9784         (main): Fix typo.
9785
9786 2011-03-13  Bruno Haible  <bruno@clisp.org>
9787
9788         passfd module, part 4, tweaks.
9789         * tests/test-passfd.c: Reorder includes.
9790         (main): Fix perror and printf calls.
9791
9792 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9793
9794         passfd module, part 4.
9795         * modules/passfd-tests: New file.
9796         * tests/test-passfd.c: New file.
9797
9798 2011-03-13  Jim Meyering  <meyering@redhat.com>
9799
9800         Makefile: rely on GNU make; derive syntax-check rule names
9801         Rather than requiring that each sc_ rule be listed as a dependent
9802         of "check", use features of GNU make to derive the list.
9803         * Makefile (syntax-check-rules): Define.
9804         (check): Depend on the new variable, not the hard-coded list.
9805
9806 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9807             Bruno Haible  <bruno@clisp.org>
9808
9809         passfd module, part 3.
9810         * lib/passfd.h (recvfd): Add a flags argument.
9811         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9812         (recvfd): Add a flags argument.
9813         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9814         exists.
9815         * modules/passfd (Depends-on): Add cloexec.
9816         Suggested by Eric Blake.
9817
9818 2011-03-13  Bruno Haible  <bruno@clisp.org>
9819
9820         passfd module, part 2, tweaks.
9821         * modules/passfd (Files): Reorder.
9822         (Depends-on): Remove errno.
9823         (Include): Remove <sys/socket.h>, <sys/un.h>.
9824         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9825         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9826         specification header. Include <sys/socket.h> always. Don't include
9827         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9828         (sendfd): Clarify that it sets errno when it fails.
9829         (recvfd): Fix specification.
9830
9831 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9832
9833         passfd module, part 2.
9834         * modules/passfd: New file.
9835         * lib/passfd.h: New file.
9836         * lib/passfd.c: New file.
9837
9838 2011-03-12  Bruno Haible  <bruno@clisp.org>
9839
9840         wcswidth, mbswidth: Avoid integer overflow.
9841         * lib/wcswidth.c: Include <limits.h>.
9842         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9843         * lib/mbswidth.c: Include <limits.h>.
9844         (mbsnwidth): Avoid 'int' overflow.
9845         Reported by Jim Meyering.
9846
9847 2011-03-12  Bruno Haible  <bruno@clisp.org>
9848
9849         futimens, utimensat: Avoid endless recursion on Solaris 10.
9850         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9851         Solaris.
9852         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9853         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9854
9855 2011-03-11  Jim Meyering  <meyering@redhat.com>
9856
9857         maint.mk: relax a regexp to accommodate other formatting styles
9858         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9859         between "ngettext" and the following "(".
9860
9861 2011-03-11  Pádraig Brady <P@draigBrady.com>
9862
9863         maint.mk: suppress a false positive warning
9864         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9865         diagnostics are marked with ngettext.
9866
9867 2011-03-10  Eric Blake  <eblake@redhat.com>
9868
9869         wchar: add explicit dependencies, for Tru64
9870         * modules/mbmemcasecoll (Depends-on): Add wchar.
9871         * modules/mbtowc (Depends-on): Likewise.
9872         * modules/vasnprintf (Depends-on): Likewise.
9873         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9874         * modules/wctomb (Depends-on): Likewise.
9875         Reported by Peter O'Gorman.
9876
9877 2011-03-08  Bruno Haible  <bruno@clisp.org>
9878
9879         passfd module, part 1, tweaks.
9880         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9881         Improve indentation. Improve AC_MSG_CHECKING messages.
9882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9883         gl_SOCKET_FAMILIES.
9884
9885 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9886
9887         passfd module, part 1.
9888         * m4/afunix.m4: New file.
9889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9890         sockets.
9891
9892 2011-03-08  Bruno Haible  <bruno@clisp.org>
9893
9894         regex-quote: New API.
9895         * lib/regex-quote.h: Include <stdbool.h>.
9896         (struct regex_quote_spec): New type.
9897         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9898         New declarations.
9899         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9900         'const struct regex_quote_spec *' argument.
9901         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9902         (pcre_special): New constant.
9903         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9904         New functions.
9905         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9906         'const struct regex_quote_spec *' argument.
9907         * modules/regex-quote (Depends-on): Add stdbool.
9908         * tests/test-regex-quote.c (check): Update for new API. Add test for
9909         anchored results.
9910         * NEWS: Mention the API change.
9911         Reported by Reuben Thomas and Eric Blake.
9912
9913 2011-03-06  Bruno Haible  <bruno@clisp.org>
9914
9915         regex-quote: Fix creation of POSIX extended regular expressions.
9916         * lib/regex-quote.c (ere_special): Add grouping and alternation
9917         operators.
9918
9919 2011-03-05  Bruno Haible  <bruno@clisp.org>
9920
9921         doc: Improve doc regarding autopoint vs. gnulib.
9922         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9923         disable autopoint while running autoreconf.
9924         Suggested by Ralf Wildenhues.
9925
9926 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9927
9928         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9929         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9930
9931 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9932
9933         parse-duration: remove xalloc.h dependency
9934         * lib/parse-duration.c (parse_period): handle NULL return from
9935         strdup instead of calling xstrdup().
9936         * modules/parse-duration: remove "xalloc" dependency
9937
9938 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9939
9940         bootstrap: honor m4_base when running aclocal
9941         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9942
9943 2011-03-02  Jim Meyering  <meyering@redhat.com>
9944
9945         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9946         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9947         on request from Matt Booth.
9948
9949 2011-03-01  Eric Blake  <eblake@redhat.com>
9950
9951         test-link: work on Hurd
9952         * tests/test-link.h (test_link): Hurd rejects linking directories
9953         with EISDIR instead of the POSIX-mandated EPERM.
9954
9955 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9956
9957         stdio: simplify by moving files to printf-posix, sigpipe
9958         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9959         since this symbol is needed only if printf is replaced.
9960         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9961         Require gl_ASM_SYMBOL_PREFIX.
9962         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9963         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9964         (Depends-on): Add 'raise'.
9965         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9966         * modules/stdio (Files): Remove lib/stdio-write.c,
9967         m4/asm-underscore.m4.
9968         (Depends-on): Remove 'raise'.
9969
9970         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9971         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9972         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9973         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9974
9975 2011-02-28  Bruno Haible  <bruno@clisp.org>
9976
9977         localcharset: Assume ANSI C behaviour of free().
9978         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9979         calling free().
9980         Suggested by Simon Josefsson <simon@josefsson.org>.
9981
9982 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9983             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9984             Bruno Haible  <bruno@clisp.org>  (tiny change)
9985
9986         On Cygwin, use /proc file system instead of win32 API.
9987         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9988         Win32 file names.
9989         (DllMain): Simplify by removing Cygwin specific code.
9990         (find_shared_library_fullname): Use Linux specific implementation also
9991         for Cygwin.
9992         (get_shared_library_fullname): Update accordingly.
9993         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9994         Win32 file names.
9995         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9996         Cygwin specific code.
9997
9998 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9999             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10000
10001         Fix OpenMP flag detection for various Fortran compilers.
10002         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10003         OpenMP-conditional compilation construct, to force compile
10004         failure with missing OpenMP flag.
10005         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10006
10007 2011-02-25  Eric Blake  <eblake@redhat.com>
10008
10009         strstr: expand test coverage
10010         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10011         compilation.
10012         * tests/test-memmem.c (main): Duplicate tests.
10013         * tests/test-strcasestr.c (main): Likewise.
10014         * tests/test-c-strcasestr.c (main): Likewise.
10015
10016 2011-02-25  Jim Meyering  <meyering@redhat.com>
10017
10018         maint.mk: detect missing-NL-at-EOF, too
10019         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10020         it also detects when a file lacks a newline at EOF.
10021         (require_exactly_one_NL_at_EOF_): Renamed from
10022         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10023         since people may well have .x-sc_... file names tied to the
10024         existing name.  Suggested by Eric Blake.
10025
10026 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10027
10028         dirname: move m4/dos.m4 functionality into lib/dosname.h
10029
10030         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10031         extracts symbols from it, puts them into config.h; but it's much
10032         easier to use the symbols directly.  filename.h already does this,
10033         but it disagrees with dos.m4 in some respects.  This patch
10034         introduces a different include file dosname.h that packages up
10035         dos.m4, and then later we can work on merging filename.h and
10036         dosname.h.  Applications that need only the easy-to-configure
10037         symbols should consider including dosname.h rather than dirname.h.
10038         * NEWS: Mention incompatible changes.
10039         * m4/dos.m4: Remove.
10040         * lib/dosname.h, modules/dosname: New files.
10041         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10042         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10043         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10044         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10045         Include dosname.h, not dirname.h.
10046         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10047         Include dosname.h, for definitions of symbols like ISSLASH
10048         that used to be in config.h.
10049         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10050         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10051         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10052         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10053         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10054         * modules/rmdir (Files): Likewise.
10055         * modules/stat (Files): Likewise.
10056         * modules/unlink (Files): Likewise.
10057         * modules/dirname-lgpl (Depends-on): Add dosname.
10058         * modules/lstat (Depends-on): Likewise.
10059         * modules/openat (Depends-on): Likewise.
10060         * modules/rmdir (Depends-on): Likewise.
10061         * modules/savewd (Depends-on): Likewise.
10062         * modules/stat (Depends-on): Likewise.
10063         * modules/unlink (Depends-on): Likewise.
10064         * modules/openat (Depends-on): Remove dirname-lgpl.
10065         * modules/savewd (Depends-on): Likewise.
10066         * tests/test-dirname.c: Do not use removed symbols like
10067         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10068         the remaining symbols, e.g., ISSLASH ('\\').
10069
10070 2011-02-25  Eric Blake  <eblake@redhat.com>
10071
10072         strstr: revert patches that introduced bug and pessimization
10073         * lib/str-two-way.h: Add another reference.
10074         (two_way_short_needle, two_way_long_needle): Revert changes from
10075         2011-02-24; they pessimize search speed.
10076         (critical_factorization): Partially revert changes from
10077         2010-06-22; they violate the requirement that the left half of the
10078         needle be smaller than the period of the needle.
10079
10080 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10081
10082         filenamecat: remove unnecessary dependency on dirname-lgpl
10083         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10084         is no direct dependency, just an indirect one via filenamecat-lgpl.
10085
10086         remove: remove unnecessary use of m4/dos.m4
10087         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10088         * modules/remove (FILES): Remove m4/dos.m4.
10089
10090         * lib/openat-proc.c: Don't include dirname.h; not needed.
10091
10092         backupfile: remove unnecessary use of m4/dos.m4
10093         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10094         of its symbols are used by the backupfile code.  backupfile.c does
10095         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10096         for the rare case of programs that want all their backup file
10097         names to live within 8+3 limits, and dos.m4 doesn't address that.
10098         * modules/backupfile (Files): Remove m4/dos.m4.
10099
10100 2011-02-24  Jim Meyering  <meyering@redhat.com>
10101
10102         strstr: fix a bug whereby strstr would mistakenly return NULL
10103         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10104         in period calculation.
10105         (two_way_long_needle): Likewise.
10106         The original problem was reported by Mike Stump in
10107         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10108         Ralf Wildenhues provided the short needle and haystack.
10109         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10110         Add a more involved test to trigger the bug in two_way_long_needle.
10111
10112 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10113
10114         gnulib-tool: remove use of bold display in help screen
10115         * gnulib-tool (func_usage): Do not use bold display anymore in the
10116         help screen.  That was just meant to be a temporary emphasis for a
10117         backward-incompatible change.
10118
10119 2011-02-23  Bruno Haible  <bruno@clisp.org>
10120
10121         Fix misindentation of preprocessor directives.
10122         * lib/argp-namefrob.h: Reindent preprocessor directives.
10123         * lib/getopt_int.h (struct _getopt_data): Likewise.
10124         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10125         * lib/vasnprintf.c (decode_long_double): Likewise.
10126         * tests/test-argmatch.c: Insert blank lines, for clarity.
10127         * tests/test-exclude.c: Likewise.
10128
10129 2011-02-22  Bruno Haible  <bruno@clisp.org>
10130
10131         ioctl: Fix for MacOS X in 64-bit mode.
10132         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10133         value.
10134         Suggested by Eric Blake.
10135         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10136
10137 2011-02-22  Jim Meyering  <meyering@redhat.com>
10138
10139         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10140         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10141         in lib/.
10142
10143 2011-02-22  Eric Blake  <eblake@redhat.com>
10144
10145         maint: avoid any CDPATH issue
10146         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10147
10148         maint: adjust cpp indentation for my modules, as well
10149         * Makefile (sc_cpp_indent_check): Add my name.
10150         * lib/fbufmode.c: Filter through cppi.
10151         * lib/fpurge.c: Likewise.
10152         * lib/freadable.c: Likewise.
10153         * lib/freading.c: Likewise.
10154         * lib/fwritable.c: Likewise.
10155         * lib/fwriting.c: Likewise.
10156         * lib/sigaction.c: Likewise.
10157
10158 2011-02-22  Jim Meyering  <meyering@redhat.com>
10159
10160         maint: adjust cpp indentation to reflect nesting depth
10161         I.e., in a block of code that begins with an unnested "#if",
10162         put one space between the "#" in column 1 and following token.
10163         For example,
10164         -#include <sys/vfs.h>
10165         +# include <sys/vfs.h>
10166         Do this only in .c files that are part of a module I maintain.
10167         * lib/linkat.c: Filter through cppi.
10168         * lib/nanosleep.c: Likewise.
10169         * lib/openat.c: Likewise.
10170         * lib/openat-die.c: Likewise.
10171         * lib/dup3.c: Likewise.
10172         * lib/fchownat.c: Likewise.
10173         * lib/flock.c: Likewise.
10174         * lib/fsync.c: Likewise.
10175         * lib/fts.c: Likewise.
10176         * lib/getpass.c: Likewise.
10177         * lib/gettimeofday.c: Likewise.
10178         * lib/userspec.c: Likewise.
10179         * Makefile (sc_cpp_indent_check): New rule, to check this.
10180
10181 2011-02-22  Bruno Haible  <bruno@clisp.org>
10182
10183         New module 'wctomb'.
10184         * lib/stdlib.in.h (wctomb): New declaration.
10185         * lib/wctomb.c: New file.
10186         * lib/wctomb-impl.h: New file.
10187         * m4/wctomb.m4: New file.
10188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10189         REPLACE_WCTOMB.
10190         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10191         REPLACE_WCTOMB.
10192         * modules/wctomb: New file.
10193         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10194         * doc/posix-functions/wctomb.texi: Mention the new module.
10195         * modules/wctob (Depends-on): Add wctomb.
10196
10197 2011-02-22  Bruno Haible  <bruno@clisp.org>
10198
10199         New module 'mbtowc'.
10200         * lib/stdlib.in.h (mbtowc): New declaration.
10201         * lib/mbtowc.c: New file.
10202         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10203         * m4/mbtowc.m4: New file.
10204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10205         REPLACE_MBTOWC.
10206         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10207         REPLACE_MBTOWC.
10208         * modules/mbtowc: New file.
10209         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10210         * doc/posix-functions/mbtowc.texi: Mention the new module.
10211         * modules/btowc (Depends-on): Add mbtowc.
10212
10213 2011-02-22  Bruno Haible  <bruno@clisp.org>
10214
10215         wcrtomb: Add more tests for native Windows platforms.
10216         * tests/test-wcrtomb-w32-1.sh: New file.
10217         * tests/test-wcrtomb-w32-2.sh: New file.
10218         * tests/test-wcrtomb-w32-3.sh: New file.
10219         * tests/test-wcrtomb-w32-4.sh: New file.
10220         * tests/test-wcrtomb-w32-5.sh: New file.
10221         * tests/test-wcrtomb-w32.c: New file.
10222         * modules/wcrtomb-tests (Files): Add them.
10223         (Makefile.am): Arrange to run these tests.
10224         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10225         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10226
10227 2011-02-20  Bruno Haible  <bruno@clisp.org>
10228
10229         wcrtomb: Enhance test.
10230         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10231
10232 2011-02-20  Bruno Haible  <bruno@clisp.org>
10233
10234         mbrtowc: Tiny optimization.
10235         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10236
10237 2011-02-20  Jim Meyering  <meyering@redhat.com>
10238
10239         test-exclude.c: remove unmatched #endif
10240         * tests/test-exclude.c: Remove stray #endif, left over from
10241         the change of a week ago.
10242
10243 2011-02-19  Jim Meyering  <meyering@redhat.com>
10244
10245         git-version-gen: skip "-dirty" check when appropriate
10246         * build-aux/git-version-gen: Don't run any git commands when the
10247         version string comes from .tarball-version.  Prior to this, we
10248         would run git update-index --refresh even from a just-unpacked
10249         tarball directory, and that could affect a .git/ directory in a
10250         parent of the build directory.  Reported by Mike Frysinger.
10251
10252 2011-02-19  Bruno Haible  <bruno@clisp.org>
10253
10254         unictype/property-byname: Reduce the size of the 'data' segment.
10255         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10256
10257 2011-02-19  Bruno Haible  <bruno@clisp.org>
10258
10259         unictype/scripts: Reduce the size of the 'data' segment.
10260         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10261         '%pic'.
10262         * lib/unictype/scripts_byname.gperf: Regenerated.
10263
10264 2011-02-19  Bruno Haible  <bruno@clisp.org>
10265
10266         stdint: Update documentation.
10267         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10268
10269 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10270
10271         stdint: omit redundant check for wchar.h
10272         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10273         always tests whether wchar.h exists, so remove the now-redundant test.
10274
10275 2011-02-18  Bruno Haible  <bruno@clisp.org>
10276
10277         stdint: Cut dependency to module 'wchar'.
10278         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10279         include the necessary prerequisites.
10280         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10281         * modules/stdint (Depends-on): Remove wchar.
10282         (Makefile.am): Substitute HAVE_WCHAR_H.
10283         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10284
10285 2011-02-18  Eric Blake  <eblake@redhat.com>
10286
10287         longlong: skip, rather than fail, on cross-compilation
10288         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10289         when cross-compiling; regression from 2011-02-16.
10290
10291 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10292
10293         * NEWS: Mention 2011-02-08 change to stdlib.
10294
10295 2011-02-17  Bruno Haible  <bruno@clisp.org>
10296
10297         getloadavg: Add comments about platforms.
10298         * m4/getloadavg.m4: Add comment.
10299         * lib/getloadavg.c: Likewise.
10300
10301 2011-02-17  Bruno Haible  <bruno@clisp.org>
10302
10303         getloadavg: Fix link error on Solaris 2.6.
10304         * modules/getloadavg (Link): New section.
10305         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10306         linking test-getloadavg.
10307         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10308         getloadavg.
10309
10310 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10311
10312         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10313         It was 'int', but this doesn't match the IRIX 6.5 manual.
10314         Suggested by Bruno Haible in
10315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10316
10317 2011-02-17  Bruno Haible  <bruno@clisp.org>
10318
10319         havelib: Fix comments.
10320         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10321         change.
10322
10323 2011-02-17  Bruno Haible  <bruno@clisp.org>
10324
10325         havelib: Update config.rpath.
10326         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10327
10328 2011-02-17  Bruno Haible  <bruno@clisp.org>
10329
10330         getloadavg test: Add some plausibility checks.
10331         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10332         is improbable.
10333
10334 2011-02-16  Eric Blake  <eblake@redhat.com>
10335
10336         maintainer-makefile: make syntax-check a no-op from tarballs
10337         * top/maint.mk (no-vc-detected): New rule.
10338         (local-checks-available): Use it to avoid hanging if someone tries
10339         'make syntax-check' from a tarball.  Also append to any non-syntax
10340         checks already defined in cfg.mk.
10341
10342 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10343
10344         longlong: tune, particularly for common case of c99
10345
10346         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10347         or running anything if c99, or if unsigned long long int does not
10348         work.  In either case, we know the answer without further tests.
10349         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10350         it at most once, and use its results for both long long int and
10351         unsigned long long int.  This is more likely to be efficient in
10352         the common case where the program wants to check for both long
10353         long int and unsigned long long int.
10354         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10355         since the answer is already known.
10356
10357 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10358
10359         getloadavg: set errno
10360         * lib/getloadavg.c: Set errno when returning -1.  If no other
10361         error number looks appropriate, set it to ENOSYS if the getloadavg
10362         looks like it can't possibly ever work, ENOTSUP otherwise.
10363         Suggested by Bruno Haible in
10364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10365
10366         getloadavg: trim unused parts and speed up 'configure'
10367         * NEWS: Document this.
10368         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10369         always compiled if getloadavg is absent.
10370         Move test code to ...
10371         * tests/test-getloadavg.c: New file, containing previous
10372         contents of test from lib/getloadavg.c.  It also contains
10373         suggestions by Bruno Haible in
10374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10375         * modules/getloadavg-tests: New file.
10376         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10377         Do tests in the same order as they're needed for getloadavg.c.
10378         Omit setgid-related tests that generate symbols KMEM_GROUP,
10379         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10380         Do only the tests that are needed to see whether the system has
10381         getloadavg, moving the other tests into ...
10382         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10383         NLIST_NAME_UNION; nobody should be using it.  Do not define
10384         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10385         relevant, as the user of this module shouldn't care how getloadavg
10386         is implemented.
10387
10388         getloadavg: omit unused var
10389         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10390
10391 2011-02-15  Jim Meyering  <meyering@redhat.com>
10392
10393         doc: update users.txt
10394         * users.txt: Update iwhd's URL.
10395
10396 2011-02-13  Bruno Haible  <bruno@clisp.org>
10397
10398         Consistent macro naming for macros that use GCC __attribute__.
10399         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10400         _ATTRIBUTE_NONNULL_.
10401         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10402         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10403         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10404         ATTRIBUTE_DEPRECATED.
10405         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10406         ATTRIBUTE_NORETURN.
10407         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10408         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10409         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10410         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10411         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10412         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10413         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10414         ATTRIBUTE_SENTINEL.
10415         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10416         ATTRIBUTE_RETURN_CHECK.
10417         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10418         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10419         ATTRIBUTE_NORETURN.
10420         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10421         Reported by Paul Eggert.
10422
10423 2011-02-13  Bruno Haible  <bruno@clisp.org>
10424
10425         Don't interfere with a program's definition of __attribute__.
10426         * lib/argp.h (__attribute__): Remove definition.
10427         (_GL_ATTRIBUTE_FORMAT): New macro.
10428         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10429         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10430         (_GL_ATTRIBUTE_FORMAT): New macro.
10431         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10432         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10433         GCC 3 or newer.
10434         * lib/error.h (__attribute__): Remove definition.
10435         (_GL_ATTRIBUTE_FORMAT): New macro.
10436         (error, error_at_line): Use it.
10437         * lib/hash.h (__attribute__): Remove definition.
10438         (ATTRIBUTE_WUR): Update definition. Define always.
10439         * lib/openat.h (__attribute__): Remove definition.
10440         (ATTRIBUTE_NORETURN): Update definition. Define always.
10441         * lib/sigpipe-die.h (__attribute__): Remove definition.
10442         (ATTRIBUTE_NORETURN): Update definition. Define always.
10443         * lib/vasnprintf.h (__attribute__): Remove definition.
10444         (_GL_ATTRIBUTE_FORMAT): New macro.
10445         (asnprintf, vasnprintf): Use it.
10446         * lib/xalloc.h (__attribute__): Remove definition.
10447         (ATTRIBUTE_NORETURN): Update definition. Define always.
10448         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10449         * lib/xmemdup0.h (__attribute__): Remove definition.
10450         (ATTRIBUTE_NORETURN): Update definition. Define always.
10451         * lib/xprintf.h (__attribute__): Remove definition.
10452         (_GL_ATTRIBUTE_FORMAT): New macro.
10453         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10454         * lib/xstrtol.h (__attribute__): Remove definition.
10455         (ATTRIBUTE_NORETURN): Update definition. Define always.
10456         * lib/xvasprintf.h (__attribute__): Remove definition.
10457         (_GL_ATTRIBUTE_FORMAT): New macro.
10458         (xasprintf, xvasprintf): Use it.
10459         * tests/test-argmatch.c (__attribute__): Remove definition.
10460         (ATTRIBUTE_NORETURN): Update definition. Define always.
10461         * tests/test-exclude.c (__attribute__): Remove definition.
10462         (ATTRIBUTE_NORETURN): Update definition. Define always.
10463         Reported by Paul Eggert.
10464
10465 2011-02-13  Bruno Haible  <bruno@clisp.org>
10466
10467         mbrtowc: Add more tests for native Windows platforms.
10468         * tests/test-mbrtowc-w32-1.sh: New file.
10469         * tests/test-mbrtowc-w32-2.sh: New file.
10470         * tests/test-mbrtowc-w32-3.sh: New file.
10471         * tests/test-mbrtowc-w32-4.sh: New file.
10472         * tests/test-mbrtowc-w32-5.sh: New file.
10473         * tests/test-mbrtowc-w32.c: New file.
10474         * modules/mbrtowc-tests (Files): Add them.
10475         (Makefile.am): Arrange to run these tests.
10476         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10477         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10478
10479 2011-02-13  Bruno Haible  <bruno@clisp.org>
10480
10481         mbrtowc: Work around native Windows bug.
10482         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10483         guess when no suitable locale for testing was found.
10484         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10485
10486 2011-02-13  Bruno Haible  <bruno@clisp.org>
10487
10488         mbsinit: Work around mingw bug.
10489         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10490         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10491         Windows.
10492         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10493
10494 2011-02-13  Bruno Haible  <bruno@clisp.org>
10495
10496         mbsinit: Don't crash for a NULL argument.
10497         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10498         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10499
10500 2011-02-13  Bruno Haible  <bruno@clisp.org>
10501
10502         Don't interfere with a program's definition of __attribute__.
10503         * lib/stdio.in.h (__attribute__): Remove definition.
10504         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10505         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10506         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10507         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10508         * lib/string.in.h (__attribute__): Remove definition.
10509         Reported by Paul Eggert.
10510
10511 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10512
10513         stdlib: don't get in the way of non-GCC __attribute__
10514         See thread starting at
10515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10516         Revert previous stdlib change, installing the following instead:
10517         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10518         to get in the way of a non-GCC compiler that supports __attribute__.
10519         (_GL_ATTRIBUTE_RETURN): New macro.
10520         (_Exit): Use it instead of __attribute__.
10521
10522 2011-02-12  Bruno Haible  <bruno@clisp.org>
10523
10524         quotearg test: Avoid test failure on mingw.
10525         * tests/test-quotearg.sh: Convert the locale identifier from native
10526         Windows syntax to Unix syntax.
10527
10528 2011-02-12  Bruno Haible  <bruno@clisp.org>
10529
10530         setlocale: Prefer gnulib's override over libintl's override.
10531         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10532         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10533         GNULIB_defined_setlocale is set.
10534
10535 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10536
10537         stdlib: support non-GCC __attribute__
10538
10539         Fix a serious and tricky problem encountered when attempting to
10540         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10541         5.5, but it crashed due to memory corruption on Solaris 10 with
10542         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10543         bits that are otherwise zero.  This tagging is optional inside
10544         Emacs but is preferred and is used when __attribute__ ((__aligned
10545         (8))) works, as it does with both recent-enough GCC and with Sun C
10546         5.11.  However, Sun C 5.11 is not GCC and does not #define
10547         __GNUC__ and __GNUC_MINOR__.
10548
10549         When I added the getloadavg module to Emacs, it brought in
10550         stdlib.in.h, which contained this fragment:
10551
10552            #ifndef __attribute__
10553            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10554            #  define __attribute__(Spec)   /* empty */
10555            # endif
10556            #endif
10557
10558         When files that include <stdlib.h> were compiled with Sun C 5.11,
10559         the above code disabled __attribute__ ((__aligned (8))), which
10560         caused variables to not be properly aligned, which eventually led
10561         to the pointer corruption mentioned above.  (This was a bit hard
10562         to diagnose, unfortunately.)
10563
10564         Several "#define __attribute__(X) /* empty */" code snippets need
10565         to be eradicated from Gnulib to work with non-GCC compilers that
10566         support __attribute__.  The Autoconf way to do this is to test for
10567         each kind of attribute that we want support for, and selectively
10568         enable that in source code.
10569
10570         Fix this problem just for stdlib.h, by adding a test for the
10571         __noreturn__ attribute, and change stdlib.in.h to use that test
10572         when needed.  This technique can be easily generalized to the
10573         other *.in.h files and attributes, and a similar technique can be
10574         used for *.h and *.c files.  This patch is enough to solve the
10575         problem for Emacs + getloadavg, and I thought I'd publish it for
10576         feedback before undertaking further, similar fixes in other
10577         modules.
10578
10579         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10580         because it's not needed for stdlib.h.  It merely substitutes the
10581         value directly into stdlib.h.  We may well need to #define it, or
10582         similar symbols, for other modules, but it's nice to also have an
10583         option to not #define it for applications like Emacs that do not
10584         need it.
10585
10586         * lib/stdlib.in.h (__attribute__): Do not #define.
10587         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10588         be defined only if the _Exit module is also used.
10589         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10591         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10592         platforms.
10593         * modules/_Exit (Files): Add m4/attribute.m4.
10594         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10595         * m4/attribute.m4: New file.
10596
10597 2011-02-12  Bruno Haible  <bruno@clisp.org>
10598
10599         wcsrtombs: Work around bug on native Windows.
10600         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10601         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10602         instead of len.
10603         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10604
10605 2011-02-12  Bruno Haible  <bruno@clisp.org>
10606
10607         mbsrtowcs: Work around bug on native Windows.
10608         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10609         against mingw bug.
10610         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10611
10612 2011-02-12  Bruno Haible  <bruno@clisp.org>
10613
10614         Avoid setlocale bugs in tests.
10615         * modules/btowc (Dependencies): Add setlocale.
10616         * modules/c-strcase (Dependencies): Likewise.
10617         * modules/mbmemcasecmp (Dependencies): Likewise.
10618         * modules/mbmemcasecoll (Dependencies): Likewise.
10619         * modules/mbrtowc (Dependencies): Likewise.
10620         * modules/mbscasecmp (Dependencies): Likewise.
10621         * modules/mbscasestr (Dependencies): Likewise.
10622         * modules/mbschr (Dependencies): Likewise.
10623         * modules/mbscspn (Dependencies): Likewise.
10624         * modules/mbsinit (Dependencies): Likewise.
10625         * modules/mbsncasecmp (Dependencies): Likewise.
10626         * modules/mbsnrtowcs (Dependencies): Likewise.
10627         * modules/mbspbrk (Dependencies): Likewise.
10628         * modules/mbspcasecmp (Dependencies): Likewise.
10629         * modules/mbsrchr (Dependencies): Likewise.
10630         * modules/mbsrtowcs (Dependencies): Likewise.
10631         * modules/mbsspn (Dependencies): Likewise.
10632         * modules/mbsstr (Dependencies): Likewise.
10633         * modules/nl_langinfo (Dependencies): Likewise.
10634         * modules/quotearg (Dependencies): Likewise.
10635         * modules/unicase/locale-language (Dependencies): Likewise.
10636         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10637         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10638         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10639         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10640         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10641         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10642         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10643         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10644         * modules/vasnprintf-posix (Dependencies): Likewise.
10645         * modules/wcrtomb (Dependencies): Likewise.
10646         * modules/wcsnrtombs (Dependencies): Likewise.
10647         * modules/wcsrtombs (Dependencies): Likewise.
10648
10649 2011-02-12  Bruno Haible  <bruno@clisp.org>
10650
10651         setlocale: Workaround native Windows bug.
10652         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10653         succeeds but sets LC_CTYPE to "C", report a failure.
10654         * tests/test-setlocale2.sh: New file.
10655         * tests/test-setlocale2.c: New file.
10656         * modules/setlocale-tests (Files): Add the new files.
10657         (Makefile.am): Enable test-setlocale2.sh test.
10658         * doc/posix-functions/setlocale.texi: Mention workaround.
10659
10660 2011-02-11  Bruno Haible  <bruno@clisp.org>
10661
10662         Tests for module 'setlocale'.
10663         * modules/setlocale-tests: New file.
10664         * tests/test-setlocale1.sh: New file.
10665         * tests/test-setlocale1.c: New file.
10666
10667         New module 'setlocale'.
10668         * lib/locale.in.h (setlocale): New declaration.
10669         * lib/setlocale.c: New file, based on
10670         gettext/gettext-runtime/intl/setlocale.c.
10671         * m4/setlocale.m4: New file.
10672         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10673         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10674         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10675         REPLACE_SETLOCALE.
10676         * modules/setlocale: New file.
10677         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10678         * doc/posix-functions/setlocale.texi: Mention the new module.
10679
10680 2011-02-11  Bruno Haible  <bruno@clisp.org>
10681
10682         Prepare for locale dependent tests on mingw.
10683         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10684         because it has the wrong locale encoding.
10685         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10686         French_France.1252 instead of "fr".
10687         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10688         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10689         because it has the wrong locale encoding.
10690         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10691         native Windows, try Turkish_Turkey.65001.
10692         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10693         Chinese_China.54936.
10694
10695         Prepare for locale dependent tests on mingw.
10696         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10697         differently.
10698         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10699         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10700         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10701         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10702
10703 2011-02-11  Eric Blake  <eblake@redhat.com>
10704
10705         strptime: avoid compiler warnings
10706         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10707         compiler warnings about dead code.
10708         Reported by Daniel P. Berrange.
10709
10710 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10711
10712         doc: update users.txt
10713         * users.txt: Add rcs.
10714
10715 2011-02-10  John W. Eaton  <jwe@gnu.org>
10716
10717         doc: update users.txt
10718         * users.txt: Add octave.
10719
10720 2011-02-10  Jim Meyering  <meyering@redhat.com>
10721
10722         doc: update users.txt
10723         * users.txt: Add iwhd.
10724
10725 2011-02-09  Bruno Haible  <bruno@clisp.org>
10726
10727         gnulib-tool: Make copyright notice adjustment more robust.
10728         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10729         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10730         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10731         License".
10732         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10733
10734 2011-02-06  Bruno Haible  <bruno@clisp.org>
10735
10736         New module 'towctrans'.
10737         * modules/towctrans: New file.
10738         * lib/wctype.in.h (towctrans): New declaration.
10739         * lib/towctrans.c: New file.
10740         * lib/towctrans-impl.h: New file.
10741         * m4/towctrans.m4: New file.
10742         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10743         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10744         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10745         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10746         * doc/posix-functions/towctrans.texi: Mention the new module.
10747
10748 2011-02-06  Bruno Haible  <bruno@clisp.org>
10749
10750         New module 'wctrans'.
10751         * modules/wctrans: New file.
10752         * lib/wctype.in.h (wctrans): New declaration.
10753         * lib/wctrans.c: New file.
10754         * lib/wctrans-impl.h: New file.
10755         * m4/wctrans.m4: New file.
10756         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10757         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10758         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10759         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10760         * doc/posix-functions/wctrans.texi: Mention the new module.
10761
10762 2011-02-06  Bruno Haible  <bruno@clisp.org>
10763
10764         New module 'iswctype'.
10765         * modules/iswctype: New file.
10766         * lib/wctype.in.h (iswctype): New declaration.
10767         * lib/iswctype.c: New file.
10768         * lib/iswctype-impl.h: New file.
10769         * m4/iswctype.m4: New file.
10770         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10771         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10772         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10773         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10774         * doc/posix-functions/iswctype.texi: Mention the new module and the
10775         HP-UX 11.00 problem.
10776
10777 2011-02-06  Bruno Haible  <bruno@clisp.org>
10778
10779         New module 'wctype'.
10780         * modules/wctype: Change to represent the wctype() substitute.
10781         * lib/wctype.in.h (wctype): New declaration.
10782         * lib/wctype.c: New file.
10783         * lib/wctype-impl.h: New file.
10784         * m4/wctype.m4: New file.
10785         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10786         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10787         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10788         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10789         * doc/posix-functions/wctype.texi: Mention the new module and the
10790         HP-UX 11.00 problem.
10791
10792 2011-02-06  Bruno Haible  <bruno@clisp.org>
10793
10794         wctype-h: Ensure wctype_t and wctrans_t are defined.
10795         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10796         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10797         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10798         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10799         HAVE_WCTRANS_T.
10800         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10801
10802 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         flock: fix license typo
10805
10806         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10807         omitted.
10808
10809 2011-02-08  Bruno Haible  <bruno@clisp.org>
10810
10811         Split large sed scripts, for HP-UX sed.
10812         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10813         to avoid HP-UX limit of 99 commands, in the near future.
10814         * modules/stdlib (Makefile.am): Likewise.
10815         * modules/unistd (Makefile.am): Likewise.
10816         * modules/wchar (Makefile.am): Likewise.
10817         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10818         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10820
10821 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10822             Bruno Haible  <bruno@clisp.org>
10823
10824         stdlib: improve random_r modularization
10825         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10826         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10827         you also need the random_r module to get this material right.
10828         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10829         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10830         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10831
10832 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10833
10834         stdlib: don't depend on stdint
10835         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10836         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10837         be independent of whether stdint.h is needed.
10838         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10839         here, instead of ...
10840         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10841         struct random_data should be using the random_r module, not just
10842         the stdlib module (which wouldn't make sense: what package needs
10843         just struct random_data without also needing random_r?).
10844         * modules/stdlib (Depends-on): Remove stdint.
10845
10846         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10847         See the thread rooted at
10848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10849         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10850         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10851         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10852         __VMS)); previously it was always included (via fcntl--.h).
10853         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10854         hand; this is good enough for load averages.  Also, do not use
10855         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10856         flags directly if available and don't bother otherwise.  (Packages
10857         that need the extra reliability should use the modules that define
10858         these flags on older platforms that lack them.)
10859         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10860         fcntl-safer.
10861
10862 2011-02-08  Jim Meyering  <meyering@redhat.com>
10863
10864         di-set.h, ino-map.h: add multiple-inclusion guard
10865         Technically, the guard is required only for ino-map.h, due to its
10866         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10867         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10868         * lib/ino-map.h: Likewise.
10869
10870 2011-02-06  Bruno Haible  <bruno@clisp.org>
10871
10872         iswblank: Ensure declaration on glibc systems.
10873         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10874         * modules/iswblank (Dependencies): Add 'extensions'.
10875         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10876
10877 2011-02-06  Bruno Haible  <bruno@clisp.org>
10878
10879         New module 'iswblank'.
10880         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10881         * modules/iswblank: New file.
10882         * modules/wctype-h (Files): Remove lib/iswblank.c.
10883         (Makefile.am): Substitute GNULIB_ISWBLANK.
10884         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10885         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10886         (gl_WCTYPE_H_DEFAULTS): New macro.
10887         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10888         * modules/iswblank-tests: New file.
10889         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10890         * tests/test-wctype-h.c (main): Remove iswblank tests.
10891         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10892         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10893         of 'wctype-h'.
10894         * NEWS: Mention the change.
10895         * modules/mbchar (Depends-on): Add iswblank.
10896
10897 2011-02-08  Bruno Haible  <bruno@clisp.org>
10898
10899         di-set tests: Refactor.
10900         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10901         unnecessary includes.
10902         (ASSERT): Remove macro.
10903         (main): Make C90 compliant by avoiding variable declaration after
10904         statement.
10905         * modules/di-set-tests (Files): Add tests/macros.h.
10906
10907 2011-02-08  Bruno Haible  <bruno@clisp.org>
10908
10909         ino-map tests: Refactor.
10910         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10911         unnecessary includes.
10912         (ASSERT): Remove macro.
10913         (main): Make C90 compliant by avoiding variable declaration after
10914         statement.
10915         * modules/ino-map-tests (Files): Add tests/macros.h.
10916
10917 2011-02-08  Jim Meyering  <meyering@redhat.com>
10918
10919         di-set: add "const" to a cast
10920         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10921         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10922
10923 2011-02-06  Bruno Haible  <bruno@clisp.org>
10924
10925         Rename module 'wctype' to 'wctype-h'.
10926         * modules/wctype-h: Renamed from modules/wctype.
10927         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10928         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10929         (Files, Depends-on, Makefile.am): Update.
10930         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10931         (Files, Makefile.am): Update.
10932         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10933         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10934         * doc/posix-headers/wctype.texi: Update.
10935         * doc/posix-functions/iswalnum.texi: Update.
10936         * doc/posix-functions/iswalpha.texi: Update.
10937         * doc/posix-functions/iswblank.texi: Update.
10938         * doc/posix-functions/iswcntrl.texi: Update.
10939         * doc/posix-functions/iswdigit.texi: Update.
10940         * doc/posix-functions/iswgraph.texi: Update.
10941         * doc/posix-functions/iswlower.texi: Update.
10942         * doc/posix-functions/iswprint.texi: Update.
10943         * doc/posix-functions/iswpunct.texi: Update.
10944         * doc/posix-functions/iswspace.texi: Update.
10945         * doc/posix-functions/iswupper.texi: Update.
10946         * doc/posix-functions/iswxdigit.texi: Update.
10947         * doc/posix-functions/towlower.texi: Update.
10948         * doc/posix-functions/towupper.texi: Update.
10949         * NEWS: Mention the change.
10950         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10951         * modules/mbchar (Dependencies): Likewise.
10952         * modules/mbswidth (Dependencies): Likewise.
10953         * modules/quotearg (Dependencies): Likewise.
10954         * modules/regex (Dependencies): Likewise.
10955         * modules/wcscasecmp (Dependencies): Likewise.
10956         * modules/wcsncasecmp (Dependencies): Likewise.
10957         * modules/wcwidth (Dependencies): Likewise.
10958
10959 2011-02-06  Bruno Haible  <bruno@clisp.org>
10960
10961         New module 'wcswidth'.
10962         * modules/wcswidth: New file.
10963         * lib/wchar.in.h (wcswidth): New declaration.
10964         * lib/wcswidth.c: New file.
10965         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10966         * m4/wcswidth.m4: New file.
10967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10969         REPLACE_WCSWIDTH.
10970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10971         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10972         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10973         * doc/posix-functions/wcswidth.texi: Mention the new module.
10974
10975 2011-02-06  Bruno Haible  <bruno@clisp.org>
10976
10977         New module 'wcstok'.
10978         * modules/wcstok: New file.
10979         * lib/wchar.in.h (wcstok): New declaration.
10980         * lib/wcstok.c: New file.
10981         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10982         * m4/wcstok.m4: New file.
10983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10986         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10987         * doc/posix-functions/wcstok.texi: Mention the new module.
10988
10989 2011-02-06  Bruno Haible  <bruno@clisp.org>
10990
10991         New module 'wcsstr'.
10992         * modules/wcsstr: New file.
10993         * lib/wchar.in.h (wcsstr): New declaration.
10994         * lib/wcsstr.c: New file.
10995         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10996         * m4/wcsstr.m4: New file.
10997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11000         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11001         * doc/posix-functions/wcsstr.texi: Mention the new module.
11002
11003 2011-02-06  Bruno Haible  <bruno@clisp.org>
11004
11005         New module 'wcspbrk'.
11006         * modules/wcspbrk: New file.
11007         * lib/wchar.in.h (wcspbrk): New declaration.
11008         * lib/wcspbrk.c: New file.
11009         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11010         * m4/wcspbrk.m4: New file.
11011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11014         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11015         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11016
11017 2011-02-06  Bruno Haible  <bruno@clisp.org>
11018
11019         New module 'wcsspn'.
11020         * modules/wcsspn: New file.
11021         * lib/wchar.in.h (wcsspn): New declaration.
11022         * lib/wcsspn.c: New file.
11023         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11024         * m4/wcsspn.m4: New file.
11025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11028         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11029         * doc/posix-functions/wcsspn.texi: Mention the new module.
11030
11031 2011-02-06  Bruno Haible  <bruno@clisp.org>
11032
11033         New module 'wcscspn'.
11034         * modules/wcscspn: New file.
11035         * lib/wchar.in.h (wcscspn): New declaration.
11036         * lib/wcscspn.c: New file.
11037         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11038         * m4/wcscspn.m4: New file.
11039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11042         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11043         * doc/posix-functions/wcscspn.texi: Mention the new module.
11044
11045 2011-02-06  Bruno Haible  <bruno@clisp.org>
11046
11047         New module 'wcsrchr'.
11048         * modules/wcsrchr: New file.
11049         * lib/wchar.in.h (wcsrchr): New declaration.
11050         * lib/wcsrchr.c: New file.
11051         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11052         * m4/wcsrchr.m4: New file.
11053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11056         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11057         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11058
11059 2011-02-06  Bruno Haible  <bruno@clisp.org>
11060
11061         New module 'wcschr'.
11062         * modules/wcschr: New file.
11063         * lib/wchar.in.h (wcschr): New declaration.
11064         * lib/wcschr.c: New file.
11065         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11066         * m4/wcschr.m4: New file.
11067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11070         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11071         * doc/posix-functions/wcschr.texi: Mention the new module.
11072
11073 2011-02-06  Bruno Haible  <bruno@clisp.org>
11074
11075         New module 'wcsdup'.
11076         * modules/wcsdup: New file.
11077         * lib/wchar.in.h (wcsdup): New declaration.
11078         * lib/wcsdup.c: New file.
11079         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11080         * m4/wcsdup.m4: New file.
11081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11084         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11085         * doc/posix-functions/wcsdup.texi: Mention the new module.
11086
11087 2011-02-06  Bruno Haible  <bruno@clisp.org>
11088
11089         New module 'wcsxfrm'.
11090         * modules/wcsxfrm: New file.
11091         * lib/wchar.in.h (wcsxfrm): New declaration.
11092         * lib/wcsxfrm.c: New file.
11093         * lib/wcsxfrm-impl.h: New file.
11094         * m4/wcsxfrm.m4: New file.
11095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11098         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11099         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11100
11101 2011-02-06  Bruno Haible  <bruno@clisp.org>
11102
11103         New module 'wcscoll'.
11104         * modules/wcscoll: New file.
11105         * lib/wchar.in.h (wcscoll): New declaration.
11106         * lib/wcscoll.c: New file.
11107         * lib/wcscoll-impl.h: New file.
11108         * m4/wcscoll.m4: New file.
11109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11112         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11113         * doc/posix-functions/wcscoll.texi: Mention the new module.
11114
11115 2011-02-06  Bruno Haible  <bruno@clisp.org>
11116
11117         New module 'wcsncasecmp'.
11118         * modules/wcsncasecmp: New file.
11119         * lib/wchar.in.h (wcsncasecmp): New declaration.
11120         * lib/wcsncasecmp.c: New file.
11121         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11122         * m4/wcsncasecmp.m4: New file.
11123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11126         HAVE_WCSNCASECMP.
11127         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11128         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11129
11130 2011-02-06  Bruno Haible  <bruno@clisp.org>
11131
11132         New module 'wcscasecmp'.
11133         * modules/wcscasecmp: New file.
11134         * lib/wchar.in.h (wcscasecmp): New declaration.
11135         * lib/wcscasecmp.c: New file.
11136         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11137         * m4/wcscasecmp.m4: New file.
11138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11141         HAVE_WCSCASECMP.
11142         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11143         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11144
11145 2011-02-05  Bruno Haible  <bruno@clisp.org>
11146
11147         New module 'wcsncmp'.
11148         * modules/wcsncmp: New file.
11149         * lib/wchar.in.h (wcsncmp): New declaration.
11150         * lib/wcsncmp.c: New file.
11151         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11152         * m4/wcsncmp.m4: New file.
11153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11156         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11157         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11158
11159 2011-02-05  Bruno Haible  <bruno@clisp.org>
11160
11161         New module 'wcscmp'.
11162         * modules/wcscmp: New file.
11163         * lib/wchar.in.h (wcscmp): New declaration.
11164         * lib/wcscmp.c: New file.
11165         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11166         * m4/wcscmp.m4: New file.
11167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11170         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11171         * doc/posix-functions/wcscmp.texi: Mention the new module.
11172
11173 2011-02-05  Bruno Haible  <bruno@clisp.org>
11174
11175         New module 'wcsncat'.
11176         * modules/wcsncat: New file.
11177         * lib/wchar.in.h (wcsncat): New declaration.
11178         * lib/wcsncat.c: New file.
11179         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11180         * m4/wcsncat.m4: New file.
11181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11184         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11185         * doc/posix-functions/wcsncat.texi: Mention the new module.
11186
11187 2011-02-05  Bruno Haible  <bruno@clisp.org>
11188
11189         New module 'wcscat'.
11190         * modules/wcscat: New file.
11191         * lib/wchar.in.h (wcscat): New declaration.
11192         * lib/wcscat.c: New file.
11193         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11194         * m4/wcscat.m4: New file.
11195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11198         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11199         * doc/posix-functions/wcscat.texi: Mention the new module.
11200
11201 2011-02-05  Bruno Haible  <bruno@clisp.org>
11202
11203         New module 'wcpncpy'.
11204         * modules/wcpncpy: New file.
11205         * lib/wchar.in.h (wcpncpy): New declaration.
11206         * lib/wcpncpy.c: New file.
11207         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11208         * m4/wcpncpy.m4: New file.
11209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11211         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11212         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11213         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11214
11215 2011-02-05  Bruno Haible  <bruno@clisp.org>
11216
11217         New module 'wcsncpy'.
11218         * modules/wcsncpy: New file.
11219         * lib/wchar.in.h (wcsncpy): New declaration.
11220         * lib/wcsncpy.c: New file.
11221         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11222         * m4/wcsncpy.m4: New file.
11223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11226         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11227         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11228
11229 2011-02-05  Bruno Haible  <bruno@clisp.org>
11230
11231         New module 'wcpcpy'.
11232         * modules/wcpcpy: New file.
11233         * lib/wchar.in.h (wcpcpy): New declaration.
11234         * lib/wcpcpy.c: New file.
11235         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11236         * m4/wcpcpy.m4: New file.
11237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11239         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11240         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11241         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11242
11243 2011-02-05  Bruno Haible  <bruno@clisp.org>
11244
11245         New module 'wcscpy'.
11246         * modules/wcscpy: New file.
11247         * lib/wchar.in.h (wcscpy): New declaration.
11248         * lib/wcscpy.c: New file.
11249         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11250         * m4/wcscpy.m4: New file.
11251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11254         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11255         * doc/posix-functions/wcscpy.texi: Mention the new module.
11256
11257 2011-02-05  Bruno Haible  <bruno@clisp.org>
11258
11259         New module 'wcsnlen'.
11260         * modules/wcsnlen: New file.
11261         * lib/wchar.in.h (wcsnlen): New declaration.
11262         * lib/wcsnlen.c: New file.
11263         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11264         * m4/wcsnlen.m4: New file.
11265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11268         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11269         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11270
11271 2011-02-05  Bruno Haible  <bruno@clisp.org>
11272
11273         New module 'wcslen'.
11274         * modules/wcslen: New file.
11275         * lib/wchar.in.h (wcslen): New declaration.
11276         * lib/wcslen.c: New file.
11277         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11278         * m4/wcslen.m4: New file.
11279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11282         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11283         * doc/posix-functions/wcslen.texi: Mention the new module.
11284
11285 2011-02-05  Bruno Haible  <bruno@clisp.org>
11286
11287         New module 'wmemset'.
11288         * modules/wmemset: New file.
11289         * lib/wchar.in.h (wmemset): New declaration.
11290         * lib/wmemset.c: New file.
11291         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11292         * m4/wmemset.m4: New file.
11293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11295         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11296         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11297         * doc/posix-functions/wmemset.texi: Mention the new module.
11298
11299 2011-02-05  Bruno Haible  <bruno@clisp.org>
11300
11301         New module 'wmemmove'.
11302         * modules/wmemmove: New file.
11303         * lib/wchar.in.h (wmemmove): New declaration.
11304         * lib/wmemmove.c: New file.
11305         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11306         * m4/wmemmove.m4: New file.
11307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11309         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11310         HAVE_WMEMMOVE.
11311         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11312         * doc/posix-functions/wmemmove.texi: Mention the new module.
11313
11314 2011-02-05  Bruno Haible  <bruno@clisp.org>
11315
11316         New module 'wmemcpy'.
11317         * modules/wmemcpy: New file.
11318         * lib/wchar.in.h (wmemcpy): New declaration.
11319         * lib/wmemcpy.c: New file.
11320         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11321         * m4/wmemcpy.m4: New file.
11322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11324         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11325         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11326         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11327
11328 2011-02-05  Bruno Haible  <bruno@clisp.org>
11329
11330         New module 'wmemcmp'.
11331         * modules/wmemcmp: New file.
11332         * lib/wchar.in.h (wmemcmp): New declaration.
11333         * lib/wmemcmp.c: New file.
11334         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11335         * m4/wmemcmp.m4: New file.
11336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11338         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11339         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11340         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11341
11342 2011-02-07  Jim Meyering  <meyering@redhat.com>
11343
11344         di-set, ino-map: new modules, from coreutils
11345         * lib/di-set.c: New file.
11346         * lib/di-set.h: Likewise.
11347         * lib/ino-map.c: Likewise.
11348         * lib/ino-map.h: Likewise.
11349         * modules/di-set: Likewise.
11350         * modules/di-set-tests: Likewise.
11351         * modules/ino-map: Likewise.
11352         * modules/ino-map-tests: Likewise.
11353         * tests/test-di-set.c: Likewise.
11354         * tests/test-ino-map.c: Likewise.
11355
11356 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11357
11358         getloadavg: merge minor changes from Emacs
11359
11360         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11361         (getloadavg): Use memset, not bzero.
11362
11363         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11364         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11365         clash (bug#86).
11366
11367 2010-11-14  Bruno Haible  <bruno@clisp.org>
11368
11369         Allow multiple gnulib generated replacements to coexist.
11370         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11371         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11372         * lib/langinfo.in.h (nl_item): Likewise.
11373         * lib/math.in.h (_NaN, NAN): Likewise.
11374         * lib/netdb.in.h (struct addrinfo): Likewise.
11375         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11376         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11377         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11378         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11379         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11380         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11381         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11382         pthread_mutexattr_init, pthread_mutexattr_settype,
11383         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11384         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11385         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11386         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11387         * lib/sched.in.h (struct sched_param): Likewise.
11388         * lib/se-selinux.in.h (security_class_t, security_context_t,
11389         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11390         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11391         lsetfilecon, fsetfilecon, security_check_context,
11392         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11393         Likewise.
11394         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11395         Likewise.
11396         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11397         _gl_function_taking_int_returning_void_t, union sigval,
11398         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11399         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11400         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11401         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11402         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11403         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11404         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11405         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11406         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11407         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11408         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11409         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11410         socklen_t, rpl_fd_isset): Likewise.
11411         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11412         * lib/sys_time.in.h (struct timeval): Likewise.
11413         * lib/sys_times.in.h (struct tms): Likewise.
11414         * lib/sys_utsname.in.h (struct utsname):
11415         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11416         * lib/unistd.in.h (getpagesize): Likewise.
11417         * lib/wchar.in.h (mbstate_t): Likewise.
11418         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11419         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11420         towlower, towupper): Likewise.
11421         Reported by Sam Steingold <sds@gnu.org>.
11422
11423 2011-02-05  Eric Blake  <eblake@redhat.com>
11424
11425         unsetenv: work around Haiku issues
11426         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11427         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11428
11429 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11430
11431         libposix: avoid calling error() within libposix
11432         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11433         is defined.
11434
11435 2011-02-05  Eric Blake  <eblake@redhat.com>
11436
11437         strerror_r-posix: port to cygwin
11438         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11439         implementation.
11440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11441         * tests/test-strerror_r.c (main): Fix test.
11442         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11443         issue.
11444
11445 2011-02-05  Bruno Haible  <bruno@clisp.org>
11446
11447         New module 'wmemchr'.
11448         * modules/wmemchr: New file.
11449         * lib/wchar.in.h (wmemchr): New declaration.
11450         * lib/wmemchr.c: New file.
11451         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11452         * m4/wmemchr.m4: New file.
11453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11455         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11456         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11457         * doc/posix-functions/wmemchr.texi: Mention the new module.
11458
11459 2011-02-04  Eric Blake  <eblake@redhat.com>
11460
11461         fdopendir: detect FreeBSD bug
11462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11463         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11464
11465 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11466
11467         stdbool: do not define HAVE_STDBOOL_H
11468         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11469         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11470         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11471         imported from the latest Autoconf git.  It was motivated by Emacs,
11472         which uses gnulib but does not need HAVE_STDBOOL_H.
11473
11474 2011-02-04  Bruno Haible  <bruno@clisp.org>
11475
11476         wcsnrtombs: Prepare for new module wwcsnrtombs.
11477         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11478         * lib/wcsnrtombs.c: Include it.
11479         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11480
11481         wcsrtombs: Prepare for new module wwcsrtombs.
11482         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11483         * lib/wcsrtombs.c: Include it.
11484         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11485
11486         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11487         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11488         * lib/mbsnrtowcs.c: Include it.
11489         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11490
11491         mbsrtowcs: Prepare for new module mbsrtowwcs.
11492         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11493         * lib/mbsrtowcs.c: Include it.
11494         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11495
11496 2011-02-04  Bruno Haible  <bruno@clisp.org>
11497
11498         vasnprintf: Reduce use of malloc for small format strings.
11499         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11500         (arguments): Add room for the first 7 arguments.
11501         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11502         (char_directives, u8_directives, u16_directives, u32_directives): Add
11503         room for the first 7 directives.
11504         * lib/printf-parse.c: Include <string.h>.
11505         (PRINTF_PARSE): Change memory handling code so that it uses the first
11506         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11507         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11508         Reported by Pádraig Brady <P@draigbrady.com>.
11509
11510 2011-01-31  Eric Blake  <eblake@redhat.com>
11511
11512         dup2: work around Haiku bug
11513         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11514         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11515         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11516         * tests/test-dup2.c (main): Enhance test.
11517
11518 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11519
11520         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11521         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11522         declared by eglibc 2.11.2.
11523         * lib/stdio.in.h: Likewise.
11524
11525 2011-01-31  Eric Blake  <eblake@redhat.com>
11526
11527         ignore-value: add missing test dependency
11528         * tests/test-ignore-value.c: Revert previous change; stdio.h
11529         provides off_t.
11530         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11531
11532 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11533
11534         mktime: clarify long_int width checking
11535         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11536         the top level, to make it clearer that the assumption about
11537         long_int width is being checked.  See
11538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11539
11540 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11541
11542         ignore-value: Fix self-test.
11543         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11544
11545 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11546
11547         TYPE_MAXIMUM: avoid theoretically undefined behavior
11548         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11549         negative number, which the C Standard says has undefined behavior.
11550         In practice this is not a problem, but might as well do it by the book.
11551         Reported by Rich Felker and Eric Blake; see
11552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11553         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11554         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11556         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11557         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11558         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11559
11560         mktime: #undef mktime before #defining it
11561         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11562
11563         mktime: systematically normalize tm_isdst comparisons
11564         * lib/mktime.c (isdst_differ): New function.
11565         (__mktime_internal): Use it systematically for all isdst comparisons.
11566         This completes the fix for libc BZ #6723, and removes the need for
11567         normalizing tm_isdst.  See
11568         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11569         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11570
11571         mktime: fix some integer overflow issues and sidestep the rest
11572
11573         This was prompted by a bug report by Benjamin Lindner for MinGW
11574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11575         His bug is due to signed integer overflow (0 - INT_MIN), and I
11576         I scanned through mktime.c looking for other integer overflow
11577         problems, fixing all the bugs I found.
11578
11579         Although the C Standard says the resulting code is still not safe
11580         in the presence of integer overflow, in practice it should be good
11581         enough for all real-world two's-complement implementations, except
11582         for debugging environments that deliberately trap on integer
11583         overflow (e.g., gcc -ftrapv).
11584
11585         * lib/mktime.c (WRAPV): New macro.
11586         (SHR): Also check that long_int and time_t shift right in the
11587         usual way, before using the fast-but-unportable method.
11588         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11589         used.  The code already assumed two's complement, so there's
11590         no need to test for alternatives.  All uses removed.
11591         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11592         the C standard.  Problem reported by Rich Felker in
11593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11594         (twos_complement_arithmetic): Also check long_int and time_t.
11595         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11596         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11597         (__mktime_internal): Avoid integer overflow with unary subtraction
11598         in two instances where -1 - X is an adequate replacement for -X,
11599         since the calculations are approximate.
11600
11601 2011-01-29  Eric Blake  <eblake@redhat.com>
11602
11603         mktime: avoid infinite loop
11604         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11605         type; behavior is still undefined but portable to all known targets.
11606         Reported by Rich Felker.
11607
11608 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11609
11610         rename, unlink, same-inode: Relicense.
11611         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11612         * modules/unlink (License): Likewise.
11613         * modules/same-inode (License): Likewise.
11614
11615 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11616
11617         mktime: avoid problems on NetBSD 5 / i386
11618         * lib/mktime.c (long_int): New type.  This works around a problem
11619         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11620         but time_t is 64 bits, and where I expect the existing code is
11621         wrong in some cases.
11622         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11623         (ydhms_diff): Bring back the compile-time check for wide-enough
11624         year and yday.
11625
11626         mktime: fix misspelling in comment
11627         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11628         This merges all recent glibc changes of importance.
11629
11630 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11631
11632         move-if-change: cope with concurrent mv of identical file.
11633         * build-aux/move-if-change (CMPPROG): Accept environment
11634         variable as an override for `cmp'.
11635         (usage): Document CMPPROG.
11636         Adjust comparison to drop stdout.  Cope with failure of mv if
11637         the target file exists and is identical to the source, for
11638         parallel builds.
11639         Report from H.J. Lu against binutils in PR binutils/12283.
11640
11641 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11642
11643         * users.txt: Mention sharutils.
11644
11645 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11646
11647         * users.txt: Mention OATH Toolkit.
11648
11649 2011-01-27  Bruno Haible  <bruno@clisp.org>
11650
11651         Prepare for supporting FreeBSD 10.
11652         * build-aux/config.libpath: Remove handling of freebsd1*.
11653
11654 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11655
11656         Prepare for supporting FreeBSD 10.
11657         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11658         match FreeBSD 10.0.
11659
11660 2011-01-27  Bruno Haible  <bruno@clisp.org>
11661
11662         vma-iter, get-rusage-as: Add OpenBSD support.
11663         * modules/vma-iter (configure.ac): Test for mquery.
11664         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11665         * lib/vma-iter.c: Include <sys/mman.h>.
11666         (vma_iterate): Add an implementation based on mquery().
11667         * lib/resource-ext.h (get_rusage_as): Update comments.
11668         * lib/get-rusage-as.c: Likewise.
11669         * lib/get-rusage-data.c: Likewise.
11670
11671 2011-01-26  Karl Berry  <karl@gnu.org>
11672
11673         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11674         variables to make it easier to override the makeinfo program used.
11675
11676 2011-01-26  Eric Blake  <eblake@redhat.com>
11677
11678         fcntl: work around Haiku F_DUPFD bugs
11679         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11680         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11681         cloexec bit on duplication.
11682         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11683
11684 2011-01-26  Bruno Haible  <bruno@clisp.org>
11685
11686         Enable memory leak tests on AIX.
11687         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11688         * tests/test-fprintf-posix3.c (main): Likewise.
11689
11690 2011-01-26  Bruno Haible  <bruno@clisp.org>
11691
11692         Tests for module 'get-rusage-data'.
11693         * modules/get-rusage-data-tests: New file.
11694         * tests/test-get-rusage-data.c: New file.
11695
11696         New module 'get-rusage-data'.
11697         * lib/resource-ext.h (get_rusage_data): New declaration.
11698         * lib/get-rusage-data.c: New file.
11699         * modules/get-rusage-data: New file.
11700
11701 2011-01-25  Bruno Haible  <bruno@clisp.org>
11702
11703         get-rusage-as: Allow for easier testing.
11704         * lib/resource-ext.h (get_rusage_as): Add comment.
11705         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11706         (main): New function for interactive testing.
11707
11708 2011-01-25  Bruno Haible  <bruno@clisp.org>
11709
11710         vma-iter: Treat Haiku like BeOS.
11711         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11712         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11713
11714 2011-01-25  Eric Blake  <eblake@redhat.com>
11715
11716         c-stack: fix regression on cygwin when libsigsegv is present
11717         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11718
11719 2011-01-24  Bruno Haible  <bruno@clisp.org>
11720
11721         vma-iter: Avoid empty intervals.
11722         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11723         on an empty interval.
11724
11725 2011-01-24  Jim Meyering  <meyering@redhat.com>
11726
11727         u64: remove unnecessary #include
11728         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11729
11730 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11731
11732         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11733         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11734
11735 2011-01-23  Bruno Haible  <bruno@clisp.org>
11736
11737         New module 'vma-iter'.
11738         * lib/vma-iter.h: New file.
11739         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11740         * modules/vma-iter: New file.
11741         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11742         for get_rusage_as_via_iterator.
11743         (vma_iterate_callback): New function.
11744         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11745         * modules/get-rusage-as (Depends-on): Add vma-iter.
11746
11747 2011-01-23  Bruno Haible  <bruno@clisp.org>
11748
11749         uninorm: Tweak includes.
11750         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11751         Reported by Jim Meyering.
11752
11753 2011-01-23  Bruno Haible  <bruno@clisp.org>
11754
11755         get-rusage-as: Improve on NetBSD.
11756         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11757         /proc, like on FreeBSD.
11758
11759 2011-01-23  Jim Meyering  <meyering@redhat.com>
11760
11761         xreadlink.h: remove unnecessary #include
11762         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11763
11764         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11765         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11766
11767 2011-01-23  Bruno Haible  <bruno@clisp.org>
11768
11769         get-rusage-as: Fix bug.
11770         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11771         original limit when aborting the first loop.
11772
11773 2011-01-23  Bruno Haible  <bruno@clisp.org>
11774
11775         wctype: Ensure valid C syntax.
11776         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11777         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11778
11779 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11780
11781         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11783         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11784         as they are needed only for configure's test case.
11785         This removes two unnecessary symbols from config.h.
11786
11787         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11788         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11790         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11791         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11792         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11793         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11794         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11796         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11797         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11799         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11801         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11802         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11803         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11804         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11805
11806 2011-01-21  Eric Blake  <eblake@redhat.com>
11807
11808         maintainer-makefile: work with older git for submodule check
11809         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11810         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11811         Reported by Matthias Bolte.
11812
11813         bootstrap: minor portability fixes
11814         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11815         (usage): Omit leading capital and trailing . on help phrases, per
11816         GNU Coding Standards.
11817         (check_versions, top level): Prefix messages with script name.
11818
11819 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11820
11821         bootstrap: support --no-git option
11822         * build-aux/bootstrap: Add --no-git option, to be used when
11823         --gnulib-srcdir points to the exact desired checkout.
11824
11825 2011-01-21  Eric Blake  <eblake@redhat.com>
11826
11827         strerror_r-posix: work with glibc 2.13
11828         * lib/strerror_r.c (strerror_r): Fix return type.
11829
11830 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11831             Bruno Haible  <bruno@clisp.org>
11832
11833         uN_strstr: New unit tests.
11834         * modules/unistr/u8-strstr-tests: New file.
11835         * modules/unistr/u16-strstr-tests: New file.
11836         * modules/unistr/u32-strstr-tests: New file.
11837         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11838         * tests/unistr/test-u8-strstr.c: New file.
11839         * tests/unistr/test-u16-strstr.c: New file.
11840         * tests/unistr/test-u32-strstr.c: New file.
11841
11842 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11843             Bruno Haible  <bruno@clisp.org>
11844
11845         Make uN_strstr functions O(n) worst-case.
11846         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11847         16-bit and 32-bit unit cases, use the unibyte algorithm from
11848         lib/mbsstr.c.
11849         * lib/unistr/u8-strstr.c: Include <string.h>.
11850         (UNIT_IS_UINT8_T): New macro.
11851         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11852         (U_STRLEN, U_STRNLEN): New macros.
11853         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11854         (U_STRLEN, U_STRNLEN): New macros.
11855         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11856         (configure.ac): Update required libunistring version.
11857         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11858         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11859         malloca.
11860         (configure.ac): Update required libunistring version.
11861         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11862         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11863         malloca.
11864         (configure.ac): Update required libunistring version.
11865
11866 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11867             Bruno Haible  <bruno@clisp.org>
11868
11869         Prepare for faster uN_strstr functions.
11870         * lib/str-kmp.h: Support definable UNITs.
11871         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11872         needle_len argument.
11873         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11874         * lib/mbscasestr.c (mbscasestr): Likewise.
11875
11876 2011-01-21  Pádraig Brady <P@draigBrady.com>
11877
11878         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11879         * tests/test-malloca.c (main): Unset the environment variable
11880         to greatly speed up the test.
11881         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11882         * modules/malloca-tests: Depend on unsetenv.
11883
11884 2011-01-21  Pádraig Brady <P@draigBrady.com>
11885
11886         ignore-value: remove stdint dependency
11887         * lib/ignore-value.h: Remove <stdint.h>
11888         * modules/ignore-value: Remove stdint dependency.
11889
11890 2011-01-21  Jim Meyering  <meyering@redhat.com>
11891
11892         maint.mk: adjust variable name to be consistent with other gl_ vars
11893         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11894         to be lower case.
11895
11896 2011-01-20  Jim Meyering  <meyering@redhat.com>
11897
11898         maint.mk: make "check" depend on public-submodule-commit by default
11899         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11900
11901 2011-01-20  Bruno Haible  <bruno@clisp.org>
11902
11903         mbfile, mbiter: Complete change from 2008-12-21.
11904         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11905         * m4/mbiter.m4 (gl_MBITER): Likewise.
11906
11907 2011-01-20  Jim Meyering  <meyering@redhat.com>
11908
11909         init.sh: insert space between each function name and "()"
11910         * tests/init.sh: Make it a little easier to see that a function's
11911         name is "warn_", and not "warn" when looking at the first part of
11912         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11913
11914 2011-01-20  Jim Meyering  <meyering@redhat.com>
11915
11916         mountlist: clean up code formatting
11917         * lib/mountlist.c (read_file_system_list): Split a long line,
11918         correct bracing style, use NULL in place of "(struct statfs *)0",
11919         don't parenthesize return value, add spaces around "=" and after
11920         ";-in-for-stmt".
11921
11922 2011-01-14  Markus Duft <mduft@gentoo.org>
11923
11924         mountlist: add support for Interix
11925         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11926         Apply statvfs to all entries of /dev/fs.
11927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11928         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11929
11930 2011-01-20  Jim Meyering  <meyering@redhat.com>
11931
11932         maint.mk: improve the public-submodule-commit rule
11933         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11934         to suppress printing of its commands... unless V=1.
11935         Add git submodule's --quiet option to suppress printing of e.g.,
11936         "Entering gnulib" output.
11937         "cd" into $(srcdir) before running git submodule.
11938
11939 2011-01-20  Bruno Haible  <bruno@clisp.org>
11940
11941         include_next: Fix bug introduced on 2011-01-18.
11942         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11943         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11944         ac_cv_header_... variable if the second argument is not 'check'.
11945         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11946         gl_NEXT_HEADERS_INTERNAL.
11947
11948 2011-01-20  Bruno Haible  <bruno@clisp.org>
11949
11950         Allow the user to avoid the GNULIB_TEST_* macros.
11951         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11952         Suggested by Paul Eggert.
11953
11954 2011-01-14  Jim Meyering  <meyering@redhat.com>
11955
11956         bootstrap: avoid failure when there is no .gitmodules file
11957         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11958         has been assigned to, even when its value is the empty string.
11959         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11960         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11961         Reported by John W. Eaton <jwe@gnu.org>.
11962
11963 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11964
11965         assume <ctype.h>, ..., <time.h> exist
11966         For years gnulib has been assuming the existence of the headers
11967         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11968         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11969         them, since they don't appear to be needed.
11970         * README (Portability guidelines): Document this.
11971         * lib/flock.c: Assume <fcntl.h> exists.
11972         * lib/regex_internal.h: Assume <locale.h> exists.
11973         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11975         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11976         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11977         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11978         * m4/regex.m4 (gl_REGEX): Likewise.
11979         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11980         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11981         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11982         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11983         * tests/test-argp.c: Likewise.
11984         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11985
11986         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11987         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11988         AA_APPLE_UNIVERSAL_BUILD.  See
11989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11990         * NEWS: Document this.
11991
11992 2011-01-19  Eric Blake  <eblake@redhat.com>
11993
11994         c-stack: assume stack overflow if SA_SIGINFO unsupported
11995         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11996         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11997         sigaction will work.
11998         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11999         behavior match Linux.
12000         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12001
12002         stdbool-tests: accomodate Haiku
12003         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12004
12005         binary-io: fix O_TEXT on Haiku
12006         * modules/binary-io (Depends-on): Add fcntl-h.
12007         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12008         than blindly undefining O_TEXT.
12009         Reported by Scott McCreary.
12010
12011 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12012
12013         include_next: do not check for standard headers like stddef.h
12014
12015         I found this problem when modifying Emacs to use gnulib.
12016         I noticed that it added HAVE_STDDEF_H to config.h, even though
12017         gnulib always assumes <stddef.h> exists as per README and this
12018         symbol is unnecessary.
12019         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12020         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12021         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12022         faster for headers like stddef.h that are known to exist.
12023         (gl_CHECK_NEXT_HEADERS): Use it.
12024         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12025         rather than gl_CHECK_NEXT_HEADERS.
12026         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12027         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12028
12029 2011-01-18  Eric Blake  <eblake@redhat.com>
12030
12031         ansi-c++-opt: skip C++ dependency style if C++ is unused
12032         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12033         tests when we know C++ compilation is not desired.
12034         Reported by Scott McCreary.
12035
12036 2011-01-18  Bruno Haible  <bruno@clisp.org>
12037
12038         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12039         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12040         (main): Perform test also when getrlimit and setrlimit don't exist or
12041         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12042         limiting the address space size using setrlimit, compare the address
12043         space size before and after the the test.
12044         * tests/test-dprintf-posix2.c: Likewise.
12045         * tests/test-fprintf-posix3.sh: Update skip messages.
12046         * tests/test-dprintf-posix2.sh: Likewise.
12047         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12048         * modules/dprintf-posix-tests (Depends-on): Likewise.
12049         Reported by Bruce Korb <bkorb@gnu.org> and
12050         Gary V. Vaughan <gary@gnu.org>.
12051
12052 2011-01-18  Bruno Haible  <bruno@clisp.org>
12053
12054         get-rusage-as: Improvement for Cygwin.
12055         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12056         areas that are merely reserved.
12057
12058 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12059
12060         strftime: remove dependencies on multibyte modules
12061
12062         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12063         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12064         only if __osf__ is defined, and I suspect OSF doesn't need these
12065         other modules.  If my guess is wrong, we'll need to come up with a
12066         variant of strftime that doesn't need the multibyte modules.
12067
12068         I discovered this problem when attempting modify Emacs to use the
12069         strftime module.  With the previous gnulib, this caused Emacs to
12070         need 31 new files, ranging from lib/config.charset to
12071         m4/wint_t.m4.  This was overkill and I expect would be offputting
12072         to the Emacs maintainers.  After this change, only 6 new files are
12073         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12074         stdbool.m4, and tm_gmtoff.m4.
12075
12076         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12077         Suggested by Bruno Haible in
12078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12080         and do not check for wchar.h.
12081         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12082         (Depends-on): Remove mbrlen, mbsinit, wchar.
12083
12084 2011-01-18  Bruno Haible  <bruno@clisp.org>
12085
12086         Tests for module 'get-rusage-as'.
12087         * modules/get-rusage-as-tests: New file.
12088         * tests/test-get-rusage-as.c: New file.
12089
12090         New module 'get-rusage-as'.
12091         * modules/get-rusage-as: New file.
12092         * lib/resource-ext.h: New file.
12093         * lib/get-rusage-as.c: New file.
12094
12095 2011-01-17  Eric Blake  <eblake@redhat.com>
12096
12097         sigaction: relax license from LGPLv3+ to LGPLv2+
12098         * modules/sigaction (License): Relax to LGPLv2+.
12099
12100 2011-01-14  Bruno Haible  <bruno@clisp.org>
12101
12102         filemode: Make function declarations usable in C++ mode.
12103         * lib/filemode.h: Enclose function declarations in extern "C" block.
12104         Reported by John W. Eaton <jwe@gnu.org>.
12105
12106 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12107
12108         save-cwd: no longer include "xgetcwd.h"
12109         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12110         This avoids a compilation failure in projects that use save-cwd
12111         without also using the xgetcwd module.
12112
12113 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12114
12115         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12116         This is so that a program like Emacs, which needs only dtoastr,
12117         does not have to bother with distributing and compiling ftoastr
12118         and ldtoastr.
12119         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12120         * modules/dtoastr, modules/ldtoastr: New files.
12121         * modules/ftoastr: Now works just for 'float'.
12122         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12123         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12124         dtoastr.c, ldtoastr.c.
12125
12126 2011-01-11  Jim Meyering  <meyering@redhat.com>
12127
12128         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12129         There is no need to work around the lack of the fchdir function,
12130         since gnulib can now provide a replacement when required.
12131         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12132         * modules/save-cwd (Depends-on): Add fchdir.
12133
12134 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12135
12136         openat, save-cwd: avoid xmalloc
12137
12138         This removes a direct (but undocumented) dependency of openat on
12139         xalloc, along with an indirect dependency via save-cwd.  It also
12140         removes a dependency of save-cwd on xgetcwd, and thereby
12141         indirectly on xalloc.  This change causes the openat substitute
12142         to fall back on save_cwd when memory is tight, and for save_cwd to
12143         fail instead of dying when memory is tight, but that's good enough.
12144         Problem and initial idea for fix reported by Bastien Roucaries in
12145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12146
12147         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12148         xalloc.h (for xmalloc).
12149         (openat_proc_name): Use malloc, not xmalloc.
12150         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12151         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12152
12153         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12154         This avoids heap allocation for file names whose lengths are in
12155         the range 512..1023, with the upper bound increasing to at most
12156         4031 depending on the platform's PATH_MAX.  (We do not want
12157         pathmax.h here as it might supply a non-constant PATH_MAX.)
12158         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12159         Perhaps they should be moved to malloca.h?
12160         (OPENAT_BUFFER_SIZE): Use them.
12161
12162 2011-01-10  Bruno Haible  <bruno@clisp.org>
12163
12164         doc: Update users.txt.
12165         * users.txt: Add recutils.
12166
12167 2011-01-09  Karl Berry  <karl@gnu.org>
12168
12169         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12170
12171         * doc/configmake.texi: New file.
12172         * doc/gnulib.texi: Include it.
12173         * modules/configmake: Move documentation from here.
12174
12175 2011-01-09  Bruno Haible  <bruno@clisp.org>
12176
12177         Update to Unicode 6.0.0.
12178         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12179         (get_lbp): Update for Unicode 6.0.0.
12180         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12181         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12182         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12183         U+11001, U+11038..U+11046. Remove U+06DE.
12184         (uc_width): Fix bounds of planes.
12185         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12186         lib/uniwidth/width.c.
12187         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12188         trailing whitespace removed.
12189         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12190         without comments, but with the original copyright notice.
12191         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12192         * lib/unicase/ignorable.h: Likewise.
12193         * lib/unicase/tocasefold.h: Likewise.
12194         * lib/unicase/tolower.h: Likewise.
12195         * lib/unicase/totitle.h: Likewise.
12196         * lib/unicase/toupper.h: Likewise.
12197         * lib/unictype/bidi_of.h: Likewise.
12198         * lib/unictype/blocks.h: Likewise.
12199         * lib/unictype/categ_C.h: Likewise.
12200         * lib/unictype/categ_Cn.h: Likewise.
12201         * lib/unictype/categ_L.h: Likewise.
12202         * lib/unictype/categ_Ll.h: Likewise.
12203         * lib/unictype/categ_Lm.h: Likewise.
12204         * lib/unictype/categ_Lo.h: Likewise.
12205         * lib/unictype/categ_Lu.h: Likewise.
12206         * lib/unictype/categ_M.h: Likewise.
12207         * lib/unictype/categ_Mc.h: Likewise.
12208         * lib/unictype/categ_Me.h: Likewise.
12209         * lib/unictype/categ_Mn.h: Likewise.
12210         * lib/unictype/categ_N.h: Likewise.
12211         * lib/unictype/categ_Nd.h: Likewise.
12212         * lib/unictype/categ_No.h: Likewise.
12213         * lib/unictype/categ_P.h: Likewise.
12214         * lib/unictype/categ_Po.h: Likewise.
12215         * lib/unictype/categ_S.h: Likewise.
12216         * lib/unictype/categ_Sc.h: Likewise.
12217         * lib/unictype/categ_Sk.h: Likewise.
12218         * lib/unictype/categ_Sm.h: Likewise.
12219         * lib/unictype/categ_So.h: Likewise.
12220         * lib/unictype/categ_of.h: Likewise.
12221         * lib/unictype/combining.h: Likewise.
12222         * lib/unictype/ctype_alnum.h: Likewise.
12223         * lib/unictype/ctype_alpha.h: Likewise.
12224         * lib/unictype/ctype_graph.h: Likewise.
12225         * lib/unictype/ctype_lower.h: Likewise.
12226         * lib/unictype/ctype_print.h: Likewise.
12227         * lib/unictype/ctype_punct.h: Likewise.
12228         * lib/unictype/ctype_upper.h: Likewise.
12229         * lib/unictype/decdigit.h: Likewise.
12230         * lib/unictype/digit.h: Likewise.
12231         * lib/unictype/numeric.h: Likewise.
12232         * lib/unictype/pr_alphabetic.h: Likewise.
12233         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12234         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12235         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12236         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12237         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12238         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12239         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12240         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12241         * lib/unictype/pr_case_ignorable.h: Likewise.
12242         * lib/unictype/pr_cased.h: Likewise.
12243         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12244         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12245         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12246         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12247         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12248         * lib/unictype/pr_combining.h: Likewise.
12249         * lib/unictype/pr_composite.h: Likewise.
12250         * lib/unictype/pr_currency_symbol.h: Likewise.
12251         * lib/unictype/pr_decimal_digit.h: Likewise.
12252         * lib/unictype/pr_deprecated.h: Likewise.
12253         * lib/unictype/pr_format_control.h: Likewise.
12254         * lib/unictype/pr_grapheme_base.h: Likewise.
12255         * lib/unictype/pr_grapheme_extend.h: Likewise.
12256         * lib/unictype/pr_grapheme_link.h: Likewise.
12257         * lib/unictype/pr_id_continue.h: Likewise.
12258         * lib/unictype/pr_id_start.h: Likewise.
12259         * lib/unictype/pr_ideographic.h: Likewise.
12260         * lib/unictype/pr_lowercase.h: Likewise.
12261         * lib/unictype/pr_math.h: Likewise.
12262         * lib/unictype/pr_numeric.h: Likewise.
12263         * lib/unictype/pr_other_alphabetic.h: Likewise.
12264         * lib/unictype/pr_other_id_continue.h: Likewise.
12265         * lib/unictype/pr_other_math.h: Likewise.
12266         * lib/unictype/pr_punctuation.h: Likewise.
12267         * lib/unictype/pr_sentence_terminal.h: Likewise.
12268         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12269         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12270         * lib/unictype/pr_unified_ideograph.h: Likewise.
12271         * lib/unictype/pr_uppercase.h: Likewise.
12272         * lib/unictype/pr_xid_continue.h: Likewise.
12273         * lib/unictype/pr_xid_start.h: Likewise.
12274         * lib/unictype/scripts.h: Likewise.
12275         * lib/unictype/scripts_byname.gperf: Likewise.
12276         * lib/unictype/sy_java_ident.h: Likewise.
12277         * lib/unigbrk/gbrkprop.h: Likewise.
12278         * lib/unilbrk/lbrkprop1.h: Likewise.
12279         * lib/unilbrk/lbrkprop2.h: Likewise.
12280         * lib/uninorm/decomposition-table2.h: Likewise.
12281         * lib/uniwbrk/wbrkprop.h: Likewise.
12282         * tests/unicase/test-cased.c: Likewise.
12283         * tests/unicase/test-ignorable.c: Likewise.
12284         * tests/unicase/test-uc_tolower.c: Likewise.
12285         * tests/unicase/test-uc_totitle.c: Likewise.
12286         * tests/unicase/test-uc_toupper.c: Likewise.
12287         * tests/unictype/test-categ_C.c: Likewise.
12288         * tests/unictype/test-categ_Cn.c: Likewise.
12289         * tests/unictype/test-categ_L.c: Likewise.
12290         * tests/unictype/test-categ_Ll.c: Likewise.
12291         * tests/unictype/test-categ_Lm.c: Likewise.
12292         * tests/unictype/test-categ_Lo.c: Likewise.
12293         * tests/unictype/test-categ_Lu.c: Likewise.
12294         * tests/unictype/test-categ_M.c: Likewise.
12295         * tests/unictype/test-categ_Mc.c: Likewise.
12296         * tests/unictype/test-categ_Me.c: Likewise.
12297         * tests/unictype/test-categ_Mn.c: Likewise.
12298         * tests/unictype/test-categ_N.c: Likewise.
12299         * tests/unictype/test-categ_Nd.c: Likewise.
12300         * tests/unictype/test-categ_No.c: Likewise.
12301         * tests/unictype/test-categ_P.c: Likewise.
12302         * tests/unictype/test-categ_Po.c: Likewise.
12303         * tests/unictype/test-categ_S.c: Likewise.
12304         * tests/unictype/test-categ_Sc.c: Likewise.
12305         * tests/unictype/test-categ_Sk.c: Likewise.
12306         * tests/unictype/test-categ_Sm.c: Likewise.
12307         * tests/unictype/test-categ_So.c: Likewise.
12308         * tests/unictype/test-ctype_alnum.c: Likewise.
12309         * tests/unictype/test-ctype_alpha.c: Likewise.
12310         * tests/unictype/test-ctype_graph.c: Likewise.
12311         * tests/unictype/test-ctype_lower.c: Likewise.
12312         * tests/unictype/test-ctype_print.c: Likewise.
12313         * tests/unictype/test-ctype_punct.c: Likewise.
12314         * tests/unictype/test-ctype_upper.c: Likewise.
12315         * tests/unictype/test-decdigit.h: Likewise.
12316         * tests/unictype/test-digit.h: Likewise.
12317         * tests/unictype/test-numeric.h: Likewise.
12318         * tests/unictype/test-pr_alphabetic.c: Likewise.
12319         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12320         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12321         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12322         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12323         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12324         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12325         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12326         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12327         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12328         * tests/unictype/test-pr_cased.c: Likewise.
12329         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12330         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12331         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12332         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12333         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12334         * tests/unictype/test-pr_combining.c: Likewise.
12335         * tests/unictype/test-pr_composite.c: Likewise.
12336         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12337         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12338         * tests/unictype/test-pr_deprecated.c: Likewise.
12339         * tests/unictype/test-pr_format_control.c: Likewise.
12340         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12341         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12342         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12343         * tests/unictype/test-pr_id_continue.c: Likewise.
12344         * tests/unictype/test-pr_id_start.c: Likewise.
12345         * tests/unictype/test-pr_ideographic.c: Likewise.
12346         * tests/unictype/test-pr_lowercase.c: Likewise.
12347         * tests/unictype/test-pr_math.c: Likewise.
12348         * tests/unictype/test-pr_numeric.c: Likewise.
12349         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12350         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12351         * tests/unictype/test-pr_other_math.c: Likewise.
12352         * tests/unictype/test-pr_punctuation.c: Likewise.
12353         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12354         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12355         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12356         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12357         * tests/unictype/test-pr_uppercase.c: Likewise.
12358         * tests/unictype/test-pr_xid_continue.c: Likewise.
12359         * tests/unictype/test-pr_xid_start.c: Likewise.
12360         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12361         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12362         changes.
12363         * lib/unictype/categ_Cc.h: Likewise.
12364         * lib/unictype/categ_Cf.h: Likewise.
12365         * lib/unictype/categ_Co.h: Likewise.
12366         * lib/unictype/categ_Cs.h: Likewise.
12367         * lib/unictype/categ_Lt.h: Likewise.
12368         * lib/unictype/categ_Nl.h: Likewise.
12369         * lib/unictype/categ_Pc.h: Likewise.
12370         * lib/unictype/categ_Pd.h: Likewise.
12371         * lib/unictype/categ_Pe.h: Likewise.
12372         * lib/unictype/categ_Pf.h: Likewise.
12373         * lib/unictype/categ_Pi.h: Likewise.
12374         * lib/unictype/categ_Ps.h: Likewise.
12375         * lib/unictype/categ_Z.h: Likewise.
12376         * lib/unictype/categ_Zl.h: Likewise.
12377         * lib/unictype/categ_Zp.h: Likewise.
12378         * lib/unictype/categ_Zs.h: Likewise.
12379         * lib/unictype/ctype_blank.h: Likewise.
12380         * lib/unictype/ctype_cntrl.h: Likewise.
12381         * lib/unictype/ctype_digit.h: Likewise.
12382         * lib/unictype/ctype_space.h: Likewise.
12383         * lib/unictype/ctype_xdigit.h: Likewise.
12384         * lib/unictype/mirror.h: Likewise.
12385         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12386         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12387         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12388         * lib/unictype/pr_bidi_control.h: Likewise.
12389         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12390         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12391         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12392         * lib/unictype/pr_bidi_pdf.h: Likewise.
12393         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12394         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12395         * lib/unictype/pr_dash.h: Likewise.
12396         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12397         * lib/unictype/pr_diacritic.h: Likewise.
12398         * lib/unictype/pr_extender.h: Likewise.
12399         * lib/unictype/pr_hex_digit.h: Likewise.
12400         * lib/unictype/pr_hyphen.h: Likewise.
12401         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12402         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12403         * lib/unictype/pr_ignorable_control.h: Likewise.
12404         * lib/unictype/pr_iso_control.h: Likewise.
12405         * lib/unictype/pr_join_control.h: Likewise.
12406         * lib/unictype/pr_left_of_pair.h: Likewise.
12407         * lib/unictype/pr_line_separator.h: Likewise.
12408         * lib/unictype/pr_logical_order_exception.h: Likewise.
12409         * lib/unictype/pr_non_break.h: Likewise.
12410         * lib/unictype/pr_not_a_character.h: Likewise.
12411         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12412         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12413         * lib/unictype/pr_other_id_start.h: Likewise.
12414         * lib/unictype/pr_other_lowercase.h: Likewise.
12415         * lib/unictype/pr_other_uppercase.h: Likewise.
12416         * lib/unictype/pr_paired_punctuation.h: Likewise.
12417         * lib/unictype/pr_paragraph_separator.h: Likewise.
12418         * lib/unictype/pr_pattern_syntax.h: Likewise.
12419         * lib/unictype/pr_pattern_white_space.h: Likewise.
12420         * lib/unictype/pr_private_use.h: Likewise.
12421         * lib/unictype/pr_quotation_mark.h: Likewise.
12422         * lib/unictype/pr_radical.h: Likewise.
12423         * lib/unictype/pr_soft_dotted.h: Likewise.
12424         * lib/unictype/pr_space.h: Likewise.
12425         * lib/unictype/pr_titlecase.h: Likewise.
12426         * lib/unictype/pr_variation_selector.h: Likewise.
12427         * lib/unictype/pr_white_space.h: Likewise.
12428         * lib/unictype/pr_zero_width.h: Likewise.
12429         * lib/unictype/sy_c_ident.h: Likewise.
12430         * lib/unictype/sy_c_whitespace.h: Likewise.
12431         * lib/unictype/sy_java_whitespace.h: Likewise.
12432         * lib/uninorm/composition-table.gperf: Likewise.
12433         * lib/uninorm/decomposition-table1.h: Likewise.
12434         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12435         LB8.
12436         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12437         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12438         * modules/unictype/*: Bump version number of expected libunistring
12439         version.
12440
12441 2011-01-09  Bruno Haible  <bruno@clisp.org>
12442
12443         Update to Unicode 5.2.0.
12444         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12445         trailing whitespace removed.
12446
12447 2011-01-09  Bruno Haible  <bruno@clisp.org>
12448
12449         New Unicode character properties, from Unicode 5.2.0.
12450         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12451         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12452         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12453         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12454         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12455         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12456         uc_is_property_cased, uc_is_property_case_ignorable,
12457         uc_is_property_changes_when_lowercased,
12458         uc_is_property_changes_when_uppercased,
12459         uc_is_property_changes_when_titlecased,
12460         uc_is_property_changes_when_casefolded,
12461         uc_is_property_changes_when_casemapped): New declarations.
12462         * lib/unictype/pr_byname.gperf: Add the new properties.
12463         * modules/unictype/property-byname (Depends-on): Depend on the new
12464         properties modules.
12465         * modules/unictype/property-all (Depends-on): Likewise.
12466         * MODULES.html.sh (Unicode string functions): Add
12467         unictype/property-case-ignorable, unictype/property-cased,
12468         unictype/property-changes-when-casefolded,
12469         unictype/property-changes-when-casemapped,
12470         unictype/property-changes-when-lowercased,
12471         unictype/property-changes-when-titlecased,
12472         unictype/property-changes-when-uppercased.
12473
12474         New module 'unictype/property-changes-when-casemapped'.
12475         * modules/unictype/property-changes-when-casemapped: New file.
12476         * lib/unictype/pr_changes_when_casemapped.c: New file.
12477         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12478         generated by gen-uni-tables.
12479         * modules/unictype/property-changes-when-casemapped-tests: New file.
12480         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12481         automatically generated by gen-uni-tables.
12482
12483         New module 'unictype/property-changes-when-casefolded'.
12484         * modules/unictype/property-changes-when-casefolded: New file.
12485         * lib/unictype/pr_changes_when_casefolded.c: New file.
12486         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12487         generated by gen-uni-tables.
12488         * modules/unictype/property-changes-when-casefolded-tests: New file.
12489         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12490         automatically generated by gen-uni-tables.
12491
12492         New module 'unictype/property-changes-when-titlecased'.
12493         * modules/unictype/property-changes-when-titlecased: New file.
12494         * lib/unictype/pr_changes_when_titlecased.c: New file.
12495         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12496         generated by gen-uni-tables.
12497         * modules/unictype/property-changes-when-titlecased-tests: New file.
12498         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12499         automatically generated by gen-uni-tables.
12500
12501         New module 'unictype/property-changes-when-uppercased'.
12502         * modules/unictype/property-changes-when-uppercased: New file.
12503         * lib/unictype/pr_changes_when_uppercased.c: New file.
12504         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12505         generated by gen-uni-tables.
12506         * modules/unictype/property-changes-when-uppercased-tests: New file.
12507         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12508         automatically generated by gen-uni-tables.
12509
12510         New module 'unictype/property-changes-when-lowercased'.
12511         * modules/unictype/property-changes-when-lowercased: New file.
12512         * lib/unictype/pr_changes_when_lowercased.c: New file.
12513         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12514         generated by gen-uni-tables.
12515         * modules/unictype/property-changes-when-lowercased-tests: New file.
12516         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12517         automatically generated by gen-uni-tables.
12518
12519         New module 'unictype/property-case-ignorable'.
12520         * modules/unictype/property-case-ignorable: New file.
12521         * lib/unictype/pr_case_ignorable.c: New file.
12522         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12523         by gen-uni-tables.
12524         * modules/unictype/property-case-ignorable-tests: New file.
12525         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12526         generated by gen-uni-tables.
12527
12528         New module 'unictype/property-cased'.
12529         * modules/unictype/property-cased: New file.
12530         * lib/unictype/pr_cased.c: New file.
12531         * lib/unictype/pr_cased.h: New file, automatically generated by
12532         gen-uni-tables.
12533         * modules/unictype/property-cased-tests: New file.
12534         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12535         gen-uni-tables.
12536
12537 2011-01-09  Bruno Haible  <bruno@clisp.org>
12538
12539         Update to Unicode 5.2.0.
12540         * lib/gen-uni-tables.c (output_predicate, output_category,
12541         output_combclass, output_bidi_category, output_decimal_digit_test,
12542         output_decimal_digit, output_digit_test, output_digit,
12543         output_numeric_test, output_numeric, output_mirror, output_scripts,
12544         output_scripts_byname, output_blocks, output_ident_category): Fix
12545         comment header.
12546         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12547         get_wbp.
12548         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12549         items.
12550         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12551         Changes_When_Lowercased, Changes_When_Uppercased,
12552         Changes_When_Titlecased, Changes_When_Casefolded,
12553         Changes_When_Casemapped.
12554         (is_property_alphabetic, is_property_default_ignorable_code_point):
12555         Update for Unicode 5.2.0.
12556         (is_property_cased, is_property_case_ignorable,
12557         is_property_changes_when_lowercased,
12558         is_property_changes_when_uppercased,
12559         is_property_changes_when_titlecased,
12560         is_property_changes_when_casefolded,
12561         is_property_changes_when_casemapped): New functions.
12562         (output_properties): Output also the properties cased, case_ignorable,
12563         changes_when_lowercased, changes_when_uppercased,
12564         changes_when_titlecased, changes_when_casefolded,
12565         changes_when_casemapped.
12566         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12567         Unicode TR#11 revision 17 -> 19.
12568         (LBP_CP): New enumeration value.
12569         (LBP_*): Adjust values accordingly.
12570         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12571         TR#14 revision 22 -> 24.
12572         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12573         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12574         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12575         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12576         is_WBP_MIDLETTER.
12577         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12578         the code1 and code2 of each composition rule.
12579         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12580         * lib/unicase/ignorable.h: Likewise.
12581         * lib/unicase/tocasefold.h: Likewise.
12582         * lib/unicase/tolower.h: Likewise.
12583         * lib/unicase/totitle.h: Likewise.
12584         * lib/unicase/toupper.h: Likewise.
12585         * lib/unictype/bidi_of.h: Likewise.
12586         * lib/unictype/blocks.h: Likewise.
12587         * lib/unictype/categ_C.h: Likewise.
12588         * lib/unictype/categ_Cf.h: Likewise.
12589         * lib/unictype/categ_Cn.h: Likewise.
12590         * lib/unictype/categ_L.h: Likewise.
12591         * lib/unictype/categ_Ll.h: Likewise.
12592         * lib/unictype/categ_Lm.h: Likewise.
12593         * lib/unictype/categ_Lo.h: Likewise.
12594         * lib/unictype/categ_Lu.h: Likewise.
12595         * lib/unictype/categ_M.h: Likewise.
12596         * lib/unictype/categ_Mc.h: Likewise.
12597         * lib/unictype/categ_Mn.h: Likewise.
12598         * lib/unictype/categ_N.h: Likewise.
12599         * lib/unictype/categ_Nd.h: Likewise.
12600         * lib/unictype/categ_Nl.h: Likewise.
12601         * lib/unictype/categ_No.h: Likewise.
12602         * lib/unictype/categ_P.h: Likewise.
12603         * lib/unictype/categ_Pd.h: Likewise.
12604         * lib/unictype/categ_Po.h: Likewise.
12605         * lib/unictype/categ_S.h: Likewise.
12606         * lib/unictype/categ_Sc.h: Likewise.
12607         * lib/unictype/categ_So.h: Likewise.
12608         * lib/unictype/categ_of.h: Likewise.
12609         * lib/unictype/combining.h: Likewise.
12610         * lib/unictype/ctype_alnum.h: Likewise.
12611         * lib/unictype/ctype_alpha.h: Likewise.
12612         * lib/unictype/ctype_graph.h: Likewise.
12613         * lib/unictype/ctype_lower.h: Likewise.
12614         * lib/unictype/ctype_print.h: Likewise.
12615         * lib/unictype/ctype_punct.h: Likewise.
12616         * lib/unictype/ctype_upper.h: Likewise.
12617         * lib/unictype/decdigit.h: Likewise.
12618         * lib/unictype/digit.h: Likewise.
12619         * lib/unictype/numeric.h: Likewise.
12620         * lib/unictype/pr_alphabetic.h: Likewise.
12621         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12622         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12623         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12624         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12625         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12626         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12627         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12628         * lib/unictype/pr_combining.h: Likewise.
12629         * lib/unictype/pr_composite.h: Likewise.
12630         * lib/unictype/pr_currency_symbol.h: Likewise.
12631         * lib/unictype/pr_dash.h: Likewise.
12632         * lib/unictype/pr_decimal_digit.h: Likewise.
12633         * lib/unictype/pr_deprecated.h: Likewise.
12634         * lib/unictype/pr_diacritic.h: Likewise.
12635         * lib/unictype/pr_extender.h: Likewise.
12636         * lib/unictype/pr_grapheme_base.h: Likewise.
12637         * lib/unictype/pr_grapheme_extend.h: Likewise.
12638         * lib/unictype/pr_grapheme_link.h: Likewise.
12639         * lib/unictype/pr_id_continue.h: Likewise.
12640         * lib/unictype/pr_id_start.h: Likewise.
12641         * lib/unictype/pr_ideographic.h: Likewise.
12642         * lib/unictype/pr_ignorable_control.h: Likewise.
12643         * lib/unictype/pr_logical_order_exception.h: Likewise.
12644         * lib/unictype/pr_lowercase.h: Likewise.
12645         * lib/unictype/pr_numeric.h: Likewise.
12646         * lib/unictype/pr_other_alphabetic.h: Likewise.
12647         * lib/unictype/pr_punctuation.h: Likewise.
12648         * lib/unictype/pr_sentence_terminal.h: Likewise.
12649         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12650         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12651         * lib/unictype/pr_unified_ideograph.h: Likewise.
12652         * lib/unictype/pr_uppercase.h: Likewise.
12653         * lib/unictype/pr_xid_continue.h: Likewise.
12654         * lib/unictype/pr_xid_start.h: Likewise.
12655         * lib/unictype/pr_zero_width.h: Likewise.
12656         * lib/unictype/scripts.h: Likewise.
12657         * lib/unictype/scripts_byname.gperf: Likewise.
12658         * lib/unictype/sy_java_ident.h: Likewise.
12659         * lib/unigbrk/gbrkprop.h: Likewise.
12660         * lib/unilbrk/lbrkprop1.h: Likewise.
12661         * lib/unilbrk/lbrkprop2.h: Likewise.
12662         * lib/unilbrk/lbrktables.h: Likewise.
12663         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12664         LBP_CP. Implement rule LB30.
12665         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12666         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12667         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12668         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12669         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12670         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12671         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12672         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12673         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12674         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12675         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12676         bits instead of 16 bits in the code1 and code2 of each composition
12677         rule.
12678         (uc_composition): Update for Unicode 5.2.0.
12679         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12680         * lib/uninorm/decomposition-table2.h: Likewise.
12681         * lib/uniwbrk/wbrkprop.h: Likewise.
12682         * tests/unicase/test-cased.c: Likewise.
12683         * tests/unicase/test-ignorable.c: Likewise.
12684         * tests/unicase/test-uc_tolower.c: Likewise.
12685         * tests/unicase/test-uc_totitle.c: Likewise.
12686         * tests/unicase/test-uc_toupper.c: Likewise.
12687         * tests/unictype/test-categ_C.c: Likewise.
12688         * tests/unictype/test-categ_Cf.c: Likewise.
12689         * tests/unictype/test-categ_Cn.c: Likewise.
12690         * tests/unictype/test-categ_L.c: Likewise.
12691         * tests/unictype/test-categ_Ll.c: Likewise.
12692         * tests/unictype/test-categ_Lm.c: Likewise.
12693         * tests/unictype/test-categ_Lo.c: Likewise.
12694         * tests/unictype/test-categ_Lu.c: Likewise.
12695         * tests/unictype/test-categ_M.c: Likewise.
12696         * tests/unictype/test-categ_Mc.c: Likewise.
12697         * tests/unictype/test-categ_Mn.c: Likewise.
12698         * tests/unictype/test-categ_N.c: Likewise.
12699         * tests/unictype/test-categ_Nd.c: Likewise.
12700         * tests/unictype/test-categ_Nl.c: Likewise.
12701         * tests/unictype/test-categ_No.c: Likewise.
12702         * tests/unictype/test-categ_P.c: Likewise.
12703         * tests/unictype/test-categ_Pd.c: Likewise.
12704         * tests/unictype/test-categ_Po.c: Likewise.
12705         * tests/unictype/test-categ_S.c: Likewise.
12706         * tests/unictype/test-categ_Sc.c: Likewise.
12707         * tests/unictype/test-categ_So.c: Likewise.
12708         * tests/unictype/test-ctype_alnum.c: Likewise.
12709         * tests/unictype/test-ctype_alpha.c: Likewise.
12710         * tests/unictype/test-ctype_graph.c: Likewise.
12711         * tests/unictype/test-ctype_lower.c: Likewise.
12712         * tests/unictype/test-ctype_print.c: Likewise.
12713         * tests/unictype/test-ctype_punct.c: Likewise.
12714         * tests/unictype/test-ctype_upper.c: Likewise.
12715         * tests/unictype/test-decdigit.h: Likewise.
12716         * tests/unictype/test-digit.h: Likewise.
12717         * tests/unictype/test-numeric.h: Likewise.
12718         * tests/unictype/test-pr_alphabetic.c: Likewise.
12719         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12720         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12721         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12722         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12723         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12724         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12725         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12726         * tests/unictype/test-pr_combining.c: Likewise.
12727         * tests/unictype/test-pr_composite.c: Likewise.
12728         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12729         * tests/unictype/test-pr_dash.c: Likewise.
12730         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12731         * tests/unictype/test-pr_deprecated.c: Likewise.
12732         * tests/unictype/test-pr_diacritic.c: Likewise.
12733         * tests/unictype/test-pr_extender.c: Likewise.
12734         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12735         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12736         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12737         * tests/unictype/test-pr_id_continue.c: Likewise.
12738         * tests/unictype/test-pr_id_start.c: Likewise.
12739         * tests/unictype/test-pr_ideographic.c: Likewise.
12740         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12741         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12742         * tests/unictype/test-pr_lowercase.c: Likewise.
12743         * tests/unictype/test-pr_numeric.c: Likewise.
12744         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12745         * tests/unictype/test-pr_punctuation.c: Likewise.
12746         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12747         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12748         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12749         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12750         * tests/unictype/test-pr_uppercase.c: Likewise.
12751         * tests/unictype/test-pr_xid_continue.c: Likewise.
12752         * tests/unictype/test-pr_xid_start.c: Likewise.
12753         * tests/unictype/test-pr_zero_width.c: Likewise.
12754         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12755         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12756         changed behaviour: line breaking is now disallowed between a letter
12757         or '=' and '('.
12758         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12759         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12760         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12761         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12762         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12763         lib/uniwidth/width.c.
12764         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12765         without comments, but with the original copyright notice.
12766         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12767         changes.
12768         * lib/unictype/categ_Cc.h: Likewise.
12769         * lib/unictype/categ_Co.h: Likewise.
12770         * lib/unictype/categ_Cs.h: Likewise.
12771         * lib/unictype/categ_Lt.h: Likewise.
12772         * lib/unictype/categ_Me.h: Likewise.
12773         * lib/unictype/categ_Pc.h: Likewise.
12774         * lib/unictype/categ_Pe.h: Likewise.
12775         * lib/unictype/categ_Pf.h: Likewise.
12776         * lib/unictype/categ_Pi.h: Likewise.
12777         * lib/unictype/categ_Ps.h: Likewise.
12778         * lib/unictype/categ_Sk.h: Likewise.
12779         * lib/unictype/categ_Sm.h: Likewise.
12780         * lib/unictype/categ_Z.h: Likewise.
12781         * lib/unictype/categ_Zl.h: Likewise.
12782         * lib/unictype/categ_Zp.h: Likewise.
12783         * lib/unictype/categ_Zs.h: Likewise.
12784         * lib/unictype/ctype_blank.h: Likewise.
12785         * lib/unictype/ctype_cntrl.h: Likewise.
12786         * lib/unictype/ctype_digit.h: Likewise.
12787         * lib/unictype/ctype_space.h: Likewise.
12788         * lib/unictype/ctype_xdigit.h: Likewise.
12789         * lib/unictype/mirror.h: Likewise.
12790         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12791         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12792         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12793         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12794         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12795         * lib/unictype/pr_bidi_control.h: Likewise.
12796         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12797         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12798         * lib/unictype/pr_bidi_pdf.h: Likewise.
12799         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12800         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12801         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12802         * lib/unictype/pr_format_control.h: Likewise.
12803         * lib/unictype/pr_hex_digit.h: Likewise.
12804         * lib/unictype/pr_hyphen.h: Likewise.
12805         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12806         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12807         * lib/unictype/pr_iso_control.h: Likewise.
12808         * lib/unictype/pr_join_control.h: Likewise.
12809         * lib/unictype/pr_left_of_pair.h: Likewise.
12810         * lib/unictype/pr_line_separator.h: Likewise.
12811         * lib/unictype/pr_math.h: Likewise.
12812         * lib/unictype/pr_non_break.h: Likewise.
12813         * lib/unictype/pr_not_a_character.h: Likewise.
12814         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12815         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12816         * lib/unictype/pr_other_id_continue.h: Likewise.
12817         * lib/unictype/pr_other_id_start.h: Likewise.
12818         * lib/unictype/pr_other_lowercase.h: Likewise.
12819         * lib/unictype/pr_other_math.h: Likewise.
12820         * lib/unictype/pr_other_uppercase.h: Likewise.
12821         * lib/unictype/pr_paired_punctuation.h: Likewise.
12822         * lib/unictype/pr_paragraph_separator.h: Likewise.
12823         * lib/unictype/pr_pattern_syntax.h: Likewise.
12824         * lib/unictype/pr_pattern_white_space.h: Likewise.
12825         * lib/unictype/pr_private_use.h: Likewise.
12826         * lib/unictype/pr_quotation_mark.h: Likewise.
12827         * lib/unictype/pr_radical.h: Likewise.
12828         * lib/unictype/pr_soft_dotted.h: Likewise.
12829         * lib/unictype/pr_space.h: Likewise.
12830         * lib/unictype/pr_titlecase.h: Likewise.
12831         * lib/unictype/pr_variation_selector.h: Likewise.
12832         * lib/unictype/pr_white_space.h: Likewise.
12833         * lib/unictype/sy_c_ident.h: Likewise.
12834         * lib/unictype/sy_c_whitespace.h: Likewise.
12835         * lib/unictype/sy_java_whitespace.h: Likewise.
12836         * modules/uni*/*: Bump version number of expected libunistring version.
12837         Reported by Simon Josefsson.
12838
12839 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12840
12841         useless-if-before-free: fix typo in --help and make the internal,
12842         automatic version date update process work once again.
12843         --help output contained a NUL character instead of the
12844         backslash-zero that was intended.  Also, the "must lie within
12845         the first 8 lines" line is on line 9, and hence not getting
12846         automatically updated.
12847         * build-aux/useless-if-before-free: Fix the former by adding a
12848         backslash, and the latter by condensing the three lines of what-it-does
12849         to a single line, leaving one line of slack for the future.
12850
12851 2011-01-09  Bruno Haible  <bruno@clisp.org>
12852
12853         uniwidth/width: Fix width of U+1D173..U+1D17A.
12854         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12855         symbolic_width, output_width_property_test): New functions.
12856         (main): Invoke output_nonspacing_property, output_width_property_test.
12857         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12858         U+1D173..U+1D17A.
12859         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12860         1.
12861         * modules/uniwidth/*: Bump version number of expected libunistring
12862         version.
12863         * modules/unilbrk/*: Likewise.
12864
12865 2011-01-08  Bruno Haible  <bruno@clisp.org>
12866
12867         uninorm tests: Preserve copyright of Unicode data file.
12868         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12869         Mention modifications.
12870
12871 2011-01-08  Bruno Haible  <bruno@clisp.org>
12872
12873         gen-uni-tables: Prepare for Unicode 5.2.0.
12874         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12875         (debug_output_lbp, output_lbp): Update.
12876
12877 2011-01-08  Bruno Haible  <bruno@clisp.org>
12878
12879         unilbrk: Clarify gen-uni-tables.c code.
12880         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12881         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12882         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12883
12884 2011-01-07  Bruno Haible  <bruno@clisp.org>
12885
12886         strtod: Restore errno when successfully parsing Infinity or NaN.
12887         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12888         restore the original errno.
12889
12890 2011-01-07  Bruno Haible  <bruno@clisp.org>
12891
12892         remove test: Avoid failure on HP-UX 11.
12893         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12894
12895 2011-01-07  Bruno Haible  <bruno@clisp.org>
12896
12897         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12898         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12899         error code.
12900
12901 2011-01-07  Pádraig Brady <P@draigBrady.com>
12902
12903         ignore-value: fixup comments, and add Eric Blake
12904         as an author since he rewrote the macros.
12905         * lib/ignore-value.h (ignore_value):  State that
12906         we now support aggregates.  Also specify exactly
12907         when the GCC warn_unused_result feature was added.
12908
12909 2011-01-06  Eric Blake  <eblake@redhat.com>
12910
12911         ignore-value: support aggregate types
12912         * lib/ignore-value.h (ignore_value): Provide separate gcc
12913         definition.
12914         * modules/ignore-value-tests: New test module.
12915         * tests/test-ignore-value.c: New test.
12916
12917         maint.mk: improve sc_prohibit_strcmp regex
12918         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12919         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12920         definition of STRNEQ.
12921
12922         signal: work around Haiku issue with SIGBUS
12923         * lib/siglist.h: Add comment.
12924         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12925         strsignal's favoring of SIGSEGV.
12926         * tests/test-signal.c (main): Avoid test failure.
12927         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12928         Reported by Scott McCreary.
12929
12930         maint.mk: add pre-release check to ensure submodule commits are public
12931         * top/maint.mk (public-submodule-commit): New rule.
12932         (submodule-checks): New variable.
12933         (alpha beta stable): Depend on the variable.
12934
12935 2011-01-05  Pádraig Brady <P@draigBrady.com>
12936         and Jim Meyering  <meyering@redhat.com>
12937
12938         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12939         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12940         (ATTRIBUTE_DEPRECATED): Define.
12941         (_ignore_case): New function.
12942         (ignore_value): New macro, to replace the old function.
12943         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12944         * modules/ignore-value (Depends-on): Add stdint.
12945
12946 2011-01-04  Eric Blake  <eblake@redhat.com>
12947
12948         doc: regenerate INSTALL
12949         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12950         @firstparagraphindent support, now that autoconf dropped it.
12951         (INSTALL_PRELUDE): Reinstate old macro.
12952         * doc/install.texi: Resync from autoconf.
12953         * doc/INSTALL: Reflect recent autoconf update.
12954         * doc/INSTALL.ISO: Likewise.
12955         * doc/INSTALL.UTF-8: Likewise.
12956         Reported by Karl Berry.
12957
12958 2011-01-04  Bruce Korb  <address@hidden>
12959
12960         git-version-gen: avoid a sub-shell
12961         * build-aux/git-version-gen: Redirect stderr in `...` via
12962         "exec 2>...", rather than via an added sub-shell.
12963
12964 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12965
12966         git-version-gen: use (...) rather than sh -c '...'
12967         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12968         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12969
12970 2011-01-03  Jim Meyering  <meyering@redhat.com>
12971
12972         git-version-gen: convert leading TABs to spaces
12973         * build-aux/git-version-gen: Expand leading TABs.
12974
12975         git-version-gen: handle failed "git rev-list"
12976         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12977         from git and proceeding as if it had succeeded but printed no SHA1
12978         checksums, suppress the diagnostic and handle the failure.
12979         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12980
12981         git-version-gen: include command name in one more diagnostic
12982         * build-aux/git-version-gen: When the required .tarball-version file
12983         was missing or unreadable, you might see the diagnostic from "cat",
12984         but no trace of the name of the invoking script.  Now, you still see
12985         the diagnostic from cat, but also get one from "git-version-gen: ".
12986         Inspired by a patch from Bruce Korb.
12987
12988         update-copyright: adjust test to match changed code
12989         * tests/test-update-copyright.sh: Change test's expected output
12990         to match new actual output.
12991
12992 2011-01-02  Bruno Haible  <bruno@clisp.org>
12993
12994         getlogin_r: Avoid test failure on HP-UX 11.
12995         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12996         ERANGE when the second argument is zero.
12997         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12998         portability problem.
12999
13000 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13001
13002         * build-aux/update-copyright: doc Simon's changes
13003
13004 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13005
13006         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13007         environment variable.
13008
13009 2011-01-02  Bruno Haible  <bruno@clisp.org>
13010
13011         unigbrk: Avoid gcc warnings.
13012         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13013         unused variable.
13014         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13015         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13016         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13017         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13018         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13019         Change type of first argument to 'const char *'.
13020         (main): Remove unused variable.
13021         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13022         type of first argument to 'const char *'.
13023         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13024         Likewise.
13025         (main): Change type of variable 's'.
13026         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13027         to 'int'.
13028
13029 2011-01-02  Bruno Haible  <bruno@clisp.org>
13030
13031         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13032         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13033         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13034         bug.
13035         * lib/pwrite.c: Undo 2010-12-31 patch.
13036         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13037
13038 2011-01-02  Bruno Haible  <bruno@clisp.org>
13039
13040         pread: Fix test whether it works.
13041         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13042
13043 2011-01-02  Bruno Haible  <bruno@clisp.org>
13044
13045         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13046         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13047         ends in "6". Don't require a specific month name. Try also the locale
13048         names found on HP-UX 11 and Solaris 7.
13049
13050 2011-01-02  Bruno Haible  <bruno@clisp.org>
13051
13052         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13053         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13054         C linkage.
13055         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13056
13057 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13058
13059         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13060         for consistency, since the "cluster" term is not used elsewhere.
13061         * lib/unigbrk.in.h: Update name.
13062         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13063         * lib/unigbrk/u16-grapheme-next.c: Update name.
13064         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13065         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13066         * lib/unigbrk/u32-grapheme-next.c: Update name.
13067         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13068         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13069         * lib/unigbrk/u8-grapheme-next.c: Update name.
13070         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13071         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13072         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13073         Suggested by Bruno Haible.
13074
13075 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13076
13077         Remove module 'u8-grapheme-len' as too redundant with
13078         'u8-grapheme-next'.
13079         * modules/unigbrk/u8-grapheme-len: Delete file.
13080         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13081         * lib/unigbrk.in.h: Remove prototype for deleted function.
13082         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13083         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13084
13085         Remove module 'u16-grapheme-len' as too redundant with
13086         'u16-grapheme-next'.
13087         * modules/unigbrk/u16-grapheme-len: Delete file.
13088         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13089         * lib/unigbrk.in.h: Remove prototype for deleted function.
13090         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13091         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13092
13093         Remove module 'u32-grapheme-len' as too redundant with
13094         'u32-grapheme-next'.
13095         * modules/unigbrk/u32-grapheme-len: Delete file.
13096         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13097         * lib/unigbrk.in.h: Remove prototype for deleted function.
13098         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13099         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13100
13101         Suggested by Bruno Haible.
13102
13103 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13104
13105         * unigbrk.in.h: Fix typo: "ben" => "been".
13106         Reported by Bruno Haible.
13107
13108 2011-01-01  Jim Meyering  <meyering@redhat.com>
13109
13110         maint: update almost all copyright ranges to include 2011
13111         Run the new "make update-copyright" rule.
13112
13113 2011-01-01  Jim Meyering  <meyering@redhat.com>
13114
13115         maint: update-copyright: exempt doc/INSTALL*
13116         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13117         since they are generated.  Suggested by Bruno Haible.
13118
13119 2011-01-01  Jim Meyering  <meyering@redhat.com>
13120
13121         maint: refine the update-copyright rule
13122         * Makefile (update-copyright): Also exclude any file that includes
13123         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13124         code that merely generates the comment.
13125
13126 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13127
13128         New module 'u8-grapheme-len'.
13129         * modules/unigbrk/u8-grapheme-len: New file.
13130         * modules/unigbrk/u8-grapheme-len-tests: New file.
13131         * lib/unigbrk.in.h: Add prototype for new function.
13132         * lib/unigbrk/u8-grapheme-len.c: New file.
13133         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13134
13135         New module 'u16-grapheme-len'.
13136         * modules/unigbrk/u16-grapheme-len: New file.
13137         * modules/unigbrk/u16-grapheme-len-tests: New file.
13138         * lib/unigbrk.in.h: Add prototype for new function.
13139         * lib/unigbrk/u16-grapheme-len.c: New file.
13140         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13141
13142         New module 'u32-grapheme-len'.
13143         * modules/unigbrk/u32-grapheme-len: New file.
13144         * modules/unigbrk/u32-grapheme-len-tests: New file.
13145         * lib/unigbrk.in.h: Add prototype for new function.
13146         * lib/unigbrk/u32-grapheme-len.c: New file.
13147         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13148
13149         New module 'u8-grapheme-next'.
13150         * modules/unigbrk/u8-grapheme-next: New file.
13151         * modules/unigbrk/u8-grapheme-next-tests: New file.
13152         * lib/unigbrk.in.h: Add prototype for new function.
13153         * lib/unigbrk/u8-grapheme-next.c: New file.
13154         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13155
13156         New module 'u16-grapheme-next'.
13157         * modules/unigbrk/u16-grapheme-next: New file.
13158         * modules/unigbrk/u16-grapheme-next-tests: New file.
13159         * lib/unigbrk.in.h: Add prototype for new function.
13160         * lib/unigbrk/u16-grapheme-next.c: New file.
13161         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13162
13163         New module 'u32-grapheme-next'.
13164         * modules/unigbrk/u32-grapheme-next: New file.
13165         * modules/unigbrk/u32-grapheme-next-tests: New file.
13166         * lib/unigbrk.in.h: Add prototype for new function.
13167         * lib/unigbrk/u32-grapheme-next.c: New file.
13168         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13169
13170         New module 'u8-grapheme-prev'.
13171         * modules/unigbrk/u8-grapheme-prev: New file.
13172         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13173         * lib/unigbrk.in.h: Add prototype for new function.
13174         * lib/unigbrk/u8-grapheme-prev.c: New file.
13175         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13176
13177         New module 'u16-grapheme-prev'.
13178         * modules/unigbrk/u16-grapheme-prev: New file.
13179         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13180         * lib/unigbrk.in.h: Add prototype for new function.
13181         * lib/unigbrk/u16-grapheme-prev.c: New file.
13182         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13183
13184         New module 'u32-grapheme-prev'.
13185         * modules/unigbrk/u32-grapheme-prev: New file.
13186         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13187         * lib/unigbrk.in.h: Add prototype for new function.
13188         * lib/unigbrk/u32-grapheme-prev.c: New file.
13189         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13190
13191         New module 'u8-grapheme-breaks'.
13192         * modules/unigbrk/u8-grapheme-breaks: New file.
13193         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13194         * lib/unigbrk.in.h: Add prototype for new function.
13195         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13196         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13197
13198         New module 'u16-grapheme-breaks'.
13199         * modules/unigbrk/u16-grapheme-breaks: New file.
13200         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13201         * lib/unigbrk.in.h: Add prototype for new function.
13202         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13203         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13204
13205         New module 'u32-grapheme-breaks'.
13206         * modules/unigbrk/u32-grapheme-breaks: New file.
13207         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13208         * lib/unigbrk.in.h: Add prototype for new function.
13209         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13210         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13211
13212         New module 'ulc-grapheme-breaks'.
13213         * modules/unigbrk/ulc-grapheme-breaks: New file.
13214         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13215         * m4/locale-ar.m4: New file.
13216         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13217         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13218         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13219
13220 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13221
13222         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13223         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13224         modified how this file was generated before I initially submitted
13225         the module, but failed to regenerate it.  This meant that several
13226         of the level2 entries were wrong.
13227         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13228         Remove the division-by-2 that is folded into the table now that
13229         gbrkprop.h has been regenerated properly.  Now -1 entries are
13230         handled correctly.
13231
13232         New module 'unigbrk/uc-gbrk-prop-tests'.
13233         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13234         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13235         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13236         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13237
13238 2011-01-01  Bruno Haible  <bruno@clisp.org>
13239
13240         Avoid use of hexadecimal escapes.
13241         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13242         instead of hexadecimal escapes.
13243
13244 2011-01-01  Jim Meyering  <meyering@redhat.com>
13245
13246         maint: new rule to update copyright year ranges
13247         * Makefile (update-copyright): New rule.
13248
13249         maint: indent with TABs in Makefile
13250         * Makefile: Expand leading sequences of spaces to TABs
13251
13252         version-etc: update the copyright year it reports
13253         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13254
13255 2010-12-31  Bruno Haible  <bruno@clisp.org>
13256
13257         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13258         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13259         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13260         zero.
13261
13262 2010-12-31  Bruno Haible  <bruno@clisp.org>
13263
13264         pwrite: Work around HP-UX 11.11 bug.
13265         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13266         works and set REPLACE_PWRITE if not.
13267         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13268         function.
13269         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13270
13271 2010-12-31  Bruno Haible  <bruno@clisp.org>
13272
13273         pread: Work around HP-UX 11 bugs.
13274         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13275         and set REPLACE_PREAD if not.
13276         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13277
13278 2010-12-31  Eric Blake  <eblake@redhat.com>
13279
13280         nl_langinfo: fix YESEXPR on Irix 6.5
13281         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13282         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13283         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13284         it.
13285
13286 2010-12-31  Bruno Haible  <bruno@clisp.org>
13287
13288         iconv: Document HP-UX 11 bug.
13289         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13290
13291 2010-12-31  Bruno Haible  <bruno@clisp.org>
13292
13293         ldexpl: Fix link error on HP-UX 11.
13294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13295         LDEXPL_LIBM, using $ISNANL_LIBM.
13296
13297 2010-12-31  Eric Blake  <eblake@redhat.com>
13298
13299         ftello: avoid compilation failure with SunStudio c89
13300         * lib/ftello.c (ftello): Use lseek, not llseek.
13301
13302         tests: avoid failing coreutils tests on cygwin
13303         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13304         (create_exe_shims_): Return 0 when skipping.
13305
13306 2010-12-31  Bruno Haible  <bruno@clisp.org>
13307
13308         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13309         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13310
13311 2010-12-31  Bruno Haible  <bruno@clisp.org>
13312
13313         waitpid: Fix link error in C++ mode.
13314         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13315
13316 2010-12-31  Bruno Haible  <bruno@clisp.org>
13317
13318         isnan: Use GCC built-ins when possible.
13319         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13320         __builtin_isnan.
13321         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13322         (isnan): Define using GCC built-ins for GCC >= 4.0.
13323
13324 2010-12-31  Bruno Haible  <bruno@clisp.org>
13325
13326         isnand: Fix mistake.
13327         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13328         __builtin_isnand.
13329
13330 2010-12-31  Bruno Haible  <bruno@clisp.org>
13331
13332         open: Avoid C++ error on HP-UX 11.
13333         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13334
13335 2010-12-31  Bruno Haible  <bruno@clisp.org>
13336
13337         time_r: Add missing declarations on HP-UX 11.
13338         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13339         instead of HAVE_LOCALTIME_R.
13340         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13341         HAVE_LOCALTIME_R always.
13342         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13343         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13344         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13345         HAVE_LOCALTIME_R.
13346         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13347         * doc/posix-functions/localtime_r.texi: Likewise.
13348
13349 2010-12-29  Eric Blake  <eblake@redhat.com>
13350
13351         mountlist: tweak previous commit
13352         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13353         Reported by Paul Eggert.
13354
13355         mountlist: fix local drive detection on cygwin
13356         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13357         that works for cygwin.
13358
13359 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13360
13361         ftoastr, snprintf: ftoastr + snprintf module
13362         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13363         since the snprintf module now should be good enough here.
13364         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13365         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13366         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13367         GNULIB_SNPRINTF only for the test directory, and the latter
13368         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13369         seems to suffice by itself.
13370
13371 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13372
13373         alloca: one step towards thread-safety
13374         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13375         need for a static variable.  All callers changed.  This does not
13376         make the alloca replacement thread-safe, but it's one step.
13377
13378         tests: minor indenting change
13379         * tests/init.sh: Sync from coreutils housekeeping patch
13380         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13381         to keep lines within 80 columns.
13382
13383 2010-12-28  Jim Meyering  <meyering@redhat.com>
13384
13385         regex: don't infloop on persistent failing calloc
13386         * lib/regexec.c (build_trtable): Return failure indication upon
13387         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13388         In glibc, this was fixed for version 2.13:
13389         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13390
13391 2010-12-28  Bruno Haible  <bruno@clisp.org>
13392             Paul Eggert <eggert@cs.ucla.edu>
13393
13394         linkat: Make implementation robust against system behaviour variations.
13395         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13396         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13397         way, and to -2 if it needs a generic runtime test.
13398         * lib/linkat.c (solaris_optimized_link_immediate,
13399         solaris_optimized_link_follow): New functions.
13400         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13401         (check_same_link): Use it.
13402
13403 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13404
13405         New module 'unigbrk/base'.
13406         * modules/unigbrk/base: New file.
13407         * lib/unigbrk.in.h: New file.
13408
13409         New module 'unigbrk/uc-gbrk-prop'.
13410         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13411         * modules/unigbrk/uc-gbrk-prop: New file.
13412         * lib/unigbrk/gbrkprop.h: New file.
13413         * lib/unigbrk/uc-gbrk-prop.c: New file.
13414
13415         New module 'unigbrk/uc-is-grapheme-break'.
13416         * modules/unigbrk/uc-is-grapheme-break: New file.
13417         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13418         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13419         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13420         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13421         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13422
13423         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13424
13425 2010-12-27  Bruno Haible  <bruno@clisp.org>
13426
13427         linkat test: Avoid failure on Solaris 11 2010-11.
13428         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13429
13430 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13431
13432         utimens: work around glibc rounding bug on more platforms
13433         * lib/utimens.c (fdutimens): Work around rounding bug even if
13434         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13435         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13436
13437 2010-12-27  Bruno Haible  <bruno@clisp.org>
13438
13439         select tests: Improve comments.
13440         * tests/test-select.c (do_select): Add comments.
13441
13442 2010-12-27  Bruno Haible  <bruno@clisp.org>
13443
13444         select tests: Safer way of handling timeout.
13445         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13446         at every invocation.
13447
13448 2010-12-27  Bruno Haible  <bruno@clisp.org>
13449
13450         select tests: Use 'bool' where appropriate.
13451         * tests/test-select.c (connect_to_socket): Change argument type to
13452         'bool'.
13453
13454 2010-12-27  Bruno Haible  <bruno@clisp.org>
13455
13456         select tests: Use existing modules.
13457         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13458         (configure.ac): Don't test for unistd.h.
13459         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13460         declared in <unistd.h>.
13461
13462 2010-12-27  Bruno Haible  <bruno@clisp.org>
13463
13464         mbrtowc: Work around a Solaris 7 bug.
13465         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13466         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13467         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13468         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13469         MBRTOWC_NULL_ARG1_BUG.
13470         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13471         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13472         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13473         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13474
13475 2010-12-27  Jim Meyering  <meyering@redhat.com>
13476
13477         read-file.c: tweak syntax
13478         * lib/read-file.c (fread_file): Remove space after "*" in function
13479         definitions.
13480
13481 2010-12-27  Bruno Haible  <bruno@clisp.org>
13482
13483         times test: Avoid gcc warnings on OSF/1.
13484         * tests/test-times.c (main): Cast printf arguments from clock_t to
13485         'long int'.
13486
13487 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13488
13489         utimens: work around glibc rounding bug on older Linux kernels
13490         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13491         on Linux with a glibc whose utimes might not work, then work
13492         around a longstanding glibc bug involving rounding rather than
13493         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13494         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13495
13496 2010-12-26  Bruno Haible  <bruno@clisp.org>
13497
13498         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13499         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13500         _GL_CXXALIAS_SYS.
13501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13502
13503 2010-12-26  Bruno Haible  <bruno@clisp.org>
13504
13505         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13506         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13507         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13508         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13509         looking for the declaration.
13510         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13511         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13512         problem.
13513         * doc/posix-functions/inet_pton.texi: Likewise.
13514
13515 2010-12-26  Bruno Haible  <bruno@clisp.org>
13516
13517         arpa_inet: Use the common idioms with C++ support.
13518         * lib/arpa_inet.in.h: Include c++defs.h.
13519         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13520         support.
13521         * modules/arpa_inet (Depends-on): Add c++defs.
13522         (Makefile.am): Substitute the contents of c++defs.h.
13523         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13524         * modules/arpa_inet-c++-tests: New file.
13525         * tests/test-arpa_inet-c++.cc: New file.
13526
13527 2010-12-25  Bruno Haible  <bruno@clisp.org>
13528
13529         Fix more C++ link errors on Solaris 8.
13530         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13531         $(LIB_EACCESS).
13532         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13533         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13534         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13535         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13536         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13537
13538 2010-12-25  Bruno Haible  <bruno@clisp.org>
13539
13540         printf-posix: Fix link error when a non-GCC compiler is used.
13541         * lib/stdio.in.h (printf): When not using GCC, override printf
13542         correctly.
13543         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13544
13545 2010-12-25  Bruno Haible  <bruno@clisp.org>
13546
13547         strerror_r-posix: Update doc.
13548         * doc/posix-functions/strerror_r.texi: Update doc about the return
13549         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13550
13551 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13552
13553         utimens: simplify the logic of the previous change
13554         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13555         This should not affect whether the test succeeds or fails.
13556
13557         utimens: configure better on hosts with NFS clock skew
13558         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13559         uses the clock of the local host.  It might use the clock of the
13560         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13561         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13562
13563 2010-12-25  Bruno Haible  <bruno@clisp.org>
13564
13565         ptsname test: Avoid failure on Solaris.
13566         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13567         open a pseudo-terminal; don't use BSD-style ptys.
13568         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13569
13570 2010-12-25  Bruno Haible  <bruno@clisp.org>
13571
13572         ptsname: Avoid ERANGE failure on some systems.
13573         * lib/ptsname.c (buffer): Increase size.
13574
13575 2010-12-25  Bruno Haible  <bruno@clisp.org>
13576
13577         rename, renameat: Avoid test failures at NFS mounted locations.
13578         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13579         so that subsequent mkdir calls succeed.
13580
13581 2010-12-25  Bruno Haible  <bruno@clisp.org>
13582
13583         iswblank: Fix C++ link error on Solaris 8.
13584         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13585         _GL_FUNCDECL_SYS.
13586
13587 2010-12-25  Bruno Haible  <bruno@clisp.org>
13588
13589         unistd: Fix C++ link error on Solaris 8.
13590         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13591
13592 2010-12-25  Bruno Haible  <bruno@clisp.org>
13593
13594         readlink doc: Mention an old glibc bug.
13595         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13596
13597 2010-12-25  Bruno Haible  <bruno@clisp.org>
13598
13599         fcntl-h: Fix for use of C++ on glibc systems.
13600         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13601         also on glibc systems in C++ mode.
13602         Reported by Gary V. Vaughan <gary@gnu.org>.
13603
13604 2010-12-25  Bruno Haible  <bruno@clisp.org>
13605
13606         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13607         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13608
13609 2010-12-25  Bruno Haible  <bruno@clisp.org>
13610
13611         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13612         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13613         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13614         test whether truncl works according to ISO C 99 with IEC 60559.
13615         * m4/truncl-ieee.m4: New file.
13616         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13617         m4/signbit.m4.
13618         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13619
13620 2010-12-25  Bruno Haible  <bruno@clisp.org>
13621
13622         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13623         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13624         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13625         test whether ceill works according to ISO C 99 with IEC 60559.
13626         * m4/ceill-ieee.m4: New file.
13627         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13628         m4/signbit.m4.
13629         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13630
13631 2010-12-25  Bruno Haible  <bruno@clisp.org>
13632
13633         Ensure all prerequisites of <wchar.h> are included.
13634         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13635         before <wchar.h>.
13636         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13637         gl_MBRLEN_NUL_RETVAL): Likewise.
13638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13639         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13640         AC_FUNC_MBRTOWC): Likewise.
13641         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13642         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13644         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13645         Likewise.
13646         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13647         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13648         (gl_WCHAR_H): Improve comments.
13649         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13650
13651 2010-12-25  Bruno Haible  <bruno@clisp.org>
13652
13653         strtok_r: Fix C syntax error in autoconf macro.
13654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13655         characters in test program.
13656
13657 2010-12-24  Bruno Haible  <bruno@clisp.org>
13658
13659         ceil, trunc, round: Fix gcc warnings.
13660         * lib/ceil.c (MIN): Undefine before redefining.
13661         * lib/trunc.c (MIN): Likewise.
13662         * lib/round.c (MIN): Likewise.
13663         Include <math.h> first.
13664
13665 2010-12-24  Bruno Haible  <bruno@clisp.org>
13666
13667         select tests: Avoid failures on OSF/1 5.1.
13668         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13669         failure of closing the last socket; it may fail with ECONNRESET.
13670
13671 2010-12-24  Eric Blake  <eblake@redhat.com>
13672
13673         stdint: avoid HP-UX 10.20 preprocessor bug
13674         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13675         than #if.
13676         * tests/test-floor2.c (main): Likewise.
13677         Reported by Peter O'Gorman.
13678
13679         pipe: make obsoletion transition easier
13680         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13681         * modules/pipe (Files): Include revived file.
13682         (Include): Drop reference, to mirror getdate's behavior.
13683
13684 2010-12-24  Bruno Haible  <bruno@clisp.org>
13685
13686         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13687         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13688         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13690
13691 2010-12-24  Bruno Haible  <bruno@clisp.org>
13692
13693         gethostname: Ensure declaration on NonStop Kernel.
13694         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13695         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13696
13697 2010-12-24  Bruno Haible  <bruno@clisp.org>
13698
13699         sys_select: Ensure all necessary types on NonStop Kernel.
13700         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13701         include <sys/time.h>.
13702         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13703         NonStop Kernel.
13704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13705
13706 2010-12-24  Bruno Haible  <bruno@clisp.org>
13707
13708         sys_select: Remove unneeded include.
13709         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13710         have <sys/select.h>.
13711
13712 2010-12-24  Bruno Haible  <bruno@clisp.org>
13713
13714         gethostname: Provide a fallback for HOST_NAME_MAX.
13715         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13716         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13717         instead.
13718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13719
13720 2010-12-24  Bruno Haible  <bruno@clisp.org>
13721
13722         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13723         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13724         (SA_RESTART): Likewise.
13725         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13726
13727 2010-12-24  Bruno Haible  <bruno@clisp.org>
13728
13729         signal: Define NSIG.
13730         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13731         * tests/test-signal.c (nsig): New variable.
13732         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13733
13734 2010-12-24  Bruno Haible  <bruno@clisp.org>
13735
13736         rename, renameat: Avoid test failures on OSF/1 5.1.
13737         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13738         alternative error codes.
13739         * tests/test-renameat.c (main): Likewise.
13740
13741 2010-12-24  Bruno Haible  <bruno@clisp.org>
13742
13743         *printf: Detect large precisions bug on Solaris 10/SPARC.
13744         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13745         by Paul Eggert.
13746         * tests/test-snprintf-posix.h (test_function): Add this test code here
13747         too.
13748         * tests/test-sprintf-posix.h (test_function): Likewise.
13749         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13750         * tests/test-vasprintf-posix.c (test_function): Likewise.
13751         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13752         around by gnulib.
13753         * doc/posix-functions/printf.texi: Likewise.
13754         * doc/posix-functions/snprintf.texi: Likewise.
13755         * doc/posix-functions/sprintf.texi: Likewise.
13756         * doc/posix-functions/vfprintf.texi: Likewise.
13757         * doc/posix-functions/vprintf.texi: Likewise.
13758         * doc/posix-functions/vsnprintf.texi: Likewise.
13759         * doc/posix-functions/vsprintf.texi: Likewise.
13760         * doc/posix-functions/dprintf.texi: Undo last commit.
13761         * doc/posix-functions/vdprintf.texi: Likewise.
13762
13763 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13764
13765         tests: port test-fdutimensat.c to Solaris 8
13766         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13767         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13768         On Solaris 8, it fails with errno == ENOSYS, because there is no
13769         futimens (so it can't use the fd), and there is no lutimens (so it
13770         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13771
13772         vsnprintf: make more consistent with snprintf; doc fixes
13773
13774         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13775         the byte count return problem was promoted from the snprintf-posix
13776         to the snprintf module.
13777         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13778         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13779         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13780         * tests/test-snprintf.c (main): Check the byte count returned.
13781         * tests/test-vsnprintf.c (main): Likewise.
13782
13783 2010-12-23  Eric Blake  <eblake@redhat.com>
13784
13785         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13786         * modules/sigpipe (License): Relax license.
13787
13788 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         doc: document Solaris printf bug with large float precisions
13791         * doc/posix-functions/dprintf.texi (dprintf):
13792         * doc/posix-functions/fprintf.texi (fprintf):
13793         * doc/posix-functions/printf.texi (printf):
13794         * doc/posix-functions/snprintf.texi (snprintf):
13795         * doc/posix-functions/sprintf.texi (sprintf):
13796         * doc/posix-functions/vdprintf.texi (vdprintf):
13797         * doc/posix-functions/vfprintf.texi (vfprintf):
13798         * doc/posix-functions/vprintf.texi (vprintf):
13799         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13800         * doc/posix-functions/vsprintf.texi (vsprintf):
13801         Mention that these functions mishandle large floating point
13802         precisions on Solaris 10.  The same bug is also present in Solaris
13803         8, and I assume earlier.  This causes "cd gnulib-tests; make
13804         check" to fail on Solaris 8 (and I assume, later) when building
13805         the latest coreutils, in test-vasprintf-posix's call to
13806         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13807         the wide flavors (e.g., wprintf) so this patch just updates the
13808         documentation for the narrow ones.
13809
13810         test-posixtm.c: add two tests
13811         * tests/test-posixtm.c: Add two tests, to highlight the
13812         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13813         around this bug; this is merely to document it.
13814
13815 2010-12-22  Bruno Haible  <bruno@clisp.org>
13816
13817         getlogin_r: Work around portability problem on OSF/1.
13818         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13819         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13820         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13821         test for a truncated result.
13822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13823         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13824         * modules/getlogin_r (Depends-on): Add memchr.
13825         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13826
13827 2010-12-22  Bruno Haible  <bruno@clisp.org>
13828
13829         ptsname: Avoid test failure on OSF/1 5.1.
13830         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13831         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13832         (same_slave): New function.
13833         (main): Use it to compare ptsname's result with the expected file name.
13834
13835 2010-12-22  Bruno Haible  <bruno@clisp.org>
13836
13837         Port extended stdio modules to HP NonStop Kernel.
13838         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13839         macros.
13840         * lib/fbufmode.c: Update comments.
13841         * lib/fflush.c: Likewise.
13842         * lib/fpurge.c: Likewise.
13843         * lib/freadable.c: Likewise.
13844         * lib/freadahead.c: Likewise.
13845         * lib/freading.c: Likewise.
13846         * lib/freadptr.c: Likewise.
13847         * lib/freadseek.c: Likewise.
13848         * lib/fseeko.c: Likewise.
13849         * lib/fseterr.c: Likewise.
13850         * lib/fwritable.c: Likewise.
13851         * lib/fwriting.c: Likewise.
13852         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13853
13854 2010-12-22  Bruno Haible  <bruno@clisp.org>
13855
13856         ttyname_r: Work around bug on OSF/1 5.1.
13857         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13859         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13860         present.
13861         * lib/ttyname_r.c (ttyname_r): Update comments.
13862
13863 2010-12-22  Bruno Haible  <bruno@clisp.org>
13864
13865         round: Implement result sign according to IEEE 754.
13866         * lib/round.c (MIN, MINUS_ZERO): New macros.
13867         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13868         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13869         * tests/test-round-ieee.c (main): Likewise.
13870         * tests/test-roundl-ieee.c (main): Likewise.
13871
13872         trunc: Implement result sign according to IEEE 754.
13873         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13874         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13875         * tests/test-trunc2.c: Include minus-zero.h.
13876         (MINUS_ZERO): New macro.
13877         (trunc_reference): Keep in sync with lib/trunc.c.
13878         * tests/test-truncf2.c: Include minus-zero.h.
13879         (MINUS_ZERO): New macro.
13880         (truncf_reference): Keep in sync with lib/trunc.c.
13881         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13882         * tests/test-trunc-ieee.c (main): Likewise.
13883         * tests/test-truncl-ieee.c (main): Likewise.
13884
13885         ceil: Implement result sign according to IEEE 754.
13886         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13887         (FUNC): Return -0.0 for -1 < x < 0.
13888         * tests/test-ceil2.c: Include minus-zero.h.
13889         (MINUS_ZERO): New macro.
13890         (ceil_reference): Keep in sync with lib/ceil.c.
13891         * tests/test-ceilf2.c: Include minus-zero.h.
13892         (MINUS_ZERO): New macro.
13893         (ceilf_reference): Keep in sync with lib/ceil.c.
13894         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13895         * tests/test-ceil-ieee.c (main): Likewise.
13896         * tests/test-ceill-ieee.c (main): Likewise.
13897
13898         floor: Implement result sign according to IEEE 754.
13899         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13900         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13901         * tests/test-floorf2.c (floorf_reference): Likewise.
13902         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13903         * tests/test-floor-ieee.c (main): Likewise.
13904         * tests/test-floorl-ieee.c (main): Likewise.
13905
13906 2010-12-22  Bruno Haible  <bruno@clisp.org>
13907
13908         getaddrinfo: Update doc.
13909         * doc/posix-functions/gai_strerror.texi: Return type is also different
13910         on AIX and HP-UX.
13911
13912 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13913
13914         getaddrinfo, inet_ntop: Update doc for Solaris.
13915         * doc/posix-functions/gai_strerror.texi: Return type is also an
13916         issue on Solaris 9 and earlier.
13917         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13918         on Solaris 10 and earlier.
13919
13920 2010-12-21  Bruno Haible  <bruno@clisp.org>
13921
13922         New module 'roundl-ieee'.
13923         * modules/roundl-ieee: New file.
13924         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13925         test whether roundl works according to ISO C 99 with IEC 60559.
13926         * m4/roundl-ieee.m4: New file.
13927         * modules/roundl-ieee-tests: New file.
13928         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13929         * tests/test-roundl.c (main): Remove signbit tests.
13930         * modules/roundl-tests (Depends-on): Remove signbit.
13931         * doc/posix-functions/roundl.texi: Mention the new module.
13932
13933 2010-12-21  Bruno Haible  <bruno@clisp.org>
13934
13935         New module 'truncl-ieee'.
13936         * modules/truncl-ieee: New file.
13937         * modules/truncl-ieee-tests: New file.
13938         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13939         * tests/test-truncl.c (main): Remove signbit tests.
13940         * modules/truncl-tests (Depends-on): Remove signbit.
13941         * doc/posix-functions/truncl.texi: Mention the new module.
13942
13943 2010-12-21  Bruno Haible  <bruno@clisp.org>
13944
13945         New module 'ceill-ieee'.
13946         * modules/ceill-ieee: New file.
13947         * modules/ceill-ieee-tests: New file.
13948         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13949         * tests/test-ceill.c (main): Remove signbit tests.
13950         * modules/ceill-tests (Depends-on): Remove signbit.
13951         * doc/posix-functions/ceill.texi: Mention the new module.
13952
13953 2010-12-21  Bruno Haible  <bruno@clisp.org>
13954
13955         New module 'floorl-ieee'.
13956         * modules/floorl-ieee: New file.
13957         * modules/floorl-ieee-tests: New file.
13958         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13959         * tests/test-floorl.c (main): Remove signbit tests.
13960         * modules/floorl-tests (Depends-on): Remove signbit.
13961         * doc/posix-functions/floorl.texi: Mention the new module.
13962
13963 2010-12-21  Bruno Haible  <bruno@clisp.org>
13964
13965         New module 'round-ieee'.
13966         * modules/round-ieee: New file.
13967         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13968         whether round works according to ISO C 99 with IEC 60559.
13969         * m4/round-ieee.m4: New file.
13970         * modules/round-ieee-tests: New file.
13971         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13972         * tests/test-round1.c (main): Remove signbit tests.
13973         * modules/round-tests (Depends-on): Remove 'signbit'.
13974         * doc/posix-functions/round.texi: Mention the new module.
13975
13976 2010-12-21  Bruno Haible  <bruno@clisp.org>
13977
13978         New module 'trunc-ieee'.
13979         * modules/trunc-ieee: New file.
13980         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13981         whether trunc works according to ISO C 99 with IEC 60559.
13982         * m4/trunc-ieee.m4: New file.
13983         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13985         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13986         * modules/trunc-ieee-tests: New file.
13987         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13988         * tests/test-trunc1.c (main): Remove signbit tests.
13989         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13990         * doc/posix-functions/trunc.texi: Mention the new module.
13991
13992 2010-12-21  Bruno Haible  <bruno@clisp.org>
13993
13994         New module 'ceil-ieee'.
13995         * modules/ceil-ieee: New file.
13996         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13997         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13998         ISO C 99 with IEC 60559.
13999         * m4/ceil-ieee.m4: New file.
14000         * modules/ceil (Files): Add lib/ceil.c.
14001         (Depends-on): Add 'float'.
14002         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14003         * lib/math.in.h (ceil): New declaration.
14004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14005         REPLACE_CEIL.
14006         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14007         * modules/ceil-ieee-tests: New file.
14008         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14009         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14010         * doc/posix-functions/ceil.texi: Mention the new module.
14011
14012 2010-12-21  Bruno Haible  <bruno@clisp.org>
14013
14014         New module 'floor-ieee'.
14015         * modules/floor-ieee: New file.
14016         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14017         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14018         ISO C 99 with IEC 60559.
14019         * m4/floor-ieee.m4: New file.
14020         * modules/floor (Files): Add lib/floor.c.
14021         (Depends-on): Add 'float'.
14022         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14023         * lib/math.in.h (floor): New declaration.
14024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14025         REPLACE_FLOOR.
14026         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14027         * modules/floor-ieee-tests: New file.
14028         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14029         * tests/test-math-c++.cc: Check the signature of 'floor'.
14030         * doc/posix-functions/floor.texi: Mention the new module.
14031
14032 2010-12-21  Bruno Haible  <bruno@clisp.org>
14033
14034         New module 'roundf-ieee'.
14035         * modules/roundf-ieee: New file.
14036         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14037         test whether roundf works according to ISO C 99 with IEC 60559.
14038         * m4/roundf-ieee.m4: New file.
14039         * modules/roundf-ieee-tests: New file.
14040         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14041         * tests/test-roundf1.c (main): Remove signbit tests.
14042         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14043         * doc/posix-functions/roundf.texi: Mention the new module.
14044
14045 2010-12-21  Bruno Haible  <bruno@clisp.org>
14046
14047         New module 'truncf-ieee'.
14048         * modules/truncf-ieee: New file.
14049         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14050         test whether truncf works according to ISO C 99 with IEC 60559.
14051         * m4/truncf-ieee.m4: New file.
14052         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14054         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14055         * modules/truncf-ieee-tests: New file.
14056         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14057         * tests/test-truncf1.c (main): Remove signbit tests.
14058         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14059         * doc/posix-functions/truncf.texi: Mention the new module.
14060
14061 2010-12-21  Bruno Haible  <bruno@clisp.org>
14062
14063         New module 'ceilf-ieee'.
14064         * modules/ceilf-ieee: New file.
14065         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14066         test whether ceilf works according to ISO C 99 with IEC 60559.
14067         * m4/ceilf-ieee.m4: New file.
14068         * modules/ceilf-ieee-tests: New file.
14069         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14070         * tests/test-ceilf1.c (main): Remove signbit tests.
14071         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14072         * doc/posix-functions/ceilf.texi: Mention the new module.
14073
14074 2010-12-21  Bruno Haible  <bruno@clisp.org>
14075
14076         New module 'floorf-ieee'.
14077         * modules/floorf-ieee: New file.
14078         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14079         test whether floorf works according to ISO C 99 with IEC 60559.
14080         * m4/floorf-ieee.m4: New file.
14081         * modules/floorf-ieee-tests: New file.
14082         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14083         * tests/test-floorf1.c (main): Remove signbit tests.
14084         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14085         * doc/posix-functions/floorf.texi: Mention the new module.
14086
14087 2010-12-21  Bruno Haible  <bruno@clisp.org>
14088
14089         Support for minus zero in autoconf macros.
14090         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14091         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14092         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14093         * tests/minus-zero.h: Update comments.
14094
14095 2010-12-21  Bruno Haible  <bruno@clisp.org>
14096
14097         Tests for module 'ceil'.
14098         * modules/ceil-tests: New file.
14099         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14100         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14101
14102 2010-12-21  Bruno Haible  <bruno@clisp.org>
14103
14104         Tests for module 'floor'.
14105         * modules/floor-tests: New file.
14106         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14107         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14108
14109 2010-12-21  Bruno Haible  <bruno@clisp.org>
14110
14111         math: Fix indentation.
14112         * lib/math.in.h (floorf): Fix indentation.
14113
14114 2010-12-21  Bruno Haible  <bruno@clisp.org>
14115
14116         Fix cross-compilation guesses on Solaris.
14117         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14118         not match "solaris2.10".
14119         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14120         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14121         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14122
14123 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14124
14125         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14126         This fixes a problem observed with the latest coreutils snapshot
14127         that caused a test to fail on Solaris 8.  src/csplit.c's call
14128         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14129         earlier, instead of returning the number of bytes that would have
14130         been generated; this causes csplit to incorrectly report memory
14131         exhaustion.
14132         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14133         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14134         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14135         comments to match.
14136         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14137         Fix typo in matching older versions of Solaris: "solaris2.10"
14138         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14139         only for guessing while cross-compiling.
14140         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14141
14142 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14143
14144         ftoastr: fix comment again
14145         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14147         Also, simplify example a bit by using flags = 0.
14148
14149 2010-12-20  Bruno Haible  <bruno@clisp.org>
14150
14151         round*, trunc*: Update documentation regarding glibc.
14152         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14153         * doc/posix-functions/round.texi: Likewise.
14154         * doc/posix-functions/roundl.texi: Likewise.
14155         * doc/posix-functions/truncf.texi: Likewise.
14156         * doc/posix-functions/trunc.texi: Likewise.
14157         * doc/posix-functions/truncl.texi: Likewise.
14158
14159 2010-12-20  Bruno Haible  <bruno@clisp.org>
14160
14161         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14162         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14163         * doc/posix-functions/round.texi: Likewise.
14164         * doc/posix-functions/roundl.texi: Likewise.
14165
14166 2010-12-20  Bruno Haible  <bruno@clisp.org>
14167
14168         ttyname_r: Add missing declaration on HP-UX 11.
14169         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14170         HAVE_TTYNAME_R.
14171         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14172         declared. Set HAVE_TTYNAME_R always.
14173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14174         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14175         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14176         HAVE_TTYNAME_R.
14177         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14178
14179 2010-12-20  Bruno Haible  <bruno@clisp.org>
14180
14181         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14182         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14183         * doc/posix-functions/getlogin_r.texi: Likewise.
14184         * tests/test-getlogin.c: Include <errno.h>.
14185         (main): Avoid test failure on HP-UX 11.11.
14186         * tests/test-getlogin_r.c (main): Likewise.
14187
14188 2010-12-20  Bruno Haible  <bruno@clisp.org>
14189
14190         getlogin_r: Add missing declaration on HP-UX 11.
14191         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14192         declared also when it exists as a function.
14193         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14194
14195 2010-12-20  Bruno Haible  <bruno@clisp.org>
14196
14197         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14198         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14199         through wcrtomb.
14200
14201 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14202
14203         ftoastr: fix comment
14204         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14206
14207 2010-12-19  Bruno Haible  <bruno@clisp.org>
14208
14209         isnan: Ensure it is a macro.
14210         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14211         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14212         Solaris.
14213
14214 2010-12-19  Bruno Haible  <bruno@clisp.org>
14215
14216         ldexpl test: Fix link error on OSF/1 5.1.
14217         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14218
14219 2010-12-19  Bruno Haible  <bruno@clisp.org>
14220
14221         wctype: Make it work in C++ mode on OSF/1 5.1.
14222         * lib/wctype.in.h (iswblank): Declare but not define here.
14223         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14224         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14225         * modules/wctype (Files): Add lib/iswblank.c.
14226
14227 2010-12-19  Bruno Haible  <bruno@clisp.org>
14228
14229         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14230         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14231         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14232
14233 2010-12-19  Bruno Haible  <bruno@clisp.org>
14234
14235         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14237         _POSIX_PII_SOCKET.
14238         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14239         * doc/posix-functions/recvfrom.texi: Likewise.
14240         * doc/posix-functions/send.texi: Likewise.
14241         * doc/posix-functions/sendto.texi: Likewise.
14242
14243 2010-12-19  Bruno Haible  <bruno@clisp.org>
14244
14245         tcgetsid: Add missing declaration on OSF/1 5.1.
14246         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14247         HAVE_TCGETSID.
14248         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14249         Don't set HAVE_TCGETSID.
14250         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14251         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14252         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14253         HAVE_TCGETSID.
14254         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14255
14256 2010-12-19  Bruno Haible  <bruno@clisp.org>
14257
14258         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14259         * lib/stdio.in.h: During the include_next statement, let recursive
14260         includes of this file include only the system header file.
14261
14262 2010-12-19  Bruno Haible  <bruno@clisp.org>
14263
14264         iconv_open: Fix regression from 2010-12-04.
14265         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14266         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14267
14268 2010-12-19  Bruno Haible  <bruno@clisp.org>
14269
14270         stdbool test: Avoid a gcc warning.
14271         * tests/test-stdbool.c (main): Fail if e1 is false.
14272         Reported by Jim Meyering.
14273
14274 2010-12-19  Jim Meyering  <meyering@redhat.com>
14275
14276         setenv: restore to working order
14277         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14278         mistakenly removed.
14279         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14280         HAVE_SETENV.
14281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14282         HAVE_SETENV.
14283
14284 2010-12-19  Bruno Haible  <bruno@clisp.org>
14285
14286         Document some different function declarations on OSF/1 5.1.
14287         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14288         * doc/posix-functions/inet_ntop.texi: Likewise.
14289         * doc/posix-functions/gethostname.texi: Likewise.
14290         * lib/unistd.in.h (gethostname): Update comment.
14291
14292 2010-12-19  Bruno Haible  <bruno@clisp.org>
14293
14294         doc: Mention vasprintf-posix module.
14295         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14296         the 'vasprintf-posix' module.
14297         * doc/glibc-functions/vasprintf.texi: Likewise.
14298
14299 2010-12-19  Bruno Haible  <bruno@clisp.org>
14300
14301         unsetenv: Add missing declaration on OSF/1 5.1.
14302         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14303         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14304         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14306         not HAVE_UNSETENV.
14307         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14308         HAVE_UNSETENV.
14309         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14310
14311 2010-12-19  Bruno Haible  <bruno@clisp.org>
14312
14313         setenv: Add missing declaration on OSF/1 5.1.
14314         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14316         declared. Don't set HAVE_SETENV.
14317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14318         not HAVE_SETENV.
14319         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14320         HAVE_SETENV.
14321         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14322
14323 2010-12-19  Bruno Haible  <bruno@clisp.org>
14324
14325         nl_langinfo tests: Avoid gcc warning.
14326         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14327
14328 2010-12-19  Bruno Haible  <bruno@clisp.org>
14329
14330         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14331         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14332         _GL_CXXALIAS_SYS.
14333
14334 2010-12-19  Bruno Haible  <bruno@clisp.org>
14335
14336         stdbool: Relax test.
14337         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14338         address to 'bool' work in static initializer, for compilers other than
14339         GCC.
14340
14341 2010-12-19  Bruno Haible  <bruno@clisp.org>
14342
14343         ftello: Add missing declaration on OSF/1 5.1.
14344         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14345         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14347         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14348         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14349
14350 2010-12-19  Bruno Haible  <bruno@clisp.org>
14351
14352         fseeko: Add missing declaration on OSF/1 5.1.
14353         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14356         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14357         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14358
14359 2010-12-19  Bruno Haible  <bruno@clisp.org>
14360
14361         fchdir: Add missing declaration on OSF/1 5.1.
14362         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14365         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14366         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14367
14368 2010-12-19  Bruno Haible  <bruno@clisp.org>
14369
14370         relocatable-prog-wrapper: Separate from relocatable-prog.
14371         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14372         uninstall-relocwrapper rule here.
14373         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14374         Reported by Ian Beckwith <ianb@erislabs.net>.
14375
14376 2010-12-19  Bruno Haible  <bruno@clisp.org>
14377
14378         unistr/u8-mbsnlen: Add missing dependency.
14379         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14380         Reported by Ian Beckwith <ianb@erislabs.net>.
14381
14382 2010-12-19  Bruno Haible  <bruno@clisp.org>
14383
14384         iconv: Make it possible again to use this module without 'iconv-h'.
14385         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14386         if it is not defined.
14387         Reported by Ian Beckwith <ianb@erislabs.net>.
14388
14389 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14390
14391         acl: port to Solaris 8 when copying from tmpfs to ufs
14392         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14393         error number.  Problem observed on Solaris 8 with latest
14394         coreutils, with "mv A B", where A is on a tmpfs file system and B
14395         is on a ufs file system.  This caused coreutils' mv/part-symlink
14396         test to fail.
14397
14398         tests: set fail=0 at start
14399         * tests/init.sh (setup_): Move fail=0 initialization here ...
14400         (mktempd_): ... from here, so that tests can rely on fail being
14401         set to 0 initially.  This fixes a problem in coreutils; see:
14402         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14403
14404 2010-12-18  Bruno Haible  <bruno@clisp.org>
14405
14406         memmem-simple: Stylistic changes.
14407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14408         Fix preprocessor directive indentation.
14409
14410 2010-12-15  Pádraig Brady <P@draigBrady.com>
14411
14412         memmem, memmem-simple: reorganize and expand empty needle check
14413         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14414         functional checks to memmem-simple so that one has a fully functional
14415         memmem by using just this module.
14416         Restrict the performance only check to the memmem module.
14417         Also expand the empty needle check to ensure the correct
14418         pointer is returned, not just a non NULL pointer.
14419         * doc/glibc-functions/memmem.texi: Rearrange the portability
14420         documentation to correlate with the rearranged checks.
14421         Clarify exactly how the memmem and memmem-simple modules
14422         relate to each other.
14423
14424 2010-12-15  Pádraig Brady <P@draigBrady.com>
14425             Bruno Haible  <bruno@clisp.org>
14426
14427         Improve cross-compilation guesses for uClibc.
14428         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14429         that uClibc does not have the glibc bug.
14430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14431         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14432
14433 2010-12-14  Eric Blake  <eblake@redhat.com>
14434
14435         configmake: provide fallbacks for oldest supported autotools
14436         * m4/configmake.m4: New file.
14437         * modules/configmake (Files): Ship it.
14438         (configure.ac): Use it to guarantee fallbacks.
14439
14440 2010-12-13  Pádraig Brady <P@draigBrady.com>
14441
14442         read-file: Improve handling of large files
14443         * lib/read-file.c (fread_file): Minimize realloc()s
14444         for regular files, and better manage sizes around SIZE_MAX.
14445
14446 2010-12-13  Eric Blake  <eblake@redhat.com>
14447
14448         cloexec, fcntl: relax license
14449         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14450         consent from all contributors.
14451         * modules/fcntl (License): Likewise.
14452
14453 2010-12-10  Bruno Haible  <bruno@clisp.org>
14454
14455         Tests for module 'pipe-posix'.
14456         * modules/pipe-posix-tests: New file.
14457         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14458
14459 2010-12-10  Bruno Haible  <bruno@clisp.org>
14460
14461         pipe-posix: Make it work in C++ mode.
14462         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14463         (pipe): Use common idiom, not a macro definition.
14464         * lib/pipe.c: New file.
14465         * m4/pipe.m4: New file.
14466         * modules/pipe-posix (Description): Enhance.
14467         (Files): Add lib/pipe.c, m4/pipe.m4.
14468         (configure.ac): Invoke gl_FUNC_PIPE.
14469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14470         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14471         * tests/test-unistd-c++.cc: Check the signature of pipe.
14472
14473 2010-12-10  Bruno Haible  <bruno@clisp.org>
14474
14475         Rename module 'pipe' to 'spawn-pipe'.
14476         * modules/spawn-pipe: New file, renamed from modules/pipe.
14477         (Files, configure.ac, Makefile.am): Update.
14478         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14479         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14480         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14481         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14482         "spawn-pipe.h" instead of "pipe.h".
14483         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14484         to gl_SPAWN_PIPE.
14485         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14486         (Files, Makefile.am): Update.
14487         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14488         Update.
14489         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14490         Include "spawn-pipe.h" instead of "pipe.h".
14491         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14492         * lib/javacomp.c: Likewise.
14493         * lib/javaversion.c: Likewise.
14494         * lib/pipe-filter-gi.c: Likewise.
14495         * lib/pipe-filter-ii.c: Likewise.
14496         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14497         * modules/javacomp (Depends-on): Likewise.
14498         * modules/javaversion (Depends-on): Likewise.
14499         * modules/pipe-filter-gi (Depends-on): Likewise.
14500         * modules/pipe-filter-ii (Depends-on): Likewise.
14501         * MODULES.html.sh (Executing programs): Update.
14502         * NEWS: Mention the change.
14503
14504 2010-12-10  Eric Blake  <eblake@redhat.com>
14505
14506         pipe-posix: new module
14507         * modules/pipe-posix: New file.
14508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14509         (gl_UNISTD_H): Check for declaration.
14510         * modules/unistd (Makefile.am): Substitute it.
14511         * lib/unistd.in.h (pipe): Provide it for mingw.
14512         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14513         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14514
14515 2010-12-07  Bruno Haible  <bruno@clisp.org>
14516
14517         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14518         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14519         u8_strcmp_gnu.
14520         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14521
14522 2010-12-06  Bruno Haible  <bruno@clisp.org>
14523
14524         Update internal documentation.
14525         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14526
14527 2010-12-04  Bruno Haible  <bruno@clisp.org>
14528
14529         Put more information about failed tests into the test return codes.
14530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14531         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14532         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14533         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14534         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14535         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14537         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14538         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14541         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14542         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14543         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14544         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14545         returns a bit mask.
14546         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14547         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14548         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14549         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14551         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14554         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14555         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14556         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14557         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14558         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14560         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14561         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14562         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14563         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14564         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14565         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14567         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14568         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14569         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14570         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14571         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14572         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14573         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14574         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14575         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14576         gl_PRINTF_PRECISION): Likewise.
14577         * m4/regex.m4 (gl_REGEX): Likewise.
14578         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14579         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14580         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14581         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14582         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14585         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14586         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14587         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14588         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14590         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14591         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14592         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14593         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14594         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14597         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14598         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14599         enumerated value.
14600         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14601
14602 2010-12-04  Bruno Haible  <bruno@clisp.org>
14603
14604         Update for Solaris 11 2010-11.
14605         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14606         Express, released in November 2010.
14607
14608 2010-12-04  Bruno Haible  <bruno@clisp.org>
14609
14610         nproc: Relax license.
14611         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14612         and Paul Eggert.
14613         Requested by Ludovic Courtès <ludo@gnu.org>.
14614
14615 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14616
14617         utimecmp: fine-grained src to nearby coarse-grained dest
14618
14619         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14620         and the source is on a file system with higher-resolution time
14621         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14622         not work, and the time stamps are close together, the algorithm to
14623         determine the exact resolution from the read-back mtime was buggy:
14624         it had a "!=" where it should have had an "==".  This bug has been
14625         in the code ever since it was introduced to gnulib.
14626         Problem reported by Dan Jacobson in
14627         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14628
14629 2010-11-30  Bruno Haible  <bruno@clisp.org>
14630
14631         strerror_r-posix: Fix autoconf test.
14632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14633
14634 2010-11-28  Bruno Haible  <bruno@clisp.org>
14635             Paul Eggert  <eggert@cs.ucla.edu>
14636
14637         Tests for module 'getdomainname'.
14638         * modules/getdomainname-tests: New file.
14639         * tests/test-getdomainname.c: New file, based on
14640         tests/test-gethostname.c.
14641
14642 2010-11-28  Bruno Haible  <bruno@clisp.org>
14643             Paul Eggert  <eggert@cs.ucla.edu>
14644
14645         getdomainname: Use the system function when possible.
14646         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14647         (getdomainname): Replace if needed. Provide the declaration if it is
14648         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14649         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14650         (getdomainname): When the system has getdomainname, call the system
14651         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14652         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14653         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14654         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14655         the function if its second argument is of type 'int' or if it is found
14656         in libnsl.
14657         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14658         <sys/systeminfo.h> and sysinfo().
14659         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14661         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14662         HAVE_GETDOMAINNAME.
14663         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14664         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14665         * doc/glibc-functions/getdomainname.texi: Document the problems with
14666         the getdomainname declaration.
14667
14668 2010-11-28  Bruno Haible  <bruno@clisp.org>
14669
14670         sys_socket: Ensure ss_family field on AIX.
14671         * lib/sys_socket.in.h (ss_family): New macro definition.
14672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14673         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14674         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14675         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14676         * modules/sys_socket (Makefile.am): Substitute
14677         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14678         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14679
14680 2010-11-27  Bruno Haible  <bruno@clisp.org>
14681
14682         readline: Improve configure output.
14683         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14684         "checking for readline..." result understandable.
14685
14686 2010-11-27  Bruno Haible  <bruno@clisp.org>
14687
14688         *printf-posix: Detect a bug on Solaris 10/x86.
14689         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14690         for floating-point output.
14691         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14692         directive.
14693         * tests/test-snprintf-posix.h (test_function): Likewise.
14694         * tests/test-sprintf-posix.h (test_function): Likewise.
14695         * tests/test-vasprintf-posix.c (test_function): Likewise.
14696         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14697         * doc/posix-functions/printf.texi: Likewise.
14698         * doc/posix-functions/snprintf.texi: Likewise.
14699         * doc/posix-functions/sprintf.texi: Likewise.
14700         * doc/posix-functions/vfprintf.texi: Likewise.
14701         * doc/posix-functions/vprintf.texi: Likewise.
14702         * doc/posix-functions/vsnprintf.texi: Likewise.
14703         * doc/posix-functions/vsprintf.texi: Likewise.
14704         * doc/glibc-functions/obstack_printf.texi: Likewise.
14705         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14706
14707 2010-11-27  Bruno Haible  <bruno@clisp.org>
14708
14709         Fix link error when module libunistring-optional is in use.
14710         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14711         * modules/striconveha-tests (Makefile.am): Likewise.
14712
14713 2010-11-27  Bruno Haible  <bruno@clisp.org>
14714
14715         regex: Mention link dependencies.
14716         * modules/regex (Link): New section.
14717         * modules/rpmatch (Link): Likewise.
14718         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14719
14720 2010-11-27  Bruno Haible  <bruno@clisp.org>
14721
14722         ftoastr: Fix compilation error on Solaris.
14723         * lib/ftoastr.c: Include <config.h>.
14724
14725 2010-11-27  Bruno Haible  <bruno@clisp.org>
14726
14727         getloadavg: Update documentation.
14728         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14729
14730 2010-11-27  Bruno Haible  <bruno@clisp.org>
14731
14732         sys_socket: Fix test whether the functions are declared.
14733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14734         not <sys/select.h>.
14735
14736 2010-11-27  Bruno Haible  <bruno@clisp.org>
14737
14738         getpass: Make sure to get system declaration on some platforms.
14739         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14740         gl_USE_SYSTEM_EXTENSIONS.
14741         * modules/getpass (Depends-on): Add extensions.
14742
14743 2010-11-26  Bruno Haible  <bruno@clisp.org>
14744
14745         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14746         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14747         'iconv' module is present.
14748         (ICONV_CONST): New macro.
14749         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14750         ICONV_CONST.
14751         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14752         set ICONV_CONST.
14753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14754         here.
14755         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14756         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14757         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14758         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14759         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14760         present.
14761
14762 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14763
14764         ftoastr: comment fix
14765         * lib/ftoastr.c: "little" -> "little or no" in comment
14766
14767 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14768
14769         stdint: port to GCC 4.3 + OSX + Octave
14770         On this platform, stdint.h is buggy and defines int64_t to long
14771         long int.  The replacement defined it to long int, causing
14772         problems with C++ style name mangling.  Instead, trust the system
14773         definition if INT64_MAX is defined, and likewise for the unsigned
14774         variant.   Problem reported by Jarno Rajahalme in
14775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14776         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14777         and don't mess with int64_t and INT64_MAX in this case.
14778         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14779
14780 2010-11-24  Bruno Haible  <bruno@clisp.org>
14781
14782         doc: Corrections regarding MacOS X 10.4 and 10.5.
14783         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14784         MacOS X.
14785         Reported by Simon Josefsson.
14786
14787 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14788
14789         Uninstall ".bin" files installed by relocwrapper.
14790         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14791         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14792         unless it is already there.
14793
14794 2010-11-21  Bruno Haible  <bruno@clisp.org>
14795
14796         Update for NetBSD 5.0.
14797         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14798         NetBSD; the test fails on NetBSD 5.0.
14799         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14800         about NetBSD.
14801
14802 2010-11-21  Bruno Haible  <bruno@clisp.org>
14803
14804         Update for HP-UX 11.23 and HP-UX 11.31.
14805         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14806         HP-UX.
14807
14808 2010-11-21  Bruno Haible  <bruno@clisp.org>
14809
14810         Update for MacOS X 10.5.
14811         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14812         MacOS X; the test fails on MacOS X 10.5.8.
14813         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14814         about MacOS X.
14815
14816 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14817
14818         bootstrap: add bootstrap_sync option.
14819         See discussion at
14820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14821         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14822         * build-aux/bootstrap: Accept --bootstrap-sync to update
14823         bootstrap if it is not identical to the local gnulib's
14824         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14825         enable this by default.  Accept --no-bootstrap-sync to disable
14826         it.
14827
14828 2010-11-20  Bruno Haible  <bruno@clisp.org>
14829
14830         Ensure that <features.h> is included before __GLIBC__ is tested.
14831         * lib/printf-parse.h: Include <features.h>.
14832         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14833         Reported by Mike Frysinger <vapier@gentoo.org>.
14834
14835         Ensure that <features.h> is included before __GLIBC__ is tested.
14836         * lib/wchar.in.h: Include <features.h>.
14837         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14838         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14839         Reported by Mike Frysinger <vapier@gentoo.org>.
14840
14841         Ensure that <features.h> is included before __GLIBC__ is tested.
14842         * lib/arpa_inet.in.h: Include <features.h>.
14843         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14844         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14845         Reported by Mike Frysinger <vapier@gentoo.org>.
14846
14847         Ensure that <features.h> is included before __GLIBC__ is tested.
14848         * build-aux/link-warning.h: Include <features.h>.
14849         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14850         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14851         Reported by Mike Frysinger <vapier@gentoo.org>.
14852
14853         Ensure that <features.h> is included before __GLIBC__ is tested.
14854         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14855         Reported by Mike Frysinger <vapier@gentoo.org>.
14856
14857 2010-11-20  Bruno Haible  <bruno@clisp.org>
14858
14859         memmem: Fix autoconf test.
14860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14861
14862 2010-11-20  Bruno Haible  <bruno@clisp.org>
14863
14864         Port to uClibc.
14865         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14866         * lib/fcntl.in.h: Likewise.
14867         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14868         * lib/mbrtowc.c (mbrtowc): Likewise.
14869         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14870         * lib/strerror_r.c: Likewise.
14871         * lib/unistr/u8-strnlen.c: Likewise.
14872         * lib/vasnprintf.c (decimal_point_char): Likewise.
14873         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14874         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14876         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14877         * tests/test-sigaction.c (handler, main): Likewise.
14878         * lib/freading.h: Treat uClibc like a non-glibc platform.
14879         * lib/freading.c: Likewise.
14880         * lib/gettext.h: Likewise.
14881         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14882         Likewise.
14883         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14884         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14885         * lib/propername.c (proper_name_utf8): Likewise.
14886         * lib/spawn.in.h: Likewise.
14887         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14888         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14889         mem_cd_iconveh_internal): Likewise.
14890         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14891         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14892         strstr, strcasestr): Likewise.
14893         * lib/unicodeio.c (unicode_to_mb): Likewise.
14894         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14895         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14896         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14897         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14898         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14899         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14900         * lib/unistr/u8-stpncpy.c: Likewise.
14901         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14902         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14904         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14905         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14907         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14910         Likewise.
14911         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14912         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14913         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14915         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14916         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14918         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14919         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14920         * tests/test-striconveha.c (main): Likewise.
14921         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14922         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14923         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14924         * doc/posix-functions/getline.texi: Likewise.
14925         Reported by Mike Frysinger <vapier@gentoo.org>.
14926
14927 2010-11-20  Bruno Haible  <bruno@clisp.org>
14928
14929         nproc: Fix condition.
14930         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14931         HAVE_PTHREAD_AFFINITY_NP.
14932
14933 2010-11-20  Bruno Haible  <bruno@clisp.org>
14934
14935         Fix a comment.
14936         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14937
14938 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14939
14940         ftoastr: don't assume snprintf
14941         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14942         Implement a subset of snprintf here, by using sprintf safely.
14943         * modules/ftoastr (Depends-on): Remove snprintf.
14944
14945 2010-11-19  Jim Meyering  <meyering@redhat.com>
14946
14947         test-rename.h: fix compilation failure
14948         * tests/test-rename.h (test_rename): Add omitted "}".
14949
14950 2010-11-17  Jim Meyering  <meyering@redhat.com>
14951
14952         maint.mk: add a URL discussing the no-@acronym policy
14953         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14954
14955 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14956
14957         ftoastr: depend on snprintf, improve comments
14958         * lib/ftoastr.c: Also mention Loitsch's draft.
14959         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14960         needed in the current implementation, but it might simplify
14961         speeding up the code later.
14962         * modules/ftoastr: Depend on snprintf; this improves portability.
14963         Suggested by Bruno Haible in the same email.
14964
14965         ftoastr: port to hosts lacking strtof and strtold
14966         Problem reported by Bruno Haible in
14967         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14968         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14969         environment and strtold (and presumably strtof) are not available.
14970         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14971         (configure.ac): Require gl_C99_STRTOLD.
14972
14973 2010-11-18  Bruno Haible  <bruno@clisp.org>
14974
14975         c-strtold: Avoid link error on AIX 7.
14976         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14977         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14978         (gl_C_STRTOLD): Test whether strtold_l exists.
14979         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14980
14981 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14982
14983         intprops: new macro INT_BITS_STRLEN_BOUND
14984         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14985         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14986         not exposed.  Also, it uses a slightly tighter bound than before;
14987         though this makes no practical difference, we might as well be as
14988         tight as we easily can.
14989
14990         ftoastr: new module, for lossless conversion of floats to short strings
14991         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14992         * modules/ftoastr: New files.
14993
14994 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14995
14996         bootstrap: port to Solaris sed
14997         * build-aux/bootstrap (get_version): Port to Solaris sed.
14998         See Ralf Wildenhues's note in
14999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15000
15001 2010-11-14  Jim Meyering  <meyering@redhat.com>
15002
15003         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15004         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15005         and move definition closer to sole use.
15006
15007 2010-11-13  Jim Meyering  <meyering@redhat.com>
15008
15009         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15010         Now we require at least autoconf-2.59, which means the work-around
15011         is no longer needed.
15012         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15013         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15014         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15015         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15016         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15017
15018 2010-11-13  Bruno Haible  <bruno@clisp.org>
15019
15020         rename, renameat: Avoid test failures at NFS mounted locations.
15021         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15022         functions.
15023         (test_rename): Use assert_nonexistent.
15024         * tests/test-rename.c: Include <dirent.h>.
15025         * tests/test-renameat.c: Likewise.
15026         Reported by Gary V. Vaughan <gary@gnu.org>.
15027
15028         rename, renameat: Document Linux bug with NFS
15029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15030         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15031         * doc/posix-functions/renameat.texi: Likewise.
15032         Suggested by Eric Blake.
15033
15034 2010-11-13  Bruno Haible  <bruno@clisp.org>
15035
15036         rename test: Add comments.
15037         * tests/test-rename.h (test_rename): Add structure and comments.
15038
15039 2010-11-13  Eric Blake  <eblake@redhat.com>
15040
15041         maintainer-makefile: cover a few more files
15042         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15043         scripts generated within C files, for libvirt.
15044
15045 2010-11-13  Bruno Haible  <bruno@clisp.org>
15046
15047         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15048         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15049         character, return the number of bytes that belong together, not always
15050         1.
15051         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15052         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15053         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15054         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15055         number of bytes of an invalid character.
15056         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15057         (main): Invoke it.
15058         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15059         results.
15060         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15061         malformed byte sequences.
15062         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15063         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15064         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15065         Reported by Ben Pfaff and Paolo Bonzini.
15066
15067 2010-11-13  Bruno Haible  <bruno@clisp.org>
15068
15069         openat: Work around glibc bug with fchownat() and empty file names.
15070         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15071         (gl_FUNC_FCHOWNAT): Invoke it.
15072         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15073         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15074         Reported by Gary V. Vaughan <gary@gnu.org>.
15075
15076 2010-11-13  Bruno Haible  <bruno@clisp.org>
15077
15078         openat: Ensure autoconf macro ordering.
15079         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15080         gl_USE_SYSTEM_EXTENSIONS.
15081         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15082
15083 2010-11-13  Bruno Haible  <bruno@clisp.org>
15084
15085         Update comments.
15086         * lib/unistr/u8-check.c: Update file name in comments.
15087         * lib/unistr/u8-mblen.c: Likewise.
15088         * lib/unistr/u8-prev.c: Likewise.
15089         * lib/unistr/u8-strmblen.c: Likewise.
15090         * lib/unistr/u8-strmbtouc.c: Likewise.
15091
15092 2010-11-13  Jim Meyering  <meyering@redhat.com>
15093
15094         tests: avoid test failure on Solaris 10 due to lack of PATH export
15095         * tests/test-update-copyright.sh: Don't forget to export PATH.
15096
15097         init.sh: ensure that IFS is defined, just in case...
15098         * tests/init.sh (setup_): Ensure that IFS is defined,
15099         so that saving and restoring it works as expected.  This
15100         appears to be useful at least for an old version of dash
15101         from a long time ago (RH 6).  See here for details:
15102         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15103
15104         maint.mk: tighten "test a == b" check
15105         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15106         test to files that contain something like #!/bin/sh.
15107         Without this, coreutils would get two false positives in
15108         the comments of C source files.
15109
15110 2010-11-12  Eric Blake  <eblake@redhat.com>
15111
15112         bootstrap: fix typo in previous attempt
15113         * build-aux/bootstrap (buildreq): Correct the grouping.
15114         Reported by Paul Eggert.
15115
15116         maintainer-makefile: prohibit test x == x
15117         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15118         Based on a report by Matthias Bolte.
15119
15120         bootstrap: allow FreeBSD gzip
15121         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15122         which has no '.' and goes to stderr.
15123         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15124         Reported by Matthias Bolte.
15125
15126         maintainer-makefile: check for i18n setup
15127         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15128         will likely work.
15129
15130 2010-11-12  Bruno Haible  <bruno@clisp.org>
15131
15132         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15133         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15134         * lib/nanosleep.c (nanosleep): Likewise.
15135
15136 2010-11-11  Bruno Haible  <bruno@clisp.org>
15137
15138         fcntl-h: Fix for use of C++ on glibc systems.
15139         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15140         also on glibc systems in C++ mode.
15141         Reported by Gary V. Vaughan <gary@gnu.org>.
15142
15143 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15144
15145         mknod: avoid false failure with dash
15146         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15147
15148 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15149
15150         unlink: Fix "is it should" typo in diagnostic.
15151         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15153
15154 2010-11-11  Bruno Haible  <bruno@clisp.org>
15155
15156         Tests for module 'strerror_r-posix'.
15157         * modules/strerror_r-posix-tests: New file.
15158         * tests/test-strerror_r.c: New file.
15159         * tests/test-string-c++.cc: Check the signature of strerror_r.
15160
15161         New module 'strerror_r-posix'.
15162         * lib/string.in.h (strerror_r): New declaration.
15163         * lib/strerror_r.c: New file.
15164         * m4/strerror_r.m4: New file.
15165         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15166         of strerror_r.
15167         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15168         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15169         * modules/strerror_r-posix: New file.
15170         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15171         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15172         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15173         portability problems.
15174
15175 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15176
15177         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15178         line is also considered for output. Quoted function name in shell
15179         command, so temporary files for functions like MyClass::operator()
15180         are removed correctly without errors.
15181
15182 2010-11-09  Bruno Haible  <bruno@clisp.org>
15183
15184         * doc/posix-functions/strerror.texi: List more failing platforms.
15185
15186         * doc/posix-functions/strerror.texi: Add a comment.
15187
15188 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         fdopendir: fix bug on MacOS X when low on file descriptors
15191
15192         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15193         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15194         All callers changed.
15195         (fdopendir): Invoke save_cwd at the top level, not after using
15196         multiple dup() calls to use up file descriptors.  Then retry
15197         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15198         less than the maximum number of open file descriptors, because
15199         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15200         on Mac OS X 10.6.4 for tar 1.24
15201         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15202         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15203         and for tar 1.25
15204         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15205
15206 2010-11-07  Bruno Haible  <bruno@clisp.org>
15207
15208         vasnprintf: Support I flag on glibc systems.
15209         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15210         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15211         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15212         snprintf function.
15213         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15214         glibc systems.
15215         * tests/test-vasnprintf-posix3.c: New file.
15216         * modules/vasnprintf-posix-tests (Files): Add it.
15217         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15218
15219 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15220
15221         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15222         * MODULES.html.sh: For compiler warnings, use name
15223         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15224
15225 2010-11-05  Eric Blake  <eblake@redhat.com>
15226
15227         ceil, floor: avoid spurious failure with icc
15228         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15229         [denormals-as-zero] when optimizing without -mieee-fp option.
15230         * tests/test-floorf2.c (floorf_reference): Likewise.
15231         * tests/test-ceilf1.c (dummy): New function.
15232         (main): Use it to outsmart icc's optimization.
15233         * tests/test-floorf1.c (dummy, main): Likewise.
15234
15235         tests: require working signbit
15236         * modules/ceilf-tests (Depends-on): Add signbit.
15237         * modules/ceill-tests (Depends-on): Likewise.
15238         * modules/floorf-tests (Depends-on): Likewise.
15239         * modules/floorl-tests (Depends-on): Likewise.
15240         * modules/round-tests (Depends-on): Likewise.
15241         * modules/roundf-tests (Depends-on): Likewise.
15242         * modules/roundl-tests (Depends-on): Likewise.
15243         * modules/trunc-tests (Depends-on): Likewise.
15244         * modules/truncf-tests (Depends-on): Likewise.
15245         * modules/truncl-tests (Depends-on): Likewise.
15246
15247         strtod: work around icc bug
15248         * lib/strtod.c (minus_zero): Define to working value.
15249         (strtod): Use it to avoid icc bug.
15250
15251         copysign: enhance tests
15252         * modules/copysign-tests (Files): Add minus-zero.h.
15253         * tests/test-copysign.c (main): Also test zeros.
15254
15255 2010-11-04  Eric Blake  <eblake@redhat.com>
15256
15257         ceil, floor, round, trunc: enhance tests of -0
15258         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15259         * tests/test-ceill.c (main): Likewise.
15260         * tests/test-floorf1.c (main): Likewise.
15261         * tests/test-floorl.c (main): Likewise.
15262         * tests/test-round1.c (main): Likewise.
15263         * tests/test-roundf1.c (main): Likewise.
15264         * tests/test-roundl.c (main): Likewise.
15265         * tests/test-trunc1.c (main): Likewise.
15266         * tests/test-truncf1.c (main): Likewise.
15267         * tests/test-truncl.c (main): Likewise.
15268
15269 2010-11-04  Eric Blake  <eblake@redhat.com>
15270
15271         frexp, tests: work around ICC bug with -zero
15272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15273         works with more compilers.
15274         * tests/minus-zero.h: New file.
15275         * modules/ceilf-tests (Files): Include it.
15276         * modules/ceill-tests (Files): Likewise.
15277         * modules/floorf-tests (Files): Likewise.
15278         * modules/floorl-tests (Files): Likewise.
15279         * modules/frexp-nolibm-tests (Files): Likewise.
15280         * modules/frexp-tests (Files): Likewise.
15281         * modules/frexpl-nolibm-tests (Files): Likewise.
15282         * modules/frexpl-tests (Files): Likewise.
15283         * modules/isnan-tests (Files): Likewise.
15284         * modules/isnand-nolibm-tests (Files): Likewise.
15285         * modules/isnand-tests (Files): Likewise.
15286         * modules/isnanf-nolibm-tests (Files): Likewise.
15287         * modules/isnanf-tests (Files): Likewise.
15288         * modules/isnanl-nolibm-tests (Files): Likewise.
15289         * modules/isnanl-tests (Files): Likewise.
15290         * modules/round-tests (Files): Likewise.
15291         * modules/roundf-tests (Files): Likewise.
15292         * modules/roundl-tests (Files): Likewise.
15293         * modules/ldexpl-tests (Files): Likewise.
15294         * modules/signbit-tests (Files): Likewise.
15295         * modules/snprintf-posix-tests (Files): Likewise.
15296         * modules/sprintf-posix-tests (Files): Likewise.
15297         * modules/strtod-tests (Files): Likewise.
15298         * modules/trunc-tests (Files): Likewise.
15299         * modules/truncf-tests (Files): Likewise.
15300         * modules/truncl-tests (Files): Likewise.
15301         * modules/vsnprintf-posix-tests (Files): Likewise.
15302         * modules/vsprintf-posix-tests (Files): Likewise.
15303         * modules/vasnprintf-posix-tests (Files): Likewise.
15304         * modules/vasprintf-posix-tests (Files): Likewise.
15305         * tests/test-ceilf1.c (main): Use it.
15306         * tests/test-ceill.c (main): Likewise.
15307         * tests/test-floorf1.c (main): Likewise.
15308         * tests/test-floorl.c (main): Likewise.
15309         * tests/test-frexp.c (main): Likewise.
15310         * tests/test-frexpl.c (main): Likewise.
15311         * tests/test-isnan.c (main): Likewise.
15312         * tests/test-isnand.h (main): Likewise.
15313         * tests/test-isnanf.h (main): Likewise.
15314         * tests/test-isnanl.h (main): Likewise.
15315         * tests/test-ldexpl.c (main): Likewise.
15316         * tests/test-round.c (main): Likewise.
15317         * tests/test-roundf.c (main): Likewise.
15318         * tests/test-roundl.c (main): Likewise.
15319         * tests/test-signbit.c (test_signbitf, test_signbitd)
15320         (test_signbitl): Likewise.
15321         * tests/test-snprintf-posix.h (test_function): Likewise.
15322         * tests/test-sprintf-posix.h (test_function): Likewise.
15323         * tests/test-strtod.c (main): Likewise.
15324         * tests/test-trunc1.c (main): Likewise.
15325         * tests/test-truncf1.c (main): Likewise.
15326         * tests/test-truncl.c (main): Likewise.
15327
15328         isnanl: work around icc bug
15329         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15330
15331 2010-11-03  Eric Blake  <eblake@redhat.com>
15332
15333         tests: fix compiler warnings
15334         * tests/test-getopt.h (test_getopt): Fix condition.
15335         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15336         * tests/test-pipe2.c (main): Likewise.
15337         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15338
15339         utimens: fix broken m4 test
15340         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15341
15342 2010-10-28  Bruno Haible  <bruno@clisp.org>
15343
15344         posix_spawn*, getdtablesize: Relax license.
15345         * modules/posix_spawn (License): Change to LGPLv2+.
15346         * modules/posix_spawnp (License): Likewise.
15347         * modules/posix_spawn-internal (License): Likewise.
15348         * modules/posix_spawnattr_init (License): Likewise.
15349         * modules/posix_spawnattr_getflags (License): Likewise.
15350         * modules/posix_spawnattr_setflags (License): Likewise.
15351         * modules/posix_spawnattr_getpgroup (License): Likewise.
15352         * modules/posix_spawnattr_setpgroup (License): Likewise.
15353         * modules/posix_spawnattr_getschedparam (License): Likewise.
15354         * modules/posix_spawnattr_setschedparam (License): Likewise.
15355         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15356         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15357         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15358         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15359         * modules/posix_spawnattr_getsigmask (License): Likewise.
15360         * modules/posix_spawnattr_setsigmask (License): Likewise.
15361         * modules/posix_spawnattr_destroy (License): Likewise.
15362         * modules/posix_spawn_file_actions_init (License): Likewise.
15363         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15364         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15365         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15366         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15367         * modules/getdtablesize (License): Likewise.
15368         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15369
15370 2010-10-26  Bruno Haible  <bruno@clisp.org>
15371
15372         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15373         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15374         Cygwin and mingw.
15375         Suggested by Eric Blake.
15376
15377 2010-10-26  Bruno Haible  <bruno@clisp.org>
15378
15379         stdio: Work around compilation error due to renameat() on Solaris 10.
15380         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15381         * lib/renameat.c: Don't include <unistd.h> here.
15382         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15383         Reported by Paul Eggert and Eric Blake.
15384
15385 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15386
15387         renameat: port to Solaris 10, which declares renameat in unistd.h
15388
15389         * lib/renameat.c: Include unistd.h before stdio.h, because
15390         Solaris 10 declares renameat in unistd.h.  Problem encountered
15391         when building GNU tar 1.24 on Solaris 10.
15392
15393 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15394
15395         fdopendir: fix C89 compilation
15396         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15397         compilers.
15398
15399 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         inttostr: simplify by removing unnecessary redundancy
15402         * lib/anytostr.c: Don't include verify.h.
15403         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15404         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15405         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15406         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15407         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15408         Likewise.
15409         * modules/inttostr (Depends-on): Remove 'verify'.
15410
15411 2010-10-23  Bruno Haible  <bruno@clisp.org>
15412
15413         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15414         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15415         Reported by Eric Blake.
15416
15417 2010-10-23  Bruno Haible  <bruno@clisp.org>
15418
15419         Tests: Fix LOCALE_JA on MirBSD 10.
15420         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15421         to an UTF-8 locale.
15422         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15423         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15424         Reported by Eric Blake.
15425
15426 2010-10-21  Bruno Haible  <bruno@clisp.org>
15427
15428         nl_langinfo test: Avoid test failure on NetBSD 5.
15429         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15430         Reported by Eric Blake.
15431
15432 2010-10-21  Eric Blake  <eblake@redhat.com>
15433
15434         c-stack: work around libsigsegv 2.8 bug
15435         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15436         overflow on at least PowerPC64.
15437
15438 2010-10-17  Bruno Haible  <bruno@clisp.org>
15439
15440         userspec: Drop redundant file.
15441         * modules/userspec (Files): Remove lib/inttostr.h.
15442
15443 2010-10-17  Bruno Haible  <bruno@clisp.org>
15444
15445         nl_langinfo tests: Silence some warnings.
15446         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15447         Reported by Jim Meyering.
15448
15449 2010-10-17  Bruno Haible  <bruno@clisp.org>
15450
15451         Make use of GCC's attribute __alloc_size__.
15452         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15453         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15454         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15455         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15456         __alloc_size__.
15457         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15458         Suggested by Jim Meyering.
15459
15460 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15461
15462         bootstrap: anchor .gitignore entries.
15463         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15464         with...
15465         (insert_vc_ignore): ... this new function, which prepends `/' to
15466         all .gitignore entries before passing them to
15467         insert_sorted_if_absent.
15468
15469 2010-10-16  Bruno Haible  <bruno@clisp.org>
15470
15471         nextafter: Fix configure check.
15472         * modules/nextafter (configure.ac): Correct expected prototype.
15473
15474 2010-10-16  Bruno Haible  <bruno@clisp.org>
15475
15476         termios: Update documentation.
15477         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15478
15479 2010-10-16  Bruno Haible  <bruno@clisp.org>
15480
15481         tests: Make them compile with TinyCC.
15482         * tests/test-strstr.c (main): Remove parentheses around array
15483         initializer.
15484
15485 2010-10-15  Eric Blake  <eblake@redhat.com>
15486
15487         ignore-value: make header idempotent
15488         * lib/ignore-value.h: Add double-inclusion guards.
15489         Reported by Stefan Berger.
15490
15491 2010-10-15  Jim Meyering  <meyering@redhat.com>
15492
15493         GNUmakefile: handle "stable" target, not "major"
15494         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15495         lists in maint.mk and announce-gen.  Without this, "make stable"
15496         would fail to ensure that $(VERSION) is up to date.
15497
15498 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15499
15500         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15501         & co.
15502
15503 2010-10-14  Bruno Haible  <bruno@clisp.org>
15504
15505         vasnprintf: Don't set errno to 0.
15506         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15507         block that sets it to 0.
15508         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15509
15510 2010-10-14  Bruno Haible  <bruno@clisp.org>
15511
15512         socketlib: Fix.
15513         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15514         gl_PREREQ_SYS_H_WINSOCK2.
15515         Reported by Ian Beckwith <ianb@erislabs.net>.
15516
15517 2010-10-13  Jim Meyering  <meyering@redhat.com>
15518
15519         test-select-stdin.c: avoid warn_unused_result warnings
15520         * tests/test-select-stdin.c: Include "macros.h".
15521         ASSERT that read and fflush succeed.
15522
15523 2010-10-13  Jim Meyering  <meyering@redhat.com>
15524
15525         git-version-gen: do require git-VC'd files in cwd
15526         * build-aux/git-version-gen: Reject a git version string
15527         if there are no commits associated with the current directory.
15528         This avoids an unlikely false-positive (unrelated dir whose parent
15529         repository also contains a tag matching v*), as pointed out
15530         by Giuseppe Scrivano in
15531         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15532
15533 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         argv-iter: omit nonconforming declaration
15536         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15537         enum arg_iter_err declaration, which doesn't conform to C99.
15538         Solaris 10 cc warns about this.
15539
15540 2010-10-13  Eric Blake  <eblake@redhat.com>
15541
15542         termios: fix compilation on mingw
15543         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15544         (gl_TERMIOS_H): Adjust it on mingw.
15545         * modules/termios (Makefile.am): Substitute new key.
15546         * lib/termios.in.h (includes): Make include_next conditional.
15547         * doc/posix-headers/termios.texi (termios.h): Update
15548         documentation.
15549         Reported by Daniel P. Berrange.
15550
15551 2010-10-13  Jim Meyering  <meyering@redhat.com>
15552
15553         git-version-gen: don't require that .git/ be in the current dir
15554         * build-aux/git-version-gen: Adjust this script so that it works
15555         when run from any working directory beneath the top-level .git/-
15556         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15557         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15558
15559         test-select: avoid warn_unused_result warnings
15560         * tests/test-select.c: Include "macros.h".
15561         ASSERT that each call to read, write, and pipe succeeds.
15562         While not technically required, also check each "close".
15563         * modules/select-tests (Files): Add tests/macros.h.
15564
15565         test-symlinkat: remove declaration of unused local
15566         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15567
15568         test-inttostr: avoid shadowing warnings
15569         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15570         and use malloc rather than the stack for the same reason as
15571         mentioned in the comment justifying the other allocation.
15572
15573 2010-10-11  Bruno Haible  <bruno@clisp.org>
15574
15575         stdlib: Allow multiple gnulib generated replacements to coexist.
15576         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15577         Reported by Sam Steingold <sds@gnu.org>.
15578
15579 2010-10-11  Jim Meyering  <meyering@redhat.com>
15580
15581         fix a documentation typo
15582         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15583
15584 2010-10-11  Eric Blake  <eblake@redhat.com>
15585
15586         futimens: work around Solaris 11 bug
15587         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15588         * tests/test-futimens.h (test_futimens): Enhance, rather than
15589         weaken test.
15590         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15591
15592 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15593
15594         Indentation.
15595         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15596         higher-level operators more to the left.
15597
15598 2010-10-11  Jim Meyering  <meyering@redhat.com>
15599
15600         test-futimens: avoid unwarranted test failure on Solaris 5.11
15601         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15602         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15603         because it tries to dereference the NULL name argument.
15604
15605 2010-10-11  Bruno Haible  <bruno@clisp.org>
15606
15607         Indentation.
15608         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15609         indentation.
15610
15611 2010-10-11  Jim Meyering  <meyering@redhat.com>
15612
15613         spawn.in.h: make indentation consistent with parentheses
15614         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15615         Make indentation consistent with parentheses.
15616
15617 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15618
15619         Fix mismatched parens in previous commit
15620         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15621         parens.
15622
15623 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15624
15625         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15626
15627         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15628         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15629         * lib/malloca.c: Include "verify.h".
15630         (verify1): Remove, replacing with a verify call.
15631         * lib/relocwrapper.c (verify1): Likewise.
15632         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15633         Likewise.
15634         * modules/malloca (Depends-on): Add 'verify'.
15635         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15636         * modules/vasnprintf (Depends-on): Add 'verify'.
15637         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15638         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15639         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15640         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15641         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15642         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15643         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15644
15645         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15646
15647         Formerly the style was sometimes 2*X - 1, because the C standard
15648         was wrongly thought to disallow ?: in integral constant expressions.
15649         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15650         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15651         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15652         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15653         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15654         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15655         verify that time_t cannot be floating.
15656
15657 2010-10-08  Eric Blake  <eblake@redhat.com>
15658
15659         time: enforce recent POSIX ruling that time_t is integral
15660         * lib/time.in.h (__time_t_must_be_integral): Detect any
15661         problematic systems, allowing the rest of gnulib to assume POSIX.
15662
15663 2010-10-08  Jim Meyering  <meyering@redhat.com>
15664
15665         fdopendir: fix a bug on systems lacking openat and /proc support
15666         OpenBSD 4.7 is one such system.  The most noticeable effect was
15667         failure of any application making nontrivial use of fts: rm, du,
15668         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15669           ./rm: traversal failed: `a': Bad file descriptor
15670         Debugging that, you see that even though FD 6 was closed just
15671         prior to the opendir call in fd_clone_opendir, its resulting
15672         dir->dd_fd was 8, rather than the expected value of 6:
15673
15674         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15675         93                close (fd);
15676         (gdb) n
15677         94                dir = fd_clone_opendir (dupfd);
15678         (gdb) n
15679         95                saved_errno = errno;
15680         (gdb) p dir->dd_fd
15681         $11 = 8
15682
15683         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15684         The problem is that on OpenBSD, fd_clone_opendir has to resort
15685         to using the old-style save/restore CWD mechanism, due to its
15686         lack of openat/proc support, and *that* would steal the FD (6)
15687         that opendir was supposed to use.
15688
15689         The fix is to squirrel away the desired FD so that save_cwd uses a
15690         different one, and then free the dest FD right before calling opendir.
15691         That guarantees opendir will use the required file descriptor.
15692
15693         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15694
15695 2010-10-08  Bruno Haible  <bruno@clisp.org>
15696
15697         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15698         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15699
15700 2010-10-08  Bruno Haible  <bruno@clisp.org>
15701
15702         nanosleep: Make replacement POSIX compliant.
15703         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15704         is out of range.
15705         Reported by Jim Meyering.
15706
15707 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15708
15709         bootstrap: add hook for altering gnulib.mk, for Bison
15710         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15711         the Bison bootstrapping process can rewrite file names and variables
15712         in this file before later parts of 'bootstrap' use the file.
15713         Bison wants to include lib/gnulib.mk from the top-level makefile,
15714         so it needs the file names in this file to be relative to the top
15715         level, not relative to lib; plus it needs variable names to be
15716         rewritten.
15717         (slurp): Use the new function.
15718
15719         bootstrap: reformat for readability
15720         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15721
15722 2010-10-08  Eric Blake  <eblake@redhat.com>
15723
15724         docs: update cygwin progress
15725         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15726         1.7.7.
15727         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15728         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15729         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15730         * doc/posix-functions/carg.texi (carg): Likewise.
15731         * doc/posix-functions/cargf.texi (cargf): Likewise.
15732         * doc/posix-functions/casin.texi (casin): Likewise.
15733         * doc/posix-functions/casinf.texi (casinf): Likewise.
15734         * doc/posix-functions/casinh.texi (casinh): Likewise.
15735         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15736         * doc/posix-functions/catan.texi (catan): Likewise.
15737         * doc/posix-functions/catanf.texi (catanf): Likewise.
15738         * doc/posix-functions/catanh.texi (catanh): Likewise.
15739         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15740         * doc/posix-functions/ccos.texi (ccos): Likewise.
15741         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15742         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15743         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15744         * doc/posix-functions/cexp.texi (cexp): Likewise.
15745         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15746         * doc/posix-functions/cimag.texi (cimag): Likewise.
15747         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15748         * doc/posix-functions/clog.texi (clog): Likewise.
15749         * doc/posix-functions/clogf.texi (clogf): Likewise.
15750         * doc/posix-functions/conj.texi (conj): Likewise.
15751         * doc/posix-functions/conjf.texi (conjf): Likewise.
15752         * doc/posix-functions/cpow.texi (cpow): Likewise.
15753         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15754         * doc/posix-functions/cproj.texi (cproj): Likewise.
15755         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15756         * doc/posix-functions/creal.texi (creal): Likewise.
15757         * doc/posix-functions/crealf.texi (crealf): Likewise.
15758         * doc/posix-functions/csin.texi (csin): Likewise.
15759         * doc/posix-functions/csinf.texi (csinf): Likewise.
15760         * doc/posix-functions/csinh.texi (csinh): Likewise.
15761         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15762         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15763         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15764         * doc/posix-functions/ctan.texi (ctan): Likewise.
15765         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15766         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15767         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15768         * doc/posix-headers/complex.texi (complex.h): Likewise.
15769
15770 2010-10-07  Jim Meyering  <meyering@redhat.com>
15771
15772         parse-datetime: avoid compilation failure on OpenBSD 4.7
15773         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15774         This works around a compilation failure on OpenBSD 4.7:
15775         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15776
15777 2010-10-07  Eric Blake  <eblake@redhat.com>
15778
15779         docs: update cygwin progress
15780         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15781         1.7.6.
15782         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15783         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15784         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15785         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15786         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15787         Likewise.
15788         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15789         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15790         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15791         Likewise.
15792         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15793         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15794         Likewise.
15795         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15796         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15797         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15798         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15799         Likewise.
15800         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15801         Likewise.
15802         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15803
15804         docs: update parse-datetime history
15805         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15806         documentation of this function's history and alternatives.
15807
15808         cygwin: use more robust version check
15809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15810         exclude an eventual cygwin 1.9.1.
15811         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15813         (gl_FUNC_STRCASESTR): Likewise.
15814         Reported by Bruno Haible.
15815
15816 2010-10-06  Bruno Haible  <bruno@clisp.org>
15817
15818         string, sys_select: Avoid #including large headers unless necessary.
15819         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15820         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15821         OSF/1, BeOS, Haiku.
15822         Reported by Jim Meyering.
15823
15824 2010-10-05  Eric Blake  <eblake@redhat.com>
15825
15826         memmem, strstr, strcasestr: fix bug with long periodic needle
15827         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15828         periodic needle having false positive.
15829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15830         and cygwin 1.7.7.
15831         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15833         (gl_FUNC_STRCASESTR): Likewise.
15834         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15835         * tests/test-memmem.c (main): Expose the bug.
15836         * tests/test-strcasestr.c (main): Likewise.
15837         * tests/test-strstr.c (main): Likewise.
15838         * tests/test-c-strcasestr.c (main): Likewise.
15839         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15840         * doc/posix-functions/strstr.texi (strstr): Likewise.
15841         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15842         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15843
15844 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15845
15846         parse-datetime: do some more renaming
15847         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15848         parse_datetime, not get_date.  Mention the renaming.
15849         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15850         in comments.
15851         * m4/bison.m4: Likewise.
15852
15853 2010-10-05  Eric Blake  <eblake@redhat.com>
15854
15855         parse-datetime: better name than get_date
15856         * NEWS: Reword the deprecation notice.
15857         * modules/get_date: Rename to modules/parse-datetime.
15858         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15859         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15860         * lib/get_date.y: Rename to lib/parse-datetime.y.
15861         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15862         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15863         * doc/getdate.texi: Provide fallback wrapper.
15864         * lib/getdate.h: Move guts, and wrap...
15865         * lib/parse-datetime.h: ...new file.
15866         * lib/parse-datetime.y (get_date): Rename...
15867         (parse_datetime): ...to this.
15868         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15869         (gl_PARSE_DATETIME): ...to this.
15870         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15871         documentation.
15872         * modules/getdate (Files): Provide fallback docs and header.
15873         (Notice, Depends-on): Update references.
15874         * tests/test-parse-datetime.c: Likewise.
15875         * DEPENDENCIES: Likewise.
15876         * MODULES.html.sh (Date and time <time.h>): Likewise.
15877         * doc/parse-datetime.texi (Date input formats)
15878         (Authors of parse_datetime): Likewise.
15879         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15880         (Include): Likewise.
15881         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15882         * gnulib-tool: Likewise.
15883         * m4/bison.m4 (gl_BISON): Likewise.
15884         Suggested by Bruno Haible.
15885
15886 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15887
15888         more ports to Solaris tr, which needs [] around ranges
15889         * gnulib-tool: Solaris tr needs [] around ranges.
15890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15891         * tests/test-pipe-filter-gi1.c (main): Likewise.
15892         * tests/test-pipe-filter-ii1.c (main): Likewise.
15893
15894 2010-10-05  Eric Blake  <eblake@redhat.com>
15895
15896         bootstrap: fix Solaris regression
15897         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15898         around ranges.
15899         Reported by Pádraig Brady.
15900
15901         bootstrap: work with pkg-config
15902         * build-aux/bootstrap (check_versions): Also transliterate - in
15903         prerequisite name.
15904         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15905         prerequisites that were already found, to avoid confusion.
15906         Reported by Justin Clift.
15907
15908         faccessat: remove unused wrappers
15909         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15910         presence of these wrappers dragged in -lgen on Solaris.
15911         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15912
15913 2010-10-05  Jim Meyering  <meyering@redhat.com>
15914
15915         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15916         * Makefile (sc_pragma_columns): New syntax-check rule.
15917
15918 2010-10-04  Bruno Haible  <bruno@clisp.org>
15919
15920         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15921         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15922         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15923         Reported by Bruce Korb and Eric Blake.
15924
15925 2010-10-04  Bruno Haible  <bruno@clisp.org>
15926
15927         threadlib: Make option --with-libpth-prefix work.
15928         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15929         use $LIBPTH, not just -lpth.
15930
15931 2010-10-04  Bruno Haible  <bruno@clisp.org>
15932
15933         Avoid line length limitation from HP NonStop system header files.
15934         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15935         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15936         * lib/ctype.in.h: Likewise.
15937         * lib/dirent.in.h: Likewise.
15938         * lib/errno.in.h: Likewise.
15939         * lib/fcntl.in.h: Likewise.
15940         * lib/float.in.h: Likewise.
15941         * lib/getopt.in.h: Likewise.
15942         * lib/iconv.in.h: Likewise.
15943         * lib/inttypes.in.h: Likewise.
15944         * lib/langinfo.in.h: Likewise.
15945         * lib/locale.in.h: Likewise.
15946         * lib/math.in.h: Likewise.
15947         * lib/netdb.in.h: Likewise.
15948         * lib/netinet_in.in.h: Likewise.
15949         * lib/poll.in.h: Likewise.
15950         * lib/pthread.in.h: Likewise.
15951         * lib/pty.in.h: Likewise.
15952         * lib/sched.in.h: Likewise.
15953         * lib/se-selinux.in.h: Likewise.
15954         * lib/search.in.h: Likewise.
15955         * lib/signal.in.h: Likewise.
15956         * lib/spawn.in.h: Likewise.
15957         * lib/stdarg.in.h: Likewise.
15958         * lib/stddef.in.h: Likewise.
15959         * lib/stdint.in.h: Likewise.
15960         * lib/stdio.in.h: Likewise.
15961         * lib/stdlib.in.h: Likewise.
15962         * lib/string.in.h: Likewise.
15963         * lib/strings.in.h: Likewise.
15964         * lib/sys_file.in.h: Likewise.
15965         * lib/sys_ioctl.in.h: Likewise.
15966         * lib/sys_select.in.h: Likewise.
15967         * lib/sys_socket.in.h: Likewise.
15968         * lib/sys_stat.in.h: Likewise.
15969         * lib/sys_time.in.h: Likewise.
15970         * lib/sys_times.in.h: Likewise.
15971         * lib/sys_utsname.in.h: Likewise.
15972         * lib/sys_wait.in.h: Likewise.
15973         * lib/sysexits.in.h: Likewise.
15974         * lib/termios.in.h: Likewise.
15975         * lib/time.in.h: Likewise.
15976         * lib/unistd.in.h: Likewise.
15977         * lib/wchar.in.h: Likewise.
15978         * lib/wctype.in.h: Likewise.
15979         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15980         * modules/ctype (Makefile.am): Likewise.
15981         * modules/dirent (Makefile.am): Likewise.
15982         * modules/errno (Makefile.am): Likewise.
15983         * modules/fcntl-h (Makefile.am): Likewise.
15984         * modules/float (Makefile.am): Likewise.
15985         * modules/getopt-posix (Makefile.am): Likewise.
15986         * modules/iconv-h (Makefile.am): Likewise.
15987         * modules/inttypes (Makefile.am): Likewise.
15988         * modules/langinfo (Makefile.am): Likewise.
15989         * modules/locale (Makefile.am): Likewise.
15990         * modules/math (Makefile.am): Likewise.
15991         * modules/netdb (Makefile.am): Likewise.
15992         * modules/netinet_in (Makefile.am): Likewise.
15993         * modules/poll-h (Makefile.am): Likewise.
15994         * modules/pthread (Makefile.am): Likewise.
15995         * modules/pty (Makefile.am): Likewise.
15996         * modules/sched (Makefile.am): Likewise.
15997         * modules/search (Makefile.am): Likewise.
15998         * modules/selinux-h (Makefile.am): Likewise.
15999         * modules/signal (Makefile.am): Likewise.
16000         * modules/spawn (Makefile.am): Likewise.
16001         * modules/stdarg (Makefile.am): Likewise.
16002         * modules/stddef (Makefile.am): Likewise.
16003         * modules/stdint (Makefile.am): Likewise.
16004         * modules/stdio (Makefile.am): Likewise.
16005         * modules/stdlib (Makefile.am): Likewise.
16006         * modules/string (Makefile.am): Likewise.
16007         * modules/strings (Makefile.am): Likewise.
16008         * modules/sys_file (Makefile.am): Likewise.
16009         * modules/sys_ioctl (Makefile.am): Likewise.
16010         * modules/sys_select (Makefile.am): Likewise.
16011         * modules/sys_socket (Makefile.am): Likewise.
16012         * modules/sys_stat (Makefile.am): Likewise.
16013         * modules/sys_time (Makefile.am): Likewise.
16014         * modules/sys_times (Makefile.am): Likewise.
16015         * modules/sys_utsname (Makefile.am): Likewise.
16016         * modules/sys_wait (Makefile.am): Likewise.
16017         * modules/sysexits (Makefile.am): Likewise.
16018         * modules/termios (Makefile.am): Likewise.
16019         * modules/time (Makefile.am): Likewise.
16020         * modules/unistd (Makefile.am): Likewise.
16021         * modules/wchar (Makefile.am): Likewise.
16022         * modules/wctype (Makefile.am): Likewise.
16023
16024 2010-10-04  Bruno Haible  <bruno@clisp.org>
16025
16026         read-file tests: Avoid a test failure on NonStop Kernel.
16027         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16028         a regular file.
16029         Reported by Joachim Schmitz <schmitz@hp.com>.
16030
16031 2010-10-03  Bruno Haible  <bruno@clisp.org>
16032
16033         gnulib-tool: Fixes for --create-testdir with --libtool.
16034         * gnulib-tool (func_get_automake_snippet): Don't augment
16035         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16036         an executable.
16037         (func_create_testdir): Handle module 'alloca' like func_import.
16038         Reported by Bruce Korb <bruce.korb@gmail.com>.
16039
16040 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16041
16042         Avoid some lines longer than 80 characters.
16043         * lib/stdint.in.h: Break long comment lines.
16044         * lib/math.in.h: Likewise.
16045         (_GL_NUM_UINT_WORDS): New macro, for readability.
16046         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16047         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16048         * lib/stdlib.in.h: Likewise.
16049         * lib/spawn.in.h: Likewise.
16050         * lib/sys_socket.in.h: Update an URL.
16051         * lib/sys_stat.in.h: Break long line.
16052
16053 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16054
16055         Improve pmccabe2html.
16056         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16057         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16058         when the sources change. Remove the line in the HTML about "Used
16059         ranges" (which implied that there might be other unused ranges),
16060         rename "Resume" to "Summary" (easier to understand for more users).
16061         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16062         styles, and some unnecessary blank lines.
16063
16064 2010-10-03  Bruno Haible  <bruno@clisp.org>
16065             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16066
16067         acl: Add support for ACLs on NonStop Kernel.
16068         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16069         Check whether the function aclsort() exists.
16070         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16071         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16072         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16073         (acl_nontrivial [HAVE_ACLSORT]: New function.
16074         (file_has_acl): Implement for NonStop Kernel.
16075         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16076         (qset_acl): Implement for NonStop Kernel.
16077         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16078         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16079         (main): Implement for NonStop Kernel.
16080         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16081         Kernel. Handle this flavor.
16082         * tests/test-set-mode-acl.sh: Likewise.
16083         * tests/test-copy-acl.sh: Likewise.
16084         * tests/test-copy-file.sh: Likewise.
16085
16086 2010-10-03  Bruno Haible  <bruno@clisp.org>
16087
16088         Info about ACLs on NonStop Kernel.
16089         * doc/acl-resources.txt: Add info about NonStop Kernel.
16090         References by Joachim Schmitz <schmitz@hp.com>.
16091
16092 2010-10-02  Bruno Haible  <bruno@clisp.org>
16093
16094         Define missing EDQUOT on NonStop Kernel.
16095         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16096         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16097         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16098         missing.
16099         * doc/posix-headers/errno.texi: Mention the NSK bug.
16100         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16101         Reported by Joachim Schmitz <schmitz@hp.com>.
16102
16103 2010-10-02  Bruno Haible  <bruno@clisp.org>
16104
16105         Update doc for POSIX:2008.
16106         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16107         Update URL of POSIX specification.
16108
16109 2010-10-02  Bruno Haible  <bruno@clisp.org>
16110
16111         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16112         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16113         from gnulib, not from Automake.
16114
16115 2010-10-02  Bruno Haible  <bruno@clisp.org>
16116
16117         New module 'system-posix'.
16118         * modules/system-posix: New file.
16119         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16120         module is present.
16121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16122         GNULIB_SYSTEM_POSIX.
16123         * modules/stdlib (Depends-on): Remove sys_wait.
16124         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16125         * doc/posix-functions/system.texi: Mention the new module.
16126         * doc/posix-headers/stdlib.texi: Likewise.
16127         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16128         define test_sys_wait_macros to a no-op.
16129         Reported by Sam Steingold <sds@gnu.org>.
16130
16131 2010-09-30  Bruno Haible  <bruno@clisp.org>
16132
16133         More renaming from 'getdate' to 'get_date'.
16134         * doc/get_date.texi: Renamed from doc/getdate.texi.
16135         * modules/get_date (Files): Update.
16136         * MODULES.html.sh (Date and time <time.h>): Update.
16137         * DEPENDENCIES: Update.
16138         * gnulib-tool: Update comment.
16139         * m4/bison.m4 (gl_BISON): Likewise.
16140         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16141
16142 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16143
16144         bootstrap: support ACLOCAL_FLAGS during aclocal
16145         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16146         can add additional -I dir for third-party .m4 files.
16147
16148 2010-09-30  Eric Blake  <eblake@redhat.com>
16149
16150         bootstrap: use glibtoolize on MacOS
16151         * build-aux/bootstrap (check_versions): Convert libtool into
16152         libtoolize.
16153         (tool search): Move libtool check earlier, and look for
16154         glibtoolize for MacOS.
16155         (gnulib_tool_options): Auto-add --libtool when appropriate.
16156         Reported by Justin Clift.
16157
16158         poll: fix typo that broke test on MacOS
16159         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16160         Reported by Justin Clift.
16161
16162         getdate: rename to get_date
16163         Note: getdate.h is not renamed, to minimize client impact.
16164         * modules/getdate: Mark obsolete.  Move old contents...
16165         * modules/get_date: ...to new module name.
16166         * modules/getdate-tests: Move...
16167         * modules/get_date-tests: ...here.
16168         * m4/getdate.m4: Move...
16169         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16170         * lib/getdate.y: Move...
16171         * lib/get_date.y: ...here.
16172         * tests/test-getdate.c: Move...
16173         * tests/test-get_date.c: ...here.
16174         * doc/posix-functions/getdate.texi (getdate): Update name.
16175         * NEWS: Mention the change.
16176
16177 2010-09-29  Bruno Haible  <bruno@clisp.org>
16178
16179         Separate the module 'waitpid' from the module 'sys_wait'.
16180         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16181         present.
16182         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16183         gl_MODULE_INDICATOR_FOR_TESTS.
16184         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16185         * modules/sys_wait (Depends-on): Remove waitpid.
16186         (Makefile.am): Substitute GNULIB_WAITPID.
16187         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16188         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16189         signature only if the 'waitpid' module is present.
16190         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16191         * NEWS: Mention the change.
16192         * modules/grantpt (Depends-on): Add waitpid.
16193         * modules/wait-process (Depends-on): Likewise.
16194
16195 2010-09-29  Bruno Haible  <bruno@clisp.org>
16196
16197         More tests for module 'sys_wait'.
16198         * modules/sys_wait-c++-tests: New file.
16199         * tests/test-sys_wait-c++.cc: New file.
16200         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16201         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16202
16203 2010-09-29  Bruno Haible  <bruno@clisp.org>
16204
16205         New module 'waitpid'.
16206         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16207         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16208         Don't include <process.h>.
16209         (waitpid): Declare only, using modern idiom.
16210         * m4/waitpid.m4: New file.
16211         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16212         * modules/waitpid: New file.
16213         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16214         (Makefile.am): Update.
16215         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16216
16217 2010-09-28  Bruno Haible  <bruno@clisp.org>
16218
16219         poll: Assume ANSI C.
16220         * lib/poll.c (poll): Use an ANSI C declaration.
16221
16222 2010-09-28  Bruno Haible  <bruno@clisp.org>
16223
16224         poll-h: Create poll.h on all platforms.
16225         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16226         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16227         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16228         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16229         (gl_REPLACE_POLL_H): Don't set POLL_H.
16230         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16231         * modules/poll-h (Depends-on): Add include_next.
16232         (Makefile.am): Create poll.h unconditionally. Substitute also
16233         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16234
16235 2010-09-28  Bruno Haible  <bruno@clisp.org>
16236
16237         Tests for module 'poll-h'.
16238         * modules/poll-h-c++-tests: New file.
16239         * tests/test-poll-h-c++.cc: New file.
16240
16241         Tests for module 'poll-h'.
16242         * modules/poll-h-tests: New file.
16243         * tests/test-poll-h.c: New file.
16244
16245 2010-09-28  Bruno Haible  <bruno@clisp.org>
16246
16247         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16248         * modules/poll-h (Depends-on): Add 'extensions'.
16249
16250 2010-09-28  Bruno Haible  <bruno@clisp.org>
16251
16252         New module 'poll-h'.
16253         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16254         (poll): Use modern idiom.
16255         * modules/poll-h: New file.
16256         * modules/poll (Files): Remove lib/poll.in.h.
16257         (Depends-on): Add poll-h.
16258         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16259         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16260         * m4/poll_h.m4: New file.
16261         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16262         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16263         and invoke gl_REPLACE_POLL_H.
16264         * lib/poll.c: Use common idiom.
16265         * tests/test-poll.c: Likewise.
16266         * doc/posix-headers/poll.texi: Mention the poll-h module.
16267         Suggested by Eric Blake.
16268
16269 2010-09-26  Bruno Haible  <bruno@clisp.org>
16270
16271         sys_wait: Implement WSTOPSIG.
16272         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16273         Reported by Simon Josefsson.
16274
16275 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16276
16277         stdlib, sys_wait: Avoid compilation error on mingw.
16278         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16279
16280 2010-09-26  Bruno Haible  <bruno@clisp.org>
16281
16282         stdlib tests: Avoid code duplication.
16283         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16284         * modules/sys_wait-tests (Files): Likewise.
16285         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16286         * tests/test-stdlib.c: Include test-sys_wait.h.
16287         (main): Invoke test_sys_wait_macros.
16288         * tests/test-sys_wait.c: Include test-sys_wait.h.
16289         (main): Invoke test_sys_wait_macros.
16290
16291 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16292
16293         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16294         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16295         sure Windows sockets are working before calling getaddrinfo.
16296         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16297         * doc/gnulib.texi (Windows sockets): Fix typo.
16298
16299 2010-09-25  Bruno Haible  <bruno@clisp.org>
16300
16301         Tests for module 'regex-quote'.
16302         * modules/regex-quote-tests: New file.
16303         * tests/test-regex-quote.c: New file.
16304
16305         New module 'regex-quote'.
16306         * lib/regex-quote.h: New file.
16307         * lib/regex-quote.c: New file.
16308         * modules/regex-quote: New file.
16309         Suggested by Reuben Thomas <rrt@sc3d.org>.
16310
16311 2010-09-24  Bruno Haible  <bruno@clisp.org>
16312
16313         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16314         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16315
16316 2010-09-23  Bruno Haible  <bruno@clisp.org>
16317
16318         setenv: Relax license.
16319         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16320         Blake.
16321         Requested by Eric Blake.
16322
16323 2010-09-22  Bruno Haible  <bruno@clisp.org>
16324
16325         termios: Relax license.
16326         * modules/termios (License): Change to LGPLv2+.
16327         Requested by Eric Blake.
16328
16329 2010-09-22  Bruno Haible  <bruno@clisp.org>
16330
16331         threadlib: Allow the package to change the default to 'no'.
16332         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16333         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16334         Reported by Paul Eggert.
16335
16336 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16337             Bruno Haible  <bruno@clisp.org>
16338
16339         Fix endless loop in mbmemcasecoll.
16340         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16341         byte.
16342         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16343
16344 2010-09-22  Bruno Haible  <bruno@clisp.org>
16345
16346         Tests for module 'memcoll'.
16347         * modules/memcoll-tests: New file.
16348         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16349
16350         memcoll, xmemcoll: Clarify size vs. length.
16351         * modules/memcoll.c (memcoll0): Clarify specification.
16352         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16353         passed to collate_error.
16354
16355 2010-09-22  Bruno Haible  <bruno@clisp.org>
16356
16357         Tests for module 'memcasecmp'.
16358         * modules/memcasecmp-tests: New file.
16359         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16360
16361 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16362
16363         * lib/pthread.in.h: Add split double-inclusion guard, and include
16364         system <pthread.h> if there is one.  Use @@-style as in other
16365         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16366         pthread.h doesn't.
16367         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16368         (pthread_mutexattr_settype, pthread_mutex_trylock):
16369         New static inline functions, if there's no system <pthread.h>.
16370         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16371         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16372         Approximate with mutexes if the system lacks spinlocks, as in
16373         MacOS.
16374         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16375         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16376         @@-style.  Check for spinlocks separately.
16377         (gl_PTHREAD_DEFAULTS): New macro.
16378         * modules/pthread: Redo to use a more typical style for in.h files.
16379
16380 2010-09-21  Eric Blake  <eblake@redhat.com>
16381
16382         net_if: enhance tests
16383         * tests/test-net_if.c (main): Move signature checks earlier.
16384         Print failures to stderr.
16385         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16386         Document the bug that we do not yet fix.
16387
16388 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16389
16390         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16391         about gnulib, not GSS.
16392
16393 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16394
16395         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16396         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16397         for Emacs.
16398         * build-aux/pmccabe2html: Make Makefile.am example code more
16399         cut-and-paste friendly.
16400
16401 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16402
16403         * tests/test-net_if.c: New file.
16404         * modules/net_if-tests: New file.
16405
16406 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16407
16408         pthread: add pthread_spin_destroy
16409         * lib/pthread.in.h (pthread_spin_destroy): New function.
16410
16411 2010-09-19  Bruno Haible  <bruno@clisp.org>
16412
16413         gnulib-tool: Fix --help output.
16414         * gnulib-tool (func_usage): Fix help message.
16415         Reported by Reuben Thomas <rrt@sc3d.org>.
16416
16417 2010-09-18  Jim Meyering  <meyering@redhat.com>
16418
16419         maint.mk: avoid unexpanded \n in two diagnostics
16420         * top/maint.mk (sc_prohibit_always_true_header_tests):
16421         Don't use a literal \n in a halt=... assignment.  It would not be
16422         expanded, and the two \n bytes would appear in the diagnostic output
16423         rather than the desired newline.  Use halt=$$(printf ... instead.
16424         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16425
16426 2010-09-18  Bruno Haible  <bruno@clisp.org>
16427
16428         netinet_in: Doc tweak.
16429         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16430         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16431
16432 2010-09-18  Jim Meyering  <meyering@redhat.com>
16433
16434         init.sh: correct an outdated comment
16435         * tests/init.sh (create_exe_shims_):  s/function/alias/
16436
16437         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16438         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16439         a file named "*.exe" is removed between the glob expansion and the
16440         processing of that oddly named file.
16441
16442 2010-09-17  Eric Blake  <eblake@redhat.com>
16443
16444         mirbsd: add some more support
16445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16446         in BSD family.
16447         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16448         devices as OpenBSD.
16449         * m4/host-os.m4 (mirbsd): Add MirBSD.
16450
16451         tests: fix unportable assumption on sys/wait.h
16452         * tests/test-sys_wait.c (main): Relax test.
16453         * tests/test-stdlib.c (main): Likewise.
16454
16455         init.sh: accomodate directory with no .exes
16456         * tests/init.sh: Accomodate directory containing only scripts.
16457
16458         tests: avoid compiler warning
16459         * tests/test-stdlib.c (main): Use the variable.
16460
16461         fdutimens, fdutimensat: update signature, again
16462         * lib/utimens.h (gl_futimens): Delete, and move signature...
16463         (fdutimens): ...here.
16464         (fdutimensat): Rearrange signature.
16465         (lutimensat): Rename variable for clarity.
16466         * lib/fdutimensat.c (fdutimensat): Update signature.
16467         * lib/utimens.c (fdutimens): Likewise.
16468         (gl_futimens): Delete.
16469         (utimens, lutimens): Update callers.
16470         * lib/futimens.c (futimens): Likewise.
16471         * tests/test-fdutimensat.c: Likewise.
16472         * tests/test-utimens.c: Likewise.
16473         * tests/test-futimens.h: Update comment.
16474         * NEWS: Mention this.
16475         Suggested by Paul Eggert.
16476
16477 2010-09-17  Bruno Haible  <bruno@clisp.org>
16478
16479         Take over the maintenance of some older macros from Autoconf.
16480         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16481         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16482         GNU Autoconf.
16483         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16484         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16485
16486 2010-09-17  Eric Blake  <eblake@redhat.com>
16487
16488         fdutimensat: drop atflag validation
16489         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16490         with valid fd, to close a race scenario where futimens is
16491         unsupported and FILE was replaced by a symlink.
16492         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16493         accordingly.
16494         Suggested by Paul Eggert.
16495
16496 2010-09-16  Bruno Haible  <bruno@clisp.org>
16497
16498         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16499         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16500
16501 2010-09-16  Bruno Haible  <bruno@clisp.org>
16502
16503         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16504         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16505         login_tty exists.
16506         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16507
16508 2010-09-16  Bruno Haible  <bruno@clisp.org>
16509
16510         login_tty: Make the replacement code work on BSD systems.
16511         * lib/login_tty.c: Include <sys/ioctl.h>.
16512         (login_tty): Use ioctl TIOCSCTTY when available.
16513         * modules/login_tty (Depends-on): Add sys_ioctl.
16514         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16515
16516 2010-09-16  Bruno Haible  <bruno@clisp.org>
16517
16518         login_tty: Stricter unit test.
16519         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16520         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16521         and tcgetsid() after login_tty.
16522         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16523
16524 2010-09-16  Bruno Haible  <bruno@clisp.org>
16525
16526         New module 'tcgetsid'.
16527         * lib/tcgetsid.c: New file.
16528         * m4/tcgetsid.m4: New file.
16529         * modules/tcgetsid: New file.
16530         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16531         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16532         GNULIB_TCGETSID, HAVE_TCGETSID.
16533         * lib/termios.in.h: Include <sys/types.h>.
16534         (tcgetsid): New declaration.
16535         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16536         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16537         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16538         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16539
16540 2010-09-16  Bruno Haible  <bruno@clisp.org>
16541
16542         Tests for module 'termios'.
16543         * modules/termios-c++-tests: New file.
16544         * modules/termios-tests: New file.
16545         * tests/test-termios-c++.cc: New file.
16546         * tests/test-termios.c: New file.
16547
16548         New module 'termios'.
16549         * modules/termios: New file.
16550         * lib/termios.in.h: New file.
16551         * m4/termios_h.m4: New file.
16552         * doc/posix-headers/termios.texi: Mention the new module.
16553
16554 2010-09-16  Eric Blake  <eblake@redhat.com>
16555
16556         fdutimensat: add an atflag parameter
16557         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16558         * lib/utimens.h (fdutimensat): Update prototype.
16559         * tests/test-fdutimensat.c: Adjust test to match.
16560         * NEWS: Document the change.
16561         Suggested by Paul Eggert.
16562
16563 2010-09-16  Bruno Haible  <bruno@clisp.org>
16564
16565         Fix typos in comments.
16566         * lib/striconveh.h: Fix typo in comment.
16567         * lib/login_tty.c (login_tty): Likewise.
16568
16569 2010-09-15  Bruno Haible  <bruno@clisp.org>
16570
16571         stdlib: clarify MirBSD WEXITSTATUS bug
16572         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16573         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16574
16575 2010-09-15  Eric Blake  <eblake@redhat.com>
16576
16577         stdlib: work around MirBSD WEXITSTATUS bug
16578         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16579         * modules/stdlib (Depends-on): Add sys_wait.
16580         * tests/test-sys_wait.c (main): Enhance test.
16581         * tests/test-stdlib.c (main): Likewise.
16582         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16583
16584         docs: mention MacOS issue with WEXITSTATUS(constant)
16585         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16586         issue.
16587         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16588
16589         strnlen: add tests
16590         * modules/strnlen-tests: New file.
16591         * tests/test-strnlen.c: Likewise.
16592
16593 2010-09-14  Bruno Haible  <bruno@clisp.org>
16594
16595         unistr/base: Avoid link errors when module 'libunistring' is also used.
16596         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16597         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16598         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16599         Declare also when HAVE_LIBUNISTRING is set.
16600         Reported by Pádraig Brady <P@draigbrady.com>.
16601
16602 2010-09-14  Eric Blake  <eblake@redhat.com>
16603
16604         test-rawmemchr: make more robust
16605         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16606         (Depends-on, configure.ac): Add needed prerequisites to use it.
16607         * modules/memchr-tests (Files, Depends-on, configure.ac):
16608         Likewise, to avoid implicit reliance on memchr module prereqs.
16609         * tests/test-memchr.c (main): Ensure proper masking.
16610         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16611         reads.
16612
16613         memchr: detect glibc Alpha bug
16614         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16615         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16616         Alpha.
16617         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16618         * tests/test-memchr.c (main): Enhance test.
16619         Reported by Nelson H. F. Beebe.
16620
16621 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16622
16623         fts, getcwd, glob: audit for dirfd returning -1
16624         * lib/fts.c (opendir): Remove #define; no longer used.
16625         (opendirat): New arg PDIR_FD.  All callers changed.
16626         (fts_build, _opendir2): Use new opendirat to avoid the need for
16627         dirfd, or for checking whether dirfd returns a negative value.
16628         Don't use opendir; always use openat followed by fdopendir.
16629         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16630         it.
16631         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16632         returns -1 here.
16633         * modules/fts (Depends-on): Remove dirfd.
16634         * modules/getcwd (Depends-on): Likewise.
16635
16636 2010-09-13  Eric Blake  <eblake@redhat.com>
16637
16638         float: fix broken MirBSD header
16639         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16640         * doc/posix-headers/float.texi (float.h): Document it.
16641
16642 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16643
16644         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16645         * lib/fts.c (opendirat): New arg extra_flags.
16646         (__opendir2): Use it to avoid following symlinks when opening
16647         a directory, if symlinks are not supposed to be followed.  See
16648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16649
16650         fdopendir: preserve argument fd before returning
16651         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16652         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16653         (fdopendir): Use them, arranging for FD to be open to the same
16654         directory that it was when it started.  (It might be temporarily
16655         closed while fdopendir is running, so this not thread- or
16656         signal-safe.)  Be careful to do the right thing even when file
16657         descriptors are scarce and dup fails with errno == EMFILE.  See
16658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16659
16660 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16661
16662         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16663         * NEWS: Document change.
16664         * m4/regex.m4: Disable test for regoff_t size.
16665
16666 2010-09-13  Jim Meyering  <meyering@redhat.com>
16667
16668         fts: don't operate on an invalid file descriptor after failed dup
16669         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16670         negative file descriptor.
16671
16672 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16673
16674         savedir: add streamsavedir, deprecate fdsavedir
16675         * NEWS: Mention deprecation of fdsavedir.
16676         * lib/savedir.c (streamsavedir): New extern function, whose name
16677         ends in "savedir" to be consistent with the others.  This differs
16678         from savedirstream in that it doesn't close its argument.  The
16679         next version of GNU tar will use this instead of fdsavedir, to
16680         avoid some race conditions and conserve file descriptors.
16681         (savedirstream): Reimplement as a wrapper around streamsavedir.
16682         (fdsavedir): Add a comment deprecating this function.  As far as
16683         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16684         * lib/savedir.h (streamsavedir): New decl.
16685         (fdsavedir): Add a comment deprecating this.
16686
16687 2010-09-10  Bruno Haible  <bruno@clisp.org>
16688
16689         langinfo: Fix last commit.
16690         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16691         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16693
16694 2010-09-10  Bruno Haible  <bruno@clisp.org>
16695
16696         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16697         * lib/progreloc.c (O_EXEC): Define fallback.
16698
16699 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16700
16701         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16702         * NEWS: Document recent changes to fcntl-h.
16703         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16704         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16705         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16706         Similarly for O_SEARCH; this last was already true, but not documented.
16707         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16708         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16709         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16710         Likewise.
16711         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16712         is zero, not whether it is defined.
16713         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16714         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16715         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16716
16717 2010-09-10  Bruno Haible  <bruno@clisp.org>
16718
16719         langinfo, nl_langinfo: Fix for IRIX 5.3.
16720         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16721         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16722         HAVE_LANGINFO_YESEXPR.
16723         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16724         HAVE_LANGINFO_YESEXPR.
16725         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16726         HAVE_LANGINFO_T_FMT_AMPM is 0.
16727         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16728         HAVE_LANGINFO_YESEXPR is 0.
16729         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16730         NOEXPR.
16731         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16732         * doc/posix-functions/nl_langinfo.texi: Likewise.
16733         Reported by Eric Blake.
16734
16735 2010-09-10  Bruno Haible  <bruno@clisp.org>
16736
16737         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16738         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16739         on FreeBSD 8.0 and OpenBSD 4.6.
16740         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16741         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16742         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16743         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16744         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16745         ac_includes_default.
16746         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16747
16748 2010-09-09  Eric Blake  <eblake@redhat.com>
16749
16750         strsignal: work around NetBSD bug
16751         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16752         * lib/string.in.h (includes): Likewise.
16753         * doc/posix-functions/strsignal.texi (strsignal): Document the
16754         bug.
16755         Reported by Nelson H. F. Beebe.
16756
16757         gnulib-tool: work with NetBSD /bin/sh
16758         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16759         (func_get_description, func_get_comment, func_get_status)
16760         (func_get_notice, func_get_applicability, func_get_filelist)
16761         (func_get_dependencies, func_get_autoconf_early_snippet)
16762         (func_get_autoconf_snippet, func_get_automake_snippet)
16763         (func_get_include_directive, func_get_link_directive)
16764         (func_get_license, func_get_maintainer, func_import): Avoid
16765         shell syntax errors from parsing syntax extensions.
16766
16767 2010-09-09  Bruno Haible  <bruno@clisp.org>
16768
16769         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16770         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16771         a reliable way to determine whether the 'alias' command works.
16772
16773 2010-09-08  Jim Meyering  <meyering@redhat.com>
16774
16775         init.sh: penalize a set-x-impaired shell; don't disqualify it
16776         * tests/init.sh: Too many shells corrupt application stderr when
16777         you set -x, so we can't afford to disqualify them, since at least
16778         on Irix-6.5, that would disqualify all bourne shells.
16779         Instead, use a two-pass approach.
16780         On the first pass, try to find a shell that meets the stricter
16781         condition that set -x does not corrupt stderr.
16782         If no shell meets the stricter condition, retest each candidate
16783         shell, but without that extra condition.  Finally, when
16784         VERBOSE=yes is requested and set -x might cause trouble, simply
16785         issue a warning and refrain from enabling debug output.
16786
16787 2010-09-08  Eric Blake  <eblake@redhat.com>
16788
16789         unsetenv: fix OpenBSD bug
16790         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16791         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16792         documentation.
16793         Reported by Jim Meyering.
16794
16795         strtod: work around IRIX 6.5 bug
16796         * lib/strtod.c (strtod): Reparse number on shorter string if
16797         exponent parse was invalid.
16798         * tests/test-strtod.c (main): Add check for "0x1p 2".
16799         Reported by Tom G. Christensen.
16800
16801         getopt: optimize previous patch
16802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16803         empty variable.  Speed up awk script.
16804         Reported by Paolo Bonzini.
16805
16806 2010-09-08  Jim Meyering  <meyering@redhat.com>
16807
16808         test.sh: disqualify shells for which set -x corrupts stderr
16809         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16810         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16811         appear in stderr output.  For example, this command:
16812             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16813         prints "P=1" on those two systems:
16814
16815 2010-09-08  Bruno Haible  <bruno@clisp.org>
16816
16817         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16818         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16819         commands, because some shells ignore redirections when there is an
16820         error in the command lookup.
16821         Reported by Eric Blake.
16822
16823 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16824
16825         * lib/regex.h: Fix a mention of `regex_compile' (should be
16826         `re_compile_pattern').
16827         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16828         (re_set_registers): Correct name of parameter in comment.
16829
16830         * doc/regex.texi: Add documentation for missing syntax flags.
16831         Remove commented-out documentation of defunct syntax option
16832         RE_NO_EMPTY_ALTS.
16833         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16834         Add documentation of re_set_registers.
16835         Document trick to re-use a pattern buffer by setting fastmap manually.
16836         Update documentation of struct re_pattern_buffer per public members.
16837         Uncomment documentation of equivalence class operators and
16838         collating symbol operators, since they are now implemented,
16839         Explain leftmost-longest matching in relation to alternatives.
16840         Tidy documentation of substring matching.
16841         Remove POSIX documentation, which is done better in
16842         glibc, and refer the reader there. Keep BSD API documentation, as
16843         that is not readily available elsewhere.
16844
16845 2010-09-07  Eric Blake  <eblake@redhat.com>
16846
16847         getopt: handle POSIXLY_CORRECT set but not exported
16848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16849         export state of POSIXLY_CORRECT, due to bash set -o posix.
16850         Reported by Dustin J. Mitchell.
16851
16852 2010-09-05  Bruno Haible  <bruno@clisp.org>
16853
16854         gnulib-tool: Highlight the changed options.
16855         * gnulib-tool (func_usage): Display the --import, --add-import,
16856         --remove-import explanations in bold font.
16857
16858 2010-09-06  Karl Berry  <karl@gnu.org>
16859
16860         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16861
16862 2010-09-05  Bruno Haible  <bruno@clisp.org>
16863
16864         uniwidth/width: Update comment.
16865         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16866         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16867
16868 2010-09-05  Bruno Haible  <bruno@clisp.org>
16869
16870         isinf, isnan: Relax license.
16871         * modules/isinf (License): Change from GPL to LGPL, with consent from
16872         Ben Pfaff.
16873         * modules/isnan (License): Likewise.
16874         Requested by Ludovic Courtès.
16875
16876 2010-09-04  Bruno Haible  <bruno@clisp.org>
16877
16878         gnulib-tool: Help migration from --import to --add-import or --update.
16879         * gnulib-tool: Emit a verbose error message when --import is used
16880         without any module name.
16881
16882 2010-09-04  Bruno Haible  <bruno@clisp.org>
16883
16884         Update doc about gnulib-tool.
16885         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16886         'gnulib-tool --update' in more detail.
16887         Reported by Eric Blake.
16888
16889 2010-09-04  Bruno Haible  <bruno@clisp.org>
16890
16891         gnulib-tool: Change --import. New options --add/remove-import.
16892         * gnulib-tool: New options --add-import, --remove-import.
16893         (func_usage): Document them.
16894         (have_associative): Define always.
16895         (func_import): In import mode, don't merge the specified settings with
16896         the cached settings. Implement remove-import mode.
16897         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16898         Explain when to use them versus --import.
16899         (Simple update): Use --add-import instead of --import.
16900         * NEWS: Mention the change.
16901
16902 2010-09-04  Bruno Haible  <bruno@clisp.org>
16903
16904         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16905         separate gnulib.mk.
16906
16907 2010-09-04  Bruno Haible  <bruno@clisp.org>
16908
16909         gnulib-tool: Don't talk about CVS any more.
16910         * gnulib-tool (func_usage, func_import): Write "version control"
16911         instead of CVS.
16912
16913 2010-09-04  Jim Meyering  <meyering@redhat.com>
16914
16915         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16916         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16917         false positives (whose names may be ill-chosen) when searching
16918         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16919         would cause a false-positive.
16920
16921         avoid coreutils "make distcheck" failure
16922         Coreutils tests with an absolute build directory name that contains
16923         a space.  Not quoting this directory name caused a failure.
16924         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16925         * tests/test-vc-list-files-cvs.sh: Likewise.
16926
16927 2010-09-04  Bruno Haible  <bruno@clisp.org>
16928
16929         gnulib-tool: Avoid error when run in a package without Makefile.am.
16930         * gnulib-tool: When collecting the m4dirs in a package that does not
16931         have a Makefile.am, eliminate those directories that contain no
16932         gnulib-cache.m4. Fix expression that counts these directories.
16933
16934 2010-09-04  Bruno Haible  <bruno@clisp.org>
16935
16936         update-copyright test: Improve output when perl is missing or too old.
16937         * tests/test-update-copyright.sh: Move test of Perl version down after
16938         the test whether Perl exists. Provide an explanation relating Perl's
16939         error message to Automake's SKIP: message.
16940
16941 2010-09-04  Bruno Haible  <bruno@clisp.org>
16942
16943         Don't augment PATH in TESTS_ENVIRONMENT.
16944         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16945         set abs_aux_dir instead of augmenting PATH.
16946         * modules/vc-list-files-tests (Makefile.am): Likewise.
16947         * tests/test-update-copyright.sh: Augment PATH here.
16948         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16949         path_prepend_.
16950         * tests/test-vc-list-files-git.sh: Likewise.
16951
16952 2010-09-04  Jim Meyering  <meyering@redhat.com>
16953
16954         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16955         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16956
16957 2010-09-04  Bruno Haible  <bruno@clisp.org>
16958
16959         strdup: Fix compilation error in C++ mode.
16960         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16961         the macro.
16962
16963 2010-09-04  Bruno Haible  <bruno@clisp.org>
16964
16965         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16966         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16967         macro into a function.
16968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16969
16970 2010-09-04  Bruno Haible  <bruno@clisp.org>
16971
16972         Set PATH_SEPARATOR the same way autoconf does.
16973         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16974         the value of PATH_SEPARATOR the same way autoconf-generated configure
16975         scripts do.
16976         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16977         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16978
16979 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16980
16981         Set PATH_SEPARATOR the same way autoconf does.
16982         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16983         the same way autoconf-generated configure scripts do.
16984         * posix-modules: Likewise.
16985
16986 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16987
16988         hash: fix safe_hasher const typo
16989         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16990         const; otherwise, there is a type error later.
16991
16992 2010-09-02  Jim Meyering  <meyering@redhat.com>
16993
16994         test-update-copyright.sh: require perl 5.8.0
16995         * tests/test-update-copyright.sh: Require 5.8.0,
16996         which Tom G. Christensen has confirmed is adequate,
16997         while 5.6.1 is not.
16998
16999 2010-09-02  Eric Blake  <eblake@redhat.com>
17000
17001         tests: init.sh improvements for re-exec'ing with zsh
17002         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17003         -vx through shell re-exec.
17004         Reported by Tom G. Christensen.
17005
17006         wctype: fix typo in previous commit
17007         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17008         Reported by Ludovic Courtès.
17009
17010 2010-09-02  Jim Meyering  <meyering@redhat.com>
17011
17012         test-update-copyright.sh: skip test if Perl is too old
17013         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17014         Reported by Tom G. Christensen.
17015
17016 2010-09-02  Bruno Haible  <bruno@clisp.org>
17017
17018         wctype: Avoid compilation error on IRIX 6.5.30.
17019         * lib/wctype.in.h (iswblank): Declare with a replacement if
17020         REPLACE_ISWBLANK is set.
17021         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17022         declared. Set REPLACE_ISWBLANK.
17023         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17024         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17025         * doc/posix-headers/wctype.texi: Likewise.
17026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17027
17028 2010-09-01  Bruno Haible  <bruno@clisp.org>
17029
17030         New module 'socketlib'.
17031         * modules/socketlib: New file.
17032         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17033         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17034         * modules/sockets (Depends-on): Add socketlib.
17035         Suggested by Sam Steingold <sds@gnu.org>.
17036
17037 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17038
17039         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17040
17041         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17042         when one needs search access to a directory but not read access.
17043         On systems where it is available, it works in some cases where
17044         O_RDONLY does not, namely on directories that are searchable but
17045         not readable, and which need only to be searchable.  If O_SEARCH
17046         is not available, fall back to the traditional method of using
17047         O_RDONLY.
17048
17049         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17050         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17051         when opening a directory that needs only to be searchable.
17052         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17053         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17054         * lib/openat-proc.c (openat_proc_name): Likewise.
17055         * lib/openat.c (openat_needs_fchdir): Likewise.
17056         * lib/save-cwd.c (save_cwd): Likewise.
17057         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17058
17059 2010-08-28  Bruno Haible  <bruno@clisp.org>
17060
17061         New module 'host-cpu-c-abi'.
17062         * modules/host-cpu-c-abi: New file.
17063         * m4/host-cpu-c-abi.m4: New file, based on part of
17064         clisp/src/m4/general.m4.
17065         Requested by Sam Steingold <sds@gnu.org>.
17066
17067 2010-08-31  Eric Blake  <eblake@redhat.com>
17068         and Jim Meyering  <meyering@redhat.com>
17069
17070         hash: factor, and guard against misbehaving hasher function
17071         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17072         of table->hasher's return value.  Also protect against a hash value
17073         so large that adding it to table->bucket results in a NULL pointer.
17074         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17075         Use it in place of open-coded check-and-abort.
17076
17077 2010-08-30  Bruno Haible  <bruno@clisp.org>
17078
17079         hash: silence spurious clang warning
17080         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17081         Reported by Eric Blake.
17082
17083 2010-08-30  Eric Blake  <eblake@redhat.com>
17084
17085         strstr, memmem, strcasestr: avoid leaked shell message
17086         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17087         FreeBSD.
17088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17089         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17090
17091         tests: silence clang warning
17092         * tests/test-malloca.c (do_allocation): Avoid dead store.
17093
17094 2010-08-29  Bruno Haible  <bruno@clisp.org>
17095
17096         gettext: Fix recent mistake.
17097         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17098
17099 2010-08-29  Bruno Haible  <bruno@clisp.org>
17100
17101         selinux-h: Offer a --without-selinux option.
17102         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17103         --without-selinux was specified, skip all tests and define
17104         HAVE_SELINUX_SELINUX_H to 0.
17105         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17106         set LIB_SELINUX to empty.
17107         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17108         gl_LIBSELINUX. If --without-selinux was specified, replace
17109         selinux/context.h.
17110         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17111
17112 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17113             Bruno Haible  <bruno@clisp.org>
17114
17115         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17116         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17117         of HAVE_REALLOC.
17118         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17119         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17120         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17121         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17122
17123 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17124             Bruno Haible  <bruno@clisp.org>
17125
17126         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17127         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17128         HAVE_CALLOC.
17129         * lib/xmalloc.c: Update accordingly.
17130         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17131         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17132         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17133
17134 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17135             Bruno Haible  <bruno@clisp.org>
17136
17137         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17138         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17139         HAVE_MALLOC.
17140         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17141         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17142         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17143
17144 2010-08-29  Bruno Haible  <bruno@clisp.org>
17145
17146         Update modules list.
17147         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17148         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17149         (String handling <string.h>): Add astrxfrm.
17150         (File system functions): Add readlinkat.
17151
17152 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17153
17154         Tests for module 'realloc-gnu'.
17155         * modules/realloc-gnu-tests: New file.
17156         * tests/test-realloc-gnu.c: New file.
17157
17158         Tests for module 'calloc-gnu'.
17159         * modules/calloc-gnu-tests: New file.
17160         * tests/test-calloc-gnu.c: New file.
17161
17162         Tests for module 'malloc-gnu'.
17163         * modules/malloc-gnu-tests: New file.
17164         * tests/test-malloc-gnu.c: New file.
17165
17166 2010-08-28  Bruno Haible  <bruno@clisp.org>
17167
17168         Rename module 'realloc' -> 'realloc-gnu'.
17169         * modules/realloc-gnu: New file, copied from modules/realloc.
17170         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17171         obsolete.
17172         * modules/mgetgroups (Depends-on): Update.
17173         * doc/posix-functions/realloc.texi: Update.
17174         * NEWS: Mention the change.
17175
17176         Rename module 'calloc' -> 'calloc-gnu'.
17177         * modules/calloc-gnu: New file, copied from modules/calloc.
17178         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17179         obsolete.
17180         * doc/posix-functions/calloc.texi: Update.
17181         * NEWS: Mention the change.
17182
17183         Rename module 'malloc' -> 'malloc-gnu'.
17184         * modules/malloc-gnu: New file, copied from modules/malloc.
17185         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17186         obsolete.
17187         * modules/argp (Depends-on): Update.
17188         * modules/regex (Depends-on): Update.
17189         * doc/posix-functions/malloc.texi: Update.
17190         * NEWS: Mention the change.
17191
17192 2010-08-28  Eric Blake  <eblake@redhat.com>
17193
17194         pread, pwrite: add missing dependency
17195         * modules/pread (Depends-on): Add extensions.
17196         * modules/pwrite (Depends-on): Likewise.
17197
17198 2010-08-28  Bruno Haible  <bruno@clisp.org>
17199
17200         unistr/u*-strchr: Fix tests dependencies.
17201         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17202         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17203         Reported by Ian Beckwith <ianb@erislabs.net>.
17204
17205 2010-08-28  Bruno Haible  <bruno@clisp.org>
17206
17207         read-file: Don't occupy too much unused memory.
17208         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17209
17210 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17211             Eric Blake  <eblake@redhat.com>
17212             Bruno Haible  <bruno@clisp.org>
17213
17214         read-file: Avoid memory reallocations with regular files.
17215         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17216         (fread_file): With regular files, use the remaining length as the
17217         initial buffer size.  Check against overflow.
17218         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17219         sys_stat.
17220
17221 2010-08-28  Bruno Haible  <bruno@clisp.org>
17222
17223         ftello: Relax license.
17224         * modules/ftello (License): Relax to LGPLv2+.
17225         Reported by Eric Blake.
17226
17227 2010-08-28  Bruno Haible  <bruno@clisp.org>
17228
17229         Avoid relocwrapper link errors due to gnulib replacement functions.
17230         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17231         function.
17232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17233
17234 2010-08-28  Bruno Haible  <bruno@clisp.org>
17235
17236         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17237         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17238         defined.
17239         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17240         Suggested by Eric Blake.
17241
17242 2010-08-28  Bruno Haible  <bruno@clisp.org>
17243
17244         sys_socket, netdb: Ensure socklen_t gets defined.
17245         * modules/sys_socket (Depends-on): Add socklen.
17246         * modules/netdb (Depends-on): Likewise.
17247         * modules/getaddrinfo (Depends-on): Remove socklen.
17248         * modules/getsockopt (Depends-on): Likewise.
17249         * modules/setsockopt (Depends-on): Likewise.
17250         * tests/test-sys_socket.c: Check that socklen_t is defined.
17251         * tests/test-netdb.c: Likewise.
17252         * m4/socklen.m4: Update comments.
17253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17254
17255 2010-08-27  Eric Blake  <eblake@redhat.com>
17256
17257         login_tty: add missing dependency
17258         * modules/login_tty (Depends-on): Add pty.
17259
17260 2010-08-26  Eric Blake  <eblake@redhat.com>
17261
17262         lib-symbol-versions: fix m4 quoting
17263         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17264         format for AC_LINK_IFELSE.
17265
17266         glob: fix compile test
17267         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17268
17269         btowc: fix missing file
17270         * modules/btowc (Files): Also ship locale-fr.m4.
17271
17272         lseek: fix link test
17273         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17274         AC_LINK_IFELSE.
17275
17276         include_next: silence autoconf 2.68 warning
17277         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17278         AC_COMPILE_IFELSE as special.
17279         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17280         autoconf < 2.68.
17281
17282         acl: fix compilation test
17283         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17284         AC_COMPILE_IFELSE.
17285
17286 2010-08-26  Bruno Haible  <bruno@clisp.org>
17287
17288         Modernize AC_TRY_RUN invocations.
17289         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17291         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17292         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17293         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17294         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17297         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17298         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17300         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17301         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17302         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17304         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17305         gl_MBRLEN_NUL_RETVAL): Likewise.
17306         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17307         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17308         Likewise.
17309         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17310         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17311         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17312         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17313         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17314         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17315         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17316         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17317         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17318         Likewise.
17319         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17320         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17322         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17323         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17324         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17325         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17326         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17327         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17329
17330 2010-08-26  Bruno Haible  <bruno@clisp.org>
17331
17332         Modernize AC_TRY_LINK invocations.
17333         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17334         AC_TRY_LINK.
17335         * m4/argp.m4 (gl_ARGP): Likewise.
17336         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17337         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17338         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17339         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17340         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17341         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17342         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17343         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17344         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17345         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17346         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17347         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17348         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17349         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17350         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17351         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17352         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17353         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17354         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17355         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17356         Likewise.
17357         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17358         Likewise.
17359         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17360         Likewise.
17361         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17364         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17365         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17366         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17367         * m4/servent.m4 (gl_SERVENT): Likewise.
17368         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17369         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17370         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17371         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17372         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17373         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17374         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17375         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17376         * modules/tsearch-tests (configure.ac): Likewise.
17377
17378 2010-08-26  Bruno Haible  <bruno@clisp.org>
17379
17380         Modernize AC_TRY_COMPILE invocations.
17381         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17382         AC_TRY_COMPILE.
17383         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17384         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17385         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17386         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17387         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17388         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17389         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17390         * m4/lock.m4 (gl_LOCK): Likewise.
17391         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17392         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17393         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17395         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17396         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17397         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17399         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17400         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17401         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17402         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17403         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17404         extraneous semicolon.
17405
17406 2010-08-26  Jim Meyering  <meyering@redhat.com>
17407
17408         stat-time: relax license LGPL
17409         * modules/stat-time (License): Change from GPL to LGPL,
17410         with consent from all contributors, for use in libguile.
17411         Requested by Ludovic Courtès.
17412
17413 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17414
17415         poll: return immediately on POLLHUP.
17416         * lib/poll.c (poll): Always set timeout before wait_timeout is
17417         computed.
17418
17419 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17420
17421         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17422         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17423         rmdir ("dir/.//"), unlinkat.
17424
17425 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17426
17427         stdbool: avoid spurious failure with modern xlc
17428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17429
17430 2010-08-24  Bruno Haible  <bruno@clisp.org>
17431
17432         getloadavg: simplify code
17433         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17434         gl_have_func. Update comments.
17435
17436 2010-08-24  Eric Blake  <eblake@redhat.com>
17437
17438         getloadavg: don't define SVR4 on cygwin
17439         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17440         only define SVR4 when -lkvm is required.
17441         Reported by Yaakov Selkowitz.
17442
17443 2010-08-24  Bruno Haible  <bruno@clisp.org>
17444
17445         priv-set: fix comment
17446         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17447
17448 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17449
17450         priv-set: fix comments
17451         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17452         to match code, as suggested by David Bartley in:
17453         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17454
17455 2010-08-23  Eric Blake  <eblake@redhat.com>
17456
17457         stdbool: avoid rejecting clang
17458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17459         * tests/test-stdbool.c: Enable more tests if using the system
17460         <stdbool.h> instead of the gnulib replacement.
17461         (main): Move xlc bug test to a runtime test for all compilers.
17462         Reported by Anders Kaseorg.
17463
17464         argz: fix shell quoting issue
17465         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17466         Reported by Charles Wilson.
17467
17468 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17469             Erik Faye-Lund <kusmabite@gmail.com>
17470
17471         poll, select: handle ERROR_BROKEN_PIPE.
17472         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17473         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17474         * lib/select.c (win32_compute_revents): Do not mark a pipe
17475         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17476
17477 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17478
17479         fts: allow compilation with C++
17480         * lib/fts_.h: Specify extern "C" linkage with C++.
17481
17482 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17483
17484         Fix gnulib-tool sed script de-commentation for AIX sed.
17485         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17486         sed.
17487
17488 2010-08-17  Eric Blake  <eblake@redhat.com>
17489
17490         test-stddef: test for (some) offsetof bugs
17491         * tests/test-stddef.c: Enhance test to ensure correct type of
17492         offsetof.
17493         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17494         that we are not fixing at this time.
17495
17496 2010-08-15  Bruno Haible  <bruno@clisp.org>
17497
17498         stpncpy: Allow stpncpy to be defined as a macro.
17499         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17500         if it's already correctly declared.
17501         * lib/string.in.h (stpncpy): Undefine before redefining.
17502         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17503
17504 2010-08-14  Bruno Haible  <bruno@clisp.org>
17505
17506         Rename module 'memxfrm' to 'amemxfrm'.
17507         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17508         (amemxfrm): Renamed from memxfrm.
17509         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17510         (amemxfrm): Renamed from memxfrm.
17511         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17512         * NEWS: Mention the change.
17513         * MODULES.html.sh (String handling <string.h>): Update.
17514         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17515         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17516         * lib/unicase/u16-casexfrm.c: Likewise.
17517         * lib/unicase/u32-casexfrm.c: Likewise.
17518         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17519         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17520         * lib/uninorm/u16-normxfrm.c: Likewise.
17521         * lib/uninorm/u32-normxfrm.c: Likewise.
17522         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17523         memxfrm.
17524         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17525         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17526         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17527         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17528         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17529         Suggested by Paul Eggert.
17530
17531 2010-08-14  Bruno Haible  <bruno@clisp.org>
17532
17533         Tests for module 'astrxfrm'.
17534         * modules/astrxfrm-tests: New file.
17535         * tests/test-astrxfrm.c: New file.
17536
17537         New module 'astrxfrm'.
17538         * lib/astrxfrm.h: New file.
17539         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17540         * modules/astrxfrm: New file.
17541
17542 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17543
17544         regex: Tweak doc.
17545         * doc/regex.texi (Overview): Don't mention regex.c.
17546         (GNU Regular Expression Compiling): Likewise.
17547         (Match-end-of-line Operator): Mention 'not_eol'.
17548
17549 2010-08-14  Brian Gough  <bjg@gnu.org>
17550             Bruno Haible  <bruno@clisp.org>
17551
17552         git-merge-changelog: add doc relating to use with bzr and hg.
17553         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17554
17555 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17556
17557         pthread: fix pthread.h creation for srcdir != builddir
17558         * modules/pthread (Makefile.am): Fix the rule to work also in a
17559         non-srcdir build.
17560
17561 2010-08-13  Karl Berry  <karl@gnu.org>
17562
17563         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17564         * doc/posix-*/*: force line break before @url of POSIX
17565         specifications.
17566         Suggested by Werner Lemberg.
17567
17568 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17569
17570         strtod: fix const diagnostic
17571         * lib/strtod.c (strtod): Don't assign const char * to char *,
17572         as this elicits a warning from GCC when warnings are enabled.
17573
17574 2010-08-10  Pádraig Brady <P@draigbrady.com>
17575         and Eric Blake  <eblake@redhat.com>
17576
17577         copy-acl: ignore ENOTSUP on HP-UX
17578         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17579         so that it is available for HP-UX.
17580         * lib/copy-acl.c (qcopy_acl): Use it.
17581         Reported by Patrick M. Callahan.
17582
17583 2010-08-10  Eric Blake  <eblake@redhat.com>
17584
17585         open, chown: relax license
17586         * modules/open (License): Change to LGPLv2+, with consent by all
17587         authors, for use in augeas.
17588         * modules/chown (License): Likewise.
17589         * modules/lchown (Likewise): Likewise.
17590         Requested by Adam Stokes.
17591
17592 2010-08-09  Karl Berry  <karl@gnu.org>
17593
17594         * build-aux/ar-lib: new file, import from Automake.
17595         * config/srclist.txt: autocheck for updates.
17596
17597 2010-08-09  Eric Blake  <eblake@redhat.com>
17598
17599         readlinkat: adjust client modules
17600         * modules/areadlinkat (Depends-on): Use readlinkat, not
17601         symlinkat.
17602         * modules/areadlinkat-with-size (Depends-on): Likewise.
17603
17604         mknod: be more vocal about danger of running tests as root
17605         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17606         root, since that is just asking for problems.
17607         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17608
17609         readlinkat: split into its own module
17610         * modules/symlinkat: Split readlinkat...
17611         * modules/readlinkat: ...into separate module.
17612         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17613         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17614         * lib/symlinkat.c (readlinkat): Move...
17615         * lib/readlinkat.c: ...into new file.
17616         * modules/symlinkat-tests: Split readlinkat test...
17617         * modules/readlinkat-tests: ...into separate module.
17618         * tests/test-symlinkat.c: Split...
17619         * tests/test-readlinkat.c: ...into new file.
17620         * NEWS: Document the split.
17621         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17622         * lib/unistd.in.h (readlinkat): Likewise.
17623         Suggested by Bruno Haible.
17624
17625 2010-08-08  Bruno Haible  <bruno@clisp.org>
17626
17627         memxfrm: Speed up.
17628         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17629         that usually only one call to strxfrm is necessary for each string
17630         part.
17631         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17632
17633 2010-08-07  Karl Berry  <karl@gnu.org>
17634
17635         * doc/posix-headers/limits.texi,
17636         * doc/posix-functions/malloc.texi,
17637         * doc/posix-functions/strsignal.texi: missing @item.
17638         * doc/ld-version-script.texi: spurious leading i.
17639         * doc/regex.texi (Interval Operators): no commas inside @var.
17640
17641 2010-08-01  Bruno Haible  <bruno@clisp.org>
17642
17643         Integrate the regex documentation.
17644         * doc/gnulib.texi: Define 'cn' index.
17645         (Regular expressions): New a chapter that includes regex.texi and
17646         regexprops-generic.texi.
17647         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17648         syntax.
17649
17650         Whitespace cleanup.
17651         * doc/regex.texi: Remove trailing spaces.
17652
17653         Add regex documentation.
17654         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17655         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17656         Written by Kathy A. Hargreaves and Karl Berry.
17657
17658 2010-08-01  Bruno Haible  <bruno@clisp.org>
17659
17660         link: Update documentation.
17661         * doc/posix-functions/link.texi: Update regarding Solaris.
17662
17663 2010-07-31  Bruno Haible  <bruno@clisp.org>
17664
17665         Update modules list.
17666         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17667         (String handling <string.h>): Add memcmp2, memxfrm.
17668         (Container data structures): Add xlist, xsublist, xoset.
17669         (Core language properties): Add alignof, unused-parameter.
17670         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17671         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17672         (Unibyte characters <ctype.h>): New section.
17673         (String handling <string.h>): New section.
17674         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17675         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17676         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17677         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17678         tan, tanh, tanl, y0, y1, yn.
17679         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17680         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17681         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17682         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17683         unlockpt, vdprintf, vdprintf-posix.
17684         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17685         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17686         xconcat-filename.
17687         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17688         getdtablesize, pipe2, pipe2-safer.
17689         (Security): New section.
17690         (Networking functions): Add accept4.
17691         (Signal handling): Add sigpipe.
17692         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17693         mbmemcasecoll.
17694         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17695         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17696         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17697         pipe-filter-ii.
17698         (Misc): Add argp-version-etc, login_tty, parse-duration.
17699
17700 2010-07-31  Bruno Haible  <bruno@clisp.org>
17701
17702         Improve doc in MODULES.html.
17703         * modules/linkat (Description): Add the word "function".
17704         * modules/mkfifo (Description): Likewise.
17705         * modules/mknod (Description): Likewise.
17706         * modules/remove (Description): Likewise.
17707         * modules/renameat (Description): Likewise.
17708         * modules/stat (Description): Likewise.
17709         * modules/symlink (Description): Likewise.
17710         * modules/unlink (Description): Likewise.
17711
17712 2010-07-31  Bruno Haible  <bruno@clisp.org>
17713
17714         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17715         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17716         option --enable/disable-c++ instead of --enable/disable-cxx.
17717         * NEWS: Mention the change.
17718
17719 2010-07-31  Bruno Haible  <bruno@clisp.org>
17720
17721         readlink, areadlink: Relax test a bit.
17722         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17723         alternative to ENOTDIR.
17724         * tests/test-areadlink.h (test_areadlink): Likewise.
17725         Reported by Rainer Tammer.
17726
17727 2010-07-31  Bruno Haible  <bruno@clisp.org>
17728
17729         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17730         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17731         character, perform the search using U_STRCHR.
17732         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17733         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17734         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17735         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17736         Suggested by Paolo Bonzini.
17737
17738 2010-07-31  Bruno Haible  <bruno@clisp.org>
17739
17740         unistr/u*-strstr: Fix dependencies.
17741         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17742         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17743         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17744
17745 2010-07-31  Bruno Haible  <bruno@clisp.org>
17746
17747         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17748         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17749         the beginning of the loop.
17750         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17751         cases in 'switch' statement.
17752
17753         unistr/u8-strchr: Fix several bugs.
17754         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17755         the string. When not found, return NULL, not a pointer near the end.
17756
17757         More tests for unistr/u8-strchr.
17758         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17759         that the function does not read past the first occurrence of the byte
17760         being searched.
17761         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17762         * tests/unistr/test-u16-strchr.c (main): New function.
17763         * tests/unistr/test-u32-strchr.c (main): New function.
17764
17765 2010-07-31  Bruno Haible  <bruno@clisp.org>
17766
17767         posix-modules: Ignore backup files of documentation files.
17768         * posix-modules: grep only through files named *.texi.
17769
17770 2010-07-31  Bruno Haible  <bruno@clisp.org>
17771
17772         symlinkat: Fix documentation.
17773         * doc/posix-functions/readlinkat.texi: Fix module name.
17774
17775 2010-07-31  Bruno Haible  <bruno@clisp.org>
17776
17777         fchownat: Replace also when chown has the trailing slash bug.
17778         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17779         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17780         introduced on 2010-04-10.
17781         Reported by Rainer Tammer.
17782
17783 2010-07-31  Bruno Haible  <bruno@clisp.org>
17784
17785         linkat: Work around AIX 7.1 bug.
17786         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17787         whether linkat handles trailing slash correctly. If not, replace linkat
17788         and define LINKAT_TRAILING_SLASH_BUG.
17789         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17790         check whether (fd1,file1) points to a directory if file1 or file2 ends
17791         in a slash. Code taken from lib/link.c.
17792         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17793         Reported by Rainer Tammer.
17794
17795 2010-07-31  Bruno Haible  <bruno@clisp.org>
17796
17797         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17798         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17799         This disables an xlc optimization that was causing wrong test results.
17800         Reported by Rainer Tammer.
17801
17802 2010-07-31  Bruno Haible  <bruno@clisp.org>
17803
17804         iconv: Work around AIX 6.1..7.1 bug.
17805         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17806         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17807         cross-compiling, guess no on all versions of AIX.
17808         Reported by Rainer Tammer.
17809
17810 2010-07-31  Bruno Haible  <bruno@clisp.org>
17811
17812         readlink: Relax test a bit.
17813         * tests/test-readlink.h (test_readlink): Allow different errno value
17814         when readlink is called with a file name that ends in / and refers to
17815         a file.
17816         Suggested by Eric Blake.
17817         Reported by Rainer Tammer.
17818
17819 2010-07-31  Bruno Haible  <bruno@clisp.org>
17820
17821         copysign: Does not require -lm on glibc systems.
17822         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17823         gl_COMMON_DOUBLE_MATHFUNC.
17824         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17825
17826 2010-07-31  Bruno Haible  <bruno@clisp.org>
17827
17828         duplocale: Work around AIX 7.1 bug.
17829         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17830         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17831         * lib/duplocale.c (rpl_duplocale): Update comment.
17832         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17833         Reported by Rainer Tammer.
17834
17835 2010-07-30  Bruno Haible  <bruno@clisp.org>
17836
17837         dirfd: Avoid link error on AIX 7.1.
17838         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17839         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17840         exist, set REPLACE_DIRFD.
17841         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17842         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17843         * doc/posix-functions/dirfd.texi: Update.
17844         Reported by Rainer Tammer.
17845
17846 2010-07-30  Eric Blake  <eblake@redhat.com>
17847
17848         strtod: next round of AIX fixes
17849         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17850         exponent.
17851         * tests/test-strtod.c (main): Enhance tests.
17852         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17853         Reported by Rainer Tammer.
17854
17855         futimens: fix configure check
17856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17857         Reported by Bruno Haible.
17858
17859 2010-07-30  Bruno Haible  <bruno@clisp.org>
17860
17861         getline: Update regarding AIX.
17862         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17863         Reported by Rainer Tammer.
17864
17865 2010-07-30  Bruno Haible  <bruno@clisp.org>
17866
17867         wcwidth: Drop replacement on AIX 7.
17868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17869         AIX 7.
17870         Reported by Rainer Tammer.
17871
17872 2010-07-30  Bruno Haible  <bruno@clisp.org>
17873
17874         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17875         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17876         a 'char *'.
17877         Reported by Rainer Tammer.
17878
17879 2010-07-30  Bruno Haible  <bruno@clisp.org>
17880
17881         unlink: Update regarding AIX.
17882         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17883         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17884         Reported by Rainer Tammer.
17885
17886 2010-07-30  Bruno Haible  <bruno@clisp.org>
17887
17888         symlink: Update regarding AIX.
17889         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17890         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17891         Reported by Rainer Tammer.
17892
17893 2010-07-30  Bruno Haible  <bruno@clisp.org>
17894
17895         strndup: Update regarding AIX.
17896         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17897         AIX 7.
17898         Reported by Rainer Tammer.
17899
17900 2010-07-30  Bruno Haible  <bruno@clisp.org>
17901
17902         stat: Update regarding AIX.
17903         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17904         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17905         Reported by Rainer Tammer.
17906
17907 2010-07-30  Bruno Haible  <bruno@clisp.org>
17908
17909         truncl: Fix autoconf test.
17910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17911         whether truncl works.
17912         Reported by Rainer Tammer.
17913
17914 2010-07-30  Bruno Haible  <bruno@clisp.org>
17915
17916         round: Update regarding AIX.
17917         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17918         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17919         Reported by Rainer Tammer.
17920
17921 2010-07-30  Bruno Haible  <bruno@clisp.org>
17922
17923         rename: Update regarding AIX.
17924         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17925         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17926         Reported by Rainer Tammer.
17927
17928 2010-07-30  Bruno Haible  <bruno@clisp.org>
17929
17930         printf.m4: Update regarding AIX.
17931         * m4/printf.m4: Update comments regarding AIX.
17932         Reported by Rainer Tammer.
17933
17934 2010-07-30  Bruno Haible  <bruno@clisp.org>
17935
17936         iconv: Update regarding AIX.
17937         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17938         AIX 7.
17939         Reported by Rainer Tammer.
17940
17941 2010-07-30  Bruno Haible  <bruno@clisp.org>
17942
17943         getopt: Update regarding AIX.
17944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17945         no on AIX.
17946         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17947         Reported by Rainer Tammer.
17948
17949 2010-07-30  Bruno Haible  <bruno@clisp.org>
17950
17951         ldexpl; Update regarding AIX.
17952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17953         on AIX 7.
17954         Reported by Rainer Tammer.
17955
17956 2010-07-30  Bruno Haible  <bruno@clisp.org>
17957
17958         frexpl: Update regarding AIX.
17959         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17960         on AIX 7.
17961         Reported by Rainer Tammer.
17962
17963 2010-07-30  Bruno Haible  <bruno@clisp.org>
17964
17965         open, fopen: Update regarding AIX.
17966         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17967         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17968         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17969         * doc/posix-functions/fopen.texi: Likewise.
17970         Reported by Rainer Tammer.
17971
17972 2010-07-30  Bruno Haible  <bruno@clisp.org>
17973
17974         chown: Update doc regarding AIX.
17975         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17976         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17977         Reported by Rainer Tammer.
17978
17979 2010-07-30  Eric Blake  <eblake@redhat.com>
17980
17981         strtod: fix bug in replacement function on AIX
17982         * lib/strtod.c (strtod): Special case broken "0x" parse in
17983         underlying strtod.
17984         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17985         * doc/posix-functions/strtod.texi (strtod): Likewise.
17986         Reported by Rainer Tammer.
17987
17988 2010-07-30  Bruno Haible  <bruno@clisp.org>
17989
17990         mbrlen: Fix cross-compilation guess for AIX.
17991         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17992         guess. Leftover from 2008-12-22.
17993
17994 2010-07-30  Bruno Haible  <bruno@clisp.org>
17995
17996         mbrtowc: Fix cross-compilation guess for AIX.
17997         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17998         guess. Leftover from 2008-12-21.
17999
18000 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18001
18002         init.sh: work around trap limitation of some shells
18003         * tests/init.sh (setup_): Move exit trap outside of shell function.
18004
18005 2010-07-29  Eric Blake  <eblake@redhat.com>
18006
18007         strtod: aid debugging
18008         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18009         understanding why strtod is rejected.
18010
18011 2010-07-28  Bruno Haible  <bruno@clisp.org>
18012
18013         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18014         * lib/unistr/u8-chr.c: Include <string.h>.
18015         * tests/unistr/test-u8-chr.c: Likewise.
18016         * tests/unistr/test-u16-chr.c: Likewise.
18017         * tests/unistr/test-u32-chr.c: Likewise.
18018         * tests/unistr/test-u8-strchr.c: Likewise.
18019         * tests/unistr/test-u16-strchr.c: Likewise.
18020         * tests/unistr/test-u32-strchr.c: Likewise.
18021         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18022         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18023         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18024         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18025
18026 2010-07-28  Bruno Haible  <bruno@clisp.org>
18027
18028         Use spaces for indentation, not tabs.
18029         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18030
18031 2010-07-27  Bruno Haible  <bruno@clisp.org>
18032
18033         mbspcasecmp: Fix function specification.
18034         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18035         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18036         Reported by Eric Blake <eblake@redhat.com>.
18037
18038 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18039
18040         timespec: use cast and not conditional, as truncation isn't possible
18041         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18042         instead of a conditional.  Comment about the situation in more detail.
18043         This undoes most of the 2009-10-29 patch.
18044
18045 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18046
18047         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18048         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18049         * lib/unistr/u8-strchr.c: Likewise.
18050         * modules/unistr/u8-chr: Depend on memchr.
18051
18052         unistr/u*-strchr: add tests
18053         * modules/unistr/u8-strchr-tests: New file.
18054         * modules/unistr/u16-strchr-tests: New file.
18055         * modules/unistr/u32-strchr-tests: New file.
18056         * tests/unistr/test-strchr.h: New file.
18057         * tests/unistr/test-u8-strchr.c: New file.
18058         * tests/unistr/test-u16-strchr.c: New file.
18059         * tests/unistr/test-u32-strchr.c: New file.
18060
18061         unistr/u*-chr: test multibyte sequences more
18062         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18063         test vector.
18064         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18065         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18066         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18067
18068         unistr/u*-chr: test multibyte sequences
18069         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18070
18071         unistr/u*-chr: prepare for multibyte tests
18072         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18073         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18074         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18075         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18076         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18077         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18078
18079 2010-07-18  Bruno Haible  <bruno@clisp.org>
18080
18081         unistr/u8-strchr: Optimize non-ASCII argument case.
18082         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18083         because the first byte often matches anyway.
18084         Reported by Pádraig Brady <P@draigbrady.com>.
18085
18086 2010-07-15  Karl Berry  <karl@gnu.org>
18087
18088         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18089
18090 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18091
18092         getcwd: on Solaris, work better if ancestors are inaccessible
18093         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18094         buffer and size, try again with a large buffer.  This works better
18095         on Solaris, since its getcwd succeeds even if the path to the root
18096         is inaccessible, and this is helpful in common cases such as .zfs
18097         hidden directories.  Problem reported by J Chapman Flack in
18098         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18099         Use system getcwd if it's declared, not merely if it's partly
18100         working; use the partly-working test only to avoid needless effort
18101         if the system getcwd fails.
18102         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18103         comment that was already obsolete and is now even more obsolete.
18104         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18105         now might call strdup.
18106
18107 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18108
18109         pthread: Add enough so that coreutils/src/sort.c compiles.
18110         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18111         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18112         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18113         Include <sys/types.h>, in case it defines pthread_t.
18114         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18115         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18116         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18117         (pthread_rwlockattr_t, pthread_spinlock_t):
18118         New typedefs, if HAVE_PTHREAD_T is not defined.
18119         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18120         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18121         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18122         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18123         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18124         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18125         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18126         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18127         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18128         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18129         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18130         New macros.
18131         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18132         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18133         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18134         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18135         (pthread_spin_unlock): New dummy functions.
18136         (pthread_create): Return EAGAIN; don't set errno.
18137         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18138         require AC_C_INLINE.
18139         * modules/pthread (Depends-on): Add sched, time.
18140         (pthread.h): Use AM_V_GEN.
18141
18142 2010-07-13  Bruno Haible  <bruno@clisp.org>
18143
18144         striconveh: Don't malloc memory if the result buffer is sufficient.
18145         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18146         buffer if its size is sufficient.
18147         Reported by Ludovic Courtès <ludo@gnu.org>.
18148
18149 2010-07-13  Bruno Haible  <bruno@clisp.org>
18150
18151         strtod: Add safety check.
18152         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18153
18154 2010-07-12  Bruno Haible  <bruno@clisp.org>
18155
18156         Unify tests that set gl_cv_func_ldexpl_no_libm.
18157         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18158         gl_FUNC_LDEXPL.
18159         (gl_FUNC_LDEXPL): Invoke it.
18160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18161
18162 2010-07-12  Bruno Haible  <bruno@clisp.org>
18163
18164         Unify tests that set gl_cv_func_ldexp_no_libm.
18165         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18166         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18167         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18168         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18169         * modules/strtod (Files): Add m4/ldexp.m4.
18170
18171 2010-07-12  Bruno Haible  <bruno@clisp.org>
18172
18173         Unify tests that set gl_cv_func_frexpl_no_libm.
18174         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18175         gl_FUNC_FREXPL_NO_LIBM.
18176         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18177         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18178
18179 2010-07-12  Bruno Haible  <bruno@clisp.org>
18180
18181         Unify tests that set gl_cv_func_frexp_no_libm.
18182         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18183         gl_FUNC_FREXP_NO_LIBM.
18184         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18185         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18186
18187 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18188
18189         memcoll: clarify sizes versus lengths, document better, and tweak perf
18190         * lib/memcoll.c (strcoll_loop, memcoll0):
18191         Improve quality of descriptive comments.  Name variables
18192         consistently as to whether they are lengths (which do not include
18193         terminating null) versus sizes (which do).
18194         * lib/xmemcoll.c (xmemcoll0): Likewise.
18195         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18196         returned when s1size == 0; this is easier to compile and saves
18197         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18198
18199 2010-07-12  Bruno Haible  <bruno@clisp.org>
18200
18201         Tests for module '_Exit'.
18202         * modules/_Exit-tests: New file.
18203         * tests/test-_Exit.sh: New file.
18204         * tests/test-_Exit.c: New file.
18205
18206         New module '_Exit'.
18207         * lib/stdlib.in.h (__attribute__): New macro.
18208         (_Exit): New declaration.
18209         * lib/_Exit.c: New file.
18210         * m4/_Exit.m4: New file.
18211         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18212         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18213         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18214         * modules/_Exit: New file.
18215         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18216         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18217
18218 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18219
18220         strtod: make it more-accurate typically, and don't require libm
18221         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18222         Include limits.h.  Don't include string.h.
18223         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18224         (locale_isspace): New function, so that no casts are needed to
18225         check whether *s is a space.
18226         (ldexp): Provide an unused dummy if not available.
18227         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18228         (strtod): Use them.  This implementation prefers to use the
18229         underlying strtod if available, falling back on our own code
18230         only to fix known bugs.  This is more likely to produce an
18231         accurate result.  Also, it avoids the use of libm functions.
18232         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18233         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18234         was absent, but it caused a test failure with coreutils.
18235         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18236         with libm.
18237         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18238         * modules/strtod-tests (Makefile.am): Likewise.
18239
18240 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18241             Bruno Haible  <bruno@clisp.org>
18242
18243         unistr/u8-strchr: Optimize ASCII argument case.
18244         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18245
18246 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18247
18248         (x)memcoll: minor tweaks
18249         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18250         is after the type that it qualifies.
18251         (memcoll0): Likewise.
18252         * lib/memcoll.h (memcoll0): Likewise.
18253         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18254         * lib/xmemcoll.h (xmemcoll0): Likewise.
18255         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18256         differs from memcoll in that the NUL byte is part of the argument.
18257         Omit the abort-checks, as performance is a real issue here.  Plus,
18258         the checks were wrong anyway (an off-by-one error).  Omit local
18259         variable 'diff', as it's a bit clearer that way.
18260         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18261         no longer needed.
18262
18263 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18264
18265         (x)memcoll: speedup when input is known to be NUL delimited
18266         * lib/memcoll.c: Include stdlib.
18267         (memcoll0): New function.
18268         (strcoll_loop): New function, refactored for use in both memcoll
18269         and memcoll0.
18270         * lib/memcoll.h (memcoll0): Add prototype.
18271         * lib/xmemcoll.c (xmemcoll0): New function.
18272         (collate_error): New function, refactored for use in both xmemcoll
18273         and xmemcoll0.
18274         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18275         * m4/memcoll.m4: add inline invocation.
18276
18277 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18278
18279         * build-aux/bootstrap: Remove any local translations
18280         from the translation project synchronization directory,
18281         so that local only translations are not distributed.
18282
18283 2010-07-04  Bruno Haible  <bruno@clisp.org>
18284
18285         fsusage: Clarify which code applies to which platforms.
18286         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18287         platform.
18288         * lib/fsusage.c (get_fs_usage): Likewise.
18289
18290 2010-07-04  Bruno Haible  <bruno@clisp.org>
18291
18292         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18293         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18294         Reported by Martin Lambers <marlam@marlam.de>.
18295
18296 2010-07-04  Jim Meyering  <meyering@redhat.com>
18297
18298         hash: once again explicitly disallow insertion of NULL
18299         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18300         inserting a NULL pointer cannot work with these functions.
18301         Add a comment with details.
18302         This reverts part of the 2010-07-01 commit, 5bef1a35
18303         "hash: extend module to deal with non-pointer keys".
18304
18305 2010-07-01  Bruno Haible  <bruno@clisp.org>
18306
18307         stdbool: Update doc.
18308         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18309         Info from Christian Weisgerber <naddy@mips.inka.de>.
18310
18311 2010-07-01  Jim Meyering  <meyering@redhat.com>
18312
18313         hash: extend module to deal with non-pointer keys
18314         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18315         but that allows insertion of non-pointer entries.
18316         Do not disallow an ENTRY value of NULL.
18317         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18318         * lib/hash.h (hash_insert0): Declare.
18319
18320 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18321
18322         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18323         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18324         not present (i.e. with autoconf 2.59 and when using gettextize, not
18325         gnulib), require AC_GNU_SOURCE instead.
18326
18327 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18328
18329         idpriv-drop: Fix tests.
18330         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18331         not to the test-idpriv-droptemp program.
18332
18333 2010-06-29  Bruno Haible  <bruno@clisp.org>
18334
18335         string: Fix syntax error with g++ 2.96.
18336         * lib/string.in.h (__pure__): Remove definition.
18337         (_GL_ATTRIBUTE_PURE): New macro.
18338         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18339         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18340         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18341
18342 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18343
18344         unitypes: Fix bug introduced on 2010-05-18.
18345         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18346
18347 2010-06-22  Eric Blake  <eblake@redhat.com>
18348
18349         memmem: slight optimization
18350         * lib/str-two-way.h (critical_factorization): Update comments.
18351         Reduce work during factorization phase.
18352         Reported by Carlos Bueno <carlos@bueno.org>.
18353
18354 2010-06-21  Bruno Haible  <bruno@clisp.org>
18355
18356         Fix HAVE_CALLOC_POSIX misnomer.
18357         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18358         !HAVE_CALLOC_POSIX.
18359         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18360         HAVE_CALLOC_POSIX.
18361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18362         instead of HAVE_CALLOC_POSIX.
18363         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18364         HAVE_CALLOC_POSIX.
18365
18366         Use modern idiom for calloc() replacement.
18367         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18368         AC_FUNC_CALLOC.
18369         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18370         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18371         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18372         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18373         (gl_REPLACE_CALLOC): New macro.
18374
18375 2010-06-21  Bruno Haible  <bruno@clisp.org>
18376
18377         Fix HAVE_REALLOC_POSIX misnomer.
18378         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18379         !HAVE_REALLOC_POSIX.
18380         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18381         HAVE_REALLOC_POSIX.
18382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18383         instead of HAVE_REALLOC_POSIX.
18384         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18385         HAVE_REALLOC_POSIX.
18386
18387         Use modern idiom for realloc() replacement.
18388         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18389         AC_FUNC_REALLOC.
18390         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18391         Autoconf's AC_FUNC_REALLOC.
18392         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18393         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18394         (gl_REPLACE_REALLOC): New macro.
18395         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18396
18397 2010-06-21  Bruno Haible  <bruno@clisp.org>
18398
18399         Fix HAVE_MALLOC_POSIX misnomer.
18400         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18401         !HAVE_MALLOC_POSIX.
18402         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18403         HAVE_MALLOC_POSIX.
18404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18405         instead of HAVE_MALLOC_POSIX.
18406         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18407         HAVE_MALLOC_POSIX.
18408
18409         Use modern idiom for malloc() replacement.
18410         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18411         AC_FUNC_MALLOC.
18412         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18413         Autoconf's AC_FUNC_MALLOC.
18414         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18415         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18416         (gl_REPLACE_MALLOC): New macro.
18417         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18418
18419 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18420
18421         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18422         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18423         This macro takes 3 arguments, not 4.
18424
18425 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18426
18427         ipv6: fix detection under mingw
18428         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18429         in6_addr.
18430
18431 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18432
18433         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18434         that strtod() works when cross-compiling to a glibc version known
18435         to work.
18436
18437 2010-06-15  Bruno Haible  <bruno@clisp.org>
18438
18439         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18440
18441 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18442
18443         select: Correct timeout.
18444         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18445
18446 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18447
18448         git-version-gen: init shell var to avoid env var influence
18449         * build-aux/git-version-gen (v): Init shell var to empty.
18450
18451 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18452
18453         priv-set: Don't assume that priv.h exists merely because getppriv does.
18454         See Jan Andersen's bug report about AIX 5L in
18455         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18456         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18457         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18458         * lib/priv-set.h: Likewise.
18459         * tests/test-priv-set.c: Likewise.
18460
18461 2010-06-13  Bruno Haible  <bruno@clisp.org>
18462
18463         relocatable: Make it easier to test whether to install wrappers.
18464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18465         RELOCATABLE_VIA_WRAPPER.
18466
18467 2010-06-13  Bruno Haible  <bruno@clisp.org>
18468
18469         gnulib-tool: Display specified modules and dependencies differently.
18470         * gnulib-tool (func_show_module_list): New function.
18471         (func_import, func_create_testdir): Invoke it.
18472         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18473
18474 2010-06-13  Bruno Haible  <bruno@clisp.org>
18475
18476         gnulib-tool: Align code of func_import and func_create_testdir.
18477         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18478         specified_modules.
18479
18480 2010-06-12  Jim Meyering  <meyering@redhat.com>
18481
18482         test-inttostr: avoid spurious failure on Solaris 9
18483         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18484         to accept "%ju".  Reported by Bruno Haible.
18485
18486 2010-06-11  Jim Meyering  <meyering@redhat.com>
18487
18488         test-sys_socket: mark variables as used more readably
18489         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18490         as "used" explicitly via (void) statement casts.  This is more
18491         readable than using them in an artificial return expression.
18492         Suggestion from Bruno Haible.
18493
18494 2010-06-11  Bruno Haible  <bruno@clisp.org>
18495
18496         Avoid some more warnings from "gcc -Wwrite-strings".
18497         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18498         to 'const char *'.
18499         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18500         * tests/test-c-strcasestr.c (main): Likewise.
18501         * tests/test-mbscasestr1.c (main): Likewise.
18502         * tests/test-mbscasestr2.c (main): Likewise.
18503         * tests/test-memmem.c (main): Likewise.
18504         * tests/test-strstr.c (main): Likewise.
18505         * tests/test-strcasestr.c (main): Likewise.
18506
18507 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18508
18509         init.sh: change framework_failure_ to fail with status 99, not 1
18510         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18511         automake's parallel-tests rule that this is an unexpected failure,
18512         even if the test is listed in XFAIL_TESTS.
18513
18514 2010-06-11  Jim Meyering  <meyering@redhat.com>
18515
18516         test-inttostr: avoid warnings about 4-6KB literal strings
18517         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18518         Include "macros.h", for its definition of ASSERT.
18519         (CK): s/assert/ASSERT/
18520         * modules/inttostr-tests (Files): Add macros.h.
18521
18522         init.sh: don't use $ME_ or skip_ before they are defined
18523         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18524         their first uses.  Also hoist their companions: warn_, fail_,
18525         framework_failure_, $stderr_fileno.  Prompted by a patch from
18526         Stefano Lattarini.
18527
18528         test-sys_socket: avoid set-but-not-used warnings from gcc
18529         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18530         avoid warning about set-but-not-used variables.
18531
18532         test-xvasprintf: avoid 'const' discard warnings
18533         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18534         "const" when assigning from literal strings.
18535         (test_xasprintf): Add "void" in function argument list to placate
18536         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18537
18538         tests: avoid compilation warnings in argmatch and exclude tests...
18539         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18540         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18541         Since it always exits, declare with the "noreturn" attribute.
18542         * tests/test-argmatch.c: Likewise.
18543
18544         tests: avoid 'const' discard warnings in mbsstr tests
18545         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18546         * tests/test-mbsstr2.c (main): Likewise.
18547
18548         test-verify: avoid warning from gcc's -Wmissing-declarations
18549         * tests/test-verify.c (function): Declare to be static.
18550
18551         test-inttostr.c: include <string.h> for use of strcmp
18552         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18553
18554         test-linkat: avoid failed assertion on "other" architectures
18555         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18556         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18557         sparc: https://bugs.launchpad.net/bugs/591968
18558
18559 2010-06-11  Jim Meyering  <meyering@redhat.com>
18560
18561         printf.m4: avoid autoconf's "Expanded Before Required" warning
18562         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18563         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18564         autoconf warning.
18565
18566 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18567
18568         Replacement header templates are now named with ".in", not "_".
18569         * doc/gnulib-intro.texi: Correct.
18570
18571 2010-06-10  Jim Meyering  <meyering@redhat.com>
18572
18573         inttostr-tests: depend on snprintf, not snprintf-posix
18574         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18575         snprintf-posix, to avoid this aclocal failure:
18576           missing file gnulib-tests/vasnprintf.c
18577           configure.ac:45: error: expected source file, required through \
18578           AC_LIBSOURCES, not found
18579
18580 2010-06-10  Jim Meyering  <meyering@redhat.com>
18581
18582         inttostr: add a new function, inttostr, and tests
18583         The namesake function was not available.  The existence of the
18584         template file, inttostr.c makes its addition nontrivial.
18585         * lib/anytostr.c: Rename from inttostr.c.
18586         (anytostr): Rename from inttostr.
18587         * lib/inttostr.c: New file.
18588         * modules/inttostr (Files): Add anytostr.c.
18589         (Makefile.am): Set lib_SOURCES instead of ...
18590         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18591         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18592         * lib/offtostr.c: Likewise.
18593         * lib/uinttostr.c: Likewise.
18594         * lib/umaxtostr.c: Likewise.
18595         * modules/inttostr-tests: New file.
18596         * tests/test-inttostr.c: New file.  Test these functions.
18597
18598 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18599             Bruno Haible  <bruno@clisp.org>
18600
18601         Add "Extending Gnulib" chapter to manual.
18602         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18603         chapter.
18604         (Extending Gnulib): New chapter.
18605         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18606         chapter.
18607
18608 2010-06-09  Bruno Haible  <bruno@clisp.org>
18609
18610         Avoid relocwrapper link errors due to gnulib replacement functions.
18611         * lib/areadlink.c: Use the system's malloc, realloc functions.
18612         (areadlink): Set errno to ENOMEM explicitly.
18613         * modules/areadlink (Depends-on): Remove malloc-posix.
18614         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18615
18616 2010-06-09  Bruno Haible  <bruno@clisp.org>
18617
18618         Avoid relocwrapper link errors due to gnulib replacement functions.
18619         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18620         * lib/malloca.c: Likewise.
18621         * lib/relocatable.c: Likewise.
18622         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18623         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18624         * lib/setenv.c: Use the system's malloc, realloc functions.
18625         * lib/strerror.c: Use the system's sprintf function.
18626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18627
18628 2010-06-04  Bruno Haible  <bruno@clisp.org>
18629
18630         Prefer documented low-level autoconf macro names.
18631         * m4/lib-link.m4: Use m4_translit instead of translit.
18632         * m4/environ.m4: Likewise.
18633         * m4/mathfunc.m4: Likewise.
18634         * m4/onceonly.m4: Likewise.
18635         * m4/stdint.m4: Likewise.
18636         Suggested by Eric Blake.
18637
18638 2010-06-04  Martin Lambers  <marlam@marlam.de>
18639             Bruno Haible  <bruno@clisp.org>
18640
18641         havelib: Allow library names with '+' characters.
18642         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18643         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18644
18645 2010-06-09  Bruno Haible  <bruno@clisp.org>
18646
18647         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18648         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18649         realloc failed.
18650
18651 2010-06-08  Peter Simons  <simons@cryp.to>
18652
18653         maint.mk: make the news-check rule more configurable
18654         * top/maint.mk (news-check-lines-spec): New variable.
18655         (news-check): Use "sed -n 1,10p" in place of "head".
18656
18657 2010-06-07  Jim Meyering  <meyering@redhat.com>
18658
18659         do-release-commit-and-tag: fix typo in --help
18660         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18661
18662         regex: avoid new dead-code warning with gcc-4.6.0
18663         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18664         if-block containing a while-loop.  It's been unused for at least
18665         5 years.
18666
18667 2010-06-05  Bruno Haible  <bruno@clisp.org>
18668
18669         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18670         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18671
18672 2010-06-04  Bruno Haible  <bruno@clisp.org>
18673
18674         Update to GNU gettext 0.18.1.
18675         * modules/gettext (configure.ac): Require gettext infrastructure from
18676         version 0.18.1.
18677
18678 2010-06-03  Bruno Haible  <bruno@clisp.org>
18679
18680         Don't use AC_LIBOBJ with file names in subdirectories.
18681         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18682         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18683         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18684         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18685         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18686         gl_LIBUNISTRING_LIBSOURCE.
18687         (Makefile.am): Augment lib_SOURCES here, conditionally.
18688         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18689
18690 2010-06-03  Bruno Haible  <bruno@clisp.org>
18691
18692         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18693         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18694         expansion does not end with a newline.
18695         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18696         unnecessary newline.
18697
18698 2010-06-03  Bruno Haible  <bruno@clisp.org>
18699
18700         Reduce dependencies.
18701         * tests/test-quotearg.h: New file, extracted from
18702         tests/test-quotearg.c.
18703         * tests/test-quotearg-simple.c: New file, extracted from
18704         tests/test-quotearg.c.
18705         * tests/test-quotearg.c: Don't include <ctype.h>.
18706         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18707         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18708         use_quote_double_quotes, use_quotearg_colon): Moved to
18709         tests/test-quotearg.h.
18710         (results_g, flag_results, custom_quotes, custom_results): Moved
18711         to tests/test-quotearg-simple.c.
18712         (main): Moved the part that does not depend on gettext to
18713         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18714         performed.
18715         * modules/quotearg-simple: New file.
18716         * modules/quotearg-simple-tests: New file.
18717         * modules/quotearg (Depends-on): Add quotearg-simple.
18718         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18719         (Files): Add tests/test-quotearg.h.
18720         Reported by Paolo Bonzini.
18721
18722 2010-06-03  Bruno Haible  <bruno@clisp.org>
18723
18724         Reduce dependencies.
18725         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18726
18727 2010-06-03  Bruno Haible  <bruno@clisp.org>
18728
18729         time: Undefine more broken macros.
18730         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18731         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18732         Reported by Eric Blake.
18733
18734 2010-06-03  Bruno Haible  <bruno@clisp.org>
18735
18736         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18737         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18738         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18739         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18740         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18741         Reported by Ludovic Courtès <ludo@gnu.org>.
18742
18743 2010-06-02  Eric Blake  <eblake@redhat.com>
18744
18745         time: work with mingw + pthreads-win32 library
18746         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18747         if timespec is defined only in pthread.h.
18748         * modules/time (Makefile.am): Substitute it.
18749         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18750         <pthread.h>, when needed.
18751         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18752         from the library.
18753
18754 2010-05-31  Bruno Haible  <bruno@clisp.org>
18755
18756         Avoid expanding two macros in the wrong order.
18757         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18758         gl_LIBUNISTRING if it is defined.
18759         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18760         autoconf >= 2.64.
18761         Reported by Ludovic Courtès <ludo@gnu.org>.
18762
18763 2010-05-27  Jim Meyering  <meyering@redhat.com>
18764
18765         maint.mk: also prohibit "#undef" of always-defined symbols
18766         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18767         Allow more than one space before the symbol name.
18768         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18769         the regexp uses alternation.
18770
18771 2010-05-26  Eric Blake  <eblake@redhat.com>
18772
18773         maint.mk: avoid echo -e
18774         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18775         Convert all uses of echo -* to printf.
18776         Reported by Matthias Bolte.
18777
18778 2010-05-25  Bruno Haible  <bruno@clisp.org>
18779
18780         Update to GNU gettext 0.18, part 2.
18781         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18782         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18783
18784 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18785
18786         Add missing include in test-pwrite.c.
18787         * tests/test-pwrite.c: Include string.h, for strcmp.
18788
18789 2010-05-24  Bruno Haible  <bruno@clisp.org>
18790
18791         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18792
18793 2010-05-24  Bruno Haible  <bruno@clisp.org>
18794
18795         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18796         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18797         iconveh_error argument.
18798         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18799         U_STRCONV_TO_LOCALE.
18800         * lib/unistr/u16-strcoll.c: Likewise.
18801         * lib/unistr/u32-strcoll.c: Likewise.
18802         * modules/unistr/u8-strcoll (Depends-on): Add
18803         uniconv/u8-strconv-to-enc, localcharset. Remove
18804         uniconv/u8-strconv-to-locale.
18805         (configure.ac): Bump version number.
18806         * modules/unistr/u16-strcoll (Depends-on): Add
18807         uniconv/u16-strconv-to-enc, localcharset. Remove
18808         uniconv/u16-strconv-to-locale.
18809         (configure.ac): Bump version number.
18810         * modules/unistr/u32-strcoll (Depends-on): Add
18811         uniconv/u32-strconv-to-enc, localcharset. Remove
18812         uniconv/u32-strconv-to-locale.
18813         (configure.ac): Bump version number.
18814
18815 2010-05-24  Bruno Haible  <bruno@clisp.org>
18816
18817         Avoid a test failure on NetBSD 5.0.
18818         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18819         an iconv() bug.
18820
18821 2010-05-24  Bruno Haible  <bruno@clisp.org>
18822
18823         Adjust #include directive style.
18824         * modules/regex (Includes): Recommend to write <regex.h>.
18825
18826 2010-05-24  Bruno Haible  <bruno@clisp.org>
18827
18828         regex: Don't require alloca.
18829         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18830         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18831         only inside if (0).
18832
18833 2010-05-23  Jim Meyering  <meyering@redhat.com>
18834
18835         test-renameat.c: include <sys/stat.h>
18836         * tests/test-renameat.c: Include <sys/stat.h>; required for
18837         definition of S_IS* macros.
18838
18839 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18840
18841         Update maintainer documentation for 'relocatable-prog' module.
18842         * doc/relocatable-maint.texi: Update.
18843         Comments by Bruno Haible.
18844
18845 2010-05-23  Bruno Haible  <bruno@clisp.org>
18846
18847         git-merge-changelog: Enable --split-merged-entry by default.
18848         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18849         (usage): Don't mention this option any more.
18850         Reported by Ralf Wildenhues.
18851
18852 2010-05-23  Jim Meyering  <meyering@redhat.com>
18853
18854         test-pwrite: do not leave behind a test file named "out"
18855         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18856         The trivial-looking use of init.sh is really necessary.
18857         It ensures that the temporary file, "out", is created in
18858         a temporary directory, and removed upon termination.
18859         * tests/test-pwrite.sh: Re-add file.
18860         * modules/pwrite-tests: Reference it.
18861
18862 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18863
18864         Fix output redirection buglet in init.sh.
18865         * tests/init.sh: Fix redirection of stderr.
18866
18867 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18868
18869         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18870
18871 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18872
18873         * modules/valgrind-tests: New file.
18874         * m4/valgrind-tests.m4: New file.
18875         * doc/valgrind-tests.texi: New file.
18876         * doc/gnulib.texi (Running self-tests under valgrind): New
18877         section.
18878
18879 2010-05-19  Bruno Haible  <bruno@clisp.org>
18880
18881         Clean up dead code in recent commit.
18882         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18883         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18884         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18885         Suggested by Paolo Bonzini.
18886
18887 2010-05-19  Bruno Haible  <bruno@clisp.org>
18888
18889         Avoid valgrind error reports from libunistring.
18890         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18891         * modules/libunistring (Files): Add it.
18892         * modules/libunistring-optional (Files): Likewise.
18893
18894 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18895             Bruno Haible  <bruno@clisp.org>
18896
18897         New module 'libunistring-optional'.
18898         * modules/libunistring-optional: New file.
18899         * m4/libunistring-base.m4: New file.
18900         * m4/libunistring-optional.m4: New file.
18901         * lib/unicase.in.h: Renamed from lib/unicase.h.
18902         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18903         * lib/unictype.in.h: Renamed from lib/unictype.h.
18904         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18905         * lib/uniname.in.h: Renamed from lib/uniname.h.
18906         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18907         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18908         * lib/unistr.in.h: Renamed from lib/unistr.h.
18909         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18910         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18911         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18912         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18913         gl_LIBUNISTRING. If the library was found, determine the installed
18914         version and set LIBUNISTRING_VERSION.
18915         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18916         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18917         handle a configuration option --with-included-libunistring.
18918         * modules/libunistring (Files): Add m4/absolute-header.m4.
18919         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18920         Add m4/libunistring-base.m4.
18921         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18922         (Makefile.am): Build unicase.h from unicase.in.h.
18923         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18924         Add m4/libunistring-base.m4.
18925         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18926         (Makefile.am): Build uniconv.h from uniconv.in.h.
18927         * modules/unictype/base (Files): Use unictype.in.h instead of
18928         unictype.h. Add m4/libunistring-base.m4.
18929         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18930         (Makefile.am): Build unictype.h from unictype.in.h.
18931         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18932         Add m4/libunistring-base.m4.
18933         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18934         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18935         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18936         Add m4/libunistring-base.m4.
18937         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18938         (Makefile.am): Build uniname.h from uniname.in.h.
18939         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18940         Add m4/libunistring-base.m4.
18941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18942         (Makefile.am): Build uninorm.h from uninorm.in.h.
18943         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18944         unistdio.h. Add m4/libunistring-base.m4.
18945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18946         (Makefile.am): Build unistdio.h from unistdio.in.h.
18947         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18948         Add m4/libunistring-base.m4.
18949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18950         (Makefile.am): Build unistr.h from unistr.in.h.
18951         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18952         Add m4/libunistring-base.m4.
18953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18954         (Makefile.am): Build unitypes.h from unitypes.in.h.
18955         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18956         Add m4/libunistring-base.m4.
18957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18958         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18959         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18960         uniwidth.h. Add m4/libunistring-base.m4.
18961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18962         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18963         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18964         instead of augmenting lib_SOURCES.
18965         * modules/unicase/empty-suffix-context: Likewise.
18966         * modules/unicase/locale-language: Likewise.
18967         * modules/unicase/tolower: Likewise.
18968         * modules/unicase/totitle: Likewise.
18969         * modules/unicase/toupper: Likewise.
18970         * modules/unicase/u8-casecmp: Likewise.
18971         * modules/unicase/u8-casecoll: Likewise.
18972         * modules/unicase/u8-casefold: Likewise.
18973         * modules/unicase/u8-casexfrm: Likewise.
18974         * modules/unicase/u8-ct-casefold: Likewise.
18975         * modules/unicase/u8-ct-tolower: Likewise.
18976         * modules/unicase/u8-ct-totitle: Likewise.
18977         * modules/unicase/u8-ct-toupper: Likewise.
18978         * modules/unicase/u8-is-cased: Likewise.
18979         * modules/unicase/u8-is-casefolded: Likewise.
18980         * modules/unicase/u8-is-lowercase: Likewise.
18981         * modules/unicase/u8-is-titlecase: Likewise.
18982         * modules/unicase/u8-is-uppercase: Likewise.
18983         * modules/unicase/u8-prefix-context: Likewise.
18984         * modules/unicase/u8-suffix-context: Likewise.
18985         * modules/unicase/u8-tolower: Likewise.
18986         * modules/unicase/u8-totitle: Likewise.
18987         * modules/unicase/u8-toupper: Likewise.
18988         * modules/unicase/u16-casecmp: Likewise.
18989         * modules/unicase/u16-casecoll: Likewise.
18990         * modules/unicase/u16-casefold: Likewise.
18991         * modules/unicase/u16-casexfrm: Likewise.
18992         * modules/unicase/u16-ct-casefold: Likewise.
18993         * modules/unicase/u16-ct-tolower: Likewise.
18994         * modules/unicase/u16-ct-totitle: Likewise.
18995         * modules/unicase/u16-ct-toupper: Likewise.
18996         * modules/unicase/u16-is-cased: Likewise.
18997         * modules/unicase/u16-is-casefolded: Likewise.
18998         * modules/unicase/u16-is-lowercase: Likewise.
18999         * modules/unicase/u16-is-titlecase: Likewise.
19000         * modules/unicase/u16-is-uppercase: Likewise.
19001         * modules/unicase/u16-prefix-context: Likewise.
19002         * modules/unicase/u16-suffix-context: Likewise.
19003         * modules/unicase/u16-tolower: Likewise.
19004         * modules/unicase/u16-totitle: Likewise.
19005         * modules/unicase/u16-toupper: Likewise.
19006         * modules/unicase/u32-casecmp: Likewise.
19007         * modules/unicase/u32-casecoll: Likewise.
19008         * modules/unicase/u32-casefold: Likewise.
19009         * modules/unicase/u32-casexfrm: Likewise.
19010         * modules/unicase/u32-ct-casefold: Likewise.
19011         * modules/unicase/u32-ct-tolower: Likewise.
19012         * modules/unicase/u32-ct-totitle: Likewise.
19013         * modules/unicase/u32-ct-toupper: Likewise.
19014         * modules/unicase/u32-is-cased: Likewise.
19015         * modules/unicase/u32-is-casefolded: Likewise.
19016         * modules/unicase/u32-is-lowercase: Likewise.
19017         * modules/unicase/u32-is-titlecase: Likewise.
19018         * modules/unicase/u32-is-uppercase: Likewise.
19019         * modules/unicase/u32-prefix-context: Likewise.
19020         * modules/unicase/u32-suffix-context: Likewise.
19021         * modules/unicase/u32-tolower: Likewise.
19022         * modules/unicase/u32-totitle: Likewise.
19023         * modules/unicase/u32-toupper: Likewise.
19024         * modules/unicase/ulc-casecmp: Likewise.
19025         * modules/unicase/ulc-casecoll: Likewise.
19026         * modules/unicase/ulc-casexfrm: Likewise.
19027         * modules/uniconv/u8-conv-from-enc: Likewise.
19028         * modules/uniconv/u8-conv-to-enc: Likewise.
19029         * modules/uniconv/u8-strconv-from-enc: Likewise.
19030         * modules/uniconv/u8-strconv-from-locale: Likewise.
19031         * modules/uniconv/u8-strconv-to-enc: Likewise.
19032         * modules/uniconv/u8-strconv-to-locale: Likewise.
19033         * modules/uniconv/u16-conv-from-enc: Likewise.
19034         * modules/uniconv/u16-conv-to-enc: Likewise.
19035         * modules/uniconv/u16-strconv-from-enc: Likewise.
19036         * modules/uniconv/u16-strconv-from-locale: Likewise.
19037         * modules/uniconv/u16-strconv-to-enc: Likewise.
19038         * modules/uniconv/u16-strconv-to-locale: Likewise.
19039         * modules/uniconv/u32-conv-from-enc: Likewise.
19040         * modules/uniconv/u32-conv-to-enc: Likewise.
19041         * modules/uniconv/u32-strconv-from-enc: Likewise.
19042         * modules/uniconv/u32-strconv-from-locale: Likewise.
19043         * modules/uniconv/u32-strconv-to-enc: Likewise.
19044         * modules/uniconv/u32-strconv-to-locale: Likewise.
19045         * modules/unictype/bidicategory-byname: Likewise.
19046         * modules/unictype/bidicategory-name: Likewise.
19047         * modules/unictype/bidicategory-of: Likewise.
19048         * modules/unictype/bidicategory-test: Likewise.
19049         * modules/unictype/block-list: Likewise.
19050         * modules/unictype/block-test: Likewise.
19051         * modules/unictype/category-C: Likewise.
19052         * modules/unictype/category-Cc: Likewise.
19053         * modules/unictype/category-Cf: Likewise.
19054         * modules/unictype/category-Cn: Likewise.
19055         * modules/unictype/category-Co: Likewise.
19056         * modules/unictype/category-Cs: Likewise.
19057         * modules/unictype/category-L: Likewise.
19058         * modules/unictype/category-Ll: Likewise.
19059         * modules/unictype/category-Lm: Likewise.
19060         * modules/unictype/category-Lo: Likewise.
19061         * modules/unictype/category-Lt: Likewise.
19062         * modules/unictype/category-Lu: Likewise.
19063         * modules/unictype/category-M: Likewise.
19064         * modules/unictype/category-Mc: Likewise.
19065         * modules/unictype/category-Me: Likewise.
19066         * modules/unictype/category-Mn: Likewise.
19067         * modules/unictype/category-N: Likewise.
19068         * modules/unictype/category-Nd: Likewise.
19069         * modules/unictype/category-Nl: Likewise.
19070         * modules/unictype/category-No: Likewise.
19071         * modules/unictype/category-P: Likewise.
19072         * modules/unictype/category-Pc: Likewise.
19073         * modules/unictype/category-Pd: Likewise.
19074         * modules/unictype/category-Pe: Likewise.
19075         * modules/unictype/category-Pf: Likewise.
19076         * modules/unictype/category-Pi: Likewise.
19077         * modules/unictype/category-Po: Likewise.
19078         * modules/unictype/category-Ps: Likewise.
19079         * modules/unictype/category-S: Likewise.
19080         * modules/unictype/category-Sc: Likewise.
19081         * modules/unictype/category-Sk: Likewise.
19082         * modules/unictype/category-Sm: Likewise.
19083         * modules/unictype/category-So: Likewise.
19084         * modules/unictype/category-Z: Likewise.
19085         * modules/unictype/category-Zl: Likewise.
19086         * modules/unictype/category-Zp: Likewise.
19087         * modules/unictype/category-Zs: Likewise.
19088         * modules/unictype/category-and: Likewise.
19089         * modules/unictype/category-and-not: Likewise.
19090         * modules/unictype/category-byname: Likewise.
19091         * modules/unictype/category-name: Likewise.
19092         * modules/unictype/category-none: Likewise.
19093         * modules/unictype/category-of: Likewise.
19094         * modules/unictype/category-or: Likewise.
19095         * modules/unictype/category-test: Likewise.
19096         * modules/unictype/combining-class: Likewise.
19097         * modules/unictype/ctype-alnum: Likewise.
19098         * modules/unictype/ctype-alpha: Likewise.
19099         * modules/unictype/ctype-blank: Likewise.
19100         * modules/unictype/ctype-cntrl: Likewise.
19101         * modules/unictype/ctype-digit: Likewise.
19102         * modules/unictype/ctype-graph: Likewise.
19103         * modules/unictype/ctype-lower: Likewise.
19104         * modules/unictype/ctype-print: Likewise.
19105         * modules/unictype/ctype-punct: Likewise.
19106         * modules/unictype/ctype-space: Likewise.
19107         * modules/unictype/ctype-upper: Likewise.
19108         * modules/unictype/ctype-xdigit: Likewise.
19109         * modules/unictype/decimal-digit: Likewise.
19110         * modules/unictype/digit: Likewise.
19111         * modules/unictype/mirror: Likewise.
19112         * modules/unictype/numeric: Likewise.
19113         * modules/unictype/property-alphabetic: Likewise.
19114         * modules/unictype/property-ascii-hex-digit: Likewise.
19115         * modules/unictype/property-bidi-arabic-digit: Likewise.
19116         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19117         * modules/unictype/property-bidi-block-separator: Likewise.
19118         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19119         * modules/unictype/property-bidi-common-separator: Likewise.
19120         * modules/unictype/property-bidi-control: Likewise.
19121         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19122         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19123         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19124         * modules/unictype/property-bidi-european-digit: Likewise.
19125         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19126         * modules/unictype/property-bidi-left-to-right: Likewise.
19127         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19128         * modules/unictype/property-bidi-other-neutral: Likewise.
19129         * modules/unictype/property-bidi-pdf: Likewise.
19130         * modules/unictype/property-bidi-segment-separator: Likewise.
19131         * modules/unictype/property-bidi-whitespace: Likewise.
19132         * modules/unictype/property-byname: Likewise.
19133         * modules/unictype/property-combining: Likewise.
19134         * modules/unictype/property-composite: Likewise.
19135         * modules/unictype/property-currency-symbol: Likewise.
19136         * modules/unictype/property-dash: Likewise.
19137         * modules/unictype/property-decimal-digit: Likewise.
19138         * modules/unictype/property-default-ignorable-code-point: Likewise.
19139         * modules/unictype/property-deprecated: Likewise.
19140         * modules/unictype/property-diacritic: Likewise.
19141         * modules/unictype/property-extender: Likewise.
19142         * modules/unictype/property-format-control: Likewise.
19143         * modules/unictype/property-grapheme-base: Likewise.
19144         * modules/unictype/property-grapheme-extend: Likewise.
19145         * modules/unictype/property-grapheme-link: Likewise.
19146         * modules/unictype/property-hex-digit: Likewise.
19147         * modules/unictype/property-hyphen: Likewise.
19148         * modules/unictype/property-id-continue: Likewise.
19149         * modules/unictype/property-id-start: Likewise.
19150         * modules/unictype/property-ideographic: Likewise.
19151         * modules/unictype/property-ids-binary-operator: Likewise.
19152         * modules/unictype/property-ids-trinary-operator: Likewise.
19153         * modules/unictype/property-ignorable-control: Likewise.
19154         * modules/unictype/property-iso-control: Likewise.
19155         * modules/unictype/property-join-control: Likewise.
19156         * modules/unictype/property-left-of-pair: Likewise.
19157         * modules/unictype/property-line-separator: Likewise.
19158         * modules/unictype/property-logical-order-exception: Likewise.
19159         * modules/unictype/property-lowercase: Likewise.
19160         * modules/unictype/property-math: Likewise.
19161         * modules/unictype/property-non-break: Likewise.
19162         * modules/unictype/property-not-a-character: Likewise.
19163         * modules/unictype/property-numeric: Likewise.
19164         * modules/unictype/property-other-alphabetic: Likewise.
19165         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19166         * modules/unictype/property-other-grapheme-extend: Likewise.
19167         * modules/unictype/property-other-id-continue: Likewise.
19168         * modules/unictype/property-other-id-start: Likewise.
19169         * modules/unictype/property-other-lowercase: Likewise.
19170         * modules/unictype/property-other-math: Likewise.
19171         * modules/unictype/property-other-uppercase: Likewise.
19172         * modules/unictype/property-paired-punctuation: Likewise.
19173         * modules/unictype/property-paragraph-separator: Likewise.
19174         * modules/unictype/property-pattern-syntax: Likewise.
19175         * modules/unictype/property-pattern-white-space: Likewise.
19176         * modules/unictype/property-private-use: Likewise.
19177         * modules/unictype/property-punctuation: Likewise.
19178         * modules/unictype/property-quotation-mark: Likewise.
19179         * modules/unictype/property-radical: Likewise.
19180         * modules/unictype/property-sentence-terminal: Likewise.
19181         * modules/unictype/property-soft-dotted: Likewise.
19182         * modules/unictype/property-space: Likewise.
19183         * modules/unictype/property-terminal-punctuation: Likewise.
19184         * modules/unictype/property-test: Likewise.
19185         * modules/unictype/property-titlecase: Likewise.
19186         * modules/unictype/property-unassigned-code-value: Likewise.
19187         * modules/unictype/property-unified-ideograph: Likewise.
19188         * modules/unictype/property-uppercase: Likewise.
19189         * modules/unictype/property-variation-selector: Likewise.
19190         * modules/unictype/property-white-space: Likewise.
19191         * modules/unictype/property-xid-continue: Likewise.
19192         * modules/unictype/property-xid-start: Likewise.
19193         * modules/unictype/property-zero-width: Likewise.
19194         * modules/unictype/scripts: Likewise.
19195         * modules/unictype/syntax-c-ident: Likewise.
19196         * modules/unictype/syntax-c-whitespace: Likewise.
19197         * modules/unictype/syntax-java-ident: Likewise.
19198         * modules/unictype/syntax-java-whitespace: Likewise.
19199         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19200         * modules/unilbrk/u8-width-linebreaks: Likewise.
19201         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19202         * modules/unilbrk/u16-width-linebreaks: Likewise.
19203         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19204         * modules/unilbrk/u32-width-linebreaks: Likewise.
19205         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19206         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19207         * modules/uniname/uniname: Likewise.
19208         * modules/uninorm/canonical-decomposition: Likewise.
19209         * modules/uninorm/composition: Likewise.
19210         * modules/uninorm/decomposing-form: Likewise.
19211         * modules/uninorm/decomposition: Likewise.
19212         * modules/uninorm/filter: Likewise.
19213         * modules/uninorm/nfc: Likewise.
19214         * modules/uninorm/nfd: Likewise.
19215         * modules/uninorm/nfkc: Likewise.
19216         * modules/uninorm/nfkd: Likewise.
19217         * modules/uninorm/u8-normalize: Likewise.
19218         * modules/uninorm/u8-normcmp: Likewise.
19219         * modules/uninorm/u8-normcoll: Likewise.
19220         * modules/uninorm/u8-normxfrm: Likewise.
19221         * modules/uninorm/u16-normalize: Likewise.
19222         * modules/uninorm/u16-normcmp: Likewise.
19223         * modules/uninorm/u16-normcoll: Likewise.
19224         * modules/uninorm/u16-normxfrm: Likewise.
19225         * modules/uninorm/u32-normalize: Likewise.
19226         * modules/uninorm/u32-normcmp: Likewise.
19227         * modules/uninorm/u32-normcoll: Likewise.
19228         * modules/uninorm/u32-normxfrm: Likewise.
19229         * modules/unistdio/u8-asnprintf: Likewise.
19230         * modules/unistdio/u8-asprintf: Likewise.
19231         * modules/unistdio/u8-snprintf: Likewise.
19232         * modules/unistdio/u8-sprintf: Likewise.
19233         * modules/unistdio/u8-u8-asnprintf: Likewise.
19234         * modules/unistdio/u8-u8-asprintf: Likewise.
19235         * modules/unistdio/u8-u8-snprintf: Likewise.
19236         * modules/unistdio/u8-u8-sprintf: Likewise.
19237         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19238         * modules/unistdio/u8-u8-vasprintf: Likewise.
19239         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19240         * modules/unistdio/u8-u8-vsprintf: Likewise.
19241         * modules/unistdio/u8-vasnprintf: Likewise.
19242         * modules/unistdio/u8-vasprintf: Likewise.
19243         * modules/unistdio/u8-vsnprintf: Likewise.
19244         * modules/unistdio/u8-vsprintf: Likewise.
19245         * modules/unistdio/u16-asnprintf: Likewise.
19246         * modules/unistdio/u16-asprintf: Likewise.
19247         * modules/unistdio/u16-snprintf: Likewise.
19248         * modules/unistdio/u16-sprintf: Likewise.
19249         * modules/unistdio/u16-u16-asnprintf: Likewise.
19250         * modules/unistdio/u16-u16-asprintf: Likewise.
19251         * modules/unistdio/u16-u16-snprintf: Likewise.
19252         * modules/unistdio/u16-u16-sprintf: Likewise.
19253         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19254         * modules/unistdio/u16-u16-vasprintf: Likewise.
19255         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19256         * modules/unistdio/u16-u16-vsprintf: Likewise.
19257         * modules/unistdio/u16-vasnprintf: Likewise.
19258         * modules/unistdio/u16-vasprintf: Likewise.
19259         * modules/unistdio/u16-vsnprintf: Likewise.
19260         * modules/unistdio/u16-vsprintf: Likewise.
19261         * modules/unistdio/u32-asnprintf: Likewise.
19262         * modules/unistdio/u32-asprintf: Likewise.
19263         * modules/unistdio/u32-snprintf: Likewise.
19264         * modules/unistdio/u32-sprintf: Likewise.
19265         * modules/unistdio/u32-u32-asnprintf: Likewise.
19266         * modules/unistdio/u32-u32-asprintf: Likewise.
19267         * modules/unistdio/u32-u32-snprintf: Likewise.
19268         * modules/unistdio/u32-u32-sprintf: Likewise.
19269         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19270         * modules/unistdio/u32-u32-vasprintf: Likewise.
19271         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19272         * modules/unistdio/u32-u32-vsprintf: Likewise.
19273         * modules/unistdio/u32-vasnprintf: Likewise.
19274         * modules/unistdio/u32-vasprintf: Likewise.
19275         * modules/unistdio/u32-vsnprintf: Likewise.
19276         * modules/unistdio/u32-vsprintf: Likewise.
19277         * modules/unistdio/ulc-asnprintf: Likewise.
19278         * modules/unistdio/ulc-asprintf: Likewise.
19279         * modules/unistdio/ulc-fprintf: Likewise.
19280         * modules/unistdio/ulc-snprintf: Likewise.
19281         * modules/unistdio/ulc-sprintf: Likewise.
19282         * modules/unistdio/ulc-vasnprintf: Likewise.
19283         * modules/unistdio/ulc-vasprintf: Likewise.
19284         * modules/unistdio/ulc-vfprintf: Likewise.
19285         * modules/unistdio/ulc-vsnprintf: Likewise.
19286         * modules/unistdio/ulc-vsprintf: Likewise.
19287         * modules/unistr/u8-check: Likewise.
19288         * modules/unistr/u8-chr: Likewise.
19289         * modules/unistr/u8-cmp: Likewise.
19290         * modules/unistr/u8-cmp2: Likewise.
19291         * modules/unistr/u8-cpy: Likewise.
19292         * modules/unistr/u8-cpy-alloc: Likewise.
19293         * modules/unistr/u8-endswith: Likewise.
19294         * modules/unistr/u8-mblen: Likewise.
19295         * modules/unistr/u8-mbsnlen: Likewise.
19296         * modules/unistr/u8-mbtouc: Likewise.
19297         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19298         * modules/unistr/u8-mbtoucr: Likewise.
19299         * modules/unistr/u8-move: Likewise.
19300         * modules/unistr/u8-next: Likewise.
19301         * modules/unistr/u8-prev: Likewise.
19302         * modules/unistr/u8-set: Likewise.
19303         * modules/unistr/u8-startswith: Likewise.
19304         * modules/unistr/u8-stpcpy: Likewise.
19305         * modules/unistr/u8-stpncpy: Likewise.
19306         * modules/unistr/u8-strcat: Likewise.
19307         * modules/unistr/u8-strchr: Likewise.
19308         * modules/unistr/u8-strcmp: Likewise.
19309         * modules/unistr/u8-strcoll: Likewise.
19310         * modules/unistr/u8-strcpy: Likewise.
19311         * modules/unistr/u8-strcspn: Likewise.
19312         * modules/unistr/u8-strdup: Likewise.
19313         * modules/unistr/u8-strlen: Likewise.
19314         * modules/unistr/u8-strmblen: Likewise.
19315         * modules/unistr/u8-strmbtouc: Likewise.
19316         * modules/unistr/u8-strncat: Likewise.
19317         * modules/unistr/u8-strncmp: Likewise.
19318         * modules/unistr/u8-strncpy: Likewise.
19319         * modules/unistr/u8-strnlen: Likewise.
19320         * modules/unistr/u8-strpbrk: Likewise.
19321         * modules/unistr/u8-strrchr: Likewise.
19322         * modules/unistr/u8-strspn: Likewise.
19323         * modules/unistr/u8-strstr: Likewise.
19324         * modules/unistr/u8-strtok: Likewise.
19325         * modules/unistr/u8-to-u16: Likewise.
19326         * modules/unistr/u8-to-u32: Likewise.
19327         * modules/unistr/u8-uctomb: Likewise.
19328         * modules/unistr/u16-check: Likewise.
19329         * modules/unistr/u16-chr: Likewise.
19330         * modules/unistr/u16-cmp: Likewise.
19331         * modules/unistr/u16-cmp2: Likewise.
19332         * modules/unistr/u16-cpy: Likewise.
19333         * modules/unistr/u16-cpy-alloc: Likewise.
19334         * modules/unistr/u16-endswith: Likewise.
19335         * modules/unistr/u16-mblen: Likewise.
19336         * modules/unistr/u16-mbsnlen: Likewise.
19337         * modules/unistr/u16-mbtouc: Likewise.
19338         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19339         * modules/unistr/u16-mbtoucr: Likewise.
19340         * modules/unistr/u16-move: Likewise.
19341         * modules/unistr/u16-next: Likewise.
19342         * modules/unistr/u16-prev: Likewise.
19343         * modules/unistr/u16-set: Likewise.
19344         * modules/unistr/u16-startswith: Likewise.
19345         * modules/unistr/u16-stpcpy: Likewise.
19346         * modules/unistr/u16-stpncpy: Likewise.
19347         * modules/unistr/u16-strcat: Likewise.
19348         * modules/unistr/u16-strchr: Likewise.
19349         * modules/unistr/u16-strcmp: Likewise.
19350         * modules/unistr/u16-strcoll: Likewise.
19351         * modules/unistr/u16-strcpy: Likewise.
19352         * modules/unistr/u16-strcspn: Likewise.
19353         * modules/unistr/u16-strdup: Likewise.
19354         * modules/unistr/u16-strlen: Likewise.
19355         * modules/unistr/u16-strmblen: Likewise.
19356         * modules/unistr/u16-strmbtouc: Likewise.
19357         * modules/unistr/u16-strncat: Likewise.
19358         * modules/unistr/u16-strncmp: Likewise.
19359         * modules/unistr/u16-strncpy: Likewise.
19360         * modules/unistr/u16-strnlen: Likewise.
19361         * modules/unistr/u16-strpbrk: Likewise.
19362         * modules/unistr/u16-strrchr: Likewise.
19363         * modules/unistr/u16-strspn: Likewise.
19364         * modules/unistr/u16-strstr: Likewise.
19365         * modules/unistr/u16-strtok: Likewise.
19366         * modules/unistr/u16-to-u32: Likewise.
19367         * modules/unistr/u16-to-u8: Likewise.
19368         * modules/unistr/u16-uctomb: Likewise.
19369         * modules/unistr/u32-check: Likewise.
19370         * modules/unistr/u32-chr: Likewise.
19371         * modules/unistr/u32-cmp: Likewise.
19372         * modules/unistr/u32-cmp2: Likewise.
19373         * modules/unistr/u32-cpy: Likewise.
19374         * modules/unistr/u32-cpy-alloc: Likewise.
19375         * modules/unistr/u32-endswith: Likewise.
19376         * modules/unistr/u32-mblen: Likewise.
19377         * modules/unistr/u32-mbsnlen: Likewise.
19378         * modules/unistr/u32-mbtouc: Likewise.
19379         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19380         * modules/unistr/u32-mbtoucr: Likewise.
19381         * modules/unistr/u32-move: Likewise.
19382         * modules/unistr/u32-next: Likewise.
19383         * modules/unistr/u32-prev: Likewise.
19384         * modules/unistr/u32-set: Likewise.
19385         * modules/unistr/u32-startswith: Likewise.
19386         * modules/unistr/u32-stpcpy: Likewise.
19387         * modules/unistr/u32-stpncpy: Likewise.
19388         * modules/unistr/u32-strcat: Likewise.
19389         * modules/unistr/u32-strchr: Likewise.
19390         * modules/unistr/u32-strcmp: Likewise.
19391         * modules/unistr/u32-strcoll: Likewise.
19392         * modules/unistr/u32-strcpy: Likewise.
19393         * modules/unistr/u32-strcspn: Likewise.
19394         * modules/unistr/u32-strdup: Likewise.
19395         * modules/unistr/u32-strlen: Likewise.
19396         * modules/unistr/u32-strmblen: Likewise.
19397         * modules/unistr/u32-strmbtouc: Likewise.
19398         * modules/unistr/u32-strncat: Likewise.
19399         * modules/unistr/u32-strncmp: Likewise.
19400         * modules/unistr/u32-strncpy: Likewise.
19401         * modules/unistr/u32-strnlen: Likewise.
19402         * modules/unistr/u32-strpbrk: Likewise.
19403         * modules/unistr/u32-strrchr: Likewise.
19404         * modules/unistr/u32-strspn: Likewise.
19405         * modules/unistr/u32-strstr: Likewise.
19406         * modules/unistr/u32-strtok: Likewise.
19407         * modules/unistr/u32-to-u16: Likewise.
19408         * modules/unistr/u32-to-u8: Likewise.
19409         * modules/unistr/u32-uctomb: Likewise.
19410         * modules/uniwbrk/u8-wordbreaks: Likewise.
19411         * modules/uniwbrk/u16-wordbreaks: Likewise.
19412         * modules/uniwbrk/u32-wordbreaks: Likewise.
19413         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19414         * modules/uniwbrk/wordbreak-property: Likewise.
19415         * modules/uniwidth/u8-strwidth: Likewise.
19416         * modules/uniwidth/u8-width: Likewise.
19417         * modules/uniwidth/u16-strwidth: Likewise.
19418         * modules/uniwidth/u16-width: Likewise.
19419         * modules/uniwidth/u32-strwidth: Likewise.
19420         * modules/uniwidth/u32-width: Likewise.
19421         * modules/uniwidth/width: Likewise.
19422         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19423         with $(LIBUNISTRING).
19424         * modules/unicase/ignorable-tests: Likewise.
19425         * modules/unicase/locale-language-tests: Likewise.
19426         * modules/unicase/tolower-tests: Likewise.
19427         * modules/unicase/totitle-tests: Likewise.
19428         * modules/unicase/toupper-tests: Likewise.
19429         * modules/unicase/u8-casecmp-tests: Likewise.
19430         * modules/unicase/u8-casecoll-tests: Likewise.
19431         * modules/unicase/u8-casefold-tests: Likewise.
19432         * modules/unicase/u8-is-cased-tests: Likewise.
19433         * modules/unicase/u8-is-casefolded-tests: Likewise.
19434         * modules/unicase/u8-is-lowercase-tests: Likewise.
19435         * modules/unicase/u8-is-titlecase-tests: Likewise.
19436         * modules/unicase/u8-is-uppercase-tests: Likewise.
19437         * modules/unicase/u8-tolower-tests: Likewise.
19438         * modules/unicase/u8-totitle-tests: Likewise.
19439         * modules/unicase/u8-toupper-tests: Likewise.
19440         * modules/unicase/u16-casecmp-tests: Likewise.
19441         * modules/unicase/u16-casecoll-tests: Likewise.
19442         * modules/unicase/u16-casefold-tests: Likewise.
19443         * modules/unicase/u16-is-cased-tests: Likewise.
19444         * modules/unicase/u16-is-casefolded-tests: Likewise.
19445         * modules/unicase/u16-is-lowercase-tests: Likewise.
19446         * modules/unicase/u16-is-titlecase-tests: Likewise.
19447         * modules/unicase/u16-is-uppercase-tests: Likewise.
19448         * modules/unicase/u16-tolower-tests: Likewise.
19449         * modules/unicase/u16-totitle-tests: Likewise.
19450         * modules/unicase/u16-toupper-tests: Likewise.
19451         * modules/unicase/u32-casecmp-tests: Likewise.
19452         * modules/unicase/u32-casecoll-tests: Likewise.
19453         * modules/unicase/u32-casefold-tests: Likewise.
19454         * modules/unicase/u32-is-cased-tests: Likewise.
19455         * modules/unicase/u32-is-casefolded-tests: Likewise.
19456         * modules/unicase/u32-is-lowercase-tests: Likewise.
19457         * modules/unicase/u32-is-titlecase-tests: Likewise.
19458         * modules/unicase/u32-is-uppercase-tests: Likewise.
19459         * modules/unicase/u32-tolower-tests: Likewise.
19460         * modules/unicase/u32-totitle-tests: Likewise.
19461         * modules/unicase/u32-toupper-tests: Likewise.
19462         * modules/unicase/ulc-casecmp-tests: Likewise.
19463         * modules/unicase/ulc-casecoll-tests: Likewise.
19464         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19465         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19466         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19467         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19468         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19469         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19470         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19471         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19472         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19473         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19474         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19475         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19476         * modules/unictype/bidicategory-byname-tests: Likewise.
19477         * modules/unictype/bidicategory-name-tests: Likewise.
19478         * modules/unictype/bidicategory-of-tests: Likewise.
19479         * modules/unictype/bidicategory-test-tests: Likewise.
19480         * modules/unictype/block-list-tests: Likewise.
19481         * modules/unictype/block-of-tests: Likewise.
19482         * modules/unictype/block-test-tests: Likewise.
19483         * modules/unictype/category-C-tests: Likewise.
19484         * modules/unictype/category-Cc-tests: Likewise.
19485         * modules/unictype/category-Cf-tests: Likewise.
19486         * modules/unictype/category-Cn-tests: Likewise.
19487         * modules/unictype/category-Co-tests: Likewise.
19488         * modules/unictype/category-Cs-tests: Likewise.
19489         * modules/unictype/category-L-tests: Likewise.
19490         * modules/unictype/category-Ll-tests: Likewise.
19491         * modules/unictype/category-Lm-tests: Likewise.
19492         * modules/unictype/category-Lo-tests: Likewise.
19493         * modules/unictype/category-Lt-tests: Likewise.
19494         * modules/unictype/category-Lu-tests: Likewise.
19495         * modules/unictype/category-M-tests: Likewise.
19496         * modules/unictype/category-Mc-tests: Likewise.
19497         * modules/unictype/category-Me-tests: Likewise.
19498         * modules/unictype/category-Mn-tests: Likewise.
19499         * modules/unictype/category-N-tests: Likewise.
19500         * modules/unictype/category-Nd-tests: Likewise.
19501         * modules/unictype/category-Nl-tests: Likewise.
19502         * modules/unictype/category-No-tests: Likewise.
19503         * modules/unictype/category-P-tests: Likewise.
19504         * modules/unictype/category-Pc-tests: Likewise.
19505         * modules/unictype/category-Pd-tests: Likewise.
19506         * modules/unictype/category-Pe-tests: Likewise.
19507         * modules/unictype/category-Pf-tests: Likewise.
19508         * modules/unictype/category-Pi-tests: Likewise.
19509         * modules/unictype/category-Po-tests: Likewise.
19510         * modules/unictype/category-Ps-tests: Likewise.
19511         * modules/unictype/category-S-tests: Likewise.
19512         * modules/unictype/category-Sc-tests: Likewise.
19513         * modules/unictype/category-Sk-tests: Likewise.
19514         * modules/unictype/category-Sm-tests: Likewise.
19515         * modules/unictype/category-So-tests: Likewise.
19516         * modules/unictype/category-Z-tests: Likewise.
19517         * modules/unictype/category-Zl-tests: Likewise.
19518         * modules/unictype/category-Zp-tests: Likewise.
19519         * modules/unictype/category-Zs-tests: Likewise.
19520         * modules/unictype/category-and-not-tests: Likewise.
19521         * modules/unictype/category-and-tests: Likewise.
19522         * modules/unictype/category-byname-tests: Likewise.
19523         * modules/unictype/category-name-tests: Likewise.
19524         * modules/unictype/category-none-tests: Likewise.
19525         * modules/unictype/category-of-tests: Likewise.
19526         * modules/unictype/category-or-tests: Likewise.
19527         * modules/unictype/category-test-withtable-tests: Likewise.
19528         * modules/unictype/combining-class-tests: Likewise.
19529         * modules/unictype/ctype-alnum-tests: Likewise.
19530         * modules/unictype/ctype-alpha-tests: Likewise.
19531         * modules/unictype/ctype-blank-tests: Likewise.
19532         * modules/unictype/ctype-cntrl-tests: Likewise.
19533         * modules/unictype/ctype-digit-tests: Likewise.
19534         * modules/unictype/ctype-graph-tests: Likewise.
19535         * modules/unictype/ctype-lower-tests: Likewise.
19536         * modules/unictype/ctype-print-tests: Likewise.
19537         * modules/unictype/ctype-punct-tests: Likewise.
19538         * modules/unictype/ctype-space-tests: Likewise.
19539         * modules/unictype/ctype-upper-tests: Likewise.
19540         * modules/unictype/ctype-xdigit-tests: Likewise.
19541         * modules/unictype/decimal-digit-tests: Likewise.
19542         * modules/unictype/digit-tests: Likewise.
19543         * modules/unictype/mirror-tests: Likewise.
19544         * modules/unictype/numeric-tests: Likewise.
19545         * modules/unictype/property-alphabetic-tests: Likewise.
19546         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19547         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19548         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19549         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19550         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19551         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19552         * modules/unictype/property-bidi-control-tests: Likewise.
19553         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19554         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19555         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19556         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19557         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19558         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19559         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19560         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19561         * modules/unictype/property-bidi-pdf-tests: Likewise.
19562         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19563         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19564         * modules/unictype/property-byname-tests: Likewise.
19565         * modules/unictype/property-combining-tests: Likewise.
19566         * modules/unictype/property-composite-tests: Likewise.
19567         * modules/unictype/property-currency-symbol-tests: Likewise.
19568         * modules/unictype/property-dash-tests: Likewise.
19569         * modules/unictype/property-decimal-digit-tests: Likewise.
19570         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19571         * modules/unictype/property-deprecated-tests: Likewise.
19572         * modules/unictype/property-diacritic-tests: Likewise.
19573         * modules/unictype/property-extender-tests: Likewise.
19574         * modules/unictype/property-format-control-tests: Likewise.
19575         * modules/unictype/property-grapheme-base-tests: Likewise.
19576         * modules/unictype/property-grapheme-extend-tests: Likewise.
19577         * modules/unictype/property-grapheme-link-tests: Likewise.
19578         * modules/unictype/property-hex-digit-tests: Likewise.
19579         * modules/unictype/property-hyphen-tests: Likewise.
19580         * modules/unictype/property-id-continue-tests: Likewise.
19581         * modules/unictype/property-id-start-tests: Likewise.
19582         * modules/unictype/property-ideographic-tests: Likewise.
19583         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19584         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19585         * modules/unictype/property-ignorable-control-tests: Likewise.
19586         * modules/unictype/property-iso-control-tests: Likewise.
19587         * modules/unictype/property-join-control-tests: Likewise.
19588         * modules/unictype/property-left-of-pair-tests: Likewise.
19589         * modules/unictype/property-line-separator-tests: Likewise.
19590         * modules/unictype/property-logical-order-exception-tests: Likewise.
19591         * modules/unictype/property-lowercase-tests: Likewise.
19592         * modules/unictype/property-math-tests: Likewise.
19593         * modules/unictype/property-non-break-tests: Likewise.
19594         * modules/unictype/property-not-a-character-tests: Likewise.
19595         * modules/unictype/property-numeric-tests: Likewise.
19596         * modules/unictype/property-other-alphabetic-tests: Likewise.
19597         * modules/unictype/property-other-default-ignorable-code-point-tests:
19598         Likewise.
19599         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19600         * modules/unictype/property-other-id-continue-tests: Likewise.
19601         * modules/unictype/property-other-id-start-tests: Likewise.
19602         * modules/unictype/property-other-lowercase-tests: Likewise.
19603         * modules/unictype/property-other-math-tests: Likewise.
19604         * modules/unictype/property-other-uppercase-tests: Likewise.
19605         * modules/unictype/property-paired-punctuation-tests: Likewise.
19606         * modules/unictype/property-paragraph-separator-tests: Likewise.
19607         * modules/unictype/property-pattern-syntax-tests: Likewise.
19608         * modules/unictype/property-pattern-white-space-tests: Likewise.
19609         * modules/unictype/property-private-use-tests: Likewise.
19610         * modules/unictype/property-punctuation-tests: Likewise.
19611         * modules/unictype/property-quotation-mark-tests: Likewise.
19612         * modules/unictype/property-radical-tests: Likewise.
19613         * modules/unictype/property-sentence-terminal-tests: Likewise.
19614         * modules/unictype/property-soft-dotted-tests: Likewise.
19615         * modules/unictype/property-space-tests: Likewise.
19616         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19617         * modules/unictype/property-test-tests: Likewise.
19618         * modules/unictype/property-titlecase-tests: Likewise.
19619         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19620         * modules/unictype/property-unified-ideograph-tests: Likewise.
19621         * modules/unictype/property-uppercase-tests: Likewise.
19622         * modules/unictype/property-variation-selector-tests: Likewise.
19623         * modules/unictype/property-white-space-tests: Likewise.
19624         * modules/unictype/property-xid-continue-tests: Likewise.
19625         * modules/unictype/property-xid-start-tests: Likewise.
19626         * modules/unictype/property-zero-width-tests: Likewise.
19627         * modules/unictype/scripts-tests: Likewise.
19628         * modules/unictype/syntax-c-ident-tests: Likewise.
19629         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19630         * modules/unictype/syntax-java-ident-tests: Likewise.
19631         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19632         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19633         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19634         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19635         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19636         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19637         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19638         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19639         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19640         * modules/uniname/uniname-tests: Likewise.
19641         * modules/uninorm/canonical-decomposition-tests: Likewise.
19642         * modules/uninorm/compat-decomposition-tests: Likewise.
19643         * modules/uninorm/composition-tests: Likewise.
19644         * modules/uninorm/decomposing-form-tests: Likewise.
19645         * modules/uninorm/decomposition-tests: Likewise.
19646         * modules/uninorm/filter-tests: Likewise.
19647         * modules/uninorm/nfc-tests: Likewise.
19648         * modules/uninorm/nfd-tests: Likewise.
19649         * modules/uninorm/nfkc-tests: Likewise.
19650         * modules/uninorm/nfkd-tests: Likewise.
19651         * modules/uninorm/u8-normcmp-tests: Likewise.
19652         * modules/uninorm/u8-normcoll-tests: Likewise.
19653         * modules/uninorm/u16-normcmp-tests: Likewise.
19654         * modules/uninorm/u16-normcoll-tests: Likewise.
19655         * modules/uninorm/u32-normcmp-tests: Likewise.
19656         * modules/uninorm/u32-normcoll-tests: Likewise.
19657         * modules/unistdio/u8-asnprintf-tests: Likewise.
19658         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19659         * modules/unistdio/u8-vasprintf-tests: Likewise.
19660         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19661         * modules/unistdio/u8-vsprintf-tests: Likewise.
19662         * modules/unistdio/u16-asnprintf-tests: Likewise.
19663         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19664         * modules/unistdio/u16-vasprintf-tests: Likewise.
19665         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19666         * modules/unistdio/u16-vsprintf-tests: Likewise.
19667         * modules/unistdio/u32-asnprintf-tests: Likewise.
19668         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19669         * modules/unistdio/u32-vasprintf-tests: Likewise.
19670         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19671         * modules/unistdio/u32-vsprintf-tests: Likewise.
19672         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19673         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19674         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19675         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19676         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19677         * modules/unistr/u8-check-tests: Likewise.
19678         * modules/unistr/u8-chr-tests: Likewise.
19679         * modules/unistr/u8-cmp-tests: Likewise.
19680         * modules/unistr/u8-cmp2-tests: Likewise.
19681         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19682         * modules/unistr/u8-cpy-tests: Likewise.
19683         * modules/unistr/u8-mblen-tests: Likewise.
19684         * modules/unistr/u8-mbsnlen-tests: Likewise.
19685         * modules/unistr/u8-mbtouc-tests: Likewise.
19686         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19687         * modules/unistr/u8-mbtoucr-tests: Likewise.
19688         * modules/unistr/u8-move-tests: Likewise.
19689         * modules/unistr/u8-next-tests: Likewise.
19690         * modules/unistr/u8-prev-tests: Likewise.
19691         * modules/unistr/u8-set-tests: Likewise.
19692         * modules/unistr/u8-stpcpy-tests: Likewise.
19693         * modules/unistr/u8-stpncpy-tests: Likewise.
19694         * modules/unistr/u8-strcat-tests: Likewise.
19695         * modules/unistr/u8-strcmp-tests: Likewise.
19696         * modules/unistr/u8-strcoll-tests: Likewise.
19697         * modules/unistr/u8-strcpy-tests: Likewise.
19698         * modules/unistr/u8-strdup-tests: Likewise.
19699         * modules/unistr/u8-strlen-tests: Likewise.
19700         * modules/unistr/u8-strmblen-tests: Likewise.
19701         * modules/unistr/u8-strmbtouc-tests: Likewise.
19702         * modules/unistr/u8-strncat-tests: Likewise.
19703         * modules/unistr/u8-strncmp-tests: Likewise.
19704         * modules/unistr/u8-strncpy-tests: Likewise.
19705         * modules/unistr/u8-strnlen-tests: Likewise.
19706         * modules/unistr/u8-to-u16-tests: Likewise.
19707         * modules/unistr/u8-to-u32-tests: Likewise.
19708         * modules/unistr/u8-uctomb-tests: Likewise.
19709         * modules/unistr/u16-check-tests: Likewise.
19710         * modules/unistr/u16-chr-tests: Likewise.
19711         * modules/unistr/u16-cmp-tests: Likewise.
19712         * modules/unistr/u16-cmp2-tests: Likewise.
19713         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19714         * modules/unistr/u16-cpy-tests: Likewise.
19715         * modules/unistr/u16-mblen-tests: Likewise.
19716         * modules/unistr/u16-mbsnlen-tests: Likewise.
19717         * modules/unistr/u16-mbtouc-tests: Likewise.
19718         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19719         * modules/unistr/u16-mbtoucr-tests: Likewise.
19720         * modules/unistr/u16-move-tests: Likewise.
19721         * modules/unistr/u16-next-tests: Likewise.
19722         * modules/unistr/u16-prev-tests: Likewise.
19723         * modules/unistr/u16-set-tests: Likewise.
19724         * modules/unistr/u16-stpcpy-tests: Likewise.
19725         * modules/unistr/u16-stpncpy-tests: Likewise.
19726         * modules/unistr/u16-strcat-tests: Likewise.
19727         * modules/unistr/u16-strcmp-tests: Likewise.
19728         * modules/unistr/u16-strcoll-tests: Likewise.
19729         * modules/unistr/u16-strcpy-tests: Likewise.
19730         * modules/unistr/u16-strdup-tests: Likewise.
19731         * modules/unistr/u16-strlen-tests: Likewise.
19732         * modules/unistr/u16-strmblen-tests: Likewise.
19733         * modules/unistr/u16-strmbtouc-tests: Likewise.
19734         * modules/unistr/u16-strncat-tests: Likewise.
19735         * modules/unistr/u16-strncmp-tests: Likewise.
19736         * modules/unistr/u16-strncpy-tests: Likewise.
19737         * modules/unistr/u16-strnlen-tests: Likewise.
19738         * modules/unistr/u16-to-u32-tests: Likewise.
19739         * modules/unistr/u16-to-u8-tests: Likewise.
19740         * modules/unistr/u16-uctomb-tests: Likewise.
19741         * modules/unistr/u32-check-tests: Likewise.
19742         * modules/unistr/u32-chr-tests: Likewise.
19743         * modules/unistr/u32-cmp-tests: Likewise.
19744         * modules/unistr/u32-cmp2-tests: Likewise.
19745         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19746         * modules/unistr/u32-cpy-tests: Likewise.
19747         * modules/unistr/u32-mblen-tests: Likewise.
19748         * modules/unistr/u32-mbsnlen-tests: Likewise.
19749         * modules/unistr/u32-mbtouc-tests: Likewise.
19750         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19751         * modules/unistr/u32-mbtoucr-tests: Likewise.
19752         * modules/unistr/u32-move-tests: Likewise.
19753         * modules/unistr/u32-next-tests: Likewise.
19754         * modules/unistr/u32-prev-tests: Likewise.
19755         * modules/unistr/u32-set-tests: Likewise.
19756         * modules/unistr/u32-stpcpy-tests: Likewise.
19757         * modules/unistr/u32-stpncpy-tests: Likewise.
19758         * modules/unistr/u32-strcat-tests: Likewise.
19759         * modules/unistr/u32-strcmp-tests: Likewise.
19760         * modules/unistr/u32-strcoll-tests: Likewise.
19761         * modules/unistr/u32-strcpy-tests: Likewise.
19762         * modules/unistr/u32-strdup-tests: Likewise.
19763         * modules/unistr/u32-strlen-tests: Likewise.
19764         * modules/unistr/u32-strmblen-tests: Likewise.
19765         * modules/unistr/u32-strmbtouc-tests: Likewise.
19766         * modules/unistr/u32-strncat-tests: Likewise.
19767         * modules/unistr/u32-strncmp-tests: Likewise.
19768         * modules/unistr/u32-strncpy-tests: Likewise.
19769         * modules/unistr/u32-strnlen-tests: Likewise.
19770         * modules/unistr/u32-to-u16-tests: Likewise.
19771         * modules/unistr/u32-to-u8-tests: Likewise.
19772         * modules/unistr/u32-uctomb-tests: Likewise.
19773         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19774         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19775         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19776         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19777         * modules/uniwidth/u8-strwidth-tests: Likewise.
19778         * modules/uniwidth/u8-width-tests: Likewise.
19779         * modules/uniwidth/u16-strwidth-tests: Likewise.
19780         * modules/uniwidth/u16-width-tests: Likewise.
19781         * modules/uniwidth/u32-strwidth-tests: Likewise.
19782         * modules/uniwidth/u32-width-tests: Likewise.
19783         * modules/uniwidth/width-tests: Likewise.
19784
19785 2010-05-18  Richard Jones  <rjones@redhat.com>
19786
19787         doc: users.txt: list hivex
19788         * users.txt: Add hivex.
19789
19790 2010-05-18  Richard Jones  <rjones@redhat.com>
19791
19792         doc: users.txt: list febootstrap
19793         * users.txt: Add febootstrap.
19794
19795 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19796
19797         bootstrap: fix an error when gnulib is not used as a git submodule
19798         * build-aux/bootstrap (gnulib_path): If its length is zero then
19799         assign "gnulib" to it.
19800         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19801
19802 2010-05-16  Bruno Haible  <bruno@clisp.org>
19803
19804         Avoid autoconf warnings about AM_ICONV.
19805         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19806         2.64.
19807
19808 2010-05-16  Bruno Haible  <bruno@clisp.org>
19809
19810         absolute-header: Make the macro usable in more situations.
19811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19812         from gl_ABSOLUTE_HEADER.
19813         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19814
19815 2010-05-16  James Youngman  <jay@gnu.org>
19816
19817         doc: update users.txt
19818         * users.txt: Add CSSC.
19819
19820 2010-05-16  Jim Meyering  <meyering@redhat.com>
19821
19822         init.sh: fix an error in the previous change; add more comments
19823         * tests/init.sh: Compare exit code in loop against 9, not 2.
19824         Patch by Bruno Haible.
19825         Make the two tests more similar by adding an empty "then" clause.
19826         Add comments.
19827
19828         init.sh: avoid unnecessary shell re-exec
19829         * tests/init.sh: Improve the re-exec-required check to first test the
19830         current shell.  If it passes the test, do not search for a shell that
19831         does pass, and do not re-exec.  This test is particularly contorted to
19832         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19833         of $(...) evokes a syntax error and causes immediate shell exit with
19834         status 2.  Bruno Haible reported that the re-exec made it impossible
19835         to single-step through any init.sh-using script.
19836
19837 2010-05-16  Bruno Haible  <bruno@clisp.org>
19838
19839         Fix collision between gnulib's and libintl's printf replacements.
19840         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19841         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19842         (printf): When using GNU C, map the __printf__ function to rpl_printf
19843         via __asm__. When not using GNU C, define rpl_printf instead of
19844         __printf__.
19845         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19846         commit.
19847         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19848         commit.
19849         * m4/asm-underscore.m4: New file.
19850         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19851         * modules/stdio (Files): Add m4/asm-underscore.m4.
19852         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19853         Reported by Ben Pfaff.
19854
19855 2010-05-16  Bruno Haible  <bruno@clisp.org>
19856
19857         verify: Avoid skipping the test on openSUSE 11.0.
19858         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19859
19860 2010-05-13  Bruno Haible  <bruno@clisp.org>
19861
19862         Avoid useless warnings from G++.
19863         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19864         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19865         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19866
19867 2010-05-11  Jim Meyering  <meyering@redhat.com>
19868
19869         maint.mk: tweak preceding change
19870         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19871         regexps tighter by anchoring at EOL, and make the new group "shy"
19872         for slightly decreased overhead.
19873
19874 2010-05-11  Eric Blake  <eblake@redhat.com>
19875
19876         maint.mk: gnulib doesn't guarantee NSIG
19877         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19878
19879 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19880
19881         test-pwrite.c: Remove unused variable declaration.
19882         * tests/test-pwrite.c (main): Remove read_buf declaration.
19883
19884         Remove useless test-pwrite.sh file.
19885         * tests/test-pwrite.sh: Delete file.
19886         * modules/pwrite-tests: Remove references.
19887         Reported by Bruno Haible.
19888
19889 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19890
19891         init.sh: fix a typo
19892         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19893
19894 2010-05-10  Jim Meyering  <meyering@redhat.com>
19895
19896         maint.mk: avoid using a temporary file in the always-defined-macros check
19897         * top/maint.mk (.re-defmac): Remove rule.
19898         (gl_trap_): Remove definition.
19899         (sc_prohibit_always-defined_macros): Rewrite not to create and
19900         depend on a temporary file.  Instead, depend on GNU grep's ability
19901         to read a list of regular expressions from stdin when given "-f -".
19902
19903 2010-05-09  Bruno Haible  <bruno@clisp.org>
19904
19905         Update to GNU gettext 0.18, part 1.
19906         * m4/gettext.m4: Update to GNU gettext 0.18.
19907         * m4/intl.m4: Likewise.
19908         * m4/po.m4: Likewise.
19909         * modules/gettext (Files): Add m4/fcntl-o.m4.
19910         (configure.ac): Require gettext infrastructure from version 0.18.
19911
19912 2010-05-09  Jim Meyering  <meyering@redhat.com>
19913
19914         init.sh: enable MALLOC_PERTURB_
19915         * tests/init.sh: Enable glibc's malloc-perturbing option.
19916
19917         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19918         With my recent change in init.sh from the two-line form:
19919             -#   : ${srcdir=.}
19920             -#   . "$srcdir/init.sh"; path_prepend_ .
19921             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19922         I noticed that using the one-line form would cause this test
19923         to fail with a false-positive, or to stop working altogether,
19924         depending on whether help-version changed or all the tests did.
19925         * top/maint.mk (_hv_regex): Remove this definition.
19926         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19927         (_hv_regex_strong): Use a stronger regex to check for conformance.
19928         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19929         Give a separate diagnostic for lack of conforming use.
19930
19931         maint.mk: prohibit definition of symbols defined by gnulib
19932         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19933         definition of symbols defined by gnulib.
19934
19935 2010-05-09  Bruno Haible  <bruno@clisp.org>
19936
19937         acl: Avoid test failure on Cygwin-hosted mingw.
19938         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19939
19940 2010-05-09  Bruno Haible  <bruno@clisp.org>
19941
19942         error: Use system's fcntl function.
19943         * lib/error.c (fcntl): Undefine.
19944
19945 2010-05-09  Jim Meyering  <meyering@redhat.com>
19946
19947         verify: adjust formatting to be more consistent
19948         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19949         argument-list '('s, and after one comma.
19950
19951 2010-05-09  Bruno Haible  <bruno@clisp.org>
19952
19953         error: More reliable output on mingw.
19954         * lib/error.c: Include <windows.h>.
19955         (is_open): New function.
19956         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19957         defined.
19958
19959 2010-05-09  Bruno Haible  <bruno@clisp.org>
19960
19961         vasnprintf: Fix syntax errors in libintl build on mingw.
19962         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19963         pad_ourselves and prec_ourselves after use.
19964
19965 2010-05-08  Bruno Haible  <bruno@clisp.org>
19966
19967         * lib/config.charset: Update comments for Cygwin 1.7.
19968         * lib/localcharset.c: Likewise.
19969
19970 2010-05-07  Jim Meyering  <meyering@redhat.com>
19971
19972         init.sh: improve comments
19973         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19974         . "${srcdir=.}/init.sh"; path_prepend_ .
19975         Add a note about path_prepend_ and the alternative of using
19976         TESTS_ENVIRONMENT.
19977
19978 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19979
19980         exclude: Unescape hashed patterns in wildcard mode.
19981         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19982         to the hash list.
19983         * tests/test-exclude8.sh: New test case.
19984         * modules/exclude-tests: Add new test.
19985
19986 2010-05-05  Eric Blake  <eblake@redhat.com>
19987
19988         verify: automate tests
19989         * modules/verify-tests: New module.
19990         * tests/test-verify.sh: New file.
19991         * tests/test-verify.c: Guard each negative test with a unique id.
19992         Also avoid warning about unused left hand of comma expressions.
19993
19994 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19995
19996         Further improvements to verify.h, suggested by Eric Blake.
19997         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19998         the GL_* versions, to avoid collision with OpenGL.
19999         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20000         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20001         than testing merely whether it's defined.
20002
20003         Modify verify.h to pacify gcc -Wredundant_decls.
20004         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20005         These use the prefix "GL_" since they're likely to be useful elsewhere.
20006         We may need to break them out into a different .h file.
20007         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20008         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20009         of verify_function__.
20010
20011 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20012
20013         Tests for module pwrite.
20014         * modules/pwrite-tests: New file.
20015         * tests/test-pwrite.sh: New file.
20016         * tests/test-pwrite.c: New file.
20017
20018         New module pwrite.
20019         * lib/unistd.in.h (pwrite): New declaration.
20020         * lib/pwrite.c: New file, from glibc with modifications.
20021         * m4/pwrite.m4: New file.
20022         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20023         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20024         REPLACE_PWRITE.
20025         * modules/pwrite: New file.
20026         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20027         REPLACE_PWRITE.
20028         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20029         * doc/posix-functions/pwrite.texi: Mention the new module.
20030
20031 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20032
20033         pread: Update documentation.
20034         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20035
20036 2010-05-04  Eric Blake  <eblake@redhat.com>
20037
20038         docs: update cygwin progress
20039         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20040         this bug.
20041         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20042         Added in cygwin 1.7.2.
20043         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20044         Likewise.
20045         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20046         Likewise.
20047         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20048         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20049         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20050         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20051         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20052         Mention nproc module.
20053         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20054         bug in cygwin 1.7.5 addition.
20055         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20056         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20057         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20058         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20059         1.7.5.
20060         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20061         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20062         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20063         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20064         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20065         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20066         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20067         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20068         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20069         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20070         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20071         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20072         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20073         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20074         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20075         Likewise.
20076         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20077         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20078         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20079         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20080         Likewise.
20081         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20082         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20083         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20084         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20085         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20086         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20087         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20088         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20089         Likewise.
20090         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20091         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20092         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20093         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20094         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20095         Likewise.
20096         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20097         Likewise.
20098         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20099         Likewise.
20100         * doc/glibc-functions/xdrrec_endofrecord.texi
20101         (xdrrec_endofrecord): Likewise.
20102         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20103         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20104         Likewise.
20105         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20106         Likewise.
20107
20108 2010-05-04  Jim Meyering  <meyering@redhat.com>
20109
20110         gendocs.sh: make its "-s FILE" option more useful
20111         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20112         $PACKAGE to reflect the probably-different basename of "FILE".
20113
20114 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20115
20116         bootstrap: don't ignore download_po_files failure
20117         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20118         failure.
20119
20120 2010-05-03  Jim Meyering  <meyering@redhat.com>
20121
20122         maint.mk: allow to pass options to gendocs.sh
20123         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20124         (gendocs_options_): New overridable variable.
20125
20126         gnu-web-doc-update: don't ignore configure or build failure
20127         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20128
20129         announce-gen: backslash-escape '@'s in --help output
20130         * build-aux/announce-gen: Fix syntax errors.
20131
20132         maint.mk, announce-gen: allow project-specific announcement mail headers
20133         * top/maint.mk (translation_project_): Define default.
20134         (announcement_Cc_, announcement_mail_headers_): Likewise.
20135         (announcement): Invoke announce-gen with new --mail-headers option.
20136         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20137
20138         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20139         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20140         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20141         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20142         line in the "err2" output file when running "make check" in verbose
20143         mode (i.e., with set -x enabled).
20144
20145 2010-05-03  Bruno Haible  <bruno@clisp.org>
20146
20147         wctob: Fix for weird platforms.
20148         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20149         argument value.
20150
20151 2010-05-03  Jim Meyering  <meyering@redhat.com>
20152
20153         maint.mk: prohibit unwarranted use of <strings.h>
20154         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20155         strings.h in a file that does not also use strcasecmp, strncasecmp,
20156         ffs or ffsll.
20157
20158         maint.mk: remove obsolete comments
20159         * top/maint.mk: Remove stale, commented-out rules.
20160
20161 2010-05-02  Bruno Haible  <bruno@clisp.org>
20162
20163         wcwidth: Declare also when it's aliased.
20164         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20165         macro.
20166
20167 2010-05-02  Bruno Haible  <bruno@clisp.org>
20168
20169         Fix regression from 2010-04-25.
20170         * gnulib-tool (func_modules_transitive_closure): Check the status of
20171         all modules, not only of the tests that are of the form foo-tests where
20172         foo is a module.
20173
20174 2010-05-02  Bruno Haible  <bruno@clisp.org>
20175
20176         wctob: Work around nasty Cygwin 1.7.2 bug.
20177         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20178         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20179
20180 2010-05-01  Bruno Haible  <bruno@clisp.org>
20181
20182         fpurge: Sharper test.
20183         * tests/test-fpurge.c (main): Add one more ftell check.
20184         * modules/fpurge-tests (Depends-on): Add ftell.
20185         Suggested by Eric Blake.
20186
20187 2010-05-01  Bruno Haible  <bruno@clisp.org>
20188
20189         ftello: Another test.
20190         * tests/test-ftello3.c: New file.
20191         * modules/ftello-tests (Files): Add it.
20192         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20193         MOSTLYCLEANFILES.
20194
20195         ftell: Another test.
20196         * tests/test-ftell3.c: New file.
20197         * modules/ftell-tests (Files): Add it.
20198         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20199         MOSTLYCLEANFILES.
20200
20201 2010-05-01  Bruno Haible  <bruno@clisp.org>
20202
20203         ftell, ftello: Work around Solaris bug.
20204         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20205         * lib/ftello.c: Include stdio-impl.h.
20206         (ftello): On Solaris, when _IOWRT is set, compute the result without
20207         looking at _IOREAD.
20208         * modules/ftello (Files): Add lib/stdio-impl.h.
20209         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20210         * doc/posix-functions/ftello.texi: Likewise.
20211         Reported by Eric Blake.
20212
20213 2010-05-01  Bruno Haible  <bruno@clisp.org>
20214
20215         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20216         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20217         the _IOWRT flag is also set.
20218
20219 2010-05-01  Bruno Haible  <bruno@clisp.org>
20220
20221         Fix doc about a HP-UX stdio bug.
20222         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20223         * doc/posix-functions/ftello.texi: Likewise.
20224
20225 2010-05-01  Bruno Haible  <bruno@clisp.org>
20226
20227         lseek test: Fix failure on Solaris.
20228         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20229         output.
20230
20231 2010-04-30  Jim Meyering  <meyering@redhat.com>
20232
20233         bootstrap: don't ignore failure to generate po*/Makevars
20234         * build-aux/bootstrap (with_gettext): Don't ignore failure
20235         to create po/Makevars or runtime-po/Makevars.
20236
20237 2010-04-29  Eric Blake  <eblake@redhat.com>
20238
20239         headers: relax license to LGPLv2+
20240         * modules/fcntl-h (License): Relax license.
20241         * modules/getopt-posix (License): Likewise.
20242         * modules/locale (License): Likewise.
20243         * modules/math (License): Likewise.
20244         * modules/pty (License): Likewise.
20245         * modules/sched (License): Likewise.
20246         * modules/search (License): Likewise.
20247         * modules/spawn (License): Likewise.
20248         * modules/stdarg (License): Likewise.
20249         * modules/sysexits (License): Likewise.
20250
20251 2010-04-29  Jim Meyering  <meyering@redhat.com>
20252
20253         inttypes: relax license to LGPLv2+
20254         * modules/inttypes (License): Relax license.
20255
20256 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20257
20258         * top/maint.mk (indent): Run twice to produce idempotent results.
20259
20260 2010-04-28  Bruno Haible  <bruno@clisp.org>
20261
20262         getdate: Generate getdate.c in the source directory.
20263         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20264         MOSTLYCLEANFILES.
20265         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20266
20267 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20268
20269         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20270         is not declared as a const *; avoid warnings in that case.
20271
20272 2010-04-28  Eric Blake  <eblake@redhat.com>
20273
20274         canonicalize-lgpl: avoid compiler warning
20275         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20276         declaration' / 'extraneous semicolon' warning with some compilers.
20277         Reported by Andreas Gruenbacher.
20278
20279 2010-04-28  Jim Meyering  <meyering@redhat.com>
20280
20281         init.sh: ensure a more reliable exit status when exiting via trap
20282         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20283         Inspired by patches from Dmitry V. Levin.
20284         Also trap on signal 3 (SIGQUIT).
20285
20286 2010-04-27  Bruno Haible  <bruno@clisp.org>
20287
20288         Update doc about utimes().
20289         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20290         'utimens' module.
20291         Reported by Andreas Gruenbacher <agruen@suse.de>.
20292
20293 2010-04-27  Eric Blake  <eblake@redhat.com>
20294
20295         full-read, full-write: relax license
20296         * modules/full-read (License): Drop to LGPLv2+.
20297         * modules/full-write (License): Likewise.
20298         * modules/safe-read (License): Likewise.
20299         * modules/safe-write (License): Likewise.
20300
20301         pthread: mention library for linking
20302         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20303
20304 2010-04-27  Jim Meyering  <meyering@redhat.com>
20305
20306         maint.mk: fix a bug introduced in last change
20307         * top/maint.mk (gl_assured_headers_): Now that all names are on
20308         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20309         is not anchored to end of word, it should be adequate.
20310
20311         maint.mk: avoid side-effect in latest syntax-check
20312         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20313         to run commands via $(shell...), and hence to incur cost only when
20314         the new rule is actually run.
20315
20316         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20317         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20318         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20319         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20320         (gl_assured_headers_, az_, AZ_): Define.
20321         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20322
20323 2010-04-26  Jim Meyering  <jim@meyering.net>
20324             Bruno Haible  <bruno@clisp.org>
20325
20326         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20328         Prompted by an exchange with Gilles Espinasse.
20329
20330 2010-04-26  Jim Meyering  <meyering@redhat.com>
20331
20332         git-version-gen: aesthetic tweak
20333         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20334         so that the command remains on a single line.
20335
20336 2010-04-26  Eric Blake  <eblake@redhat.com>
20337
20338         git-version-gen: allow use on EBCDIC hosts
20339         * build-aux/git-version-gen (dirty): Use literal rather than tying
20340         ourselves to ascii.
20341         Reported by Steve Goetze.
20342
20343 2010-04-25  Bruno Haible  <bruno@clisp.org>
20344
20345         netdb: Add support for GNULIB_POSIXCHECK.
20346         * lib/netdb.in.h: Include warn-on-use.h.
20347         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20348         functions are used when GNULIB_POSIXCHECK is defined and the
20349         getaddrinfo module is not in use.
20350         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20351         freeaddrinfo, gai_strerror, getnameinfo are declared.
20352         * modules/netdb (Depends-on): Add warn-on-use.
20353         (Makefile.am): Include warn-on-use.h in netdb.h.
20354
20355 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20356
20357         build: avoid "make check" failure without .git/ directory
20358         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20359         there is no .git/ directory.
20360
20361 2010-04-25  Bruno Haible  <bruno@clisp.org>
20362
20363         ptsname: Fix misuse of ttyname_r.
20364         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20365         of errno.
20366
20367 2010-04-25  Bruno Haible  <bruno@clisp.org>
20368
20369         ttyname_r: Make it work on Solaris 10.
20370         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20371         if the system function has the POSIX declaration. Test whether the
20372         function fails if the buffer is less than 128 bytes large.
20373         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20374         system's ttyname_r function. Provide a reasonably large buffer.
20375         * modules/ttyname_r (Depends-on): Add extensions.
20376         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20377
20378 2010-04-25  Bruno Haible  <bruno@clisp.org>
20379
20380         Use the 'extensions' module for some more functions on Solaris.
20381         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20382         module.
20383         * doc/posix-functions/ctime_r.texi: Likewise.
20384         * doc/posix-functions/getgrgid_r.texi: Likewise.
20385         * doc/posix-functions/getgrnam_r.texi: Likewise.
20386         * doc/posix-functions/getpwnam_r.texi: Likewise.
20387         * doc/posix-functions/getpwuid_r.texi: Likewise.
20388         * doc/posix-functions/readdir_r.texi: Likewise.
20389         * doc/posix-functions/sigwait.texi: Likewise.
20390         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20391         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20392
20393 2010-04-25  Bruno Haible  <bruno@clisp.org>
20394
20395         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20396         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20397         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20398         * lib/ttyname_r.c: Include <limits.h>.
20399         (ttyname_r): Define using the system's ttyname_r function, if it exists
20400         and not on Solaris.
20401         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20402         set.
20403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20404         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20405         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20406         Reported by Simon Josefsson.
20407
20408 2010-04-25  Bruno Haible  <bruno@clisp.org>
20409
20410         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20411         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20412         * doc/posix-functions/ctime_r.texi: Likewise.
20413         * doc/posix-functions/getgrgid_r.texi: Likewise.
20414         * doc/posix-functions/getgrnam_r.texi: Likewise.
20415         * doc/posix-functions/getlogin_r.texi: Likewise.
20416         * doc/posix-functions/getpwnam_r.texi: Likewise.
20417         * doc/posix-functions/getpwuid_r.texi: Likewise.
20418         * doc/posix-functions/readdir_r.texi: Likewise.
20419         * doc/posix-functions/sigwait.texi: Likewise.
20420         * doc/posix-functions/ttyname_r.texi: Likewise.
20421         Reported by Simon Josefsson.
20422
20423 2010-04-25  Bruno Haible  <bruno@clisp.org>
20424
20425         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20426         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20427         also to --create-testdir.
20428         (func_acceptable): Don't consider the status of *-tests modules here.
20429         (func_modules_transitive_closure): Consider it here, before including a
20430         test module.
20431         (func_import, func_create_testdir): Set inc_all_direct_tests,
20432         inc_all_indirect_tests.
20433         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20434         --create-testdir and --create-megatestdir.
20435
20436 2010-04-25  Bruno Haible  <bruno@clisp.org>
20437
20438         gnulib-tool: Add --without-*-tests options.
20439         * gnulib-tool (func_usage): Document the --without-*-tests options.
20440         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20441         excl_unportable_tests): New variables.
20442         Fail if they are specified with --import or --update.
20443         (func_acceptable): Respect the excl_*_tests variables.
20444         (func_import): Set the excl_*_tests variables to empty.
20445
20446 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20447             Bruno Haible  <bruno@clisp.org>
20448
20449         Work around a MacOS X 10.4 bug with openpty.
20450         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20451         * tests/test-openpty.c (main): Close the master side explicitly.
20452
20453 2010-04-25  Bruno Haible  <bruno@clisp.org>
20454
20455         strnlen: Fix a C++ test error on MacOS X and Solaris.
20456         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20457         the function is not declared.
20458         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20459         Simon Josefsson.
20460
20461 2010-04-24  Bruno Haible  <bruno@clisp.org>
20462
20463         Avoid a gcc warning.
20464         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20465         of correct type for %08lx directive.
20466         Reported by Eric Blake.
20467
20468 2010-04-24  Bruno Haible  <bruno@clisp.org>
20469
20470         vasnprintf: Correct errno value in case of out-of-memory.
20471         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20472         or sprintf. Use the errno value from SNPRINTF or sprintf.
20473         Reported by Ian Beckwith <ianb@erislabs.net>.
20474
20475 2010-04-24  Bruno Haible  <bruno@clisp.org>
20476
20477         ansi-c++-opt: Find correct compiler when cross-compiling.
20478         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20479         AC_CHECK_PROGS.
20480         Reported by Simon Josefsson.
20481
20482 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20483
20484         vc-list-files: Add support for subversion
20485         * build-aux/vc-list-files: Use "svn list" to generate the list of
20486         files controlled by subversion.
20487
20488 2010-04-23  Jim Meyering  <meyering@redhat.com>
20489
20490         vc-list-files tests: convert to use init.sh
20491         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20492         path_prepend_.
20493         Use Exit, not exit.
20494         Use skip_ rather than open coding it.
20495         Remove trap set-up and compare definitions.
20496         * tests/test-vc-list-files-git.sh: Likewise.
20497         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20498
20499 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20500
20501         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20502         backup files.
20503
20504 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20505
20506         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20507
20508 2010-04-20  Eric Blake  <eblake@redhat.com>
20509
20510         tests: be robust to ignored SIGPIPE
20511         * tests/test-select-in.sh: Consume all output.
20512         * tests/test-lseek.sh: Check correct exit status, while avoiding
20513         EPIPE.
20514
20515 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20516             Bruno Haible  <bruno@clisp.org>
20517
20518         visibility: Don't use -fvisibility if it leads to a warning.
20519         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20520         yes, don't pretend that visibility works if it leads to a warning.
20521         Reported by Mike Gran <spk121@yahoo.com>.
20522
20523 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20524
20525         * build-aux/bootstrap: Use "git -h" for testing for supported options
20526         instead of "git --help".  The short-form option only shows a summary,
20527         and doesn't layout the full man page.  Grep for the full option name
20528         in the summary, too.
20529
20530 2010-04-19  Bruno Haible  <bruno@clisp.org>
20531
20532         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20533         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20534         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20535         mention of RELOCATABLE_STRIP.
20536         Reported by Sylvain Beucler <beuc@beuc.net>.
20537
20538 2010-04-19  Bruno Haible  <bruno@clisp.org>
20539
20540         * lib/diffseq.h: Fix typo in comment.
20541         Reported by Eric Blake.
20542
20543 2010-04-19  Bruno Haible  <bruno@clisp.org>
20544
20545         ioctl: Move autoconf macro to a .m4 file.
20546         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20547         * modules/ioctl (Files): Add it.
20548         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20549         Reported by Ian Beckwith <ianb@erislabs.net>.
20550
20551 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20552             Bruno Haible  <bruno@clisp.org>
20553
20554         diffseq: Accommodate use-case with abstract arrays.
20555         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20556         is not defined.
20557         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20558         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20559
20560 2010-04-18  Bruno Haible  <bruno@clisp.org>
20561
20562         * doc/posix-headers/stdbool.texi: More precise wording.
20563
20564 2010-04-17  Jim Meyering  <meyering@redhat.com>
20565
20566         maint.mk: use gnu-style indentation in an embedded perl script
20567         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20568         Rename variable: s/two/last_two_bytes/
20569
20570 2010-04-16  Eric Blake  <eblake@redhat.com>
20571
20572         test-stdbool: skip test that fails with Solaris CC
20573         * tests/test-stdbool.c (f): Skip test that causes compilation
20574         error under buggy C++ compiler.
20575         * lib/stdbool.in.h: Document the limitation.
20576         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20577
20578         setenv: allow compilation with C++
20579         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20580         register keyword.
20581
20582         stdint: allow test to pass with C++
20583         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20584
20585         getopt: allow compilation with C++
20586         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20587         struct.
20588         * lib/getopt.c (_getopt_internal_r): Use correct type.
20589         Reported by Dagobert Michelson, via Joel E. Denny.
20590
20591 2010-04-16  Bruno Haible  <bruno@clisp.org>
20592
20593         Override netdb.h always.
20594         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20595         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20596         Reported by Ludovic Courtès <ludo@gnu.org>.
20597
20598 2010-04-15  Bruno Haible  <bruno@clisp.org>
20599
20600         openpty: Fix mistake from 2010-03-21.
20601         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20602         Reported by Simon Josefsson.
20603
20604 2010-04-15  Eric Blake  <eblake@redhat.com>
20605
20606         test-forkpty: fix expected signature
20607         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20608         Reported by Simon Josefsson.
20609
20610 2010-04-15  Jim Meyering  <meyering@redhat.com>
20611
20612         maint.mk: texinfo_suffix_re_: correct the default regexp
20613         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20614
20615         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20616         make it configurable via texinfo_suffix_re_.
20617
20618 2010-04-14  Eric Blake  <eblake@redhat.com>
20619
20620         strtok_r: relax license to LGPLv2+
20621         * modules/strtok_r (License): Relax license.
20622         Reported by Matthias Bolte.
20623
20624 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20625
20626         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20627         version 1.4.4 by default instead of requiring the libgcrypt
20628         version used during build.  This makes it possible to use the
20629         application with older but still binary compatible libgcrypt
20630         versions.
20631
20632 2010-04-13  Eric Blake  <eblake@redhat.com>
20633
20634         getopt-gnu: match recent glibc fixes and posix ruling
20635         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20636         '+' handling, when requesting extensions.
20637         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20638         'W;' handling.
20639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20640         * doc/posix-functions/getopt.texi (getopt): Document this.
20641         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20642         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20643         Likewise.
20644
20645         getopt: merge bug fixes from glibc
20646         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20647         diagnostics.  Honor '+:' correctly.  Reject ';'.
20648
20649         getopt-posix: detect MacOS bug
20650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20651         optind when missing a required argument.
20652         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20653         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20654         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20655         Likewise.
20656
20657         getopt-posix: avoid spurious failure on Solaris
20658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20659         an indicator that setting optind=1 is sufficient for reset.
20660
20661         getopt-posix: avoid spurious failure on FreeBSD
20662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20663         in POSIX mode, since the m4 test uses it.
20664
20665         gnulib-tool: silence warning on BSD sh
20666         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20667
20668 2010-04-13  Jim Meyering  <meyering@redhat.com>
20669
20670         doc: users.txt: GNU patch now uses gnulib
20671         * users.txt: Add patch.
20672
20673 2010-04-12  Jim Meyering  <meyering@redhat.com>
20674
20675         maint.mk: generate more concise timing data for syntax-check rules
20676         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20677         " done" from each line that reports a syntax-check test duration.
20678
20679 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20680
20681         git-version-gen: use "git update-index..." rather than "git status"
20682         * build-aux/git-version-gen: Use git update-index --refresh, not
20683         "git status".  With some versions of git, "git status" would fail
20684         to update the index and result in an unwarranted "-dirty" suffix.
20685
20686 2010-04-11  Jim Meyering  <meyering@redhat.com>
20687
20688         openat: correct formatting (no semantic change)
20689         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20690         Suggested by Bruno Haible.
20691
20692 2010-04-11  Bruno Haible  <bruno@clisp.org>
20693
20694         Stricter declaration checking in testdirs.
20695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20696         If for_tests is true, augment AM_CPPFLAGS to define
20697         GNULIB_STRICT_CHECKING.
20698         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20699         GNULIB_STRICT_CHECKING is defined, verify that the function is
20700         declared.
20701
20702 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20703             Bruno Haible  <bruno@clisp.org>
20704
20705         libunistring: Improve configure output.
20706         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20707         Don't say "consider installing GNU libunistring" when checking again
20708         with libiconv.
20709
20710 2010-04-11  Bruno Haible  <bruno@clisp.org>
20711
20712         libunistring: Correct value of $LTLIBUNISTRING.
20713         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20714         correct the value of $LTLIBUNISTRING.
20715
20716 2010-04-11  Bruno Haible  <bruno@clisp.org>
20717
20718         havelib: Add static libraries to LIBS in the right order.
20719         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20720         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20721
20722 2010-04-11  Bruno Haible  <bruno@clisp.org>
20723
20724         libunistring: Detect libunistring also when it depends on libiconv.
20725         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20726         the second AC_LIB_HAVE_LINKFLAGS invocation.
20727
20728 2010-04-11  James Youngman  <jay@gnu.org>
20729
20730         close-stream: declare local scalars to be "const"
20731         * lib/close-stream.c (close_stream): Make boolean variables const
20732         to document the fact that we set but do not change them.
20733
20734 2010-04-11  Bruno Haible  <bruno@clisp.org>
20735
20736         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20737
20738 2010-04-11  Jim Meyering  <meyering@redhat.com>
20739
20740         maint.mk: don't include dist-check.mk
20741         * top/maint.mk: Remove bogus include directive.
20742
20743         maint.mk: improve empty-line-at-EOF check
20744         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20745         solution, rather than tail+Perl-based one.  The latter would read
20746         a few kilobytes from the end of each file, and did not handle empty
20747         files properly.
20748
20749         maint.mk: print the elapsed time for each syntax-check rule
20750         * top/maint.mk (sc_m_rules_): Save start time in a file.
20751         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20752         (local-check): Interpose the .z rules
20753
20754 2010-04-11  Jim Meyering  <meyering@redhat.com>
20755
20756         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20757         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20758         empty file with one that ends in an empty line.
20759
20760 2010-04-10  Bruno Haible  <bruno@clisp.org>
20761
20762         mkdir: Make it work on mingw64.
20763         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20764         * lib/mkdir.c: Update comment.
20765         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20766
20767 2010-04-10  Bruno Haible  <bruno@clisp.org>
20768
20769         Don't override improved macro from newer autoconf.
20770         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20771         autoconf >= 2.62.
20772         Reported by Joel E. Denny <jdenny@clemson.edu>.
20773
20774 2010-04-10  Jim Meyering  <meyering@redhat.com>
20775
20776         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20777         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20778
20779         maint.mk: correct a diagnostic
20780         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20781         in diagnostic; now use $prohibit.
20782
20783 2010-04-10  Bruno Haible  <address@hidden>
20784
20785         fchownat: Fix a C++ test error on Solaris 8.
20786         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20787         the function does not exist.
20788
20789 2010-04-10  Bruno Haible  <bruno@clisp.org>
20790
20791         vasnprintf: Add more tests.
20792         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20793         (test_function): Test converting an invalid wide string.
20794
20795         vasnprintf: Correct handling of unconvertible wide string arguments.
20796         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20797         VASNPRINTF.
20798         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20799         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20800         smaller than the expected maximum need for the directive. Set errno to
20801         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20802         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20803         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20804         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20805         * modules/vasnprintf (Files): Add m4/printf.m4.
20806         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20807
20808 2010-04-10  Bruno Haible  <bruno@clisp.org>
20809
20810         vasnprintf: Fix crash in %ls directive.
20811         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20812         string is passed as argument to %ls, with no precision and no width.
20813         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20814
20815 2010-04-10  Bruno Haible  <bruno@clisp.org>
20816
20817         vasnprintf: Fix multiple test failures on mingw.
20818         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20819         _snprintf, or snwprintf, not _snwprintf.
20820
20821 2010-04-10  Bruno Haible  <bruno@clisp.org>
20822
20823         write: Fix a C++ test error on mingw.
20824         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20825
20826 2010-04-10  Bruno Haible  <bruno@clisp.org>
20827
20828         vasnprintf test: Reduce code duplication.
20829         * tests/test-vasnprintf.c (test_function): New function, extracted from
20830         test_vasnprintf.
20831         (test_vasnprintf, test_asnprintf): Invoke it.
20832
20833 2010-04-10  Bruno Haible  <bruno@clisp.org>
20834
20835         strnlen: Fix warning in C++ mode on MacOS X.
20836         * lib/string.in.h (strnlen): Use the modern idiom.
20837         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20838         defining strnlen as a macro already in <config.h>.
20839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20840         REPLACE_STRNLEN.
20841         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20842         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20843
20844 2010-04-08  James Youngman  <jay@gnu.org>
20845
20846         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20847         the example.
20848
20849 2010-04-09  Jim Meyering  <meyering@redhat.com>
20850
20851         maint.mk: print better diagnostic when there is no $(_hv_file)
20852         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20853         announce that when $(_hv_file) (aka help-version) does not exist.
20854
20855         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20856         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20857         not try to interpret its random input bytes.  Jarno Rajahalme reported
20858         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20859         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20860         (mktempd_): Likewise, just in case.
20861
20862         ftruncate: add two years to projected module removal date: 2012
20863         * m4/ftruncate.m4: Adjust comments.
20864
20865         ftruncate: mark module as obsolete; even MinGW provides it, now
20866         * modules/ftruncate (Status): Obsolete.
20867         (Notice): Say that.
20868         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20869         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20870
20871 2010-04-08  Bruno Haible  <bruno@clisp.org>
20872
20873         Fix side effects from tests-related modules.
20874         * modules/dprintf-posix (Comment): New section.
20875         * modules/fprintf-posix (Comment): Likewise.
20876         * modules/obstack-printf-posix (Comment): Likewise.
20877         * modules/printf-posix (Comment): Likewise.
20878         * modules/snprintf-posix (Comment): Likewise.
20879         * modules/sprintf-posix (Comment): Likewise.
20880         * modules/vasnprintf-posix (Comment): Likewise.
20881         * modules/vasprintf-posix (Comment): Likewise.
20882         * modules/vdprintf-posix (Comment): Likewise.
20883         * modules/vfprintf-posix (Comment): Likewise.
20884         * modules/vprintf-posix (Comment): Likewise.
20885         * modules/vsnprintf-posix (Comment): Likewise.
20886         * modules/vsprintf-posix (Comment): Likewise.
20887         * modules/xprintf-posix (Comment): Likewise.
20888         * modules/xvasprintf-posix (Comment): Likewise.
20889         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20890         * modules/floorf-tests (Depends-on): Likewise.
20891         * modules/round-tests (Depends-on): Likewise.
20892         * modules/roundf-tests (Depends-on): Likewise.
20893         * modules/trunc-tests (Depends-on): Likewise.
20894         * modules/truncf-tests (Depends-on): Likewise.
20895         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20896         'fprintf-posix' module is not present.
20897         * tests/test-floorf2.c (check): Likewise.
20898         * tests/test-trunc2.c (check): Likewise.
20899         * tests/test-truncf2.c (check): Likewise.
20900         * tests/test-round2.c (equal): Likewise.
20901         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20902
20903 2010-04-07  Karl Berry  <karl@gnu.org>
20904
20905         * config/srclist.txt,
20906         * config/srclistvars.sh,
20907         * config/srclist-update: doc fixes.
20908
20909 2010-04-07  Jim Meyering  <meyering@redhat.com>
20910
20911         maint.mk: add a PATH crosschecking syntax-check rule
20912         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20913         Useful if you use a test like the one in help-version (coreutils,
20914         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20915         printed by prog --version.
20916
20917 2010-04-06  Bruno Haible  <bruno@clisp.org>
20918
20919         Fix link error on mingw.
20920         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20921         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20922
20923 2010-04-06  Bruno Haible  <bruno@clisp.org>
20924
20925         Assume rmdir exists.
20926         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20927
20928 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20929
20930         doc: update users.txt
20931         * users.txt: Add gcal.
20932
20933 2010-04-06  Jim Meyering  <meyering@redhat.com>
20934
20935         init.sh: simply unset TMPDIR rather than risking env -i
20936         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20937         although it probably works fine on all Unix-based systems, some
20938         systems (Cygwin?) cannot tolerate a totally cleared environment.
20939         Suggestion from Eric Blake.
20940
20941 2010-04-06  Jim Meyering  <meyering@redhat.com>
20942
20943         init.sh: portability fix: use env's POSIX-specified -i option not -u
20944         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20945         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20946
20947 2010-04-05  Bruno Haible  <bruno@clisp.org>
20948
20949         btowc: Work around Cygwin 1.7.2 bug.
20950         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20951         does not map NUL to 0.
20952         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20953
20954 2010-04-05  Bruno Haible  <bruno@clisp.org>
20955
20956         Make the multithread modules work on Cygwin 1.7.2.
20957         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20958         imported symbols can be declared weak, so that it returns "no" on
20959         Cygwin 1.7.2.
20960
20961 2010-04-05  Bruno Haible  <bruno@clisp.org>
20962
20963         Use the module 'strncat'.
20964         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20965
20966         Tests for module 'strncat'.
20967         * modules/strncat-tests: New file.
20968         * tests/test-strncat.c: New file.
20969
20970         New module 'strncat'.
20971         * lib/string.in.h (strncat): New declaration.
20972         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20973         * m4/strncat.m4: New file, based on m4/memchr.m4.
20974         * modules/strncat: New file.
20975         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20976         is declared.
20977         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20978         REPLACE_STRNCAT.
20979         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20980         REPLACE_STRNCAT.
20981         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20982         module.
20983         * tests/test-string-c++.cc: Check signature of strncat.
20984
20985 2010-04-05  Jim Meyering  <meyering@redhat.com>
20986
20987         xstrtoumax-tests: convert to use init.sh
20988         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20989         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20990         Use Exit, not exit.
20991         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20992
20993         xstrtoimax-tests: convert to use init.sh
20994         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20995         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20996         Use Exit, not exit.
20997         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20998
20999 2010-04-05  Bruno Haible  <bruno@clisp.org>
21000
21001         sys_socket: Avoid #define replacements in C++ mode.
21002         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21003         warning to the function if possible, rather than #defining the symbol
21004         to a dysfunctional alias.
21005
21006 2010-04-05  Bruno Haible  <bruno@clisp.org>
21007
21008         fseeko: Fix C++ test error on mingw.
21009         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21010         gl_FUNC_FSEEKO.
21011         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21012         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21013         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21014         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21015
21016 2010-04-05  Bruno Haible  <bruno@clisp.org>
21017
21018         duplocale: Improve test output.
21019         * tests/test-duplocale.c (main): Print reason for skipped test.
21020
21021 2010-04-05  Bruno Haible  <bruno@clisp.org>
21022
21023         Assume rmdir exists.
21024         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21025         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21026
21027 2010-04-05  Bruno Haible  <bruno@clisp.org>
21028
21029         Fix link error on Solaris 8 with cc.
21030         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21031
21032 2010-04-05  Bruno Haible  <bruno@clisp.org>
21033
21034         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21035         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21036
21037 2010-04-05  Bruno Haible  <bruno@clisp.org>
21038
21039         vasprintf: Update documentation.
21040         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21041
21042 2010-04-05  Bruno Haible  <bruno@clisp.org>
21043
21044         ptsname: Improve test.
21045         * tests/test-ptsname.c (main): Also try the various master names of BSD
21046         systems.
21047
21048 2010-04-05  Bruno Haible  <bruno@clisp.org>
21049
21050         memchr: Avoid a possible C++ test error.
21051         * lib/string.in.h (memchr): Provide declaration if function is missing.
21052         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21053         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21055         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21056
21057 2010-04-05  Bruno Haible  <bruno@clisp.org>
21058
21059         strtok_r: Improve idiom.
21060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21061         AC_LIBOBJ is used.
21062
21063 2010-04-05  Bruno Haible  <bruno@clisp.org>
21064
21065         strdup: Improve idiom.
21066         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21067         AC_LIBOBJ is used.
21068         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21069         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21070         when AC_LIBOBJ is used.
21071
21072 2010-04-05  Bruno Haible  <bruno@clisp.org>
21073
21074         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21075         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21076         don't set REPLACE_MBSINIT to 1.
21077         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21078         don't set REPLACE_MBRTOWC to 1.
21079         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21080         exist, don't set REPLACE_MBSRTOWCS to 1.
21081         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21082         exist, don't set REPLACE_MBSNRTOWCS to 1.
21083         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21084         don't set REPLACE_WCRTOMB to 1.
21085         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21086         exist, don't set REPLACE_WCSRTOMBS to 1.
21087         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21088         exist, don't set REPLACE_WCSNRTOMBS to 1.
21089
21090 2010-04-05  Bruno Haible  <bruno@clisp.org>
21091
21092         ldexpl: Improve idiom.
21093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21094         make sure to set HAVE_DECL_LDEXPL to 0.
21095
21096 2010-04-05  Jim Meyering  <meyering@redhat.com>
21097
21098         xstrtol-tests: convert to use init.sh
21099         * modules/xstrtol-tests (Files): Add tests/init.sh.
21100         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21101         Use Exit, not exit.
21102         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21103
21104         atexit-tests: convert to use init.sh
21105         * modules/atexit-tests (Files): Add tests/init.sh.
21106         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21107         Use Exit, not exit.
21108         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21109
21110         init.sh: fix typo
21111         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21112
21113         init.sh: make it easier for a test script to write to the tty, ...
21114         when using automake's parallel-tests mode.
21115         * tests/init.sh (stderr_fileno_): Define overridable variable.
21116         (warn_): New function, to use it.
21117         (fail_, skip_, framework_failure_): Use warn_.
21118
21119 2010-04-04  Bruno Haible  <bruno@clisp.org>
21120
21121         btowc: Avoid warning.
21122         * lib/btowc.c: Include <stdlib.h>.
21123         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21124
21125 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21126             Bruno Haible  <bruno@clisp.org>
21127
21128         wchar: Port to NetBSD 1.5.
21129         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21130         * lib/wctype.in.h (WEOF): Likewise.
21131
21132 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21133             Bruno Haible  <bruno@clisp.org>
21134
21135         Port extended stdio to NetBSD 1.5.
21136         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21137         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21138         older.
21139
21140 2010-04-04  Bruno Haible  <bruno@clisp.org>
21141
21142         string: Remove unused substitution.
21143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21144         HAVE_DECL_STRERROR.
21145         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21146
21147 2010-04-04  Bruno Haible  <bruno@clisp.org>
21148
21149         strtod: Avoid a possible C++ test error.
21150         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21151         set REPLACE_STRTOD.
21152
21153 2010-04-04  Bruno Haible  <bruno@clisp.org>
21154
21155         strerror: Update documentation.
21156         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21157
21158 2010-04-04  Bruno Haible  <bruno@clisp.org>
21159
21160         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21161         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21162         _GL_CXXALIAS_SYS_CAST.
21163
21164 2010-04-04  Bruno Haible  <bruno@clisp.org>
21165
21166         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21167         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21168         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21169         REPLACE_FREXPL to 1.
21170         * doc/posix-functions/frexpl.texi: Update documentation.
21171
21172 2010-04-04  Bruno Haible  <bruno@clisp.org>
21173
21174         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21175         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21176
21177 2010-04-04  Bruno Haible  <bruno@clisp.org>
21178
21179         Implement nanosleep for native Windows.
21180         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21181
21182 2010-04-04  Bruno Haible  <bruno@clisp.org>
21183
21184         math: Fix some C++ test errors on Solaris 8.
21185         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21186
21187 2010-04-04  Bruno Haible  <bruno@clisp.org>
21188
21189         math: Fix some C++ test errors on Cygwin.
21190         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21191         truncl): Provide declaration if the system does not have it.
21192         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21193         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21194         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21195         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21196         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21197         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21198         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21199         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21200         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21201         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21202         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21203         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21204         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21205         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21206         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21207         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21209         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21210         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21211         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21212         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21213         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21214
21215 2010-04-04  Bruno Haible  <bruno@clisp.org>
21216
21217         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21218         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21219         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21220         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21221         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21222         * m4/isinf.m4 (gl_ISINF): Likewise.
21223         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21224
21225 2010-04-04  Bruno Haible  <bruno@clisp.org>
21226
21227         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21228         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21229
21230 2010-04-04  Bruno Haible  <bruno@clisp.org>
21231
21232         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21233         * modules/tmpfile (configure.ac): Update.
21234
21235         tmpfile: Fix C++ test error on mingw.
21236         * lib/stdio.in.h (tmpfile): New declaration.
21237         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21238         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21239         * modules/tmpfile (Depends-on): Add stdio.
21240         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21241         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21242         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21243         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21244         REPLACE_TMPFILE.
21245         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21246
21247 2010-04-04  Bruno Haible  <bruno@clisp.org>
21248
21249         ioctl: Fix C++ test error on mingw.
21250         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21251         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21252         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21253
21254 2010-04-03  Bruno Haible  <bruno@clisp.org>
21255
21256         wcwidth: Fix C++ test error on mingw.
21257         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21259         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21260
21261 2010-04-03  Bruno Haible  <bruno@clisp.org>
21262
21263         nanosleep: Fix C++ test error on mingw.
21264         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21265         * lib/time.in.h (nanosleep): Use modern idiom.
21266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21267         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21268         REPLACE_NANOSLEEP to 1.
21269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21270         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21271
21272 2010-04-03  Bruno Haible  <bruno@clisp.org>
21273
21274         strptime: Fix C++ test error on mingw.
21275         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21276         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21277         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21278         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21279         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21280         not REPLACE_STRPTIME.
21281         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21282         REPLACE_STRPTIME.
21283
21284 2010-04-03  Bruno Haible  <bruno@clisp.org>
21285
21286         timegm: Fix C++ test error on mingw.
21287         * lib/time.in.h (timegm): Use modern idiom.
21288         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21289         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21290         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21291         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21292
21293 2010-04-03  Bruno Haible  <bruno@clisp.org>
21294
21295         timegm: Assume declaration if function exists.
21296         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21297         if it exists. Don't clobber ac_cv_func_timegm.
21298
21299 2010-04-03  Bruno Haible  <bruno@clisp.org>
21300
21301         time_r: Fix C++ test error on mingw.
21302         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21303         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21304         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21306         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21307
21308 2010-04-03  Bruno Haible  <bruno@clisp.org>
21309
21310         time_r: Minor updates.
21311         * modules/time_r (Description): Mention the provided functions.
21312         * lib/time_r.c: Don't include <string.h>.
21313         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21314         * doc/posix-functions/localtime_r.texi: Likewise.
21315
21316 2010-04-03  Bruno Haible  <bruno@clisp.org>
21317
21318         time: Fix regression introduced on 2010-03-08.
21319         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21320         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21321
21322 2010-04-03  Jim Meyering  <meyering@redhat.com>
21323
21324         maint.mk: don't silently disable project-specific syntax-check rules
21325         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21326         that they need to convert their project-specific syntax-check rules
21327         to use the new _sc_search_regexp.
21328
21329 2010-04-03  Bruno Haible  <bruno@clisp.org>
21330
21331         fchdir: Fix regression introduced on 2010-03-08.
21332         * lib/unistd.in.h (fchdir): Fix declaration.
21333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21335         REPLACE_FCHDIR.
21336         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21337         REPLACE_FCHDIR.
21338
21339 2010-04-03  Bruno Haible  <bruno@clisp.org>
21340
21341         getpagesize: Fix C++ test error on mingw.
21342         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21343         system does not declare the function.
21344         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21345         declared.
21346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21347         HAVE_DECL_GETPAGESIZE.
21348         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21349
21350 2010-04-03  Bruno Haible  <bruno@clisp.org>
21351
21352         stdio: Make C++ tests work on mingw.
21353         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21354         does not declare the function.
21355
21356 2010-04-03  Bruno Haible  <bruno@clisp.org>
21357
21358         ftello: Fix C++ test error on mingw.
21359         * lib/stdio.in.h (ftello): Use modern idiom.
21360         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21361         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21362         is missing and that it needs to be replaced.
21363         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21365         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21366
21367 2010-04-03  Bruno Haible  <bruno@clisp.org>
21368
21369         fseeko: Fix C++ test error on mingw.
21370         * lib/stdio.in.h (fseeko): Use modern idiom.
21371         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21372         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21373         is missing and that it needs to be replaced.
21374         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21376         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21377
21378 2010-04-03  Bruno Haible  <bruno@clisp.org>
21379
21380         mkstemp: Fix C++ test error on mingw.
21381         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21383         function is missing and that it needs to be replaced.
21384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21385         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21386
21387 2010-04-03  Bruno Haible  <bruno@clisp.org>
21388
21389         stpncpy: Fix C++ test error on mingw.
21390         * lib/string.in.h (stpncpy): Use modern idiom.
21391         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21392         function is missing and that it needs to be replaced.
21393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21394         REPLACE_STPNCPY.
21395         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21396
21397 2010-04-03  Bruno Haible  <bruno@clisp.org>
21398
21399         sys_stat: Fix C++ test error on mingw.
21400         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21401         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21402
21403 2010-04-03  Bruno Haible  <bruno@clisp.org>
21404
21405         pty: Update doc.
21406         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21407
21408 2010-04-03  Bruno Haible  <bruno@clisp.org>
21409
21410         unistd: Fix C++ test error on mingw.
21411         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21412
21413 2010-04-03  Bruno Haible  <bruno@clisp.org>
21414
21415         Update doc regarding mingw.
21416         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21417         * doc/glibc-functions/login_tty.texi: Likewise.
21418         * doc/glibc-functions/forkpty.texi: Likewise.
21419
21420 2010-04-03  Bruno Haible  <bruno@clisp.org>
21421
21422         stdlib: Avoid compilation failure of c-strtold on mingw.
21423         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21424
21425 2010-04-03  Bruno Haible  <bruno@clisp.org>
21426
21427         locale: Make C++ tests work on Cygwin and mingw.
21428         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21429         cannot provide the function.
21430         Reported by Simon Josefsson.
21431
21432 2010-04-03  Bruno Haible  <bruno@clisp.org>
21433
21434         localename: Port to MacOS X 10.6.
21435         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21436         memory layout of the locales in MacOS X 10.6 as well.
21437         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21438
21439 2010-04-02  Bruno Haible  <bruno@clisp.org>
21440
21441         gnulib-tool: Ensure that long-running tests are executed last.
21442         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21443         running tests after the one for the other tests.
21444
21445 2010-04-02  Bruno Haible  <bruno@clisp.org>
21446
21447         gnulib-tool: Ensure the tests in the main directory are executed first.
21448         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21449         start with the current directory.
21450
21451 2010-04-02  Bruno Haible  <bruno@clisp.org>
21452
21453         Tests for module 'havelib', moved here from GNU gettext.
21454         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21455         modifications.
21456         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21457         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21458         with modifications.
21459         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21460         modifications.
21461         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21462         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21463         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21464         with modifications.
21465         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21466         with modifications.
21467         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21468         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21469         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21470         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21471         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21472         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21473         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21474         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21475         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21476         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21477         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21478         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21479         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21480         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21481         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21482         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21483         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21484         with modifications.
21485         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21486         with modifications.
21487         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21488         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21489         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21490         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21491         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21492         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21493         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21494         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21495         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21496         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21497         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21498         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21499         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21500         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21501         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21502         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21503         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21504         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21505         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21506         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21507         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21508         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21509         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21510         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21511         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21512         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21513         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21514         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21515         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21516         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21517         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21518         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21519         * tests/havelib/rpathx/rpathx.c: New file, from
21520         gettext/autoconf-lib-link.
21521         * tests/havelib/rpathx/Makefile.am: New file, from
21522         gettext/autoconf-lib-link.
21523         * tests/havelib/rpathx/configure.ac: New file, from
21524         gettext/autoconf-lib-link with modifications.
21525         * tests/havelib/rpathy/rpathy.c: New file, from
21526         gettext/autoconf-lib-link.
21527         * tests/havelib/rpathy/Makefile.am: New file, from
21528         gettext/autoconf-lib-link.
21529         * tests/havelib/rpathy/configure.ac: New file, from
21530         gettext/autoconf-lib-link with modifications.
21531         * tests/havelib/rpathz/rpathz.c: New file, from
21532         gettext/autoconf-lib-link.
21533         * tests/havelib/rpathz/Makefile.am: New file, from
21534         gettext/autoconf-lib-link.
21535         * tests/havelib/rpathz/configure.ac: New file, from
21536         gettext/autoconf-lib-link with modifications.
21537         * tests/havelib/rpathlx/usex.c: New file, from
21538         gettext/autoconf-lib-link.
21539         * tests/havelib/rpathlx/Makefile.am: New file, from
21540         gettext/autoconf-lib-link.
21541         * tests/havelib/rpathlx/configure.ac: New file, from
21542         gettext/autoconf-lib-link with modifications.
21543         * tests/havelib/rpathly/usey.c: New file, from
21544         gettext/autoconf-lib-link.
21545         * tests/havelib/rpathly/Makefile.am: New file, from
21546         gettext/autoconf-lib-link.
21547         * tests/havelib/rpathly/configure.ac: New file, from
21548         gettext/autoconf-lib-link with modifications.
21549         * tests/havelib/rpathlz/usez.c: New file, from
21550         gettext/autoconf-lib-link.
21551         * tests/havelib/rpathlz/Makefile.am: New file, from
21552         gettext/autoconf-lib-link.
21553         * tests/havelib/rpathlz/configure.ac: New file, from
21554         gettext/autoconf-lib-link with modifications.
21555         * tests/havelib/rpathlyx/usey.c: New file, from
21556         gettext/autoconf-lib-link.
21557         * tests/havelib/rpathlyx/Makefile.am: New file, from
21558         gettext/autoconf-lib-link.
21559         * tests/havelib/rpathlyx/configure.ac: New file, from
21560         gettext/autoconf-lib-link with modifications.
21561         * tests/havelib/rpathlzyx/usez.c: New file, from
21562         gettext/autoconf-lib-link.
21563         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21564         gettext/autoconf-lib-link.
21565         * tests/havelib/rpathlzyx/configure.ac: New file, from
21566         gettext/autoconf-lib-link with modifications.
21567         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21568         with modifications.
21569
21570 2010-04-02  Bruno Haible  <bruno@clisp.org>
21571
21572         gnulib-tool: Create distributed built sources also for the tests.
21573         * gnulib-tool (func_create_testdir): Also generate distributed built
21574         sources in the tests directory.
21575
21576 2010-04-02  Bruno Haible  <bruno@clisp.org>
21577
21578         gnulib-tool: Obey user's environment variables.
21579         * gnulib-tool (func_create_testdir): When creating built sources,
21580         respect the environment variables for autoconf, automake, etc. given by
21581         the user.
21582
21583 2010-04-02  Bruno Haible  <bruno@clisp.org>
21584
21585         gnulib-tool: Provide the value of --m4-base to modules.
21586         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21587         of gl_m4_base.
21588
21589 2010-04-02  Eric Blake  <eblake@redhat.com>
21590
21591         maint.mk: fix some fallout
21592         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21593         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21594
21595 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21596
21597         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21598         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21599         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21600         (sc_cast_of_x_alloc_return_value): Likewise.
21601         (sc_cast_of_alloca_return_value): Likewise.
21602         (sc_space_tab): Likewise.
21603         (sc_prohibit_atoi_atof): Likewise.
21604         (sc_prohibit_magic_number_exit): Likewise.
21605         (sc_error_exit_success): Likewise.
21606         (sc_file_system): Likewise.
21607         (sc_prohibit_have_config_h): Likewise.
21608         (sc_require_config_h): Likewise.
21609         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21610         (sc_obsolete_symbols): Likewise.
21611         (sc_changelog): Likewise.
21612         (sc_program_name): Likewise.
21613         (sc_the_the): Likewise.
21614         (sc_trailing_blank): Likewise.
21615         (sc_two_space_separator_in_usage): Likewise.
21616         (sc_useless_cpp_parens): Likewise.
21617         (sc_GPL_version): Likewise.
21618         (sc_GFDL_version): Likewise.
21619         (sc_texinfo_acronym): Likewise.
21620         (sc_prohibit_cvs_keyword): Likewise.
21621         (sc_prohibit_stat_st_blocks): Likewise.
21622         (sc_prohibit_S_IS_definition): Likewise.
21623         (sc_redundant_const): Likewise.
21624         (sc_makefile_TAB_only_indentation): Likewise.
21625         (sc_m4_quote_check): Likewise.
21626         (sc_makefile_path_separator_check): Likewise.
21627         (sc_copyright_check): Likewise.
21628         (sc_Wundef_boolean): Likewise.
21629         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21630
21631         maint.mk: match 0 or more whitespace-before-function-call '('
21632         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21633         that have zero or two-and-more spaces between the function name
21634         and the open parenthesis.
21635         (sc_error_message_warn_fatal): Likewise.
21636         (sc_error_message_uppercase): Likewise.
21637         (sc_error_message_period): Likewise.
21638
21639 2010-03-31  Eric Blake  <eblake@redhat.com>
21640
21641         maint.mk: check for [ as well as test
21642         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21643         Based on a libvirt report by Matthias Bolte.
21644
21645         gnumakefile: don't squelch _version output
21646         * top/GNUmakefile (_version): Create one-shot dependency rather
21647         than using $(shell) when version must be regenerated.
21648         (_autoreconf): Run verbosely, by default.
21649
21650         sys_time: avoid compiler warnings
21651         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21652         unconditional, fixing regression from 2010-03-29.
21653         Reported by Simon Josefsson.
21654
21655 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21656
21657         maint.mk: s/_header_without_use/_sc_header_without_use/
21658         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21659         (sc_prohibit_assert_without_use): Use the new name.
21660         (sc_prohibit_close_stream_without_use): Likewise.
21661         (sc_prohibit_getopt_without_use): Likewise.
21662         (sc_prohibit_quotearg_without_use): Likewise.
21663         (sc_prohibit_quote_without_use): Likewise.
21664         (sc_prohibit_long_options_without_use): Likewise.
21665         (sc_prohibit_inttostr_without_use): Likewise.
21666         (sc_prohibit_ignore_value_without_use): Likewise.
21667         (sc_prohibit_error_without_use): Likewise.
21668         (sc_prohibit_xalloc_without_use): Likewise.
21669         (sc_prohibit_hash_without_use): Likewise.
21670         (sc_prohibit_hash_pjw_without_use): Likewise.
21671         (sc_prohibit_safe_read_without_use): Likewise.
21672         (sc_prohibit_argmatch_without_use): Likewise.
21673         (sc_prohibit_canonicalize_without_use): Likewise.
21674         (sc_prohibit_root_dev_ino_without_use): Likewise.
21675         (sc_prohibit_openat_without_use): Likewise.
21676         (sc_prohibit_c_ctype_without_use): Likewise.
21677         (sc_prohibit_signal_without_use): Likewise.
21678         (sc_prohibit_intprops_without_use): Likewise.
21679
21680 2010-03-30  Eric Blake  <eblake@redhat.com>
21681
21682         maint: improve module indicators
21683         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21684         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21685         columns, and avoid extra macro expansion.
21686
21687         fdopendir: work around FreeBSD bug
21688         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21689         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21690         * modules/dirent (Makefile.am): Substitute it.
21691         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21692         declaration.
21693         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21694         fix.
21695         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21696
21697 2010-03-29  Bruno Haible  <bruno@clisp.org>
21698
21699         Emit #pragma system_header after the inclusion guard, not before.
21700         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21701         guard that spans the entire file, not before. This enables an
21702         optimization in GCC's preprocessor.
21703         * lib/ctype.in.h: Likewise.
21704         * lib/dirent.in.h: Likewise.
21705         * lib/errno.in.h: Likewise.
21706         * lib/float.in.h: Likewise.
21707         * lib/getopt.in.h: Likewise.
21708         * lib/iconv.in.h: Likewise.
21709         * lib/langinfo.in.h: Likewise.
21710         * lib/locale.in.h: Likewise.
21711         * lib/math.in.h: Likewise.
21712         * lib/netdb.in.h: Likewise.
21713         * lib/netinet_in.in.h: Likewise.
21714         * lib/pty.in.h: Likewise.
21715         * lib/sched.in.h: Likewise.
21716         * lib/se-selinux.in.h: Likewise.
21717         * lib/search.in.h: Likewise.
21718         * lib/spawn.in.h: Likewise.
21719         * lib/stdarg.in.h: Likewise.
21720         * lib/stdint.in.h: Likewise.
21721         * lib/string.in.h: Likewise.
21722         * lib/strings.in.h: Likewise.
21723         * lib/sys_file.in.h: Likewise.
21724         * lib/sys_ioctl.in.h: Likewise.
21725         * lib/sys_time.in.h: Likewise.
21726         * lib/sys_times.in.h: Likewise.
21727         * lib/sys_utsname.in.h: Likewise.
21728         * lib/sys_wait.in.h: Likewise.
21729         * lib/sysexits.in.h: Likewise.
21730         * lib/wctype.in.h: Likewise.
21731
21732 2010-03-28  James Youngman  <jay@gnu.org>
21733
21734         save-cwd: don't leak a file descriptor when the caller execs.
21735         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21736         saved file descriptor.
21737         * modules/save-cwd (Depends-on): Depend on cloexec.
21738
21739 2010-03-29  Bruno Haible  <bruno@clisp.org>
21740
21741         Remove vestiges of fts-lgpl module.
21742         * lib/fts_.h: Assume GNULIB_FTS is 1.
21743         * lib/fts.c: Likewise.
21744         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21745
21746 2010-03-28  Bruno Haible  <bruno@clisp.org>
21747
21748         Fix definition of tests witness macro.
21749         * gnulib-tool (func_import): Fix definition of witness macro.
21750
21751 2010-03-28  Bruno Haible  <bruno@clisp.org>
21752
21753         Fix ioctl's protoype on glibc systems.
21754         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21755         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21756         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21757         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21758         signature. If not, arrange to replace the ioctl function.
21759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21760         REPLACE_IOCTL.
21761         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21762         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21763         Reported by Ludovic Courtès <ludo@gnu.org>.
21764
21765 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21766
21767         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21768         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21769         made it so grep -r --include=GLOB* ... did not work.
21770
21771 2010-03-26  Jim Meyering  <meyering@redhat.com>
21772             Eric Blake  <eblake@redhat.com>
21773
21774         maint.mk: prohibit use of test's -o and -a operators
21775         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21776
21777 2010-03-28  Bruno Haible  <bruno@clisp.org>
21778
21779         Remove unused GNULIB_XYZ macro definitions.
21780         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21781         invocation.
21782
21783 2010-03-28  Bruno Haible  <bruno@clisp.org>
21784
21785         Mark privileged tests modules.
21786         * modules/idpriv-drop-tests (Status): New section.
21787         * modules/idpriv-droptemp-tests (Status): New section.
21788
21789 2010-03-28  Bruno Haible  <bruno@clisp.org>
21790
21791         Split C++ tests into separate tests modules.
21792         * modules/dirent-c++-tests: New file, extracted from
21793         modules/dirent-tests.
21794         * modules/dirent-tests: Depend on it.
21795         * modules/fcntl-h-c++-tests: New file, extracted from
21796         modules/fcntl-h-tests.
21797         * modules/fcntl-h-tests: Depend on it.
21798         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21799         * modules/glob-tests: Depend on it.
21800         * modules/iconv-h-c++-tests: New file, extracted from
21801         modules/iconv-h-tests.
21802         * modules/iconv-h-tests: Depend on it.
21803         * modules/langinfo-c++-tests: New file, extracted from
21804         modules/langinfo-tests.
21805         * modules/langinfo-tests: Depend on it.
21806         * modules/locale-c++-tests: New file, extracted from
21807         modules/locale-tests.
21808         * modules/locale-tests: Depend on it.
21809         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21810         * modules/math-tests: Depend on it.
21811         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21812         * modules/pty-tests: Depend on it.
21813         * modules/search-c++-tests: New file, extracted from
21814         modules/search-tests.
21815         * modules/search-tests: Depend on it.
21816         * modules/signal-c++-tests: New file, extracted from
21817         modules/signal-tests.
21818         * modules/signal-tests: Depend on it.
21819         * modules/spawn-c++-tests: New file, extracted from
21820         modules/spawn-tests.
21821         * modules/spawn-tests: Depend on it.
21822         * modules/stdio-c++-tests: New file, extracted from
21823         modules/stdio-tests.
21824         * modules/stdio-tests: Depend on it.
21825         * modules/stdlib-c++-tests: New file, extracted from
21826         modules/stdlib-tests.
21827         * modules/stdlib-tests: Depend on it.
21828         * modules/string-c++-tests: New file, extracted from
21829         modules/string-tests.
21830         * modules/string-tests: Depend on it.
21831         * modules/sys_ioctl-c++-tests: New file, extracted from
21832         modules/sys_ioctl-tests.
21833         * modules/sys_ioctl-tests: Depend on it.
21834         * modules/sys_select-c++-tests: New file, extracted from
21835         modules/sys_select-tests.
21836         * modules/sys_select-tests: Depend on it.
21837         * modules/sys_socket-c++-tests: New file, extracted from
21838         modules/sys_socket-tests.
21839         * modules/sys_socket-tests: Depend on it.
21840         * modules/sys_stat-c++-tests: New file, extracted from
21841         modules/sys_stat-tests.
21842         * modules/sys_stat-tests: Depend on it.
21843         * modules/sys_time-c++-tests: New file, extracted from
21844         modules/sys_time-tests.
21845         * modules/sys_time-tests: Depend on it.
21846         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21847         * modules/time-tests: Depend on it.
21848         * modules/unistd-c++-tests: New file, extracted from
21849         modules/unistd-tests.
21850         * modules/unistd-tests: Depend on it.
21851         * modules/wchar-c++-tests: New file, extracted from
21852         modules/wchar-tests.
21853         * modules/wchar-tests: Depend on it.
21854         * modules/wctype-c++-tests: New file, extracted from
21855         modules/wctype-tests.
21856         * modules/wctype-tests: Depend on it.
21857         Reported by Simon Josefsson.
21858
21859 2010-03-28  Bruno Haible  <bruno@clisp.org>
21860
21861         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21862         * gnulib-tool (func_exists_module): New function, extracted from
21863         func_verify_module.
21864         (func_verify_module): Use it.
21865         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21866         'foo' only if 'foo' exists.
21867         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21868         module.
21869
21870 2010-03-28  Bruno Haible  <bruno@clisp.org>
21871
21872         gnulib-tool: Add support for special categories of tests.
21873         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21874         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21875         (func_usage): Document them.
21876         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21877         inc_unportable_tests, inc_all_tests): New variables.
21878         (func_acceptable): Consider these variables.
21879         (func_modules_transitive_closure): Make it work when the 'Status' field
21880         consists of multiple words.
21881         (func_import): Store and restore the values of inc_cxx_tests,
21882         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21883         inc_all_tests in gnulib-comp.m4.
21884         (func_create_testdir): Set inc_all_tests to true.
21885         * doc/gnulib.texi (Extra tests modules): New section.
21886         Suggested by Jim Meyering.
21887
21888 2010-03-28  Bruno Haible  <bruno@clisp.org>
21889
21890         ansi-c++-opt: Allow turning off the C++ build by default.
21891         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21892         gl_CXX_CHOICE_DEFAULT_NO is defined.
21893         Requested by Eric Blake.
21894
21895 2010-03-28  Bruno Haible  <bruno@clisp.org>
21896
21897         unistd: Avoid #define replacements in C++ mode.
21898         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21899         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21900         setsockopt, shutdown, select): In C++, attach a warning to the function
21901         if possible, rather than #defining the symbol to a dysfunctional alias.
21902         Reported by John W. Eaton <jwe@gnu.org>.
21903
21904 2010-03-28  Bruno Haible  <bruno@clisp.org>
21905
21906         Fix link errors on mingw.
21907         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21908         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21909         $(LIBSOCKET).
21910         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21911         $(LIBSOCKET).
21912
21913 2010-03-28  Bruno Haible  <bruno@clisp.org>
21914             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21915
21916         lib-ignore: Determine different options for different compilers.
21917         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21918         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21919         Add comments.
21920         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21921         * NEWS: Mention the change.
21922
21923 2010-03-27  Bruno Haible  <bruno@clisp.org>
21924
21925         Remove unused GNULIB_XYZ macro definitions.
21926         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21927         * modules/fseek (configure.ac): Likewise.
21928         * modules/ioctl (configure.ac): Likewise.
21929         * modules/open (configure.ac): Likewise.
21930         * modules/stdlib-safer (configure.ac): Likewise.
21931
21932 2010-03-27  Bruno Haible  <bruno@clisp.org>
21933
21934         Add a remark about certain modules.
21935         * modules/malloc (Comment): New section.
21936         * modules/realloc (Comment): Likewise.
21937         * modules/sigpipe (Comment): Likewise.
21938
21939 2010-03-27  Bruno Haible  <bruno@clisp.org>
21940
21941         Resolve conflict between the two kinds of module indicators.
21942         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21943         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21944         * modules/canonicalize (configure.ac): Invoke
21945         gl_MODULE_INDICATOR_FOR_TESTS.
21946         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21947         GNULIB_XYZ.
21948         * tests/test-dirent-c++.cc: Likewise.
21949         * tests/test-dirent-safer.c: Likewise.
21950         * tests/test-dup2.c: Likewise.
21951         * tests/test-fchdir.c: Likewise.
21952         * tests/test-fcntl-h-c++.cc: Likewise.
21953         * tests/test-getopt.c: Likewise.
21954         * tests/test-getopt.h: Likewise.
21955         * tests/test-langinfo-c++.cc: Likewise.
21956         * tests/test-locale-c++.cc: Likewise.
21957         * tests/test-math-c++.cc: Likewise.
21958         * tests/test-pty-c++.cc: Likewise.
21959         * tests/test-search-c++.cc: Likewise.
21960         * tests/test-signal-c++.cc: Likewise.
21961         * tests/test-spawn-c++.cc: Likewise.
21962         * tests/test-stdio-c++.cc: Likewise.
21963         * tests/test-stdlib-c++.cc: Likewise.
21964         * tests/test-string-c++.cc: Likewise.
21965         * tests/test-sys_ioctl-c++.cc: Likewise.
21966         * tests/test-sys_select-c++.cc: Likewise.
21967         * tests/test-sys_socket-c++.cc: Likewise.
21968         * tests/test-sys_stat-c++.cc: Likewise.
21969         * tests/test-sys_time-c++.cc: Likewise.
21970         * tests/test-time-c++.cc: Likewise.
21971         * tests/test-unistd-c++.cc: Likewise.
21972         * tests/test-wchar-c++.cc: Likewise.
21973         * tests/uninorm/test-u8-nfc.c: Likewise.
21974         * tests/uninorm/test-u8-nfd.c: Likewise.
21975         * tests/uninorm/test-u8-nfkc.c: Likewise.
21976         * tests/uninorm/test-u8-nfkd.c: Likewise.
21977         * tests/uninorm/test-u16-nfc.c: Likewise.
21978         * tests/uninorm/test-u16-nfd.c: Likewise.
21979         * tests/uninorm/test-u16-nfkc.c: Likewise.
21980         * tests/uninorm/test-u16-nfkd.c: Likewise.
21981         * tests/uninorm/test-u32-nfc.c: Likewise.
21982         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21983         * tests/uninorm/test-u32-nfd.c: Likewise.
21984         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21985         * tests/uninorm/test-u32-nfkc.c: Likewise.
21986         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21987         * tests/uninorm/test-u32-nfkd.c: Likewise.
21988         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21989         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21990
21991 2010-03-27  Bruno Haible  <bruno@clisp.org>
21992
21993         Distinguish two kinds of module indicators.
21994         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21995         gl_MODULE_INDICATOR.
21996         (gl_MODULE_INDICATOR): New macro.
21997         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21998         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21999         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22000         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22001         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22002         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22003         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22004         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22005         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22006         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22007         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22008         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22011         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22012         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22013         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22014         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22015         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22016         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22017         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22018         * modules/cloexec (configure.ac): Likewise.
22019         * modules/getopt-gnu (configure.ac): Likewise.
22020         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22021         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22022         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22023         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22024
22025 2010-03-27  Bruno Haible  <bruno@clisp.org>
22026
22027         New module description field 'Comment'.
22028         * gnulib-tool: New option --extract-comment.
22029         (func_usage): Document it.
22030         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22031         (func_get_comment): New function.
22032         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22033
22034 2010-03-27  Bruno Haible  <bruno@clisp.org>
22035
22036         Addendum to 2010-02-07 commit.
22037         * gnulib-tool (func_usage): Document --extract-applicability option.
22038
22039 2010-03-27  Bruno Haible  <bruno@clisp.org>
22040
22041         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22042         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22043         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22044         rather than link errors.
22045
22046 2010-03-27  Bruno Haible  <bruno@clisp.org>
22047
22048         Avoid side effects from tests-related modules on the compilation of lib.
22049         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22050         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22051         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22052         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22053         macro.
22054         (func_import): Define a witness macro. Assign it a value that depends
22055         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22056         tests-related modules.
22057         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22058         Reported by Jim Meyering.
22059
22060 2010-03-27  Bruno Haible  <bruno@clisp.org>
22061
22062         Factorize common .m4 code.
22063         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22064         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22065         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22066         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22067         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22068         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22069         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22070         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22071         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22072         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22073         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22074         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22075         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22076         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22077         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22078         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22079         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22080         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22082         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22083         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22084         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22085         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22086         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22087         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22088         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22089         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22090         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22091         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22092         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22093         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22094         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22095
22096 2010-03-27  Bruno Haible  <bruno@clisp.org>
22097
22098         Fix a compilation error on Cygwin with g++ >= 4.3.
22099         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22100         if it is undefined or if we alias it to chmod.
22101         (lstat): Don't warn about the use of this function if it is undefined
22102         or if we alias it to stat.
22103         Reported by Simon Josefsson.
22104
22105 2010-03-27  Bruno Haible  <bruno@clisp.org>
22106
22107         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22108         * modules/getlogin (configure.ac): Update.
22109
22110         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22111         * modules/getlogin_r (configure.ac): Update.
22112
22113         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22115         * modules/inet_ntop (configure.ac): Update.
22116
22117         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22118         * modules/inet_pton (configure.ac): Update.
22119
22120         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22121         * modules/mbslen (configure.ac): Update.
22122
22123         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22124         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22125         * modules/forkpty (configure.ac): Update.
22126         * modules/openpty (configure.ac): Update.
22127
22128 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22129
22130         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22131         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22132
22133 2010-03-25  Eric Blake  <eblake@redhat.com>
22134
22135         maint: use pragma consistently across replacement headers
22136         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22137         * lib/dirent.in.h (system_header): Likewise.
22138         * lib/errno.in.h (system_header): Likewise.
22139         * lib/float.in.h (system_header): Likewise.
22140         * lib/getopt.in.h (system_header): Likewise.
22141         * lib/iconv.in.h (system_header): Likewise.
22142         * lib/inttypes.in.h (system_header): Likewise.
22143         * lib/langinfo.in.h (system_header): Likewise.
22144         * lib/locale.in.h (system_header): Likewise.
22145         * lib/math.in.h (system_header): Likewise.
22146         * lib/netdb.in.h (system_header): Likewise.
22147         * lib/netinet_in.in.h (system_header): Likewise.
22148         * lib/pty.in.h (system_header): Likewise.
22149         * lib/sched.in.h (system_header): Likewise.
22150         * lib/se-selinux.in.h (system_header): Likewise.
22151         * lib/search.in.h (system_header): Likewise.
22152         * lib/spawn.in.h (system_header): Likewise.
22153         * lib/stdarg.in.h (system_header): Likewise.
22154         * lib/stdint.in.h (system_header): Likewise.
22155         * lib/string.in.h (system_header): Likewise.
22156         * lib/strings.in.h (system_header): Likewise.
22157         * lib/sys_file.in.h (system_header): Likewise.
22158         * lib/sys_ioctl.in.h (system_header): Likewise.
22159         * lib/sys_socket.in.h (system_header): Likewise.
22160         * lib/sys_times.in.h (system_header): Likewise.
22161         * lib/sys_utsname.in.h (system_header): Likewise.
22162         * lib/sys_wait.in.h (system_header): Likewise.
22163         * lib/sysexits.in.h (system_header): Likewise.
22164         * lib/unistd.in.h (system_header): Likewise.
22165         * lib/wctype.in.h (system_header): Likewise.
22166
22167         arpa/inet: fix mingw compilation warning
22168         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22169         Reported by Matthew Bolte.
22170
22171 2010-03-25  Bruno Haible  <bruno@clisp.org>
22172
22173         Avoid collision between gnulib wrapper and libintl wrapper.
22174         * lib/printf.c (printf): Don't define if a printf wrapper is already
22175         defined in intl/printf.c.
22176         Reported by Michel Boaventura <michel@michelboaventura.com>.
22177
22178 2010-03-25  Bruno Haible  <bruno@clisp.org>
22179
22180         Use ANSI C.
22181         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22182
22183 2010-03-25  Bruno Haible  <bruno@clisp.org>
22184
22185         Minor formatting changes.
22186         * lib/acosl.c: Insert space before function argument list.
22187         * lib/argz.c: Likewise.
22188         * lib/asinl.c: Likewise.
22189         * lib/expl.c: Likewise.
22190         * lib/gen-uni-tables.c: Likewise.
22191         * lib/gettext.h: Likewise.
22192         * lib/glthread/lock.h: Likewise.
22193         * lib/tanl.c: Likewise.
22194         * lib/uniname/uniname.c: Likewise.
22195         * tests/test-idpriv-drop.c: Likewise.
22196         * tests/test-idpriv-droptemp.c: Likewise.
22197         * tests/test-lock.c: Likewise.
22198         * tests/test-tls.c: Likewise.
22199         * lib/argp-help.c: Insert space before function-like macro argument
22200         list.
22201         * lib/memcmp.c: Likewise.
22202         * tests/test-base64.c: Likewise.
22203         * lib/localename.c: Insert space before sizeof's argument list.
22204         * lib/safe-alloc.h: Likewise.
22205         * lib/file-set.h: Insert space before macro argument list.
22206         * tests/test-argp.c: Likewise.
22207         * lib/argp-namefrob.h: Insert space before function parameter list.
22208         * lib/getaddrinfo.c: Likewise.
22209         * lib/netdb.in.h: Likewise.
22210         * lib/parse-duration.h: Likewise.
22211         * lib/parse-duration.c: Likewise.
22212         * lib/poll.c: Likewise.
22213         * lib/select.c: Likewise.
22214         * lib/trim.h: Likewise.
22215         * tests/test-usleep.c: Likewise.
22216         * lib/ldexpl.c: Insert space before function parameter list and before
22217         function argument list.
22218         * lib/logl.c: Likewise.
22219         * lib/sqrtl.c: Likewise.
22220         * lib/trim.c: Likewise.
22221         * lib/cosl.c: Use GNU style indentation. Insert space before function
22222         argument list.
22223         * lib/sinl.c: Likewise.
22224         * lib/tsearch.c: Insert space after 'for'.
22225         Reported by Jim Meyering.
22226
22227 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22228
22229         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22230         config header before grepping, as it's not present before
22231         autoreconf/configure are run.  Reported by Simon Josefsson.
22232
22233 2010-03-23  Bruno Haible  <bruno@clisp.org>
22234
22235         pt_chown: Make it work with automake < 1.11.
22236         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22237         Reported by Simon Josefsson.
22238
22239 2010-03-23  Bruno Haible  <bruno@clisp.org>
22240
22241         pt_chown: Don't depend on GPLed modules.
22242         * lib/pt_chown.c: Don't include idpriv.h.
22243         (main): Don't drop privileges.
22244         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22245         Reported by Simon Josefsson.
22246
22247 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22248
22249         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22250         suggestions from karl@freefriends.org (Karl Berry).
22251
22252 2010-03-22  Eric Blake  <eblake@redhat.com>
22253
22254         gethostname: further tweaks
22255         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22256         are overriding gethostname.
22257         Suggested by Bruno Haible.
22258
22259 2010-03-21  Bruno Haible  <bruno@clisp.org>
22260
22261         Fix comments.
22262         * lib/forkpty.c (rpl_forkpty): Fix comment.
22263         * lib/openpty.c (rpl_openpty): Likewise.
22264         Reported by Eric Blake.
22265
22266 2010-03-22  Eric Blake  <eblake@redhat.com>
22267
22268         gethostname: fix build on mingw
22269         * lib/unistd.in.h (includes): Work around fact that mingw
22270         <winsock2.h> re-includes <unistd.h>, by avoiding any
22271         redeclarations if we are being included by <winsock2.h>.
22272         Reported by Matthias Bolte.
22273
22274 2010-03-21  Bruno Haible  <bruno@clisp.org>
22275
22276         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22277         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22278         modifications.
22279         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22280         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22281         provide the replacement.
22282         * modules/forkpty (Depends-on): Add openpty, login_tty.
22283         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22284         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22285         * doc/glibc-functions/forkpty.texi: More supported platforms.
22286         * config/srclist.txt: Add forkpty.c (commented).
22287
22288 2010-03-21  Bruno Haible  <bruno@clisp.org>
22289
22290         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22291         (Makefile.am): Verify that PTY_LIB is defined.
22292
22293         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22294
22295 2010-03-21  Bruno Haible  <bruno@clisp.org>
22296
22297         Tests for module 'login_tty'.
22298         * modules/login_tty-tests: New file.
22299         * tests/test-login_tty.c: New file.
22300
22301         New module 'login_tty'.
22302         * lib/login_tty.c: New file.
22303         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22304         * modules/login_tty: New file.
22305         * doc/glibc-functions/login_tty.texi: Mention the new module.
22306
22307 2010-03-21  Bruno Haible  <bruno@clisp.org>
22308
22309         login_tty: Documentation.
22310         * doc/glibc-functions/login_tty.texi: New file.
22311         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22312
22313 2010-03-21  Bruno Haible  <bruno@clisp.org>
22314
22315         pty: Consistent macro naming.
22316         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22317         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22318         * modules/pty (configure.ac): Update.
22319
22320 2010-03-21  Bruno Haible  <bruno@clisp.org>
22321
22322         Tests for openpty: Make stricter.
22323         * tests/test-openpty.c (main): Add test of canonical processing and
22324         erase.
22325         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22326
22327         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22328         * lib/openpty.c (openpty): New replacement function.
22329         * lib/pty.in.h: Include <termios.h>.
22330         (openpty): Update declaration. Add comments.
22331         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22332         is not declared, arrange to provide the replacement. Check for _getpty
22333         and posix_openpt.
22334         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22335         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22336         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22337         * modules/pty-tests (test_pty_c___LDADD): New variable.
22338         * doc/glibc-functions/openpty.texi: More supported platforms.
22339
22340 2010-03-21  Bruno Haible  <bruno@clisp.org>
22341
22342         setenv: Tweaks.
22343         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22344         the test program.
22345         * doc/posix-functions/setenv.texi: Update platforms list.
22346
22347 2010-03-21  Bruno Haible  <bruno@clisp.org>
22348
22349         New module 'unlockpt'.
22350         * lib/unlockpt.c: New file, from glibc with modifications.
22351         * m4/unlockpt.m4: New file.
22352         * modules/unlockpt: New file.
22353         * lib/stdlib.in.h (unlockpt): New declaration.
22354         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22355         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22356         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22357         HAVE_UNLOCKPT.
22358         * doc/posix-functions/unlockpt.texi: Mention the new module.
22359         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22360         * config/srclist.txt: Add unlockpt.c (commented).
22361
22362 2010-03-21  Jim Meyering  <meyering@redhat.com>
22363
22364         maint.mk: prohibit inclusion of "intprops.h" without use
22365         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22366
22367 2010-03-21  Bruno Haible  <bruno@clisp.org>
22368
22369         New module 'grantpt'.
22370         * lib/grantpt.c: New file, from glibc with modifications.
22371         * m4/grantpt.m4: New file.
22372         * modules/grantpt: New file.
22373         * lib/stdlib.in.h (grantpt): New declaration.
22374         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22375         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22376         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22377         HAVE_GRANTPT.
22378         * doc/posix-functions/grantpt.texi: Mention the new module.
22379         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22380         * config/srclist.txt: Add grantpt.c (commented).
22381
22382 2010-03-21  Bruno Haible  <bruno@clisp.org>
22383
22384         New module 'pt_chown'.
22385         * lib/pt_chown.c: New file, from glibc with modifications.
22386         * lib/pty-private.h: New file, from glibc with modifications.
22387         * modules/pt_chown: New file.
22388         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22389
22390 2010-03-21  Bruno Haible  <bruno@clisp.org>
22391
22392         Tests for module 'ptsname'.
22393         * modules/ptsname-tests: New file.
22394         * tests/test-ptsname.c: New file.
22395
22396         New module 'ptsname'.
22397         * lib/ptsname.c: New file, from glibc with modifications.
22398         * m4/ptsname.m4: New file.
22399         * modules/ptsname: New file.
22400         * lib/stdlib.in.h (ptsname): New declaration.
22401         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22402         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22403         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22404         HAVE_PTSNAME.
22405         * doc/posix-functions/ptsname.texi: Mention the new module.
22406         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22407         * config/srclist.txt: Add ptsname.c (commented).
22408
22409 2010-03-21  Bruno Haible  <bruno@clisp.org>
22410
22411         Tests for module 'ttyname_r'.
22412         * modules/ttyname_r-tests: New file.
22413         * tests/test-ttyname_r.c: New file.
22414
22415         New module 'ttyname_r'.
22416         * lib/ttyname_r.c: New file.
22417         * m4/ttyname_r.m4: New file.
22418         * modules/ttyname_r: New file.
22419         * lib/unistd.in.h (ttyname_r): New declaration.
22420         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22421         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22422         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22423         HAVE_TTYNAME_R.
22424         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22425         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22426
22427 2010-03-20  Bruno Haible  <bruno@clisp.org>
22428
22429         signal: Undefine macro definitions in C++ mode.
22430         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22431         sigfillset): Undefine macro definitions from the system header in C++
22432         mode.
22433         Reported by John W. Eaton <jwe@gnu.org>.
22434
22435 2010-03-20  Bruno Haible  <bruno@clisp.org>
22436
22437         Ensure no #include statements inside extern "C" { ... }.
22438         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22439         contain #include statements.
22440         * lib/time.in.h: Likewise.
22441
22442 2010-03-20  Bruno Haible  <bruno@clisp.org>
22443
22444         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22445         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22446         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22447         Reported by John W. Eaton <jwe@gnu.org>.
22448
22449 2010-03-20  Bruno Haible  <bruno@clisp.org>
22450
22451         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22452         Reported by Jim Meyering.
22453
22454 2010-03-20  Bruno Haible  <bruno@clisp.org>
22455
22456         pipe: Set errno upon failure.
22457         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22458         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22459         errno value in error message.
22460
22461 2010-03-20  Bruno Haible  <bruno@clisp.org>
22462             Jim Meyering  <meyering@redhat.com>
22463
22464         lchown: Avoid "unused variable" warning.
22465         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22466
22467 2010-03-20  Bruno Haible  <bruno@clisp.org>
22468
22469         Work around unlink() bug on MacOS X 10.5.6.
22470         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22471         attempting to unlink a parent directory.
22472         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22473         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22474         activate for the replacement function.
22475         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22476
22477 2010-03-20  Bruno Haible  <bruno@clisp.org>
22478
22479         Fix link errors on Solaris 8.
22480         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22481         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22482
22483 2010-03-19  Jim Meyering  <meyering@redhat.com>
22484
22485         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22486         The _LIBC implementation of build_range_exp correctly honors the
22487         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22488         However, the non-_LIBC implementation would ignore that syntax-bit
22489         flag and return REG_ERANGE unconditionally.
22490         This change makes it honor that flag.
22491         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22492         Make two pointer parameters "const".
22493         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22494         (parse_bracket_exp): Update caller.
22495
22496         regex.m4: correct the reversed range endpoint ([b-a]) test
22497         * m4/regex.m4: When requiring that [b-a] evoke failure,
22498         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22499         test pass once again for x86-based systems.
22500
22501 2010-03-19  Bruno Haible  <bruno@clisp.org>
22502
22503         scandir: Fix link error on Solaris 8.
22504         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22505         macros.
22506
22507 2010-03-19  Bruno Haible  <bruno@clisp.org>
22508
22509         getusershell: Fix documentation.
22510         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22511         module.
22512         * doc/glibc-functions/setusershell.texi: Likewise.
22513
22514         getusershell: Provide declaration, missing on Solaris 9.
22515         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22516         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22517         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22518         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22520         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22521         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22522         HAVE_GETUSERSHELL.
22523         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22524
22525 2010-03-19  Bruno Haible  <bruno@clisp.org>
22526
22527         wctype: Provide iswblank function.
22528         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22529         exists and is fine.
22530         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22531         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22532         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22533         * doc/posix-functions/iswblank.texi: Update.
22534
22535 2010-03-19  Bruno Haible  <bruno@clisp.org>
22536
22537         Tests of module 'pty' in C++ mode.
22538         * modules/pty-tests: New file.
22539         * tests/test-pty-c++.cc: New file.
22540         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22541
22542 2010-03-19  Eric Blake  <eblake@redhat.com>
22543
22544         logb: fix documentation
22545         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22546         1.5 declaration bug.
22547
22548         forkpty, openpty: prefer glibc's const-safe prototype
22549         * lib/forkpty.c (rpl_forkpty): New file.
22550         * lib/openpty.c (rpl_openpty): Likewise.
22551         * modules/forkpty (Files): Distribute it.
22552         * modules/openpty (Files): Likewise.
22553         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22554         check...
22555         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22556         replacement for for non-const BSD signature.
22557         * modules/pty (Makefile.am): Substitute witnesses.
22558         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22559         * tests/test-forkpty.c: Update signature check.
22560         * tests/test-openpty.c: Likewise.
22561         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22562         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22563
22564         forkpty, openpty: split functions into new modules
22565         * modules/pty (Makefile.am): Substitute new witnesses.
22566         (Libraries): Move library detection...
22567         * modules/forkpty: ...into new module.
22568         * modules/openpty: Another new module.
22569         * modules/pty-tests: Rename and split...
22570         * modules/forkpty-tests: ...to this...
22571         * modules/openpty-tests: ...and this.
22572         * tests/test-pty.c: Rename and split...
22573         * tests/test-forkpty.c: ...to this...
22574         * tests/test-openpty.c: ...and this.
22575         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22576         (gl_PTY): Split library searching...
22577         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22578         (gl_FORKPTY, gl_OPENPTY): New macros.
22579         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22580         * NEWS: Mention the split.
22581         * MODULES.html.sh (Misc): Document the modules.
22582         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22583         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22584
22585         pty: improve replacement header
22586         * lib/pty.in.h: New file.
22587         * modules/pty (Files): Ship it.
22588         (Makefile.am): Always build replacement.
22589         * m4/pty.m4: Rename...
22590         * m4/pty_h.m4: ...to this.
22591         (gl_PTY): Modernize setting of witness macros; update check of
22592         forkpty to take proper advantage of cache.
22593         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22594
22595         getopt: avoid compiler warning
22596         * lib/getopt.c (attribute_hidden): Remove unused macro.
22597
22598 2010-03-18  Bruno Haible  <bruno@clisp.org>
22599
22600         Fix link errors on Solaris 8.
22601         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22602         * modules/search-tests (test_search_c___LDADD): Likewise.
22603         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22604         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22605         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22606         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22607         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22608         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22609         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22610
22611 2010-03-18  Bruno Haible  <bruno@clisp.org>
22612
22613         Fix bug introduced on 2010-03-14.
22614         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22615         (gl_SPAWN_H): Require it.
22616         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22617         Reported by Simon Josefsson.
22618
22619 2010-03-18  Bruno Haible  <bruno@clisp.org>
22620
22621         Fix typo introduced on 2009-12-31.
22622         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22623         posix_spawn_file_actions_adddup2.
22624
22625 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22626         and Eric Blake  <eblake@redhat.com>
22627
22628         test-vc-list-files-git: make more robust
22629         * tests/test-vc-list-files-git.sh: Unset problematic environment
22630         variables.  Chain commands together.
22631
22632 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22633
22634         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22635         `AC_CHECK_DECL' invocation.
22636
22637 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22638
22639         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22640         appears before executable statements. Suggested by Petr Sumbera
22641         <Petr.Sumbera@Sun.COM>.
22642
22643 2010-03-14  Bruno Haible  <bruno@clisp.org>
22644
22645         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22646         portability problems. Instead use a simpler test.
22647         (main): Check that invalid arguments are rejected only on Linux.
22648
22649 2010-03-14  Bruno Haible  <bruno@clisp.org>
22650
22651         Fix bug introduced on 2009-12-31.
22652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22653         gl_PREREQ_SYS_H_WINSOCK2 always.
22654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22655         SYS_SOCKET_H variable.
22656         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22657         Update comments.
22658         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22659         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22660         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22661         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22662         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22663
22664 2010-03-14  Bruno Haible  <bruno@clisp.org>
22665
22666         Fix values returned by sinl, cosl.
22667         * lib/trigl.h: Add specification comments.
22668         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22669         that combines the values from the precomputed table with the values of
22670         the Chebyshev polynomials.
22671
22672 2010-03-14  Bruno Haible  <bruno@clisp.org>
22673
22674         Fix compilation error when modules 'posix_spawn[p]' are not used.
22675         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22677
22678 2010-03-14  Bruno Haible  <bruno@clisp.org>
22679
22680         Fix compilation error on mingw when module 'time_r' is not used.
22681         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22682         is 1.
22683         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22684         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22685         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22686         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22687
22688 2010-03-14  Bruno Haible  <bruno@clisp.org>
22689
22690         Fix compilation error with Sun C.
22691         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22692         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22693         instead of GCC specific ULONG_LONG_MAX.
22694         * lib/xstrtoll.c: Likewise.
22695         * lib/xstrtoull.c: Likewise.
22696
22697 2010-03-13  Bruno Haible  <bruno@clisp.org>
22698
22699         Allow the user to disable C++ code and tests.
22700         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22701         (gl_PROG_ANSI_CXX): Require it.
22702
22703 2010-03-13  Bruno Haible  <bruno@clisp.org>
22704
22705         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22706         cases.
22707
22708 2010-03-13  Bruno Haible  <bruno@clisp.org>
22709
22710         Test that gnulib does not break the standard C++ headers.
22711         * tests/test-locale-c++2.cc: New file.
22712         * modules/locale-tests (Files): Add it.
22713         (Makefile.am): Compile it for test-locale-c++.
22714         * tests/test-math-c++2.cc: New file.
22715         * modules/math-tests (Files): Add it.
22716         (Makefile.am): Compile it for test-math-c++.
22717         * tests/test-signal-c++2.cc: New file.
22718         * modules/signal-tests (Files): Add it.
22719         (Makefile.am): Compile it for test-signal-c++.
22720         * tests/test-stdio-c++2.cc: New file.
22721         * modules/stdio-tests (Files): Add it.
22722         (Makefile.am): Compile it for test-stdio-c++.
22723         * tests/test-stdlib-c++2.cc: New file.
22724         * modules/stdlib-tests (Files): Add it.
22725         (Makefile.am): Compile it for test-stdlib-c++.
22726         * tests/test-string-c++2.cc: New file.
22727         * modules/string-tests (Files): Add it.
22728         (Makefile.am): Compile it for test-string-c++.
22729         * tests/test-time-c++2.cc: New file.
22730         * modules/time-tests (Files): Add it.
22731         (Makefile.am): Compile it for test-time-c++.
22732         Reported by John W. Eaton <jwe@gnu.org>.
22733
22734 2010-03-13  Bruno Haible  <bruno@clisp.org>
22735
22736         * gnulib-tool (func_usage): Clarify which options are available for
22737         --create-testdir and --create-megatestdir.
22738
22739 2010-03-13  Bruno Haible  <bruno@clisp.org>
22740
22741         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22742         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22743         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22744         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22745         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22746         when appropriate.
22747         Reported by Jim Meyering.
22748
22749 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22750
22751         * gnulib-tool (func_import): Explain origin of code.
22752
22753 2010-03-12  Bruno Haible  <bruno@clisp.org>
22754
22755         Fix problem with automake's definition of CXXLINK.
22756         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22757         Reported by Simon Josefsson and Ludovic Courtès.
22758
22759 2010-03-12  Bruno Haible  <bruno@clisp.org>
22760
22761         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22762         stable releases.
22763
22764 2010-03-11  Bruno Haible  <bruno@clisp.org>
22765
22766         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22767         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22768         whether the system provides one variant or multiple variants of the
22769         function.
22770         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22771         C++ compilers.
22772         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22773         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22774         Reported by Jim Meyering.
22775
22776 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22777
22778         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22779
22780 2010-03-08  Bruno Haible  <bruno@clisp.org>
22781
22782         gnulib-tool: Add support for --libtool in --create-testdir.
22783         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22784         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22785
22786 2010-03-08  Eric Blake  <eblake@redhat.com>
22787
22788         gnulib-tool.texi: mention possibility of git submodule
22789         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22790         submodules.
22791         * doc/.gitignore: Ignore another generated file.
22792
22793 2010-03-08  Karl Berry  <karl@gnu.org>
22794
22795         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22796         of committing gnulib files while skipping others.
22797
22798 2010-03-07  Bruno Haible  <bruno@clisp.org>
22799
22800         Tests of module 'wctype' in C++ mode.
22801         * tests/test-wctype-c++.cc: New file.
22802         * modules/wctype-tests (Files): Add it and tests/signature.h.
22803         (Depends-on): Add ansi-c++-opt.
22804         (Makefile.am): Arrange to compile and run test-wctype-c++.
22805
22806         Tests of module 'wchar' in C++ mode.
22807         * tests/test-wchar-c++.cc: New file.
22808         * modules/wchar-tests (Files): Add it and tests/signature.h.
22809         (Depends-on): Add ansi-c++-opt.
22810         (Makefile.am): Arrange to compile and run test-wchar-c++.
22811         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22812         gl_MODULE_INDICATOR.
22813
22814         Tests of module 'unistd' in C++ mode.
22815         * tests/test-unistd-c++.cc: New file.
22816         * modules/unistd-tests (Files): Add it and tests/signature.h.
22817         (Depends-on): Add ansi-c++-opt.
22818         (Makefile.am): Arrange to compile and run test-unistd-c++.
22819         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22820         gl_MODULE_INDICATOR.
22821
22822         Tests of module 'time' in C++ mode.
22823         * tests/test-time-c++.cc: New file.
22824         * modules/time-tests (Files): Add it and tests/signature.h.
22825         (Depends-on): Add ansi-c++-opt.
22826         (Makefile.am): Arrange to compile and run test-time-c++.
22827         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22828
22829         Tests of module 'sys_time' in C++ mode.
22830         * tests/test-sys_time-c++.cc: New file.
22831         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22832         (Depends-on): Add ansi-c++-opt.
22833         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22834         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22835         gl_MODULE_INDICATOR.
22836
22837         Tests of module 'sys_stat' in C++ mode.
22838         * tests/test-sys_stat-c++.cc: New file.
22839         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22840         (Depends-on): Add ansi-c++-opt.
22841         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22842         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22843         gl_MODULE_INDICATOR.
22844
22845         Tests of module 'sys_socket' in C++ mode.
22846         * tests/test-sys_socket-c++.cc: New file.
22847         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22848         (Depends-on): Add ansi-c++-opt.
22849         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22851         gl_MODULE_INDICATOR.
22852
22853         Tests of module 'sys_select' in C++ mode.
22854         * tests/test-sys_select-c++.cc: New file.
22855         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22856         (Depends-on): Add ansi-c++-opt.
22857         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22858         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22859         gl_MODULE_INDICATOR.
22860
22861         Tests of module 'sys_ioctl' in C++ mode.
22862         * tests/test-sys_ioctl-c++.cc: New file.
22863         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22864         (Depends-on): Add ansi-c++-opt.
22865         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22867         gl_MODULE_INDICATOR.
22868
22869         Tests of module 'string' in C++ mode.
22870         * tests/test-string-c++.cc: New file.
22871         * modules/string-tests (Files): Add it and tests/signature.h.
22872         (Depends-on): Add ansi-c++-opt.
22873         (Makefile.am): Arrange to compile and run test-string-c++.
22874         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22875         gl_MODULE_INDICATOR.
22876
22877         Tests of module 'stdlib' in C++ mode.
22878         * tests/test-stdlib-c++.cc: New file.
22879         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22880         (Depends-on): Add ansi-c++-opt.
22881         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22882         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22883         gl_MODULE_INDICATOR.
22884
22885         Tests of module 'stdio' in C++ mode.
22886         * tests/test-stdio-c++.cc: New file.
22887         * modules/stdio-tests (Files): Add it and tests/signature.h.
22888         (Depends-on): Add ansi-c++-opt.
22889         (Makefile.am): Arrange to compile and run test-stdio-c++.
22890         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22891         gl_MODULE_INDICATOR.
22892
22893         Tests of module 'spawn' in C++ mode.
22894         * tests/test-spawn-c++.cc: New file.
22895         * modules/spawn-tests (Files): Add it and tests/signature.h.
22896         (Depends-on): Add ansi-c++-opt.
22897         (Makefile.am): Arrange to compile and run test-spawn-c++.
22898         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22899         gl_MODULE_INDICATOR.
22900
22901         Tests of module 'signal' in C++ mode.
22902         * tests/test-signal-c++.cc: New file.
22903         * modules/signal-tests (Files): Add it and tests/signature.h.
22904         (Depends-on): Add ansi-c++-opt.
22905         (Makefile.am): Arrange to compile and run test-signal-c++.
22906         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22907         gl_MODULE_INDICATOR.
22908
22909         Tests of module 'search' in C++ mode.
22910         * tests/test-search-c++.cc: New file.
22911         * modules/search-tests (Files): Add it and tests/signature.h.
22912         (Depends-on): Add ansi-c++-opt.
22913         (Makefile.am): Arrange to compile and run test-search-c++.
22914         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22915         gl_MODULE_INDICATOR.
22916
22917         Tests of module 'math' in C++ mode.
22918         * tests/test-math-c++.cc: New file.
22919         * modules/math-tests (Files): Add it and tests/signature.h.
22920         (Depends-on): Add ansi-c++-opt.
22921         (Makefile.am): Arrange to compile and run test-math-c++.
22922         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22923
22924         Tests of module 'locale' in C++ mode.
22925         * tests/test-locale-c++.cc: New file.
22926         * modules/locale-tests (Files): Add it and tests/signature.h.
22927         (Depends-on): Add ansi-c++-opt.
22928         (Makefile.am): Arrange to compile and run test-locale-c++.
22929         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22930         gl_MODULE_INDICATOR.
22931
22932         Tests of module 'langinfo' in C++ mode.
22933         * tests/test-langinfo-c++.cc: New file.
22934         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22935         (Depends-on): Add ansi-c++-opt.
22936         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22937         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22938         gl_MODULE_INDICATOR.
22939
22940         Tests of module 'iconv-h' in C++ mode.
22941         * tests/test-iconv-h-c++.cc: New file.
22942         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22943         (Depends-on): Add ansi-c++-opt.
22944         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22945
22946         Tests of module 'glob' in C++ mode.
22947         * tests/test-glob-c++.cc: New file.
22948         * modules/glob-tests (Files): Add it.
22949         (Depends-on): Add ansi-c++-opt.
22950         (Makefile.am): Arrange to compile and run test-glob-c++.
22951
22952         Tests of module 'fcntl-h' in C++ mode.
22953         * tests/test-fcntl-h-c++.cc: New file.
22954         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22955         (Depends-on): Add ansi-c++-opt.
22956         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22957         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22958         gl_MODULE_INDICATOR.
22959
22960         Tests of module 'dirent' in C++ mode.
22961         * tests/test-dirent-c++.cc: New file.
22962         * modules/dirent-tests (Files): Add it and tests/signature.h.
22963         (Depends-on): Add ansi-c++-opt.
22964         (Makefile.am): Arrange to compile and run test-dirent-c++.
22965         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22966         gl_MODULE_INDICATOR.
22967
22968         New module 'ansi-c++-opt'.
22969         * modules/ansi-c++-opt: New file.
22970         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22971
22972         Document C++ namespace mode.
22973         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22974
22975         wctype: Avoid #define replacements in C++ mode.
22976         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22977         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22978         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22979         In C++, define a namespaced alias symbol.
22980         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22981         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22982         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22983         rule.
22984
22985         wchar: Avoid #define replacements in C++ mode.
22986         * lib/wchar.in.h: Include c++defs.h.
22987         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22988         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22989         symbol.
22990         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22991         * modules/wchar (Depends-on): Add c++defs.
22992         (Makefile.am): Update wchar.h rule.
22993
22994         unistd: Avoid #define replacements in C++ mode.
22995         * lib/unistd.in.h: Include c++defs.h.
22996         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22997         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22998         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22999         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23000         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23001         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23002         symbol.
23003         (environ): Update.
23004         * modules/unistd (Depends-on): Add c++defs.
23005         (Makefile.am): Update unistd.h rule.
23006
23007         time: Avoid #define replacements in C++ mode.
23008         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23009         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23010         define a namespaced alias symbol.
23011         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23012         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23013         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23014         * modules/time (Depends-on): Add c++defs, warn-on-use.
23015         (Makefile.am): Update time.h rule.
23016         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23017         * modules/nanosleep (configure.ac): Likewise.
23018         * modules/strptime (configure.ac): Likewise.
23019         * modules/timegm (configure.ac): Likewise.
23020
23021         sys_time: Avoid #define replacements in C++ mode.
23022         * lib/sys_time.in.h: Include c++defs.h.
23023         (gettimeofday): In C++, define a namespaced alias symbol.
23024         * modules/sys_time (Depends-on): Add c++defs.
23025         (Makefile.am): Update sys/time.h rule.
23026
23027         sys_stat: Avoid #define replacements in C++ mode.
23028         * lib/sys_stat.in.h: Include c++defs.h.
23029         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23030         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23031         namespaced alias symbol.
23032         In C++, define a namespaced alias symbol.
23033         * modules/sys_stat (Depends-on): Add c++defs.
23034         (Makefile.am): Update sys/stat.h rule.
23035
23036         sys_socket: Avoid #define replacements in C++ mode.
23037         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23038         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23039         definitions also when the system has a <sys/socket.h>.
23040         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23041         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23042         In C++, define a namespaced alias symbol.
23043         * modules/sys_socket (Depends-on): Add c++defs.
23044         (Makefile.am): Update sys/socket.h rule.
23045
23046         sys_select: Avoid #define replacements in C++ mode.
23047         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23048         definitions also when the system has a <sys/select.h>.
23049         (select): In C++, define a namespaced alias symbol.
23050         * modules/sys_select (Depends-on): Add c++defs.
23051         (Makefile.am): Update sys/select.h rule.
23052
23053         sys_ioctl: Avoid #define replacements in C++ mode.
23054         * lib/sys_ioctl.in.h: Include c++defs.h.
23055         (ioctl): In C++, define a namespaced alias symbol.
23056         * modules/sys_ioctl (Depends-on): Add c++defs.
23057         (Makefile.am): Update sys/ioctl.h rule.
23058
23059         string: Avoid #define replacements in C++ mode.
23060         * lib/string.in.h: Include c++defs.h.
23061         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23062         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23063         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23064         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23065         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23066         * modules/string (Depends-on): Add c++defs.
23067         (Makefile.am): Update string.h rule.
23068
23069         stdlib: Avoid #define replacements in C++ mode.
23070         * lib/stdlib.in.h: Include c++defs.h.
23071         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23072         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23073         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23074         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23075         symbol.
23076         * modules/stdlib (Depends-on): Add c++defs.
23077         (Makefile.am): Update stdlib.h rule.
23078
23079         stdio: Avoid #define replacements in C++ mode.
23080         * lib/stdio.in.h: Include c++defs.h.
23081         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23082         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23083         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23084         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23085         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23086         namespaced alias symbol.
23087         * modules/stdio (Depends-on): Add c++defs.
23088         (Makefile.am): Update stdio.h rule.
23089
23090         spawn: Avoid #define replacements in C++ mode.
23091         * lib/spawn.in.h: Include c++defs.h.
23092         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23093         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23094         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23095         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23096         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23097         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23098         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23099         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23100         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23101         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23102         In C++, define a namespaced alias symbol.
23103         * modules/spawn (Depends-on): Add c++defs.
23104         (Makefile.am): Update spawn.h rule.
23105
23106         signal: Avoid #define replacements in C++ mode.
23107         * lib/signal.in.h: Include c++defs.h.
23108         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23109         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23110         namespaced alias symbol.
23111         * modules/signal (Depends-on): Add c++defs.
23112         (Makefile.am): Update signal.h rule.
23113
23114         search: Avoid #define replacements in C++ mode.
23115         * lib/search.in.h: Include c++defs.h.
23116         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23117         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23118         symbol.
23119         * modules/search (Depends-on): Add c++defs.
23120         (Makefile.am): Update search.h rule.
23121
23122         math: Avoid #define replacements in C++ mode.
23123         * lib/math.in.h: Include c++defs.h.
23124         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23125         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23126         trunc, truncl): In C++, define a namespaced alias symbol.
23127         * modules/math (Depends-on): Add c++defs.
23128         (Makefile.am): Update math.h rule.
23129
23130         locale: Avoid #define replacements in C++ mode.
23131         * lib/locale.in.h: Include c++defs.h.
23132         (duplocale): In C++, define a namespaced alias symbol.
23133         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23134         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23135         * modules/locale (Depends-on): Add c++defs.
23136         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23137
23138         langinfo: Avoid #define replacements in C++ mode.
23139         * lib/langinfo.in.h: Include c++defs.h.
23140         (nl_langinfo): In C++, define a namespaced alias symbol.
23141         * modules/langinfo (Depends-on): Add c++defs.
23142         (Makefile.am): Update langinfo.h rule.
23143
23144         iconv-h: Avoid #define replacements in C++ mode.
23145         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23146         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23147         symbol.
23148         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23149         whenever iconv is present.
23150         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23151         (Makefile.am): Update iconv.h rule.
23152
23153         glob: Avoid #define replacements in C++ mode.
23154         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23155         (_gl_glob_errfunc_fn): New type.
23156         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23157         symbol.
23158         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23159         (Makefile.am): Update glob.h rule.
23160
23161         fcntl-h: Avoid #define replacements in C++ mode.
23162         * lib/fcntl.in.h: Include c++defs.h.
23163         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23164         * modules/fcntl-h (Depends-on): Add c++defs.
23165         (Makefile.am): Update fcntl.h rule.
23166
23167         dirent: Avoid #define replacements in C++ mode.
23168         * lib/dirent.in.h: Include c++defs.h.
23169         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23170         namespaced alias symbol.
23171         (dirfd): Update declaration.
23172         * modules/dirent (Depends-on): Add c++defs.
23173         (Makefile.am): Update dirent.h rule.
23174
23175         ctype: Make it usable in C++ code.
23176         * lib/ctype.in.h: Include c++defs.h.
23177         (isblank): Declare as extern "C".
23178         * modules/ctype (Depends-on): Add c++defs.
23179         (Makefile.am): Update ctype.h rule.
23180
23181         New module 'c++defs'.
23182         * modules/c++defs: New file.
23183         * build-aux/c++defs.h: New file.
23184         Reported by John W. Eaton <jwe@gnu.org>.
23185
23186 2010-03-07  Bruno Haible  <bruno@clisp.org>
23187
23188         logb: Provide missing declaration for Cygwin.
23189         * lib/math.in.h (logb): New declaration.
23190         * m4/logb.m4: New file.
23191         * modules/logb (Files): Add m4/logb.m4.
23192         (Depends-on): Add math.
23193         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23194         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23196         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23197         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23198
23199 2010-03-07  Bruno Haible  <bruno@clisp.org>
23200
23201         Fix test-cond link error.
23202         * tests/test-cond.c: Include <stdio.h>.
23203
23204 2010-03-07  Bruno Haible  <bruno@clisp.org>
23205
23206         Fix test-dirent-safer link error.
23207         * modules/dirent-safer-tests (Makefile.am): Define
23208         test_dirent_safer_LDADD.
23209
23210 2010-03-07  Bruno Haible  <bruno@clisp.org>
23211
23212         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23213         among default module list.
23214
23215 2010-03-07  Bruno Haible  <bruno@clisp.org>
23216
23217         Fix link error on platforms with GNU libiconv.
23218         * modules/unistr/u8-strcoll-tests (Makefile): Define
23219         test_u8_strcoll_LDADD.
23220         * modules/unistr/u16-strcoll-tests (Makefile): Define
23221         test_u16_strcoll_LDADD.
23222         * modules/unistr/u32-strcoll-tests (Makefile): Define
23223         test_u32_strcoll_LDADD.
23224
23225 2010-03-07  Bruno Haible  <bruno@clisp.org>
23226
23227         Use POSIX declarations for socket functions.
23228         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23229         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23230         rpl_sendto): Change declaration to match POSIX.
23231         * lib/connect.c (rpl_connect): Likewise.
23232         * lib/accept.c (rpl_accept): Likewise.
23233         * lib/bind.c (rpl_bind): Likewise.
23234         * lib/getpeername.c (rpl_getpeername): Likewise.
23235         * lib/getsockname.c (rpl_getsockname): Likewise.
23236         * lib/recv.c (rpl_recv): Likewise.
23237         * lib/send.c (rpl_send): Likewise.
23238         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23239         * lib/sendto.c (rpl_sendto): Likewise.
23240
23241 2010-03-06  Bruno Haible  <bruno@clisp.org>
23242
23243         Clarify access, euidaccess, faccessat.
23244         * doc/posix-functions/faccessat.texi: Mention security problem under
23245         "Other problems", not "Portability problems".
23246         * doc/posix-functions/access.texi: Likewise. Mention a related security
23247         problem.
23248         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23249         * lib/euidaccess.c: Add comments about platforms.
23250         * lib/unistd.in.h (access, euidaccess): Add warnings.
23251
23252 2010-03-07  Bruno Haible  <bruno@clisp.org>
23253
23254         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23255         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23256         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23257         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23258         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23259         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23260         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23261         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23262         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23263         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23264         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23265         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23266         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23267         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23268         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23269         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23270         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23271         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23272         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23273         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23274         Likewise.
23275         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23276         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23277         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23278         Likewise.
23279         * tests/test-spawn.c (main): Make it work when
23280         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23281
23282 2010-03-07  Bruno Haible  <bruno@clisp.org>
23283
23284         Fix incorrect Makefile.am generation in German locale.
23285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23286         Execute sed command with character range in C locale.
23287
23288 2010-03-06  Bruno Haible  <bruno@clisp.org>
23289
23290         Tests for module 'iconv-h'.
23291         * modules/iconv-h-tests: New file.
23292         * tests/test-iconv-h.c: New file.
23293
23294         New module 'iconv-h'.
23295         * modules/iconv-h: New file.
23296         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23297         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23298         (configure.ac): Remove gl_ICONV_H.
23299         (Makefile.am): Remove rule for iconv.h.
23300
23301 2010-03-06  Bruno Haible  <bruno@clisp.org>
23302
23303         More consistent naming of *.m4 files.
23304         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23305         * modules/wctype (Files): Update.
23306
23307         More consistent naming of *.m4 files.
23308         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23309         * modules/wchar (Files): Update.
23310
23311 2010-03-06  Jim Meyering  <meyering@redhat.com>
23312
23313         euidaccess: relax license to LGPLv2+
23314         * modules/euidaccess (License): Relax to LGPLv2+.
23315
23316 2010-03-06  Bruno Haible  <bruno@clisp.org>
23317
23318         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23319         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23320         (Makefile.am): Augment lib_SOURCES instead.
23321
23322 2010-03-04  Jim Meyering  <meyering@redhat.com>
23323
23324         utime: remove obsolete module
23325         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23326         unnecessary for years, and has been marked as obsolete for 10 months.
23327         * modules/utime: Remove file.
23328         * lib/utime.c: Remove file.
23329         * m4/utime.m4: Remove file.
23330         * m4/utimes-null.m4: Remove file.
23331         * doc/posix-functions/utime.texi (utime): Remove reference to
23332         the module.  Move the sole "fixed by gnulib" item into the
23333         "problems not fixed by Gnulib" list.
23334         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23335
23336 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23337
23338         * modules/exit (License): Relax license to LGPLv2+.
23339         (Status): Mark as obsolete.
23340         * NEWS: Mention deprecated 'exit' module.
23341         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23342         of now obsolete 'exit'.
23343
23344 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23345
23346         fts-lgpl: remove unused module
23347         * modules/fts-lgpl: Remove.
23348         * MODULES.html.sh (func_all_modules): Adjust.
23349         * check-module (find_included_lib_files): Adjust.
23350         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23351
23352 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23353
23354         copy-acl: enhance Solaris ACL error handling
23355         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23356         * lib/set-mode-acl.c (qset_acl): Likewise.
23357
23358 2010-03-02  Bruno Haible  <bruno@clisp.org>
23359
23360         spawn: Don't override the system defined values on FreeBSD 8.
23361         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23362         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23363         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23364         if HAVE_POSIX_SPAWN is 1.
23365         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23366
23367 2010-03-01  Bruno Haible  <bruno@clisp.org>
23368
23369         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23370         regarding Automake.
23371
23372 2010-02-25  Bruno Haible  <bruno@clisp.org>
23373
23374         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23375         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23376         setting, not afterwards.
23377         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23378
23379 2010-02-24  Eric Blake  <eblake@redhat.com>
23380
23381         bootstrap, git-version-gen: use timestamp
23382         * build-aux/git-version-gen (scriptversion): Force UTC.
23383         * build-aux/bootstrap (scriptversion): New variable.
23384
23385         bootstrap: allow older git
23386         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23387         older than 1.6.4.  Requested by the libvirt project.
23388
23389 2010-02-23  Eric Blake  <eblake@redhat.com>
23390
23391         warn-on-use: work with old autoconf
23392         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23393         AS_VAR semantics of autoconf 2.60.
23394         Reported by Bruno Haible.
23395
23396         bootstrap: improve some comments
23397         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23398         clarification comments.
23399
23400         gettimeofday: provide correct function
23401         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23402         when replacement is declared, otherwise provide gettimeofday.
23403         Reported by Michael Goffioul.
23404
23405 2010-02-23  Jim Meyering  <meyering@redhat.com>
23406
23407         lib-ignore: relax license to "unlimited", not LGPLv2+
23408         * modules/lib-ignore (License): Relax to "unlimited".
23409
23410 2010-02-23  Jim Meyering  <meyering@redhat.com>
23411
23412         lib-ignore: relax license to LGPLv2+
23413         * modules/lib-ignore (License): Relax to LGPLv2+.
23414
23415 2010-02-22  Eric Blake  <eblake@redhat.com>
23416
23417         lseek: avoid bash 3.2 broken pipe bug
23418         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23419         warning from bash 3.2.
23420         Reported by Ben Pfaff, with analysis from Bruno Haible.
23421
23422         bootstrap: support non-FSF copyright holder
23423         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23424         bootstrap.conf override of COPYRIGHT_HOLDER.
23425         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23426
23427         bootstrap: interoperate with gettext 0.14.1
23428         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23429
23430         bootstrap: allow for alternate submodule location
23431         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23432         hardcoding submodule location.
23433         (gnulib_mk): Allow direct use of Makefile.am.
23434
23435         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23436         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23437         rather than reconfiguring where the submodule points.
23438
23439         gettimeofday: restore support for platforms that lack function
23440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23441         replacement if function is missing.
23442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23443         * modules/sys_time (Makefile.am): Substitute it.
23444         * lib/sys_time.in.h (gettimeofday): Check it.
23445         Reported by Michael Goffioul.
23446
23447 2010-02-21  Bruno Haible  <bruno@clisp.org>
23448
23449         * lib/stdio.in.h (obstack_printf): Fix typo.
23450
23451 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23452
23453         vc-list-files: use bzr ls's -R option
23454         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23455         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23456
23457 2010-02-21  Jim Meyering  <meyering@redhat.com>
23458
23459         init.sh: fix EXEEXT shims to work also for names like test-prog
23460         * tests/init.sh: Re-exec a better shell, when needed.
23461         If the current shell lacks support for posix $(...), an init.sh-using
23462         test will now try to find a shell that supports that.  If EXEEXT is
23463         nonempty, we also require support for hyphen-in-alias-name and shell
23464         substitutions like ${var#glob}.  Failure to find such a shell results
23465         in a skipped test.
23466
23467 2010-02-21  Bruno Haible  <bruno@clisp.org>
23468
23469         Really work around around "broken pipe" error message from bash 3.2.
23470         * gnulib-tool (func_reset_sigpipe): Remove function.
23471         (echo): In bash 3.2, define to a function that uses printf.
23472         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23473
23474 2010-02-20  Bruno Haible  <bruno@clisp.org>
23475
23476         Restore support for automake 1.9.6 with autoconf 2.61.
23477         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23478         Reported by James Youngman <jay@gnu.org>.
23479
23480 2010-02-20  Bruno Haible  <bruno@clisp.org>
23481
23482         Improve *printf warning condition.
23483         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23484         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23485         and the function is overridden due to SIGPIPE emulation.
23486
23487 2010-02-20  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/stdio.in.h: Tweak comments.
23490
23491 2010-02-19  Bruno Haible  <bruno@clisp.org>
23492
23493         Make it easier to find modules. New gnulib-tool option '--find'.
23494         * gnulib-tool: New option --find.
23495         (func_usage): Document it.
23496         (func_sanitize_modulelist): New function, extracted from
23497         func_all_modules.
23498         (func_all_modules): Invoke it.
23499         * doc/gnulib-tool.texi (Which modules?): New node.
23500
23501 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23502
23503         * lib/sys_select.in.h: Provide select replacement even if
23504         sys/select.h exists on a system, for Interix.
23505
23506 2010-02-18  Jim Meyering  <meyering@redhat.com>
23507
23508         init.sh: don't use $(...) just yet
23509         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23510         to accommodate e.g., Solaris' /bin/sh.
23511
23512 2010-02-17  Bruno Haible  <bruno@clisp.org>
23513
23514         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23515         Reported by Ludovic Courtès <ludo@gnu.org>.
23516
23517 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23518
23519         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23520         linking with -lintl.
23521
23522 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23523
23524         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23525         if not provided by the system's netdb.h.  Reported by
23526         ludo@gnu.org (Ludovic Courtès).
23527
23528 2010-02-15  Jim Meyering  <meyering@redhat.com>
23529
23530         init.sh: improve portability and efficiency
23531         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23532         "dummy" in a for loop.
23533         Use '!', not '^' to select the complement of a character set used
23534         in a "case" statement.
23535         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23536         Suggestions from Eric Blake.
23537
23538         init.sh: automatically accommodate programs with the .exe suffix
23539         Automatically arrange for an invocation of "prog" to execute the
23540         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23541         may use the simpler "prog", yet still work when built on a system
23542         that requires specifying the added suffix.
23543         Do this by constructing a function named "prog" that invokes
23544         "prog.exe" for each .exe file in selected directories.
23545         * tests/init.sh (find_exe_basenames_): New function.
23546         (create_exe_shim_functions_): New function.
23547         (path_prepend_): Use it.
23548
23549         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23550         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23551         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23552
23553 2010-02-14  Jim Meyering  <meyering@redhat.com>
23554
23555         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23556         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23557         (sc_prohibit_hash_pjw_without_use): New rule.
23558
23559         maint.mk: allow the default upload destination dir to be overridden
23560         * top/maint.mk (upload_dest_dir_): Define with a default that
23561         preserves the status quo.
23562         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23563         Reported by Peter Simons.
23564
23565         maint.mk: prohibit inclusion of "hash.h" without_use
23566         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23567
23568 2010-02-10  Jim Meyering  <meyering@redhat.com>
23569
23570         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23571         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23572
23573 2010-02-09  Eric Blake  <ebb9@byu.net>
23574         and Bruno Haible  <bruno@clisp.org>
23575
23576         obstack-printf-posix: ensure declaration
23577         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23578         extracted from gl_FUNC_OBSTACK_PRINTF.
23579         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23580         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23581         Likewise.
23582         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23583         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23584         0.
23585
23586 2010-02-08  Bruno Haible  <bruno@clisp.org>
23587
23588         gnulib-tool: Fix typo in 2010-02-07 commit.
23589         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23590         Reported by Eric Blake.
23591
23592 2010-02-07  Bruno Haible  <bruno@clisp.org>
23593
23594         gnulib-tool: Fix up caching patches.
23595         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23596         option --no-cache. Use associative arrays when supported by the shell.
23597         (sed_comments): New variable.
23598         (modcache): Renamed from do_cache.
23599         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23600         abbreviate unnecessarily.
23601         (have_associative): New variable.
23602         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23603         way also for ksh and zsh.
23604         (func_init_sed_convert_to_cache_statements): New function, extracted
23605         from func_cache_lookup_module. Add support for associative arrays.
23606         Don't set the c_MODULE_cached variable here. Ignore all lines before
23607         the first field header. Remove only the final newline, not all trailing
23608         newlines. Support empty fields correctly. Limit the use of 'eval' to
23609         assignments.
23610         (func_get_description, func_get_status, func_get_notice,
23611         func_get_applicability, func_get_filelist, func_get_dependencies,
23612         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23613         func_get_automake_snippet, func_get_include_directive,
23614         func_get_link_directive, func_get_license, func_get_maintainer):
23615         Update documentation. List the unoptimized code first. Add support for
23616         associative arrays. Limit the use of 'eval' to assignments.
23617         (func_get_applicability): Undo stylistic pessimisations.
23618         (func_get_automake_snippet, func_get_include_directive): Reduce code
23619         duplication.
23620         (func_modules_transitive_closure, func_modules_add_dummy,
23621         func_modules_notice, func_modules_to_filelist, func_add_file,
23622         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23623         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23624         func_create_testdir, func_create_megatestdir): Update documentation.
23625
23626 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23627
23628         * gnulib-tool (func_cache_lookup_module): Store the module name
23629         belonging to the cache variable; error out if two different
23630         module names map to the same cache variable name.
23631
23632 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23633
23634         gnulib-tool: Make caching optional.
23635         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23636         Update matching short versions of --no-changelog.
23637         (func_usage): Update.
23638         (sed_extract_cache_prog): Renamed from ...
23639         (sed_extract_prog): ... this; revert to old extraction script.
23640         (func_get_description, func_get_status)
23641         (func_get_notice, func_get_applicability, func_get_filelist)
23642         (func_get_dependencies, func_get_autoconf_early_snippet)
23643         (func_get_autoconf_snippet, func_get_automake_snippet)
23644         (func_get_include_directive, func_get_link_directive)
23645         (func_get_license, func_get_maintainer): If $do_cache is false,
23646         use old, non-caching extraction scripts.
23647         Suggestion by Bruno Haible.
23648
23649 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23650
23651         gnulib-tool: cache module metainformation.
23652         * gnulib-tool (sed_extract_prog): Match newline before each
23653         header, and rewrite header to a shell variable suffix.
23654         (func_cache_var, func_cache_lookup_module): New functions,
23655         to turn a module name into a cache variable prefix, and to
23656         look up and cache module metainformation.
23657         (func_get_description, func_get_status)
23658         (func_get_notice, func_get_applicability, func_get_filelist)
23659         (func_get_dependencies, func_get_autoconf_early_snippet)
23660         (func_get_autoconf_snippet, func_get_automake_snippet)
23661         (func_get_include_directive, func_get_link_directive)
23662         (func_get_license, func_get_maintainer): Use
23663         func_cache_lookup_module.
23664
23665 2010-02-07  Bruno Haible  <bruno@clisp.org>
23666
23667         fnctl: Fix missing dependency.
23668         * modules/fcntl (Depends-on): Add getdtablesize.
23669         Reported by John W. Eaton <jwe@gnu.org>.
23670
23671 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23672
23673         Argp: fix recognition of short alias options.
23674
23675         * lib/argp-parse.c (convert_options): Fix improper use of
23676         `|' between character values.
23677         * tests/test-argp.c (group1_option): New alias option
23678         --read (-r).
23679         (group1_parser): Special handling for 'r'.
23680         (test15): New test case.
23681         (test_fun): Add test15.
23682         * tests/test-argp-2.sh: Update expected --help and --usage
23683         outputs.
23684
23685 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23686
23687         * tests/test-argp.c: Fix indentation.
23688
23689 2010-02-04  Eric Blake  <ebb9@byu.net>
23690
23691         gettimeofday: expose type of second argument
23692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23693         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23694         * tests/test-gettimeofday.c: Use it to silence warning.
23695         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23696         the issue.
23697
23698 2010-02-03  Jim Meyering  <meyering@redhat.com>
23699
23700         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23701         * lib/regcomp.c (TYPE_SIGNED): Define.
23702         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23703
23704         regcomp.c: avoid a new -Wshadow warning
23705         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23706
23707 2010-02-01  Jim Meyering  <meyering@redhat.com>
23708
23709         removing useless parentheses in cpp #define directives
23710         For motivation, see commit c0221df4, "define STREQ(a,b)
23711         consistently, removing useless parentheses"
23712         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23713         * lib/mountlist.c (MNT_IGNORE): Likewise.
23714         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23715
23716 2010-02-01  Eric Blake  <ebb9@byu.net>
23717
23718         sys_time: use link-warning
23719         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23720         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23721         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23722         * modules/sys_time (Depends-on): Add warn-on-use.
23723         (Makefile.am): Always build replacement.
23724         (configure.ac): Update substitutions.
23725         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23726         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23727         bother with SYS_TIME_H.
23728         * modules/gettimeofday (configure.ac): Declare indicator.
23729         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23730         in use.
23731
23732         closein-tests: silence compiler warning
23733         * tests/test-closein.c (main): Ignore fread result.
23734         * modules/closein-tests (Depends-on): Add ignore-value.
23735
23736         tests: silence warning about system return
23737         * tests/test-areadlink-with-size.c (main): Ignore system result.
23738         * tests/test-areadlink.c (main): Likewise.
23739         * tests/test-areadlinkat-with-size.c (main): Likewise.
23740         * tests/test-areadlinkat.c (main): Likewise.
23741         * tests/test-canonicalize-lgpl.c (main): Likewise.
23742         * tests/test-canonicalize.c (main): Likewise.
23743         * tests/test-chown.c (main): Likewise.
23744         * tests/test-fchownat.c (main): Likewise.
23745         * tests/test-fdutimensat.c (main): Likewise.
23746         * tests/test-fstatat.c (main): Likewise.
23747         * tests/test-futimens.c (main): Likewise.
23748         * tests/test-lchown.c (main): Likewise.
23749         * tests/test-link.c (main): Likewise.
23750         * tests/test-linkat.c (main): Likewise.
23751         * tests/test-lstat.c (main): Likewise.
23752         * tests/test-mkdir.c (main): Likewise.
23753         * tests/test-mkdirat.c (main): Likewise.
23754         * tests/test-mkfifo.c (main): Likewise.
23755         * tests/test-mkfifoat.c (main): Likewise.
23756         * tests/test-mknod.c (main): Likewise.
23757         * tests/test-readlink.c (main): Likewise.
23758         * tests/test-remove.c (main): Likewise.
23759         * tests/test-rename.c (main): Likewise.
23760         * tests/test-renameat.c (main): Likewise.
23761         * tests/test-rmdir.c (main): Likewise.
23762         * tests/test-symlink.c (main): Likewise.
23763         * tests/test-symlinkat.c (main): Likewise.
23764         * tests/test-unlink.c (main): Likewise.
23765         * tests/test-unlinkat.c (main): Likewise.
23766         * tests/test-utimens.c (main): Likewise.
23767         * tests/test-utimensat.c (main): Likewise.
23768         * modules/areadlink-tests (Depends-on): Add ignore-value.
23769         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23770         * modules/areadlinkat-tests (Depends-on): Likewise.
23771         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23772         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23773         * modules/canonicalize-tests (Depends-on): Likewise.
23774         * modules/chown-tests (Depends-on): Likewise.
23775         * modules/fdutimensat-tests (Depends-on): Likewise.
23776         * modules/futimens-tests (Depends-on): Likewise.
23777         * modules/lchown-tests (Depends-on): Likewise.
23778         * modules/link-tests (Depends-on): Likewise.
23779         * modules/linkat-tests (Depends-on): Likewise.
23780         * modules/lstat-tests (Depends-on): Likewise.
23781         * modules/mkdir-tests (Depends-on): Likewise.
23782         * modules/mkfifo-tests (Depends-on): Likewise.
23783         * modules/mkfifoat-tests (Depends-on): Likewise.
23784         * modules/mknod-tests (Depends-on): Likewise.
23785         * modules/openat-tests (Depends-on): Likewise.
23786         * modules/readlink-tests (Depends-on): Likewise.
23787         * modules/remove-tests (Depends-on): Likewise.
23788         * modules/rename-tests (Depends-on): Likewise.
23789         * modules/renameat-tests (Depends-on): Likewise.
23790         * modules/rmdir-tests (Depends-on): Likewise.
23791         * modules/symlink-tests (Depends-on): Likewise.
23792         * modules/symlinkat-tests (Depends-on): Likewise.
23793         * modules/unlink-tests (Depends-on): Likewise.
23794         * modules/utimens-tests (Depends-on): Likewise.
23795         * modules/utimensat-tests (Depends-on): Likewise.
23796
23797 2010-01-31  Bruno Haible  <bruno@clisp.org>
23798
23799         Perform the same test for many <math.h> functions.
23800         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23801         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23802         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23803         of gl_MATHFUNC.
23804         * modules/acos (configure.ac): Likewise.
23805         * modules/asin (configure.ac): Likewise.
23806         * modules/atan (configure.ac): Likewise.
23807         * modules/atan2 (configure.ac): Likewise.
23808         * modules/cbrt (configure.ac): Likewise.
23809         * modules/copysign (configure.ac): Likewise.
23810         * modules/cos (configure.ac): Likewise.
23811         * modules/cosh (configure.ac): Likewise.
23812         * modules/erf (configure.ac): Likewise.
23813         * modules/erfc (configure.ac): Likewise.
23814         * modules/exp (configure.ac): Likewise.
23815         * modules/fmod (configure.ac): Likewise.
23816         * modules/hypot (configure.ac): Likewise.
23817         * modules/j0 (configure.ac): Likewise.
23818         * modules/j1 (configure.ac): Likewise.
23819         * modules/jn (configure.ac): Likewise.
23820         * modules/lgamma (configure.ac): Likewise.
23821         * modules/log (configure.ac): Likewise.
23822         * modules/log10 (configure.ac): Likewise.
23823         * modules/log1p (configure.ac): Likewise.
23824         * modules/pow (configure.ac): Likewise.
23825         * modules/remainder (configure.ac): Likewise.
23826         * modules/sin (configure.ac): Likewise.
23827         * modules/sinh (configure.ac): Likewise.
23828         * modules/tan (configure.ac): Likewise.
23829         * modules/tanh (configure.ac): Likewise.
23830         * modules/y0 (configure.ac): Likewise.
23831         * modules/y1 (configure.ac): Likewise.
23832         * modules/yn (configure.ac): Likewise.
23833         Suggested by Paolo Bonzini.
23834
23835 2010-01-31  Bruno Haible  <bruno@clisp.org>
23836
23837         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23838
23839 2010-01-31  Bruno Haible  <bruno@clisp.org>
23840
23841         Work around getdelim() bug on FreeBSD 8.0.
23842         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23843         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23844         not work.
23845         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23846         is 1.
23847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23848         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23849         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23850         a non-zero size.
23851         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23852
23853 2010-01-31  Bruno Haible  <bruno@clisp.org>
23854
23855         Work around getline() bug on FreeBSD 8.0.
23856         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23857         and a non-zero size.
23858         * tests/test-getline.c (main): Likewise.
23859         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23860         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23861
23862 2010-01-28  Eric Blake  <ebb9@byu.net>
23863
23864         regex: fix build failure
23865         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23866         platforms.
23867
23868 2010-01-28  Jim Meyering  <meyering@redhat.com>
23869
23870         regex: do not ignore memory allocation failure
23871         * lib/regex_internal.c (create_cd_newstate): Detect
23872         re_node_set_init_copy failure.   Extracted from glibc commit
23873         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23874
23875         regex: sync more white-space changes from libc
23876         * lib/regex_internal.c: White-space only changes.
23877         * lib/regexec.c: Likewise.
23878
23879         regex: add many uses of __attribute_warn_unused_result__
23880         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23881         * lib/regexec.c: Likewise.
23882         Extracted from a messy glibc commit.
23883
23884         regcomp.c: spelling and merge-artifact from glibc
23885         * lib/regcomp.c: Merge remainder of glibc's
23886         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23887
23888         regcomp.c: sync white-space changes from glibc
23889         * lib/regcomp.c: Merge to accommodate white space
23890         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23891
23892         regcomp.c: do not ignore internal return values
23893         * lib/regcomp.c: Do not ignore internal return values.
23894         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23895         but without its white-space changes and spelling fixes.
23896
23897         regex_internal.h: define __attribute_warn_unused_result__
23898         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23899
23900         maint: add a syntax-check rule to check for vulnerable Makefile.in
23901         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23902
23903 2010-01-27  Jim Meyering  <meyering@redhat.com>
23904
23905         ncftpput-ftp: clean up spaces
23906         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23907         Remove trailing blanks.
23908
23909 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23910
23911         * build-aux/git-version-gen: Fix copyright statement.
23912         * build-aux/gnupload: Likewise.
23913         * tests/test-arcfour.c: Likewise.
23914         * tests/test-arctwo.c: Likewise.
23915         * tests/test-count-one-bits.c: Likewise.
23916         * tests/test-crc.c: Likewise.
23917         * tests/test-des.c: Likewise.
23918         * tests/test-gc-arcfour.c: Likewise.
23919         * tests/test-gc-arctwo.c: Likewise.
23920         * tests/test-gc-des.c: Likewise.
23921         * tests/test-gc-hmac-md5.c: Likewise.
23922         * tests/test-gc-hmac-sha1.c: Likewise.
23923         * tests/test-gc-md2.c: Likewise.
23924         * tests/test-gc-md4.c: Likewise.
23925         * tests/test-gc-md5.c: Likewise.
23926         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23927         * tests/test-gc-rijndael.c: Likewise.
23928         * tests/test-gc-sha1.c: Likewise.
23929         * tests/test-gc.c: Likewise.
23930         * tests/test-gethostname.c: Likewise.
23931         * tests/test-gettimeofday.c: Likewise.
23932         * tests/test-hash.c: Likewise.
23933         * tests/test-hmac-md5.c: Likewise.
23934         * tests/test-hmac-sha1.c: Likewise.
23935         * tests/test-md2.c: Likewise.
23936         * tests/test-md4.c: Likewise.
23937         * tests/test-md5.c: Likewise.
23938         * tests/test-memchr.c: Likewise.
23939         * tests/test-memchr2.c: Likewise.
23940         * tests/test-memcmp.c: Likewise.
23941         * tests/test-memmem.c: Likewise.
23942         * tests/test-memrchr.c: Likewise.
23943         * tests/test-rawmemchr.c: Likewise.
23944         * tests/test-read-file.c: Likewise.
23945         * tests/test-rijndael.c: Likewise.
23946         * tests/test-sockets.c: Likewise.
23947         * tests/test-strchrnul.c: Likewise.
23948         * tests/test-strstr.c: Likewise.
23949         * tests/test-strtod.c: Likewise.
23950         * build-aux/ncftpput-ftp: Likewise.
23951
23952 2010-01-26  Eric Blake  <ebb9@byu.net>
23953
23954         ignore-value: update recommended header name
23955         * modules/ignore-value (Include): Only use <> for headers that
23956         exist in glibc.
23957
23958 2010-01-26  Jim Meyering  <meyering@redhat.com>
23959
23960         test-userspec.c: avoid compiler warnings
23961         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23962         and "initialization discards qualifiers..." warnings.
23963         Put the first "uid" in its own scope, and make char* members "const".
23964
23965 2010-01-25  Bruno Haible  <bruno@clisp.org>
23966
23967         gnulib-tool: Make warning diagnostics consistent.
23968         * gnulib-tool (func_warning): New function.
23969         Use it everywhere where gnulib-tool produces output to stderr and it is
23970         not a fatal error.
23971
23972 2010-01-25  Bruno Haible  <bruno@clisp.org>
23973
23974         Fix test dependencies.
23975         * modules/xstrtol-tests (Depends-on): Add inttypes.
23976         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23977
23978 2010-01-25 Pádraig Brady <P@draigBrady.com>
23979
23980         syntax-check: detect incorrect boolean macro values in config.h
23981         * modules/maintainer-makefile (configure.ac): Parameterize the location
23982         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23983         The logic is from Eric Blake and the location indicated by Jim Meyering.
23984         Note the more natural CONFIG_HEADER name is prohibited by automake
23985         for backwards compatibility reasons.
23986         * top/maint.mk (sc_Wundef_boolean): New rule.
23987
23988 2010-01-25  Jim Meyering  <meyering@redhat.com>
23989
23990         bootstrap: detect MacOS 10.6's shasum, too
23991         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23992         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23993
23994 2010-01-23  Jim Meyering  <meyering@redhat.com>
23995
23996         xstrtoll: new module
23997         * modules/xstrtoll: New file.
23998         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23999         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24000         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24001         ./configure fails if you use this module and lack "long long".
24002         * modules/xstrtoll-tests: New module.
24003         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24004         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24005         new init.sh-based test framework.
24006
24007 2010-01-24  Bruno Haible  <bruno@clisp.org>
24008
24009         Tests for module 'yn'.
24010         * modules/yn-tests: New file.
24011         * tests/test-yn.c: New file.
24012
24013         Tests for module 'y1'.
24014         * modules/y1-tests: New file.
24015         * tests/test-y1.c: New file.
24016
24017         Tests for module 'y0'.
24018         * modules/y0-tests: New file.
24019         * tests/test-y0.c: New file.
24020
24021         Tests for module 'tanh'.
24022         * modules/tanh-tests: New file.
24023         * tests/test-tanh.c: New file.
24024
24025         Tests for module 'tan'.
24026         * modules/tan-tests: New file.
24027         * tests/test-tan.c: New file.
24028
24029         Tests for module 'sqrt'.
24030         * modules/sqrt-tests: New file.
24031         * tests/test-sqrt.c: New file.
24032
24033         Tests for module 'sinh'.
24034         * modules/sinh-tests: New file.
24035         * tests/test-sinh.c: New file.
24036
24037         Tests for module 'sin'.
24038         * modules/sin-tests: New file.
24039         * tests/test-sin.c: New file.
24040
24041         Tests for module 'rint'.
24042         * modules/rint-tests: New file.
24043         * tests/test-rint.c: New file.
24044
24045         Tests for module 'remainder'.
24046         * modules/remainder-tests: New file.
24047         * tests/test-remainder.c: New file.
24048
24049         Tests for module 'pow'.
24050         * modules/pow-tests: New file.
24051         * tests/test-pow.c: New file.
24052
24053         Tests for module 'nextafter'.
24054         * modules/nextafter-tests: New file.
24055         * tests/test-nextafter.c: New file.
24056
24057         Tests for module 'modf'.
24058         * modules/modf-tests: New file.
24059         * tests/test-modf.c: New file.
24060
24061         Tests for module 'logb'.
24062         * modules/logb-tests: New file.
24063         * tests/test-logb.c: New file.
24064
24065         Tests for module 'log1p'.
24066         * modules/log1p-tests: New file.
24067         * tests/test-log1p.c: New file.
24068
24069         Tests for module 'log10'.
24070         * modules/log10-tests: New file.
24071         * tests/test-log10.c: New file.
24072
24073         Tests for module 'log'.
24074         * modules/log-tests: New file.
24075         * tests/test-log.c: New file.
24076
24077         Tests for module 'lgamma'.
24078         * modules/lgamma-tests: New file.
24079         * tests/test-lgamma.c: New file.
24080
24081         Tests for module 'ldexp'.
24082         * modules/ldexp-tests: New file.
24083         * tests/test-ldexp.c: New file.
24084
24085         Tests for module 'jn'.
24086         * modules/jn-tests: New file.
24087         * tests/test-jn.c: New file.
24088
24089         Tests for module 'j1'.
24090         * modules/j1-tests: New file.
24091         * tests/test-j1.c: New file.
24092
24093         Tests for module 'j0'.
24094         * modules/j0-tests: New file.
24095         * tests/test-j0.c: New file.
24096
24097         Tests for module 'hypot'.
24098         * modules/hypot-tests: New file.
24099         * tests/test-hypot.c: New file.
24100
24101         Tests for module 'fmod'.
24102         * modules/fmod-tests: New file.
24103         * tests/test-fmod.c: New file.
24104
24105         Tests for module 'fabs'.
24106         * modules/fabs-tests: New file.
24107         * tests/test-fabs.c: New file.
24108
24109         Tests for module 'exp'.
24110         * modules/exp-tests: New file.
24111         * tests/test-exp.c: New file.
24112
24113         Tests for module 'erfc'.
24114         * modules/erfc-tests: New file.
24115         * tests/test-erfc.c: New file.
24116
24117         Tests for module 'erf'.
24118         * modules/erf-tests: New file.
24119         * tests/test-erf.c: New file.
24120
24121         Tests for module 'cosh'.
24122         * modules/cosh-tests: New file.
24123         * tests/test-cosh.c: New file.
24124
24125         Tests for module 'cos'.
24126         * modules/cos-tests: New file.
24127         * tests/test-cos.c: New file.
24128
24129         Tests for module 'copysign'.
24130         * modules/copysign-tests: New file.
24131         * tests/test-copysign.c: New file.
24132
24133         Tests for module 'cbrt'.
24134         * modules/cbrt-tests: New file.
24135         * tests/test-cbrt.c: New file.
24136
24137         Tests for module 'atan2'.
24138         * modules/atan2-tests: New file.
24139         * tests/test-atan2.c: New file.
24140
24141         Tests for module 'atan'.
24142         * modules/atan-tests: New file.
24143         * tests/test-atan.c: New file.
24144
24145         Tests for module 'asin'.
24146         * modules/asin-tests: New file.
24147         * tests/test-asin.c: New file.
24148
24149         Tests for module 'acos'.
24150         * modules/acos-tests: New file.
24151         * tests/test-acos.c: New file.
24152
24153 2010-01-24  Bruno Haible  <bruno@clisp.org>
24154
24155         Fix tests for common <math.h> functions.
24156         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24157         code snippet that references the function pointer, rather than merely
24158         calling the function. Substitute the FUNC_LIBM variable.
24159         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24160         * modules/acos (configure.ac): Likewise.
24161         * modules/asin (configure.ac): Likewise.
24162         * modules/atan (configure.ac): Likewise.
24163         * modules/atan2 (configure.ac): Likewise.
24164         * modules/cbrt (configure.ac): Likewise.
24165         * modules/copysign (configure.ac): Likewise.
24166         * modules/cos (configure.ac): Likewise.
24167         * modules/cosh (configure.ac): Likewise.
24168         * modules/erf (configure.ac): Likewise.
24169         * modules/erfc (configure.ac): Likewise.
24170         * modules/exp (configure.ac): Likewise.
24171         * modules/fabs (configure.ac): Likewise.
24172         * modules/fmod (configure.ac): Likewise.
24173         * modules/hypot (configure.ac): Likewise.
24174         * modules/j0 (configure.ac): Likewise.
24175         * modules/j1 (configure.ac): Likewise.
24176         * modules/jn (configure.ac): Likewise.
24177         * modules/ldexp (configure.ac): Likewise.
24178         * modules/lgamma (configure.ac): Likewise.
24179         * modules/log (configure.ac): Likewise.
24180         * modules/log10 (configure.ac): Likewise.
24181         * modules/log1p (configure.ac): Likewise.
24182         * modules/logb (configure.ac): Likewise.
24183         * modules/modf (configure.ac): Likewise.
24184         * modules/nextafter (configure.ac): Likewise.
24185         * modules/pow (configure.ac): Likewise.
24186         * modules/remainder (configure.ac): Likewise.
24187         * modules/rint (configure.ac): Likewise.
24188         * modules/sin (configure.ac): Likewise.
24189         * modules/sinh (configure.ac): Likewise.
24190         * modules/tan (configure.ac): Likewise.
24191         * modules/tanh (configure.ac): Likewise.
24192         * modules/y0 (configure.ac): Likewise.
24193         * modules/y1 (configure.ac): Likewise.
24194         * modules/yn (configure.ac): Likewise.
24195
24196 2010-01-24  Bruno Haible  <bruno@clisp.org>
24197
24198         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24199         * tests/test-acosl.c (x): New variable.
24200         (main): Store argument in x and fetch it from x.
24201         * tests/test-asinl.c (x): New variable.
24202         (main): Store argument in x and fetch it from x.
24203         * tests/test-atanl.c (x): New variable.
24204         (main): Store argument in x and fetch it from x.
24205         * tests/test-cosl.c (x): New variable.
24206         (main): Store argument in x and fetch it from x.
24207         * tests/test-expl.c (x): New variable.
24208         (main): Store argument in x and fetch it from x.
24209         * tests/test-logl.c (x): New variable.
24210         (main): Store argument in x and fetch it from x.
24211         * tests/test-sinl.c (x): New variable.
24212         (main): Store argument in x and fetch it from x.
24213         * tests/test-sqrtl.c (x): New variable.
24214         (main): Store argument in x and fetch it from x.
24215         * tests/test-tanl.c (x): New variable.
24216         (main): Store argument in x and fetch it from x.
24217
24218 2010-01-24  Bruno Haible  <bruno@clisp.org>
24219
24220         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24221         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24222         assignments to the initial TESTS_ENVIRONMENT.
24223         * doc/gnulib.texi (Unit test modules): Document it.
24224         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24225         TESTS_ENVIRONMENT.
24226         * modules/btowc-tests (Makefile.am): Likewise.
24227         * modules/c-stack-tests (Makefile.am): Likewise.
24228         * modules/c-strcase-tests (Makefile.am): Likewise.
24229         * modules/copy-file-tests (Makefile.am): Likewise.
24230         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24231         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24232         * modules/mbrtowc-tests (Makefile.am): Likewise.
24233         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24234         * modules/mbscasestr-tests (Makefile.am): Likewise.
24235         * modules/mbschr-tests (Makefile.am): Likewise.
24236         * modules/mbscspn-tests (Makefile.am): Likewise.
24237         * modules/mbsinit-tests (Makefile.am): Likewise.
24238         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24239         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24240         * modules/mbspbrk-tests (Makefile.am): Likewise.
24241         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24242         * modules/mbsrchr-tests (Makefile.am): Likewise.
24243         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24244         * modules/mbsspn-tests (Makefile.am): Likewise.
24245         * modules/mbsstr-tests (Makefile.am): Likewise.
24246         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24247         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24248         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24249         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24250         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24251         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24252         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24253         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24254         * modules/wcrtomb-tests (Makefile.am): Likewise.
24255         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24256         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24257         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24258         assignments from TESTS_ENVIRONMENT.
24259         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24260         augmentation.
24261         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24262         * modules/atexit-tests (Makefile.am): Likewise.
24263         * modules/binary-io-tests (Makefile.am): Likewise.
24264         * modules/closein-tests (Makefile.am): Likewise.
24265         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24266         * modules/exclude-tests (Makefile.am): Likewise.
24267         * modules/fflush-tests (Makefile.am): Likewise.
24268         * modules/fpending-tests (Makefile.am): Likewise.
24269         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24270         * modules/freadahead-tests (Makefile.am): Likewise.
24271         * modules/freadptr-tests (Makefile.am): Likewise.
24272         * modules/freadseek-tests (Makefile.am): Likewise.
24273         * modules/fseek-tests (Makefile.am): Likewise.
24274         * modules/fseeko-tests (Makefile.am): Likewise.
24275         * modules/ftell-tests (Makefile.am): Likewise.
24276         * modules/ftello-tests (Makefile.am): Likewise.
24277         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24278         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24279         * modules/lseek-tests (Makefile.am): Likewise.
24280         * modules/parse-duration-tests (Makefile.am): Likewise.
24281         * modules/perror-tests (Makefile.am): Likewise.
24282         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24283         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24284         * modules/pipe-tests (Makefile.am): Likewise.
24285         * modules/pread-tests (Makefile.am): Likewise.
24286         * modules/printf-posix-tests (Makefile.am): Likewise.
24287         * modules/select-tests (Makefile.am): Likewise.
24288         * modules/sigpipe-tests (Makefile.am): Likewise.
24289         * modules/tsearch-tests (Makefile.am): Likewise.
24290         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24291         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24292         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24293         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24294         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24295         * modules/version-etc-tests (Makefile.am): Likewise.
24296         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24297         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24298         * modules/xalloc-die-tests (Makefile.am): Likewise.
24299         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24300         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24301         * modules/xstrtol-tests (Makefile.am): Likewise.
24302         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24303         * modules/yesno-tests (Makefile.am): Likewise.
24304         Suggested by Jim Meyering.
24305
24306 2010-01-24  Bruno Haible  <bruno@clisp.org>
24307
24308         More documentation.
24309         * doc/gnulib.texi (Writing modules): New chapter.
24310         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24311         the new chapter.
24312
24313 2010-01-24  Jim Meyering  <meyering@redhat.com>
24314
24315         maint.mk: do not prepend "./" after filtering
24316         * top/maint.mk (_prepend_srcdir_prefix): New variable
24317         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24318         "./" when $(srcdir) is ".".
24319
24320         define STREQ(a,b) consistently, removing useless parentheses
24321         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24322         since the only risk is that "a" or "b" contains an unparenthesized
24323         comma, but if either did that, STREQ would have 3 or more arguments.
24324         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24325         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24326         * lib/hash-triple.c (STREQ): Likewise.
24327         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24328         * lib/getugroups.c (STREQ): Likewise.
24329
24330 2010-01-23  Jim Meyering  <meyering@redhat.com>
24331
24332         maint.mk: fix syntax-check in a non-srcdir build directory
24333         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24334         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24335
24336 2010-01-22  Jim Meyering  <meyering@redhat.com>
24337
24338         userspec: add unit tests
24339         * tests/test-userspec.c: New file.
24340         * modules/userspec-tests: Likewise.
24341
24342 2010-01-21  Jim Meyering  <meyering@redhat.com>
24343
24344         maint.mk: handle source file names containing "." robustly
24345         * top/maint.mk (_dot_escaped_srcdir): Define.
24346         (VC_LIST): Use it in LHS of sed substitution.
24347
24348 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24349
24350         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24351         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24352         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24353         from a non-srcdir build.
24354
24355 2010-01-20  Eric Blake  <ebb9@byu.net>
24356
24357         warn-on-use: use instead of link-warning
24358         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24359         * modules/unistd (Depends-on, Makefile.am): Likewise.
24360         * modules/arpa_inet (Depends-on): Replace link-warning with
24361         warn-on-use.
24362         (Makefile.am): Update rules accordingly.
24363         * modules/ctype (Depends-on, Makefile.am): Likewise.
24364         * modules/dirent (Depends-on, Makefile.am): Likewise.
24365         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24366         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24367         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24368         * modules/locale (Depends-on, Makefile.am): Likewise.
24369         * modules/math (Depends-on, Makefile.am): Likewise.
24370         * modules/search (Depends-on, Makefile.am): Likewise.
24371         * modules/signal (Depends-on, Makefile.am): Likewise.
24372         * modules/spawn (Depends-on, Makefile.am): Likewise.
24373         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24374         * modules/string (Depends-on, Makefile.am): Likewise.
24375         * modules/strings (Depends-on, Makefile.am): Likewise.
24376         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24377         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24378         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24379         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24380         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24381         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24382         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24383         * modules/wchar (Depends-on, Makefile.am): Likewise.
24384         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24385         should be poisoned.
24386         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24387         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24388         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24389         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24390         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24391         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24392         * m4/math_h.m4 (gl_MATH_H): Likewise.
24393         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24394         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24395         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24396         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24397         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24398         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24399         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24400         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24401         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24405         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24407         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24408         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24409         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24410         GL_LINK_WARNING.
24411         * lib/ctype.in.h: Likewise.
24412         * lib/dirent.in.h: Likewise.
24413         * lib/fcntl.in.h: Likewise.
24414         * lib/inttypes.in.h: Likewise.
24415         * lib/langinfo.in.h: Likewise.
24416         * lib/locale.in.h: Likewise.
24417         * lib/math.in.h: Likewise.
24418         * lib/search.in.h: Likewise.
24419         * lib/signal.in.h: Likewise.
24420         * lib/spawn.in.h: Likewise.
24421         * lib/stdio.in.h: Likewise.
24422         * lib/stdlib.in.h: Likewise.
24423         * lib/string.in.h: Likewise.
24424         * lib/strings.in.h: Likewise.
24425         * lib/sys_file.in.h: Likewise.
24426         * lib/sys_ioctl.in.h: Likewise.
24427         * lib/sys_select.in.h: Likewise.
24428         * lib/sys_socket.in.h: Likewise.
24429         * lib/sys_stat.in.h: Likewise.
24430         * lib/sys_times.in.h: Likewise.
24431         * lib/sys_utsname.in.h: Likewise.
24432         * lib/unistd.in.h: Likewise.
24433         * lib/wchar.in.h: Likewise.
24434
24435 2010-01-20  Bruno Haible  <bruno@clisp.org>
24436
24437         Avoid duplicate -lm.
24438         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24439         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24440         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24441         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24442         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24443         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24444         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24445         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24446         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24447         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24448         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24449         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24450         Reported by Paolo Bonzini.
24451
24452 2010-01-19  Bruno Haible  <bruno@clisp.org>
24453
24454         langinfo, nl_langinfo: Relicense under LGPLv2+.
24455         * modules/langinfo (License): Change to LGPLv2+.
24456         * modules/nl_langinfo (License): Likewise.
24457         Patch by David Lutterkort <lutter@redhat.com>.
24458
24459 2010-01-19  Bruno Haible  <bruno@clisp.org>
24460
24461         Avoid compilation error with cc on OSF/1 5.1.
24462         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24463         statement, not before.
24464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24465
24466 2010-01-18  Bruno Haible  <bruno@clisp.org>
24467
24468         Avoid a link error due to the __printf__ symbol.
24469         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24470         and 2.6.x.
24471         (__format__, __printf__): Remove definitions.
24472         * lib/argp-fmtstream.h: Likewise.
24473         * lib/argp.h: Likewise.
24474         * lib/error.h: Likewise.
24475         * lib/vasnprintf.h: Likewise.
24476         * lib/xprintf.h: Likewise.
24477         * lib/xvasprintf.h: Likewise.
24478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24479
24480 2010-01-18  Bruno Haible  <bruno@clisp.org>
24481
24482         Tests for module 'tanl'.
24483         * modules/tanl-tests: New file.
24484         * tests/test-tanl.c: New file.
24485
24486         Tests for module 'sqrtl'.
24487         * modules/sqrtl-tests: New file.
24488         * tests/test-sqrtl.c: New file.
24489
24490         Tests for module 'sinl'.
24491         * modules/sinl-tests: New file.
24492         * tests/test-sinl.c: New file.
24493
24494         Tests for module 'logl'.
24495         * modules/logl-tests: New file.
24496         * tests/test-logl.c: New file.
24497
24498         Tests for module 'expl'.
24499         * modules/expl-tests: New file.
24500         * tests/test-expl.c: New file.
24501
24502         Tests for module 'cosl'.
24503         * modules/cosl-tests: New file.
24504         * tests/test-cosl.c: New file.
24505
24506         Tests for module 'atanl'.
24507         * modules/atanl-tests: New file.
24508         * tests/test-atanl.c: New file.
24509
24510         Tests for module 'asinl'.
24511         * modules/asinl-tests: New file.
24512         * tests/test-asinl.c: New file.
24513
24514         Tests for module 'acosl'.
24515         * modules/acosl-tests: New file.
24516         * tests/test-acosl.c: New file.
24517
24518         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24519         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24520         tanl): Use the standard gnulib idiom.
24521         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24522         * lib/sinl.c: Likewise.
24523         * lib/tanl.c: Don't include trigl.c.
24524         (kernel_tanl): Make static.
24525         * lib/sincosl.c: Include trigl.h first.
24526         * lib/trigl.c: Likewise.
24527         * m4/acosl.m4: New file.
24528         * m4/asinl.m4: New file.
24529         * m4/atanl.m4: New file.
24530         * m4/cosl.m4: New file.
24531         * m4/expl.m4: New file.
24532         * m4/logl.m4: New file.
24533         * m4/sinl.m4: New file.
24534         * m4/sqrtl.m4: New file.
24535         * m4/tanl.m4: New file.
24536         * m4/mathl.m4: Remove file.
24537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24538         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24539         Don't initialize GNULIB_MATHL.
24540         * modules/acosl: New file.
24541         * modules/asinl: New file.
24542         * modules/atanl: New file.
24543         * modules/cosl: New file.
24544         * modules/expl: New file.
24545         * modules/logl: New file.
24546         * modules/sinl: New file.
24547         * modules/sqrtl: New file.
24548         * modules/tanl: New file.
24549         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24550         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24551         substitute GNULIB_MATHL.
24552         * modules/mathl: Rewritten.
24553         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24554         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24555         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24556         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24557         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24558         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24559         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24560         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24561         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24562
24563 2010-01-18  Bruno Haible  <bruno@clisp.org>
24564
24565         sqrt: Make gl_FUNC_SQRT requirable.
24566         * m4/sqrt.m4: New file.
24567         * modules/sqrt (Files): Add it.
24568         (configure.ac): Invoke gl_FUNC_SQRT.
24569
24570 2010-01-18  Bruno Haible  <bruno@clisp.org>
24571
24572         New modules for common <math.h> functions.
24573         * m4/mathfunc.m4: New file.
24574         * modules/acos: New file.
24575         * modules/asin: New file.
24576         * modules/atan: New file.
24577         * modules/atan2: New file.
24578         * modules/cbrt: New file.
24579         * modules/copysign: New file.
24580         * modules/cos: New file.
24581         * modules/cosh: New file.
24582         * modules/erf: New file.
24583         * modules/erfc: New file.
24584         * modules/exp: New file.
24585         * modules/fabs: New file.
24586         * modules/fmod: New file.
24587         * modules/hypot: New file.
24588         * modules/j0: New file.
24589         * modules/j1: New file.
24590         * modules/jn: New file.
24591         * modules/ldexp: New file.
24592         * modules/lgamma: New file.
24593         * modules/log: New file.
24594         * modules/log10: New file.
24595         * modules/log1p: New file.
24596         * modules/logb: New file.
24597         * modules/modf: New file.
24598         * modules/nextafter: New file.
24599         * modules/pow: New file.
24600         * modules/remainder: New file.
24601         * modules/rint: New file.
24602         * modules/sin: New file.
24603         * modules/sinh: New file.
24604         * modules/sqrt: New file.
24605         * modules/tan: New file.
24606         * modules/tanh: New file.
24607         * modules/y0: New file.
24608         * modules/y1: New file.
24609         * modules/yn: New file.
24610         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24611         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24612         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24613         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24614         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24615         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24616         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24617         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24618         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24619         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24620         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24621         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24622         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24623         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24624         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24625         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24626         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24627         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24628         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24629         * doc/posix-functions/log.texi: Mention the 'log' module.
24630         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24631         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24632         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24633         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24634         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24635         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24636         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24637         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24638         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24639         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24640         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24641         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24642         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24643         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24644         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24645         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24646
24647 2010-01-18  Jim Meyering  <meyering@redhat.com>
24648
24649         ignore-value: relax license to LGPLv2+
24650         * modules/ignore-value (License): Relax to LGPLv2+.
24651
24652         getdate: don't leak when TZ contains two or more '"'s
24653         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24654         double quote in TZ after the first one.
24655
24656         readtokens: do not leak internal token_lengths buffer
24657         * lib/readtokens.c (readtokens): Free the local, lengths,
24658         when the supplied "token_lengths" parameter is NULL.
24659
24660 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24661
24662         Fix a couple of missing LIBTHREAD link failures on AIX.
24663         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24664         $(LIBTHREAD).
24665         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24666
24667         Link test-poll against INET_PTON_LIB.
24668         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24669         for inet_pton on Solaris 10.
24670
24671 2010-01-17  Bruno Haible  <bruno@clisp.org>
24672
24673         unistdio/*-sprintf: Fix typo in module description.
24674         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24675         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24676         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24677         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24678         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24679         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24680         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24682
24683 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24684
24685         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24686         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24687         variables in shell case patterns, for AIX and HP-UX ksh.
24688
24689         Split large sed scripts, for HP-UX sed.
24690         * modules/stdio: Split sed scripts around 50 sed commands,
24691         to avoid HP-UX limit of 99 commands, in the near future.
24692         * modules/string: Likewise.
24693         * modules/unistd: Likewise.
24694
24695         gnulib-tool: avoid writing in the current directory.
24696         * gnulib-tool (func_emit_lib_Makefile_am)
24697         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24698         not in the current directory, so concurrent gnulib-tool
24699         instances do not interfere.
24700
24701 2010-01-16  Jim Meyering  <meyering@redhat.com>
24702
24703         doc: update users.txt
24704         * users.txt: Add grep.
24705         (diffutils, gzip): Update URLs.
24706
24707 2010-01-12  Bruno Haible  <bruno@clisp.org>
24708
24709         posix_spawn: Avoid test failure on Cygwin.
24710         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24711         characters.
24712         Reported by Simon Josefsson.
24713
24714 2010-01-12  Bruno Haible  <bruno@clisp.org>
24715
24716         * tests/test-cond.c (main): When skipping the test, show the reason.
24717
24718 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24719
24720         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24721
24722 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24723
24724         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24725         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24726
24727 2010-01-12  Eric Blake  <ebb9@byu.net>
24728
24729         build: guarantee AS_VAR_IF
24730         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24731         (gl_AS_VAR_IF): Move...
24732         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24733         Reported by Simon Josefsson.
24734
24735 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24736
24737         * lib/stdio.in.h: Fix typo.
24738
24739 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24740
24741         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24742         libgpg-error.
24743
24744 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24745
24746         * tests/test-xalloc-die.sh: Use $EXEEXT.
24747
24748 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24749             Bruno Haible  <bruno@clisp.org>
24750
24751         getlogin, getlogin_r: Avoid test failure.
24752         * tests/test-getlogin.c: Include <stdio.h>.
24753         (main): Skip the test when the function fails because stdin is not a
24754         tty.
24755         * tests/test-getlogin_r.c: Include <stdio.h>.
24756         (main): Skip the test when the function fails because stdin is not a
24757         tty.
24758
24759 2010-01-11  Eric Blake  <ebb9@byu.net>
24760
24761         tests: avoid more large file warnings
24762         * tests/test-fflush.c: Avoid warning about ftell use.
24763         * tests/test-fseek.c: Avoid warning about fseek use.
24764
24765 2010-01-10  Bruno Haible  <bruno@clisp.org>
24766
24767         nproc: Work better on Linux when /proc and /sys are not mounted.
24768         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24769         as lower bound when, on glibc/Linux systems,
24770         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24771         Suggested by Pádraig Brady <P@draigbrady.com>.
24772         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24773
24774         nproc: Refactor.
24775         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24776         extracted from num_processors.
24777         (num_processors): Call it.
24778
24779 2010-01-11  Jim Meyering  <meyering@redhat.com>
24780
24781         utimecmp: avoid new warning from upcoming gcc-4.5.0
24782         * lib/utimecmp.c (BILLION): Define using #define rather than an
24783         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24784
24785 2010-01-11  Eric Blake  <ebb9@byu.net>
24786
24787         math: add portability warnings for classification macros
24788         * modules/math (Depends-on): Add warn-on-use.
24789         (Makefile.am): Provide new substitutions.
24790         * m4/math_h.m4 (gl_MATH_H): Require inline.
24791         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24792         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24793         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24794         implement warnings.
24795
24796         unistd: warn on use of environ without module
24797         * modules/unistd (Depends-on): Add warn-on-use.
24798         (Makefile.am): Provide new substitutions.
24799         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24800         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24801
24802         stdio: warn on suspicious uses
24803         * modules/stdio (Depends-on): Add warn-on-use.
24804         (Makefile.am): Provide new substitutions.
24805         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24806         fseeko.
24807         * lib/stdio.in.h (gets): Always warn on use.
24808         (fseek, ftell): Adjust when warnings are issued, and honor
24809         _GL_NO_LARGE_FILES as a way to silence the warning.
24810         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24811         any warning about large file offsets.
24812         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24813         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24814         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24815         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24816         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24817         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24818         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24819         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24820
24821         warn-on-use: new module
24822         * modules/warn-on-use: New file.
24823         * build-aux/warn-on-use.h: Likewise.
24824         * m4/warn-on-use.m4: Likewise.
24825         * MODULES.html.sh (Support for building): Mention it.
24826
24827 2010-01-10  Bruno Haible  <bruno@clisp.org>
24828
24829         Tests for module 'unistr/u32-strdup'.
24830         * modules/unistr/u32-strdup-tests: New file.
24831         * tests/unistr/test-u32-strdup.c: New file.
24832
24833         Tests for module 'unistr/u16-strdup'.
24834         * modules/unistr/u16-strdup-tests: New file.
24835         * tests/unistr/test-u16-strdup.c: New file.
24836
24837         Tests for module 'unistr/u8-strdup'.
24838         * modules/unistr/u8-strdup-tests: New file.
24839         * tests/unistr/test-u8-strdup.c: New file.
24840         * tests/unistr/test-strdup.h: New file.
24841
24842         Tests for module 'unistr/u32-strncmp'.
24843         * modules/unistr/u32-strncmp-tests: New file.
24844         * tests/unistr/test-u32-strncmp.c: New file.
24845
24846         Tests for module 'unistr/u16-strncmp'.
24847         * modules/unistr/u16-strncmp-tests: New file.
24848         * tests/unistr/test-u16-strncmp.c: New file.
24849
24850         Tests for module 'unistr/u8-strncmp'.
24851         * modules/unistr/u8-strncmp-tests: New file.
24852         * tests/unistr/test-u8-strncmp.c: New file.
24853         * tests/unistr/test-strncmp.h: New file.
24854
24855         Tests for module 'unistr/u32-strcoll'.
24856         * modules/unistr/u32-strcoll-tests: New file.
24857         * tests/unistr/test-u32-strcoll.c: New file.
24858
24859         Tests for module 'unistr/u16-strcoll'.
24860         * modules/unistr/u16-strcoll-tests: New file.
24861         * tests/unistr/test-u16-strcoll.c: New file.
24862
24863         Tests for module 'unistr/u8-strcoll'.
24864         * modules/unistr/u8-strcoll-tests: New file.
24865         * tests/unistr/test-u8-strcoll.c: New file.
24866
24867         Tests for module 'unistr/u32-strcmp'.
24868         * modules/unistr/u32-strcmp-tests: New file.
24869         * tests/unistr/test-u32-strcmp.c: New file.
24870         * tests/unistr/test-u32-strcmp.h: New file.
24871
24872         Tests for module 'unistr/u16-strcmp'.
24873         * modules/unistr/u16-strcmp-tests: New file.
24874         * tests/unistr/test-u16-strcmp.c: New file.
24875         * tests/unistr/test-u16-strcmp.h: New file.
24876
24877         Tests for module 'unistr/u8-strcmp'.
24878         * modules/unistr/u8-strcmp-tests: New file.
24879         * tests/unistr/test-u8-strcmp.c: New file.
24880         * tests/unistr/test-u8-strcmp.h: New file.
24881         * tests/unistr/test-strcmp.h: New file.
24882
24883         Tests for module 'unistr/u32-strncat'.
24884         * modules/unistr/u32-strncat-tests: New file.
24885         * tests/unistr/test-u32-strncat.c: New file.
24886
24887         Tests for module 'unistr/u16-strncat'.
24888         * modules/unistr/u16-strncat-tests: New file.
24889         * tests/unistr/test-u16-strncat.c: New file.
24890
24891         Tests for module 'unistr/u8-strncat'.
24892         * modules/unistr/u8-strncat-tests: New file.
24893         * tests/unistr/test-u8-strncat.c: New file.
24894         * tests/unistr/test-strncat.h: New file.
24895
24896         Tests for module 'unistr/u32-strcat'.
24897         * modules/unistr/u32-strcat-tests: New file.
24898         * tests/unistr/test-u32-strcat.c: New file.
24899
24900         Tests for module 'unistr/u16-strcat'.
24901         * modules/unistr/u16-strcat-tests: New file.
24902         * tests/unistr/test-u16-strcat.c: New file.
24903
24904         Tests for module 'unistr/u8-strcat'.
24905         * modules/unistr/u8-strcat-tests: New file.
24906         * tests/unistr/test-u8-strcat.c: New file.
24907         * tests/unistr/test-strcat.h: New file.
24908
24909         Tests for module 'unistr/u32-stpncpy'.
24910         * modules/unistr/u32-stpncpy-tests: New file.
24911         * tests/unistr/test-u32-stpncpy.c: New file.
24912
24913         Tests for module 'unistr/u16-stpncpy'.
24914         * modules/unistr/u16-stpncpy-tests: New file.
24915         * tests/unistr/test-u16-stpncpy.c: New file.
24916
24917         Tests for module 'unistr/u8-stpncpy'.
24918         * modules/unistr/u8-stpncpy-tests: New file.
24919         * tests/unistr/test-u8-stpncpy.c: New file.
24920         * tests/unistr/test-stpncpy.h: New file.
24921
24922         Tests for module 'unistr/u32-strncpy'.
24923         * modules/unistr/u32-strncpy-tests: New file.
24924         * tests/unistr/test-u32-strncpy.c: New file.
24925
24926         Tests for module 'unistr/u16-strncpy'.
24927         * modules/unistr/u16-strncpy-tests: New file.
24928         * tests/unistr/test-u16-strncpy.c: New file.
24929
24930         Tests for module 'unistr/u8-strncpy'.
24931         * modules/unistr/u8-strncpy-tests: New file.
24932         * tests/unistr/test-u8-strncpy.c: New file.
24933         * tests/unistr/test-strncpy.h: New file.
24934
24935         Tests for module 'unistr/u32-stpcpy'.
24936         * modules/unistr/u32-stpcpy-tests: New file.
24937         * tests/unistr/test-u32-stpcpy.c: New file.
24938
24939         Tests for module 'unistr/u16-stpcpy'.
24940         * modules/unistr/u16-stpcpy-tests: New file.
24941         * tests/unistr/test-u16-stpcpy.c: New file.
24942
24943         Tests for module 'unistr/u8-stpcpy'.
24944         * modules/unistr/u8-stpcpy-tests: New file.
24945         * tests/unistr/test-u8-stpcpy.c: New file.
24946         * tests/unistr/test-stpcpy.h: New file.
24947
24948         Tests for module 'unistr/u32-strcpy'.
24949         * modules/unistr/u32-strcpy-tests: New file.
24950         * tests/unistr/test-u32-strcpy.c: New file.
24951
24952         Tests for module 'unistr/u16-strcpy'.
24953         * modules/unistr/u16-strcpy-tests: New file.
24954         * tests/unistr/test-u16-strcpy.c: New file.
24955
24956         Tests for module 'unistr/u8-strcpy'.
24957         * modules/unistr/u8-strcpy-tests: New file.
24958         * tests/unistr/test-u8-strcpy.c: New file.
24959         * tests/unistr/test-strcpy.h: New file.
24960
24961         Tests for module 'unistr/u32-strnlen'.
24962         * modules/unistr/u32-strnlen-tests: New file.
24963         * tests/unistr/test-u32-strnlen.c: New file.
24964
24965         Tests for module 'unistr/u16-strnlen'.
24966         * modules/unistr/u16-strnlen-tests: New file.
24967         * tests/unistr/test-u16-strnlen.c: New file.
24968
24969         Tests for module 'unistr/u8-strnlen'.
24970         * modules/unistr/u8-strnlen-tests: New file.
24971         * tests/unistr/test-u8-strnlen.c: New file.
24972         * tests/unistr/test-strnlen.h: New file.
24973
24974         Tests for module 'unistr/u32-strlen'.
24975         * modules/unistr/u32-strlen-tests: New file.
24976         * tests/unistr/test-u32-strlen.c: New file.
24977
24978         Tests for module 'unistr/u16-strlen'.
24979         * modules/unistr/u16-strlen-tests: New file.
24980         * tests/unistr/test-u16-strlen.c: New file.
24981
24982         Tests for module 'unistr/u8-strlen'.
24983         * modules/unistr/u8-strlen-tests: New file.
24984         * tests/unistr/test-u8-strlen.c: New file.
24985
24986         Tests for module 'unistr/u32-prev'.
24987         * modules/unistr/u32-prev-tests: New file.
24988         * tests/unistr/test-u32-prev.c: New file.
24989
24990         Tests for module 'unistr/u16-prev'.
24991         * modules/unistr/u16-prev-tests: New file.
24992         * tests/unistr/test-u16-prev.c: New file.
24993
24994         Tests for module 'unistr/u8-prev'.
24995         * modules/unistr/u8-prev-tests: New file.
24996         * tests/unistr/test-u8-prev.c: New file.
24997
24998         Tests for module 'unistr/u32-next'.
24999         * modules/unistr/u32-next-tests: New file.
25000         * tests/unistr/test-u32-next.c: New file.
25001
25002         Tests for module 'unistr/u16-next'.
25003         * modules/unistr/u16-next-tests: New file.
25004         * tests/unistr/test-u16-next.c: New file.
25005
25006         Tests for module 'unistr/u8-next'.
25007         * modules/unistr/u8-next-tests: New file.
25008         * tests/unistr/test-u8-next.c: New file.
25009
25010         Tests for module 'unistr/u32-strmbtouc'.
25011         * modules/unistr/u32-strmbtouc-tests: New file.
25012         * tests/unistr/test-u32-strmbtouc.c: New file.
25013
25014         Tests for module 'unistr/u16-strmbtouc'.
25015         * modules/unistr/u16-strmbtouc-tests: New file.
25016         * tests/unistr/test-u16-strmbtouc.c: New file.
25017
25018         Tests for module 'unistr/u8-strmbtouc'.
25019         * modules/unistr/u8-strmbtouc-tests: New file.
25020         * tests/unistr/test-u8-strmbtouc.c: New file.
25021
25022         Tests for module 'unistr/u32-strmblen'.
25023         * modules/unistr/u32-strmblen-tests: New file.
25024         * tests/unistr/test-u32-strmblen.c: New file.
25025
25026         Tests for module 'unistr/u16-strmblen'.
25027         * modules/unistr/u16-strmblen-tests: New file.
25028         * tests/unistr/test-u16-strmblen.c: New file.
25029
25030         Tests for module 'unistr/u8-strmblen'.
25031         * modules/unistr/u8-strmblen-tests: New file.
25032         * tests/unistr/test-u8-strmblen.c: New file.
25033
25034         Tests for module 'unistr/u32-cpy-alloc'.
25035         * modules/unistr/u32-cpy-alloc-tests: New file.
25036         * tests/unistr/test-u32-cpy-alloc.c: New file.
25037
25038         Tests for module 'unistr/u16-cpy-alloc'.
25039         * modules/unistr/u16-cpy-alloc-tests: New file.
25040         * tests/unistr/test-u16-cpy-alloc.c: New file.
25041
25042         Tests for module 'unistr/u8-cpy-alloc'.
25043         * modules/unistr/u8-cpy-alloc-tests: New file.
25044         * tests/unistr/test-u8-cpy-alloc.c: New file.
25045         * tests/unistr/test-cpy-alloc.h: New file.
25046
25047         Tests for module 'unistr/u32-mbsnlen'.
25048         * modules/unistr/u32-mbsnlen-tests: New file.
25049         * tests/unistr/test-u32-mbsnlen.c: New file.
25050
25051         Tests for module 'unistr/u16-mbsnlen'.
25052         * modules/unistr/u16-mbsnlen-tests: New file.
25053         * tests/unistr/test-u16-mbsnlen.c: New file.
25054
25055         Tests for module 'unistr/u8-mbsnlen'.
25056         * modules/unistr/u8-mbsnlen-tests: New file.
25057         * tests/unistr/test-u8-mbsnlen.c: New file.
25058
25059         Tests for module 'unistr/u32-chr'.
25060         * modules/unistr/u32-chr-tests: New file.
25061         * tests/unistr/test-u32-chr.c: New file.
25062
25063         Tests for module 'unistr/u16-chr'.
25064         * modules/unistr/u16-chr-tests: New file.
25065         * tests/unistr/test-u16-chr.c: New file.
25066
25067         Tests for module 'unistr/u8-chr'.
25068         * modules/unistr/u8-chr-tests: New file.
25069         * tests/unistr/test-u8-chr.c: New file.
25070         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25071
25072         Tests for module 'unistr/u32-cmp2'.
25073         * modules/unistr/u32-cmp2-tests: New file.
25074         * tests/unistr/test-u32-cmp2.c: New file.
25075
25076         Tests for module 'unistr/u16-cmp2'.
25077         * modules/unistr/u16-cmp2-tests: New file.
25078         * tests/unistr/test-u16-cmp2.c: New file.
25079
25080         Tests for module 'unistr/u8-cmp2'.
25081         * modules/unistr/u8-cmp2-tests: New file.
25082         * tests/unistr/test-u8-cmp2.c: New file.
25083         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25084
25085         Tests for module 'unistr/u32-cmp'.
25086         * modules/unistr/u32-cmp-tests: New file.
25087         * tests/unistr/test-u32-cmp.c: New file.
25088
25089         Tests for module 'unistr/u16-cmp'.
25090         * modules/unistr/u16-cmp-tests: New file.
25091         * tests/unistr/test-u16-cmp.c: New file.
25092
25093         Tests for module 'unistr/u8-cmp'.
25094         * modules/unistr/u8-cmp-tests: New file.
25095         * tests/unistr/test-u8-cmp.c: New file.
25096         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25097
25098         Tests for module 'unistr/u32-set'.
25099         * modules/unistr/u32-set-tests: New file.
25100         * tests/unistr/test-u32-set.c: New file.
25101
25102         Tests for module 'unistr/u16-set'.
25103         * modules/unistr/u16-set-tests: New file.
25104         * tests/unistr/test-u16-set.c: New file.
25105
25106         Tests for module 'unistr/u8-set'.
25107         * modules/unistr/u8-set-tests: New file.
25108         * tests/unistr/test-u8-set.c: New file.
25109         * tests/unistr/test-set.h: New file.
25110
25111         Tests for module 'unistr/u32-move'.
25112         * modules/unistr/u32-move-tests: New file.
25113         * tests/unistr/test-u32-move.c: New file.
25114
25115         Tests for module 'unistr/u16-move'.
25116         * modules/unistr/u16-move-tests: New file.
25117         * tests/unistr/test-u16-move.c: New file.
25118
25119         Tests for module 'unistr/u8-move'.
25120         * modules/unistr/u8-move-tests: New file.
25121         * tests/unistr/test-u8-move.c: New file.
25122         * tests/unistr/test-move.h: New file.
25123
25124         Tests for module 'unistr/u32-cpy'.
25125         * modules/unistr/u32-cpy-tests: New file.
25126         * tests/unistr/test-u32-cpy.c: New file.
25127
25128         Tests for module 'unistr/u16-cpy'.
25129         * modules/unistr/u16-cpy-tests: New file.
25130         * tests/unistr/test-u16-cpy.c: New file.
25131
25132         Tests for module 'unistr/u8-cpy'.
25133         * modules/unistr/u8-cpy-tests: New file.
25134         * tests/unistr/test-u8-cpy.c: New file.
25135         * tests/unistr/test-cpy.h: New file.
25136
25137 2010-01-09  Bruno Haible  <bruno@clisp.org>
25138
25139         Tests for module 'unistr/u32-uctomb'.
25140         * modules/unistr/u32-uctomb-tests: New file.
25141         * tests/unistr/test-u32-uctomb.c: New file.
25142
25143         Tests for module 'unistr/u16-uctomb'.
25144         * modules/unistr/u16-uctomb-tests: New file.
25145         * tests/unistr/test-u16-uctomb.c: New file.
25146
25147         Tests for module 'unistr/u8-uctomb'.
25148         * modules/unistr/u8-uctomb-tests: New file.
25149         * tests/unistr/test-u8-uctomb.c: New file.
25150
25151         Tests for module 'unistr/u32-mbtoucr'.
25152         * modules/unistr/u32-mbtoucr-tests: New file.
25153         * tests/unistr/test-u32-mbtoucr.c: New file.
25154
25155         Tests for module 'unistr/u16-mbtoucr'.
25156         * modules/unistr/u16-mbtoucr-tests: New file.
25157         * tests/unistr/test-u16-mbtoucr.c: New file.
25158
25159         Tests for module 'unistr/u8-mbtoucr'.
25160         * modules/unistr/u8-mbtoucr-tests: New file.
25161         * tests/unistr/test-u8-mbtoucr.c: New file.
25162
25163         Tests for module 'unistr/u32-mbtouc'.
25164         * modules/unistr/u32-mbtouc-tests: New file.
25165         * tests/unistr/test-u32-mbtouc.c: New file.
25166
25167         Tests for module 'unistr/u16-mbtouc'.
25168         * modules/unistr/u16-mbtouc-tests: New file.
25169         * tests/unistr/test-u16-mbtouc.c: New file.
25170
25171         Tests for module 'unistr/u8-mbtouc'.
25172         * modules/unistr/u8-mbtouc-tests: New file.
25173         * tests/unistr/test-u8-mbtouc.c: New file.
25174
25175         Tests for module 'unistr/u32-mbtouc-unsafe'.
25176         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25177         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25178         * tests/unistr/test-u32-mbtouc.h: New file.
25179
25180         Tests for module 'unistr/u16-mbtouc-unsafe'.
25181         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25182         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25183         * tests/unistr/test-u16-mbtouc.h: New file.
25184
25185         Tests for module 'unistr/u8-mbtouc-unsafe'.
25186         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25187         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25188         * tests/unistr/test-u8-mbtouc.h: New file.
25189
25190         Tests for module 'unistr/u32-mblen'.
25191         * modules/unistr/u32-mblen-tests: New file.
25192         * tests/unistr/test-u32-mblen.c: New file.
25193
25194         Tests for module 'unistr/u16-mblen'.
25195         * modules/unistr/u16-mblen-tests: New file.
25196         * tests/unistr/test-u16-mblen.c: New file.
25197
25198         Tests for module 'unistr/u8-mblen'.
25199         * modules/unistr/u8-mblen-tests: New file.
25200         * tests/unistr/test-u8-mblen.c: New file.
25201
25202         Tests for module 'unistr/u32-to-u16'.
25203         * modules/unistr/u32-to-u16-tests: New file.
25204         * tests/unistr/test-u32-to-u16.c: New file.
25205
25206         Tests for module 'unistr/u32-to-u8'.
25207         * modules/unistr/u32-to-u8-tests: New file.
25208         * tests/unistr/test-u32-to-u8.c: New file.
25209
25210         Tests for module 'unistr/u16-to-u32'.
25211         * modules/unistr/u16-to-u32-tests: New file.
25212         * tests/unistr/test-u16-to-u32.c: New file.
25213
25214         Tests for module 'unistr/u16-to-u8'.
25215         * modules/unistr/u16-to-u8-tests: New file.
25216         * tests/unistr/test-u16-to-u8.c: New file.
25217
25218         Tests for module 'unistr/u8-to-u32'.
25219         * modules/unistr/u8-to-u32-tests: New file.
25220         * tests/unistr/test-u8-to-u32.c: New file.
25221
25222         Tests for module 'unistr/u8-to-u16'.
25223         * modules/unistr/u8-to-u16-tests: New file.
25224         * tests/unistr/test-u8-to-u16.c: New file.
25225
25226         Tests for module 'unistr/u32-check'.
25227         * modules/unistr/u32-check-tests: New file.
25228         * tests/unistr/test-u32-check.c: New file.
25229
25230         Tests for module 'unistr/u16-check'.
25231         * modules/unistr/u16-check-tests: New file.
25232         * tests/unistr/test-u16-check.c: New file.
25233
25234         Tests for module 'unistr/u8-check'.
25235         * modules/unistr/u8-check-tests: New file.
25236         * tests/unistr/test-u8-check.c: New file.
25237
25238         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25239         (category_equals): New function.
25240         (main): Add more tests.
25241         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25242
25243         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25244
25245 2010-01-10  Bruno Haible  <bruno@clisp.org>
25246
25247         unistr/u*-strcoll: Try harder to distinguish different strings.
25248         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25249         compare s1 and s2 to see if they are different.
25250
25251 2010-01-10  Bruno Haible  <bruno@clisp.org>
25252
25253         unistr/u*-stpncpy: Fix the return value.
25254         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25255         description of the return value consistent with stpncpy in glibc.
25256         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25257         written non-NUL unit.
25258
25259 2010-01-10  Bruno Haible  <bruno@clisp.org>
25260
25261         unistr/u*-next: Add missing dependencies.
25262         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25263         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25264         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25265
25266 2010-01-10  Bruno Haible  <bruno@clisp.org>
25267
25268         unistr/u8-mbsnlen: Fix return value for incomplete character.
25269         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25270         u8_mblen.
25271         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25272         Remove unistr/u8-mblen.
25273         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25274         u16_mblen.
25275         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25276         Remove unistr/u16-mblen.
25277
25278 2010-01-10  Bruno Haible  <bruno@clisp.org>
25279
25280         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25281         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25282         Reported by Brian Gough <bjg@gnu.org> and
25283         Chris Clayton <chris2553@googlemail.com> via
25284         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25285
25286 2010-01-09  Bruno Haible  <bruno@clisp.org>
25287
25288         unistr/u16-to-u32: Reject invalid input.
25289         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25290         u16_mbtouc.
25291         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25292         Remove unistr/u16-mbtouc.
25293
25294         unistr/u16-to-u8: Reject invalid input.
25295         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25296         u16_mbtouc.
25297         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25298         Remove unistr/u16-mbtouc.
25299
25300         unistr/u8-to-u32: Reject invalid input.
25301         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25302         u8_mbtouc.
25303         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25304         Remove unistr/u8-mbtouc.
25305
25306         unistr/u8-to-u16: Reject invalid input.
25307         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25308         u8_mbtouc.
25309         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25310         Remove unistr/u8-mbtouc.
25311
25312 2010-01-09  Bruno Haible  <bruno@clisp.org>
25313
25314         Tests for module 'getlogin'.
25315         * modules/getlogin-tests: New file.
25316         * tests/test-getlogin.c: New file.
25317
25318         New module 'getlogin'.
25319         * lib/unistd.in.h (getlogin): New declaration.
25320         * lib/getlogin.c: New file.
25321         * m4/getlogin.m4: New file.
25322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25323         HAVE_GETLOGIN.
25324         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25325         HAVE_GETLOGIN.
25326         * modules/getlogin: New file.
25327         * doc/posix-functions/getlogin.texi: Mention the new module.
25328         Reported by John W. Eaton <jwe@gnu.org>.
25329
25330 2010-01-09  Bruno Haible  <bruno@clisp.org>
25331
25332         getlogin_r: Support for native Windows.
25333         * lib/getlogin_r.c: Include <windows.h>
25334         (getlogin_r): Implement for native Windows.
25335         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25336         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25337         via John W. Eaton <jwe@gnu.org>.
25338
25339 2010-01-09  Bruno Haible  <bruno@clisp.org>
25340
25341         getlogin_r: Small fixes.
25342         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25343         succeeds.
25344         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25345         before testing whether getlogin_r is declared. No need to set
25346         HAVE_DECL_GETLOGIN_R to 1.
25347         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25348
25349 2010-01-09  Bruno Haible  <bruno@clisp.org>
25350
25351         * lib/unistd.in.h (getlogin_r): Add comment.
25352
25353 2010-01-09  Bruno Haible  <bruno@clisp.org>
25354
25355         Tests for module 'getlogin_r'.
25356         * modules/getlogin_r-tests: New file.
25357         * tests/test-getlogin_r.c: New file.
25358
25359 2010-01-09  Jim Meyering  <meyering@redhat.com>
25360
25361         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25362         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25363         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25364
25365 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25366
25367         * lib/dup2.c (rpl_dup2): Improve comment.
25368
25369 2010-01-08  Eric Blake  <ebb9@byu.net>
25370
25371         maint.mk: allow packages to add makefile @@ exceptions
25372         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25373         (sc_makefile_check): Rename...
25374         (sc_makefile_at_at_check): ...to this, and use hook.
25375
25376         dup2: work around mingw bug
25377         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25378         Reported by Simon Josefsson.
25379
25380 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25381
25382         glob: Fix C++ compilation.
25383         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25384         C++.
25385
25386 2010-01-07  Bruno Haible  <bruno@clisp.org>
25387
25388         Fix indentation of wctype.in.h, broken since 2007-01-06.
25389         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25390
25391 2010-01-07  Bruno Haible  <bruno@clisp.org>
25392
25393         mbslen: Avoid collision with system function.
25394         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25395         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25396         * m4/mbslen.m4: New file.
25397         * modules/mbslen (Files): Add it.
25398         (configure.ac): Invoke gl_MBSLEN.
25399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25400         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25401         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25402         via Ian Beckwith <ianb@erislabs.net>.
25403
25404 2010-01-07  Bruno Haible  <bruno@clisp.org>
25405
25406         dirent: Document the last fix.
25407         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25408
25409 2010-01-07  Bruno Haible  <bruno@clisp.org>
25410
25411         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25412         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25413         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25414         va_list are defined.
25415         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25416         Reported by Eric Blake.
25417
25418 2010-01-07  Bruno Haible  <bruno@clisp.org>
25419
25420         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25421         * modules/xlist (Depends-on): Add 'list',
25422         * modules/xoset (Depends-on): Add 'oset'.
25423         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25424
25425 2010-01-07  Bruno Haible  <bruno@clisp.org>
25426
25427         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25428         * doc/posix-functions/strncasecmp.texi: Likewise.
25429
25430 2010-01-07  Bruno Haible  <bruno@clisp.org>
25431
25432         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25433
25434 2010-01-07  John W. Eaton  <jwe@octave.org>
25435
25436         wctype: allow C++ use
25437         * lib/wctype.in.h: Add extern "C" block for C++.
25438
25439 2010-01-06  Eric Blake  <ebb9@byu.net>
25440
25441         maint.mk: detect incorrect GFDL usage
25442         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25443
25444 2010-01-06  Jim Meyering  <meyering@redhat.com>
25445         and Eric Blake  <ebb9@byu.net>
25446
25447         maint.mk: ignore multi-line copyright in NEWS
25448         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25449
25450 2010-01-06  Eric Blake  <ebb9@byu.net>
25451
25452         select: add missing dependency
25453         * modules/select-tests (Depends-on): Move sockets dependency...
25454         * modules/select (Depends-on): ...here.
25455         Reported by Ian Beckwith.
25456
25457         doc: regenerate INSTALL
25458         * doc/INSTALL: Reflect recent autoconf update.
25459         * doc/INSTALL.ISO: Likewise.
25460         * doc/INSTALL.UTF-8: Likewise.
25461
25462         pread: fix compilation on glibc
25463         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25464         Reported by Ralf Wildenhues.
25465
25466         dirent: fix test failure
25467         * lib/dirent.in.h (includes): Guarantee ino_t.
25468         Reported by Ralf Wildenhues.
25469
25470 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25471
25472         linkat, renameat: avoid bad free
25473         * lib/at-func2.c (at_func2): Fix typo.
25474         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25475
25476 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25477
25478         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25479         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25480         to avoid failure of symlink test later.
25481
25482 2010-01-06  Eric Blake  <ebb9@byu.net>
25483
25484         stdio, unistd: guarantee ssize_t
25485         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25486         2008 are exposed when needed.
25487         * lib/stdio.in.h (includes): Likewise.
25488         Reported by Ralf Wildenhues.
25489
25490 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25491
25492         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25493         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25494         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25495
25496 2010-01-06  Jim Meyering  <meyering@redhat.com>
25497
25498         readtokens: this module *does* require xalloc.h
25499         It uses only functions that were omitted by the old syntax-check rule.
25500         * lib/readtokens.c: Include "xalloc.h" once again.
25501         * modules/readtokens (Depends-on): Add xalloc.
25502         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25503
25504 2010-01-05  Eric Blake  <ebb9@byu.net>
25505
25506         maint: support 'make announcement' from a VPATH build
25507         * top/maint.mk (announcement): Look for correct NEWS file.
25508
25509 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25510
25511         utimens (fdutimens): ignore a negative FD, per contract
25512         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25513         when we have a valid file descriptor.  Otherwise, using a brand
25514         new glibc (with just-patched futimens that now fails with EBADF)
25515         would cause this function to fail with ENOSYS.
25516         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25517         See also http://bugzilla.redhat.com/552320.
25518
25519 2010-01-05  Eric Blake  <ebb9@byu.net>
25520
25521         strcase: document what it provides
25522         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25523         gnulib module.
25524         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25525         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25526
25527 2010-01-05  Jim Meyering  <meyering@redhat.com>
25528
25529         maint: remove useless inclusions of "xalloc.h"
25530         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25531         * lib/readtokens.c: Likewise.
25532         * lib/same.c: Likewise.
25533         * modules/getloadavg (Depends-on): Remove xalloc.
25534         * modules/readtokens: Likewise.
25535         * modules/same: Likewise.
25536
25537         maint.mk: include 4 more function names in alloca.h-checking regexp
25538         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25539         regexp.  Before, we would give a false-positive (saying alloca.h
25540         is included unnecessarily) when the only uses involved omitted symbols.
25541
25542         xalloc.h: use consistent formatting
25543         * lib/xalloc.h: Move declarations to start in the first column.
25544
25545 2010-01-05  Eric Blake  <ebb9@byu.net>
25546
25547         mkdir: avoid xalloc
25548         * lib/mkdir.c (includes): Drop unused header.
25549         Reported by John W. Eaton.
25550
25551 2010-01-04  Jim Meyering  <meyering@redhat.com>
25552
25553         nl_langinfo: avoid configure-time syntax error
25554         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25555         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25556         the empty string.  Don't let that provoke a shell syntax error.
25557
25558         regcomp, regexec, fnmatch: avoid array bounds read error
25559         * lib/regcomp.c (build_equiv_class): From glibc:
25560         Use only the low 24 bits of a findidx return value as an index
25561         into the weights array.  Patch by Ulrich Drepper:
25562         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25563         * lib/regexec.c (check_node_accept_bytes): Likewise.
25564         * lib/fnmatch_loop.c (FCT): Likewise.
25565
25566         regcomp: skip collseq lookup when there are no rules
25567         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25568         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25569
25570         regcomp: recognize ill-formed { } expressions
25571         * lib/regcomp.c (parse_dup_op): From glibc:
25572         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25573
25574         regcomp: fix typo in comment
25575         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25576         s/satisfy/satisfies/.
25577
25578         regcomp: sync from glibc: remove dead store
25579         * lib/regcomp.c (duplicate_node_closure): Remove useless
25580         search_duplicated_node call and dead store.
25581
25582         regcomp: sync from glibc; always use nl_langinfo
25583         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25584         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25585         * modules/regex (Depends-on): Add nl_langinfo.
25586
25587 2010-01-04  Eric Blake  <ebb9@byu.net>
25588
25589         fdopendir: fix configure test
25590         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25591
25592 2010-01-01  Bruno Haible  <bruno@clisp.org>
25593
25594         wchar: Remove unused configure check.
25595         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25596
25597 2010-01-01  Eric Blake  <ebb9@byu.net>
25598
25599         headers: make check of system header explicit
25600         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25601         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25602         ourselves.
25603         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25605         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25606         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25607         internals.
25608         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25609         missing.
25610         Suggested by Bruno Haible.
25611
25612 2010-01-01  Jim Meyering  <meyering@redhat.com>
25613
25614         ChangeLog: tweak to eliminate unnecessary copyright line
25615         * ChangeLog: Remove a copyright line that was mistakenly updated
25616         by today's update-copyright run.  Reported by Eric Blake.
25617
25618         test-update-copyright: don't let envvar setting cause test failure
25619         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25620
25621 2010-01-01  Bruno Haible  <bruno@clisp.org>
25622
25623         localename: Avoid gcc warning.
25624         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25625         function if it is not used.
25626
25627 2010-01-01  Jim Meyering  <meyering@redhat.com>
25628
25629         update nearly all FSF copyright year lists to include 2010
25630         Use the same procedure as for 2009, outlined in
25631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25632
25633         version-etc: set COPYRIGHT_YEAR to 2010
25634         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25635
25636 2009-12-31  Eric Blake  <ebb9@byu.net>
25637
25638         doc: correct availability of cygwin 1.5.x getopt
25639         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25640         variables.
25641         * doc/posix-functions/opterr.texi (opterr): Likewise.
25642         * doc/posix-functions/optind.texi (optind): Likewise.
25643         * doc/posix-functions/optopt.texi (optopt): Likewise.
25644         * doc/posix-functions/tzname.texi (tzname): Likewise.
25645
25646         openat: update maintainer
25647         * modules/openat (Maintainer): Add myself.
25648
25649         utimens: avoid shadowing warning
25650         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25651         buffers into one, to avoid shadowing, as well as avoiding a
25652         redundant stat.
25653         Reported by Jim Meyering.
25654
25655         test-dup2: avoid compiler warning
25656         * tests/test-dup2.c (is_inheritable): Only define if used.
25657
25658 2010-01-01  Bruno Haible  <bruno@clisp.org>
25659
25660         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25661         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25662         defined, use wctomb instead of wcrtomb.
25663
25664 2010-01-01  Bruno Haible  <bruno@clisp.org>
25665
25666         iconv: Reject native Solaris iconv.
25667         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25668         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25669
25670 2009-12-31  Bruno Haible  <bruno@clisp.org>
25671
25672         * tests/test-signal.c (main): Remove test of 'SIG'.
25673
25674 2009-12-31  Bruno Haible  <bruno@clisp.org>
25675
25676         spawn: Fix incomplete fix.
25677         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25678         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25679         warnings for GNULIB_POSIXCHECK again.
25680         Reported by Eric Blake.
25681
25682 2009-12-31  Bruno Haible  <bruno@clisp.org>
25683
25684         Avoid namespace pollution on glibc systems.
25685         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25686         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25687         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25688         glibc systems.
25689
25690 2009-12-31  Bruno Haible  <bruno@clisp.org>
25691
25692         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25693         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25694         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25695         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25696         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25697         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25698         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25699
25700 2009-12-31  Bruno Haible  <bruno@clisp.org>
25701
25702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25703         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25704         afterwards.
25705
25706 2009-12-31  Bruno Haible  <bruno@clisp.org>
25707
25708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25709         SYS_UTSNAME_H.
25710
25711 2009-12-31  Bruno Haible  <bruno@clisp.org>
25712
25713         spawn: Fix misapplied patch.
25714         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25715         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25716         warnings for GNULIB_POSIXCHECK.
25717
25718 2009-12-31  Bruno Haible  <bruno@clisp.org>
25719
25720         times: Update after sys_times changed.
25721         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25722         * modules/times (Files): Add it.
25723         (configure.ac): Invoke gl_FUNC_TIMES.
25724
25725 2009-12-31  Bruno Haible  <bruno@clisp.org>
25726
25727         Use AC_C_INLINE where necessary.
25728         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25729         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25731         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25732         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25733         * m4/mbiter.m4 (gl_MBITER): Likewise.
25734         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25735         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25736         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25737         * modules/u64 (configure.ac): Likewise.
25738
25739 2009-12-31  Bruno Haible  <bruno@clisp.org>
25740
25741         Use AC_C_INLINE instead of module 'inline' where possible.
25742         * modules/inline (Description): Clarify purpose.
25743         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25744         * modules/count-one-bits (Depends-on): Remove inline.
25745         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25746         * modules/openat (Depends-on): Remove inline.
25747         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25748         instead of depending on module 'inline'.
25749         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25750         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25751         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25752         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25753         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25754         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25755         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25756         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25757         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25758         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25759         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25760         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25761         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25762         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25763         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25764         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25765         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25766         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25767         Likewise.
25768         * modules/unictype/property-ascii-hex-digit (Depends-on,
25769         configure.ac): Likewise.
25770         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25771         configure.ac): Likewise.
25772         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25773         configure.ac): Likewise.
25774         * modules/unictype/property-bidi-block-separator (Depends-on,
25775         configure.ac): Likewise.
25776         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25777         configure.ac): Likewise.
25778         * modules/unictype/property-bidi-common-separator (Depends-on,
25779         configure.ac): Likewise.
25780         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25781         Likewise.
25782         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25783         configure.ac): Likewise.
25784         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25785         configure.ac): Likewise.
25786         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25787         configure.ac): Likewise.
25788         * modules/unictype/property-bidi-european-digit (Depends-on,
25789         configure.ac): Likewise.
25790         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25791         configure.ac): Likewise.
25792         * modules/unictype/property-bidi-left-to-right (Depends-on,
25793         configure.ac): Likewise.
25794         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25795         configure.ac): Likewise.
25796         * modules/unictype/property-bidi-other-neutral (Depends-on,
25797         configure.ac): Likewise.
25798         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25799         Likewise.
25800         * modules/unictype/property-bidi-segment-separator (Depends-on,
25801         configure.ac): Likewise.
25802         * modules/unictype/property-bidi-whitespace (Depends-on,
25803         configure.ac): Likewise.
25804         * modules/unictype/property-combining (Depends-on, configure.ac):
25805         Likewise.
25806         * modules/unictype/property-composite (Depends-on, configure.ac):
25807         Likewise.
25808         * modules/unictype/property-currency-symbol (Depends-on,
25809         configure.ac): Likewise.
25810         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25811         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25812         Likewise.
25813         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25814         configure.ac): Likewise.
25815         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25816         Likewise.
25817         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25818         Likewise.
25819         * modules/unictype/property-extender (Depends-on, configure.ac):
25820         Likewise.
25821         * modules/unictype/property-format-control (Depends-on, configure.ac):
25822         Likewise.
25823         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25824         Likewise.
25825         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25826         Likewise.
25827         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25828         Likewise.
25829         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25830         Likewise.
25831         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25832         Likewise.
25833         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25834         Likewise.
25835         * modules/unictype/property-id-start (Depends-on, configure.ac):
25836         Likewise.
25837         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25838         Likewise.
25839         * modules/unictype/property-ids-binary-operator (Depends-on,
25840         configure.ac): Likewise.
25841         * modules/unictype/property-ids-trinary-operator (Depends-on,
25842         configure.ac): Likewise.
25843         * modules/unictype/property-ignorable-control (Depends-on,
25844         configure.ac): Likewise.
25845         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25846         Likewise.
25847         * modules/unictype/property-join-control (Depends-on, configure.ac):
25848         Likewise.
25849         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25850         Likewise.
25851         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25852         Likewise.
25853         * modules/unictype/property-logical-order-exception (Depends-on,
25854         configure.ac): Likewise.
25855         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25856         Likewise.
25857         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25858         * modules/unictype/property-non-break (Depends-on, configure.ac):
25859         Likewise.
25860         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25861         Likewise.
25862         * modules/unictype/property-numeric (Depends-on, configure.ac):
25863         Likewise.
25864         * modules/unictype/property-other-alphabetic (Depends-on,
25865         configure.ac): Likewise.
25866         * modules/unictype/property-other-default-ignorable-code-point
25867         (Depends-on, configure.ac): Likewise.
25868         * modules/unictype/property-other-grapheme-extend (Depends-on,
25869         configure.ac): Likewise.
25870         * modules/unictype/property-other-id-continue (Depends-on,
25871         configure.ac): Likewise.
25872         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25873         Likewise.
25874         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25875         Likewise.
25876         * modules/unictype/property-other-math (Depends-on, configure.ac):
25877         Likewise.
25878         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25879         Likewise.
25880         * modules/unictype/property-paired-punctuation (Depends-on,
25881         configure.ac): Likewise.
25882         * modules/unictype/property-paragraph-separator (Depends-on,
25883         configure.ac): Likewise.
25884         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25885         Likewise.
25886         * modules/unictype/property-pattern-white-space (Depends-on,
25887         configure.ac): Likewise.
25888         * modules/unictype/property-private-use (Depends-on, configure.ac):
25889         Likewise.
25890         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25891         Likewise.
25892         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25893         Likewise.
25894         * modules/unictype/property-radical (Depends-on, configure.ac):
25895         Likewise.
25896         * modules/unictype/property-sentence-terminal (Depends-on,
25897         configure.ac): Likewise.
25898         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25899         Likewise.
25900         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25901         * modules/unictype/property-terminal-punctuation (Depends-on,
25902         configure.ac): Likewise.
25903         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25904         Likewise.
25905         * modules/unictype/property-unassigned-code-value (Depends-on,
25906         configure.ac): Likewise.
25907         * modules/unictype/property-unified-ideograph (Depends-on,
25908         configure.ac): Likewise.
25909         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25910         Likewise.
25911         * modules/unictype/property-variation-selector (Depends-on,
25912         configure.ac): Likewise.
25913         * modules/unictype/property-white-space (Depends-on, configure.ac):
25914         Likewise.
25915         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25916         Likewise.
25917         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25918         Likewise.
25919         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25920         Likewise.
25921         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25922         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25923         Likewise.
25924
25925 2009-12-31  Bruno Haible  <bruno@clisp.org>
25926
25927         Remove unnecessary AC_C_INLINE invocation.
25928         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25929         since 2009-08-21.
25930
25931 2009-12-31  Jim Meyering  <meyering@redhat.com>
25932
25933         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25934         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25935         With this change, we can all remove the gpg_key_ID = ... definition
25936         from our respective cfg.mk files.
25937
25938         maint.mk: create announcement template in ~/, not in /tmp
25939         * top/maint.mk (emit_upload_commands): Adjust.
25940         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25941         Remove temporary file, .ci-msg.
25942
25943 2009-12-31  Eric Blake  <ebb9@byu.net>
25944
25945         link-warning: always build headers with link warnings
25946         * modules/arpa_inet (Makefile.am): Always build replacement
25947         header.
25948         * modules/ctype (Makefile.am): Likewise.
25949         * modules/dirent (Makefile.am): Likewise.
25950         * modules/inttypes (Makefile.am): Likewise.
25951         * modules/langinfo (Makefile.am): Likewise.
25952         * modules/locale (Makefile.am): Likewise.
25953         * modules/spawn (Makefile.am): Likewise.
25954         * modules/sys_file (Makefile.am): Likewise.
25955         * modules/sys_ioctl (Makefile.am): Likewise.
25956         * modules/sys_select (Makefile.am): Likewise.
25957         * modules/sys_socket (Makefile.am): Likewise.
25958         * modules/sys_times (Makefile.am): Likewise.
25959         * modules/sys_utsname (Makefile.am): Likewise.
25960         * modules/sys_wait (Makefile.am): Likewise.
25961         * modules/wchar (Makefile.am): Likewise.
25962         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25963         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25964         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25965         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25966         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25967         Likewise.
25968         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25970         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25971         Likewise.
25972         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25973         Likewise.
25974         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25975         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25976         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25980         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25981         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25982         (gl_WCHAR_H_DEFAULTS): Likewise.
25983
25984 2009-12-31  Eric Blake  <ebb9@byu.net>
25985
25986         signal, spawn: use link warnings
25987         * lib/signal.in.h (sigset_t): Make unconditional.
25988         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25989         (sigpending, sigprocmask, sigaction): Add link warnings.
25990         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25991         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25992         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25993         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25994         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25995         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25996         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25997         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25998         (posix_spawn_file_actions_destroy)
25999         (posix_spawn_file_actions_addopen)
26000         (posix_spawn_file_actions_addclose)
26001         (posix_spawn_file_actions_adddup2): Likewise.
26002         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26003         * tests/test-signal.c (main): Enhance test.
26004
26005         spawn: improve wrapper support
26006         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26007         (gl_SPAWN_H_DEFAULTS): New defaults.
26008         * modules/spawn (Makefile.am): Substitute them.
26009         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26010         Only declare if missing or broken.
26011
26012         sys_times, sys_utsname: use include_next
26013         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26014         header.
26015         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26017         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26018         * modules/sys_times (Depends-on): Add include_next.
26019         (Makefile.am): Substitute additional values.
26020         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26021         * lib/sys_times.in.h (includes): Include native header, if
26022         available.
26023         * lib/sys_utsname.in.h (includes): Likewise.
26024         * tests/test-sys_times.c (main): Enhance test.
26025
26026         fdutimensat: revert prior patch
26027         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26028         utimens.h.
26029         Reported by Bruno Haible.
26030
26031 2009-12-30  Eric Blake  <ebb9@byu.net>
26032
26033         sys_wait: drop link-warning dependency
26034         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26035         link-warning efforts.
26036         * lib/sys_wait.in.h: Likewise.
26037
26038         fdutimensat: remove bogus dependency
26039         * modules/fdutimensat (Depends-on): Drop inline.
26040
26041         unistd: fix typo
26042         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26043
26044 2009-12-30  Bruno Haible  <bruno@clisp.org>
26045
26046         Fix compilation error with Solaris cc.
26047         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26048         * lib/unicase/u16-is-invariant.c: Likewise.
26049         * lib/unicase/u32-is-invariant.c: Likewise.
26050         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26051
26052 2009-12-30  Bruno Haible  <bruno@clisp.org>
26053
26054         Fix test crash.
26055         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26056         locales.
26057         Reported by Simon Josefsson <simon@josefsson.org>.
26058
26059 2009-12-30  Bruno Haible  <bruno@clisp.org>
26060
26061         Fix compilation error on most platforms.
26062         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26063         Reported by Simon Josefsson <simon@josefsson.org>
26064         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26065
26066 2009-12-30  Eric Blake  <ebb9@byu.net>
26067
26068         futimens, utimensat: work around ntfs-3g bug
26069         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26070         a ctime bug is present, and expand workaround to cover ntfs-3g.
26071         * lib/utimens.c (fdutimens, lutimens): Likewise.
26072         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26073         (validate_timespec): Adjust return value.
26074         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26075         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26076         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26077
26078 2009-12-29  Eric Blake  <ebb9@byu.net>
26079
26080         link-warning: make usage consistent
26081         * modules/ctype (Depends-on): Add link-warning.
26082         (Makefile.am): Update rules accordingly.
26083         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26084         * modules/locale (Depends-on, Makefile.am): Likewise.
26085         * modules/sys_file (Makefile.am): Likewise.
26086         * modules/getopt-posix (Makefile.am): Delete unused link warning
26087         efforts.
26088         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26089         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26090         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26091         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26092
26093         stdio: remove unused variables
26094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26095         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26096         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26097
26098         tests: test more substitute headers
26099         * modules/ctype-tests: New file.
26100         * modules/dirent-tests: Likewise.
26101         * modules/spawn-tests: Likewise.
26102         * modules/sys_file-tests: Likewise.
26103         * modules/sys_ioctl-tests: Likewise.
26104         * modules/sys_wait-tests: Likewise.
26105         * tests/test-ctype.c: Likewise.
26106         * tests/test-dirent.c: Likewise.
26107         * tests/test-spawn.c: Likewise.
26108         * tests/test-sys_file.c: Likewise.
26109         * tests/test-sys_ioctl.c: Likewise.
26110         * tests/test-sys_wait.c: Likewise.
26111         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26112         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26113         whether or not flock is in use.
26114
26115         tests: remove License section from module
26116         * modules/arpa_inet-tests: Remove unneeded section.
26117         * modules/byteswap-tests: Likewise.
26118         * modules/ceilf-tests: Likewise.
26119         * modules/ceill-tests: Likewise.
26120         * modules/crypto/des-tests: Likewise.
26121         * modules/crypto/gc-arcfour-tests: Likewise.
26122         * modules/crypto/gc-arctwo-tests: Likewise.
26123         * modules/crypto/gc-des-tests: Likewise.
26124         * modules/crypto/gc-hmac-md5-tests: Likewise.
26125         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26126         * modules/crypto/gc-md2-tests: Likewise.
26127         * modules/crypto/gc-md4-tests: Likewise.
26128         * modules/crypto/gc-md5-tests: Likewise.
26129         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26130         * modules/crypto/gc-rijndael-tests: Likewise.
26131         * modules/crypto/gc-sha1-tests: Likewise.
26132         * modules/crypto/gc-tests: Likewise.
26133         * modules/crypto/md2-tests: Likewise.
26134         * modules/crypto/md4-tests: Likewise.
26135         * modules/fcntl-h-tests: Likewise.
26136         * modules/floorf-tests: Likewise.
26137         * modules/floorl-tests: Likewise.
26138         * modules/frexp-nolibm-tests: Likewise.
26139         * modules/frexp-tests: Likewise.
26140         * modules/frexpl-nolibm-tests: Likewise.
26141         * modules/frexpl-tests: Likewise.
26142         * modules/getaddrinfo-tests: Likewise.
26143         * modules/inttypes-tests: Likewise.
26144         * modules/isfinite-tests: Likewise.
26145         * modules/isinf-tests: Likewise.
26146         * modules/ldexpl-tests: Likewise.
26147         * modules/locale-tests: Likewise.
26148         * modules/math-tests: Likewise.
26149         * modules/netdb-tests: Likewise.
26150         * modules/netinet_in-tests: Likewise.
26151         * modules/printf-frexp-tests: Likewise.
26152         * modules/printf-frexpl-tests: Likewise.
26153         * modules/priv-set-tests: Likewise.
26154         * modules/random_r-tests: Likewise.
26155         * modules/round-tests: Likewise.
26156         * modules/roundf-tests: Likewise.
26157         * modules/roundl-tests: Likewise.
26158         * modules/search-tests: Likewise.
26159         * modules/select-tests: Likewise.
26160         * modules/signal-tests: Likewise.
26161         * modules/stdbool-tests: Likewise.
26162         * modules/stddef-tests: Likewise.
26163         * modules/stdint-tests: Likewise.
26164         * modules/stdio-tests: Likewise.
26165         * modules/stdlib-tests: Likewise.
26166         * modules/string-tests: Likewise.
26167         * modules/strings-tests: Likewise.
26168         * modules/sys_select-tests: Likewise.
26169         * modules/sys_socket-tests: Likewise.
26170         * modules/sys_stat-tests: Likewise.
26171         * modules/sys_time-tests: Likewise.
26172         * modules/sys_utsname-tests: Likewise.
26173         * modules/sysexits-tests: Likewise.
26174         * modules/time-tests: Likewise.
26175         * modules/trunc-tests: Likewise.
26176         * modules/truncf-tests: Likewise.
26177         * modules/truncl-tests: Likewise.
26178         * modules/tsearch-tests: Likewise.
26179         * modules/unistd-tests: Likewise.
26180         * modules/wchar-tests: Likewise.
26181         * modules/wctype-tests: Likewise.
26182
26183         tests: fix license on several tests
26184         * tests/test-des.c: Update to GPLv3+.
26185         * tests/test-flock.c: Likewise.
26186         * tests/test-fsync.c: Likewise.
26187         * tests/test-futimens.h: Likewise.
26188         * tests/test-gc-arcfour.c: Likewise.
26189         * tests/test-gc-arctwo.c: Likewise.
26190         * tests/test-gc-des.c: Likewise.
26191         * tests/test-gc-hmac-md5.c: Likewise.
26192         * tests/test-gc-hmac-sha1.c: Likewise.
26193         * tests/test-gc-md2.c: Likewise.
26194         * tests/test-gc-md4.c: Likewise.
26195         * tests/test-gc-md5.c: Likewise.
26196         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26197         * tests/test-gc-rijndael.c: Likewise.
26198         * tests/test-gc-sha1.c: Likewise.
26199         * tests/test-gc.c: Likewise.
26200         * tests/test-getcwd.c: Likewise.
26201         * tests/test-link.c: Likewise.
26202         * tests/test-link.h: Likewise.
26203         * tests/test-lutimens.h: Likewise.
26204         * tests/test-md2.c: Likewise.
26205         * tests/test-md4.c: Likewise.
26206         * tests/test-mkdir.h: Likewise.
26207         * tests/test-rename.c: Likewise.
26208         * tests/test-rename.h: Likewise.
26209         * tests/test-safe-alloc.c: Likewise.
26210         * tests/test-utimens-common.h: Likewise.
26211         * tests/test-utimens.h: Likewise.
26212
26213         maint: sync license texts
26214         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26215         * doc/gpl-3.0.texi: Revert copyright year update.
26216         * doc/lgpl-3.0.texi: Likewise.
26217
26218 2009-12-29  Jim Meyering  <meyering@redhat.com>
26219
26220         update nearly all FSF copyright year lists to include 2009
26221         The files named by the following are exempted:
26222             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26223               test -f "$dst" && { echo "$dst"; continue; }
26224               test -d "$dst" || continue
26225               echo "$dst"/$(basename "$src")
26226             done > exempt
26227             git ls-files tests/unictype >> exempt
26228         In the remaining files, convert to all-interval notation if
26229         - there is already at least one year interval like 2000-2003
26230         - the file is maintained by me
26231         - the file is in lib/uni*/, where that style already prevails
26232         Otherwise, use update-copyright's default.
26233
26234 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26235         and Eric Blake  <ebb9@byu.net>
26236
26237         tests: don't require debug system() to pass
26238         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26239         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26240         * tests/test-unlink.h (test_unlink_func): Likewise.
26241         * tests/test-fstatat.c (main): ...into callers.
26242         * tests/test-lstat.c (main): Likewise.
26243         * tests/test-rmdir.c (main): Likewise.
26244         * tests/test-unlink.c (main): Likewise.
26245         * tests/test-unlinkat.c (main): Likewise.
26246         * tests/test-areadlink-with-size.c (main): Don't require a
26247         debug-only system call to pass, aiding cross-testing to mingw.
26248         * tests/test-areadlink.c (main): Likewise.
26249         * tests/test-areadlinkat-with-size.c (main): Likewise.
26250         * tests/test-areadlinkat.c (main): Likewise.
26251         * tests/test-canonicalize-lgpl.c (main): Likewise.
26252         * tests/test-canonicalize.c (main): Likewise.
26253         * tests/test-chown.c (main): Likewise.
26254         * tests/test-fchownat.c (main): Likewise.
26255         * tests/test-lchown.c (main): Likewise.
26256         * tests/test-fdutimensat.c (main): Likewise.
26257         * tests/test-futimens.c (main): Likewise.
26258         * tests/test-link.c (main): Likewise.
26259         * tests/test-linkat.c (main): Likewise.
26260         * tests/test-mkdir.c (main): Likewise.
26261         * tests/test-mkdirat.c (main): Likewise.
26262         * tests/test-mkfifo.c (main): Likewise.
26263         * tests/test-mkfifoat.c (main): Likewise.
26264         * tests/test-mknod.c (main): Likewise.
26265         * tests/test-readlink.c (main): Likewise.
26266         * tests/test-remove.c (main): Likewise.
26267         * tests/test-rename.c (main): Likewise.
26268         * tests/test-renameat.c (main): Likewise.
26269         * tests/test-symlink.c (main): Likewise.
26270         * tests/test-symlinkat.c (main): Likewise.
26271         * tests/test-utimens.c (main): Likewise.
26272         * tests/test-utimensat.c (main): Likewise.
26273
26274 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26275
26276         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26277         on $(UNUSED_PARAMETER_H) to avoid build failure.
26278
26279 2009-12-28  Jim Meyering  <meyering@redhat.com>
26280
26281         update-copyright: you may specify a max. line length other than 72
26282         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26283
26284         maint: use consistent FSF copyright line syntax
26285         * lib/posixtm.c: Add missing comma in FSF copyright line.
26286         * lib/posixtm.h: Likewise.
26287         * lib/getugroups.c: Add missing ", Inc.".
26288
26289         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26290         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26291         FSF copyright line.  Remove trailing blanks.
26292
26293 2009-12-28  Eric Blake  <ebb9@byu.net>
26294
26295         test-dup2: reduce dependencies
26296         * modules/cloexec (Configure.ac): Set witness.
26297         * modules/dup2-tests (Depends-on): Drop cloexec.
26298         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26299         not present.
26300         Suggested by Bruno Haible.
26301
26302 2009-12-26  Bruno Haible  <bruno@clisp.org>
26303
26304         Remove an unneeded dependency.
26305         * modules/fseterr (Depends-on): Remove dup2.
26306
26307 2009-12-26  Eric Blake  <ebb9@byu.net>
26308
26309         tests: use macros.h in more places
26310         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26311         (ASSERT_STREAM): Provide default of stderr.
26312         * tests/test-dirent-safer.c: Include macros.h, using alternate
26313         stream for assertions.
26314         * tests/test-dup-safer.c: Likewise.
26315         * tests/test-freopen-safer.c: Likewise.
26316         * tests/test-getopt.c: Likewise.
26317         * tests/test-openat-safer.c: Likewise.
26318         * tests/test-pipe.c: Likewise.
26319         * tests/test-popen-safer.c: Likewise.
26320         * modules/dirent-safer-tests (Files): Include macros.h.
26321         * modules/unistd-safer-tests (Files): Likewise.
26322         * modules/freopen-safer-tests (Files): Likewise.
26323         * modules/getopt-posix-tests (Files): Likewise.
26324         * modules/openat-safer-tests (Files): Likewise.
26325         * modules/pipe-tests (Files): Likewise.
26326
26327 2009-12-26  Bruno Haible  <bruno@clisp.org>
26328
26329         javacomp: Portability fix.
26330         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26331         that it also works on Solaris.
26332
26333 2009-12-26  Bruno Haible  <bruno@clisp.org>
26334
26335         localename: Fix storage allocation of gl_locale_name_thread's result.
26336         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26337         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26338         all platforms that have 'uselocale'.
26339         (gl_locale_name_thread_unsafe): New function, extracted from
26340         gl_locale_name_thread.
26341         (gl_locale_name_thread): Call struniq on all platforms that have
26342         'uselocale'.
26343         * tests/test-localename.c (test_locale_name_thread): Check that the
26344         resulting strings are permanently allocated.
26345         * modules/localename-tests (Depends-on): Add strdup.
26346
26347 2009-12-26  Bruno Haible  <bruno@clisp.org>
26348
26349         * tests/test-localename.c (categories): Fill in the strings.
26350
26351 2009-12-26  Jim Meyering  <meyering@redhat.com>
26352
26353         isdir: complete the removal of m4/isdir.m4
26354         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26355
26356         isdir: clean up, since at least grep still uses it
26357         * lib/isdir.c: Include "isdir.h".
26358         (S_ISDIR): Remove now-unneeded definition.
26359         * modules/isdir (Files): Add lib/isdir.h.
26360         * lib/isdir.h: New file, with declaration.
26361         * m4/isdir.m4: Remove file -- unneeded.
26362
26363 2009-12-25  Bruno Haible  <bruno@clisp.org>
26364
26365         selinux-h: Make generated .h files standalone.
26366         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26367         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26368         * lib/se-selinux.in.h: Likewise.
26369         * modules/selinux-h (Depends-on): Add unused-parameter.
26370         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26371         selinux/selinux.h and selinux/context.h.
26372         Suggested by Eric Blake.
26373
26374 2009-12-25  Bruno Haible  <bruno@clisp.org>
26375
26376         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26377         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26378         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26379         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26380         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26381
26382 2009-12-24  Bruno Haible  <bruno@clisp.org>
26383
26384         openat: Fix warning.
26385         * lib/openat-proc.c: Include <unistd.h>.
26386
26387 2009-12-24  Bruno Haible  <bruno@clisp.org>
26388
26389         New module 'unused-parameter'.
26390         * build-aux/unused-parameter.h: New file, extracted from earlier
26391         gnulib-common.m4.
26392         * modules/unused-parameter: New file.
26393         * lib/unistr.h: Include unused-parameter.h.
26394         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26395         _GL_UNUSED.
26396         * modules/unistr/base (Depends-on): Add unused-parameter.
26397
26398 2009-12-24  Bruno Haible  <bruno@clisp.org>
26399
26400         Add missing dependencies to 'extensions' module.
26401         * m4/extensions.m4: Add comment.
26402         * modules/accept4 (Depends-on): Add extensions.
26403         * modules/dup3 (Depends-on): Likewise.
26404         * modules/fcntl (Depends-on): Likewise.
26405         * modules/futimens (Depends-on): Likewise.
26406         * modules/mknod (Depends-on): Likewise.
26407         * modules/pipe2 (Depends-on): Likewise.
26408         * modules/stat-time (Depends-on): Likewise.
26409         * modules/strcasestr-simple (Depends-on): Likewise.
26410         * modules/strsignal (Depends-on): Likewise.
26411         * modules/utimensat (Depends-on): Likewise.
26412         * modules/localcharset (Depends-on): Likewise. Needed because of
26413         gl_FCNTL_O_FLAGS.
26414         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26415         AC_TYPE_MBSTATE_T.
26416         * modules/wcsnrtombs (Depends-on): Likewise.
26417         * modules/wcsrtombs (Depends-on): Likewise.
26418
26419 2009-12-24  Bruno Haible  <bruno@clisp.org>
26420
26421         binary-io: Avoid gcc warning due to SET_BINARY.
26422         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26423         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26424
26425 2009-12-24  Bruno Haible  <bruno@clisp.org>
26426
26427         Avoid future namespace pollution on glibc systems.
26428         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26429         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26430         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26431         glibc systems.
26432
26433 2009-12-24  Bruno Haible  <bruno@clisp.org>
26434
26435         Refactor common macros used in tests.
26436         * tests/macros.h: New file.
26437         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26438         and/or <stdlib.h>, if appropriate.
26439         (ASSERT, SIZEOF): Remove macros.
26440         * tests/test-areadlink-with-size.c: Likewise.
26441         * tests/test-areadlinkat.c: Likewise.
26442         * tests/test-areadlinkat-with-size.c: Likewise.
26443         * tests/test-argmatch.c: Likewise.
26444         * tests/test-argv-iter.c: Likewise.
26445         * tests/test-array-mergesort.c: Likewise.
26446         * tests/test-array_list.c: Likewise.
26447         * tests/test-array_oset.c: Likewise.
26448         * tests/test-avltree_list.c: Likewise.
26449         * tests/test-avltree_oset.c: Likewise.
26450         * tests/test-avltreehash_list.c: Likewise.
26451         * tests/test-base64.c: Likewise.
26452         * tests/test-binary-io.c: Likewise.
26453         * tests/test-bitrotate.c: Likewise.
26454         * tests/test-btowc.c: Likewise.
26455         * tests/test-byteswap.c: Likewise.
26456         * tests/test-c-ctype.c: Likewise.
26457         * tests/test-c-stack.c: Likewise.
26458         * tests/test-c-strcasecmp.c: Likewise.
26459         * tests/test-c-strcasestr.c: Likewise.
26460         * tests/test-c-strncasecmp.c: Likewise.
26461         * tests/test-c-strstr.c: Likewise.
26462         * tests/test-canonicalize-lgpl.c: Likewise.
26463         * tests/test-canonicalize.c: Likewise.
26464         * tests/test-carray_list.c: Likewise.
26465         * tests/test-ceilf1.c: Likewise.
26466         * tests/test-ceilf2.c: Likewise.
26467         * tests/test-ceill.c: Likewise.
26468         * tests/test-chown.c: Likewise.
26469         * tests/test-cloexec.c: Likewise.
26470         * tests/test-copy-acl.c: Likewise.
26471         * tests/test-copy-file.c: Likewise.
26472         * tests/test-count-one-bits.c: Likewise.
26473         * tests/test-dprintf-posix.c: Likewise.
26474         * tests/test-dup2.c: Likewise.
26475         * tests/test-dup3.c: Likewise.
26476         * tests/test-duplocale.c: Likewise.
26477         * tests/test-fbufmode.c: Likewise.
26478         * tests/test-fchdir.c: Likewise.
26479         * tests/test-fchownat.c: Likewise.
26480         * tests/test-fcntl-safer.c: Likewise.
26481         * tests/test-fcntl.c: Likewise.
26482         * tests/test-fdopendir.c: Likewise.
26483         * tests/test-fdutimensat.c: Likewise.
26484         * tests/test-fflush2.c: Likewise.
26485         * tests/test-file-has-acl.c: Likewise.
26486         * tests/test-filevercmp.c: Likewise.
26487         * tests/test-flock.c: Likewise.
26488         * tests/test-floorf1.c: Likewise.
26489         * tests/test-floorf2.c: Likewise.
26490         * tests/test-floorl.c: Likewise.
26491         * tests/test-fnmatch.c: Likewise.
26492         * tests/test-fopen.h: Likewise.
26493         * tests/test-fpending.c: Likewise.
26494         * tests/test-fprintf-posix.c: Likewise.
26495         * tests/test-fpurge.c: Likewise.
26496         * tests/test-freadable.c: Likewise.
26497         * tests/test-freadahead.c: Likewise.
26498         * tests/test-freading.c: Likewise.
26499         * tests/test-freadptr.c: Likewise.
26500         * tests/test-freadptr2.c: Likewise.
26501         * tests/test-freadseek.c: Likewise.
26502         * tests/test-freopen.c: Likewise.
26503         * tests/test-frexp.c: Likewise.
26504         * tests/test-frexpl.c: Likewise.
26505         * tests/test-fseek.c: Likewise.
26506         * tests/test-fseeko.c: Likewise.
26507         * tests/test-fstatat.c: Likewise.
26508         * tests/test-fstrcmp.c: Likewise.
26509         * tests/test-fsync.c: Likewise.
26510         * tests/test-ftell.c: Likewise.
26511         * tests/test-ftello.c: Likewise.
26512         * tests/test-func.c: Likewise.
26513         * tests/test-futimens.c: Likewise.
26514         * tests/test-fwritable.c: Likewise.
26515         * tests/test-fwriting.c: Likewise.
26516         * tests/test-getcwd.c: Likewise.
26517         * tests/test-getdate.c: Likewise.
26518         * tests/test-getdelim.c: Likewise.
26519         * tests/test-getdtablesize.c: Likewise.
26520         * tests/test-getgroups.c: Likewise.
26521         * tests/test-getline.c: Likewise.
26522         * tests/test-getndelim2.c: Likewise.
26523         * tests/test-glob.c: Likewise.
26524         * tests/test-hash.c: Likewise.
26525         * tests/test-i-ring.c: Likewise.
26526         * tests/test-iconv-utf.c: Likewise.
26527         * tests/test-iconv.c: Likewise.
26528         * tests/test-idpriv-drop.c: Likewise.
26529         * tests/test-idpriv-droptemp.c: Likewise.
26530         * tests/test-inet_ntop.c: Likewise.
26531         * tests/test-inet_pton.c: Likewise.
26532         * tests/test-isblank.c: Likewise.
26533         * tests/test-isfinite.c: Likewise.
26534         * tests/test-isinf.c: Likewise.
26535         * tests/test-isnan.c: Likewise.
26536         * tests/test-isnand.h: Likewise.
26537         * tests/test-isnanf.h: Likewise.
26538         * tests/test-isnanl.h: Likewise.
26539         * tests/test-lchown.c: Likewise.
26540         * tests/test-ldexpl.c: Likewise.
26541         * tests/test-link.c: Likewise.
26542         * tests/test-linkat.c: Likewise.
26543         * tests/test-linked_list.c: Likewise.
26544         * tests/test-linkedhash_list.c: Likewise.
26545         * tests/test-localename.c: Likewise.
26546         * tests/test-lseek.c: Likewise.
26547         * tests/test-lstat.c: Likewise.
26548         * tests/test-mbmemcasecmp.c: Likewise.
26549         * tests/test-mbmemcasecoll.c: Likewise.
26550         * tests/test-mbrtowc.c: Likewise.
26551         * tests/test-mbscasecmp.c: Likewise.
26552         * tests/test-mbscasestr1.c: Likewise.
26553         * tests/test-mbscasestr2.c: Likewise.
26554         * tests/test-mbscasestr3.c: Likewise.
26555         * tests/test-mbscasestr4.c: Likewise.
26556         * tests/test-mbschr.c: Likewise.
26557         * tests/test-mbscspn.c: Likewise.
26558         * tests/test-mbsinit.c: Likewise.
26559         * tests/test-mbsncasecmp.c: Likewise.
26560         * tests/test-mbsnrtowcs.c: Likewise.
26561         * tests/test-mbspbrk.c: Likewise.
26562         * tests/test-mbspcasecmp.c: Likewise.
26563         * tests/test-mbsrchr.c: Likewise.
26564         * tests/test-mbsrtowcs.c: Likewise.
26565         * tests/test-mbsspn.c: Likewise.
26566         * tests/test-mbsstr1.c: Likewise.
26567         * tests/test-mbsstr2.c: Likewise.
26568         * tests/test-mbsstr3.c: Likewise.
26569         * tests/test-memchr.c: Likewise.
26570         * tests/test-memchr2.c: Likewise.
26571         * tests/test-memcmp.c: Likewise.
26572         * tests/test-memmem.c: Likewise.
26573         * tests/test-memrchr.c: Likewise.
26574         * tests/test-mkdir.c: Likewise.
26575         * tests/test-mkdirat.c: Likewise.
26576         * tests/test-mkfifo.c: Likewise.
26577         * tests/test-mkfifoat.c: Likewise.
26578         * tests/test-mknod.c: Likewise.
26579         * tests/test-nanosleep.c: Likewise.
26580         * tests/test-nl_langinfo.c: Likewise.
26581         * tests/test-obstack-printf.c: Likewise.
26582         * tests/test-open.c: Likewise.
26583         * tests/test-openat.c: Likewise.
26584         * tests/test-pipe-filter-gi1.c: Likewise.
26585         * tests/test-pipe-filter-gi2-main.c: Likewise.
26586         * tests/test-pipe-filter-ii1.c: Likewise.
26587         * tests/test-pipe-filter-ii2-main.c: Likewise.
26588         * tests/test-pipe2.c: Likewise.
26589         * tests/test-popen.h: Likewise.
26590         * tests/test-posixtm.c: Likewise.
26591         * tests/test-pread.c: Likewise.
26592         * tests/test-printf-frexp.c: Likewise.
26593         * tests/test-printf-frexpl.c: Likewise.
26594         * tests/test-printf-posix.c: Likewise.
26595         * tests/test-priv-set.c: Likewise.
26596         * tests/test-quotearg.c: Likewise.
26597         * tests/test-random_r.c: Likewise.
26598         * tests/test-rawmemchr.c: Likewise.
26599         * tests/test-rbtree_list.c: Likewise.
26600         * tests/test-rbtree_oset.c: Likewise.
26601         * tests/test-rbtreehash_list.c: Likewise.
26602         * tests/test-readlink.c: Likewise.
26603         * tests/test-remove.c: Likewise.
26604         * tests/test-rename.c: Likewise.
26605         * tests/test-renameat.c: Likewise.
26606         * tests/test-rmdir.c: Likewise.
26607         * tests/test-round1.c: Likewise.
26608         * tests/test-roundf1.c: Likewise.
26609         * tests/test-roundl.c: Likewise.
26610         * tests/test-safe-alloc.c: Likewise.
26611         * tests/test-sameacls.c: Likewise.
26612         * tests/test-set-mode-acl.c: Likewise.
26613         * tests/test-setenv.c: Likewise.
26614         * tests/test-sigaction.c: Likewise.
26615         * tests/test-signbit.c: Likewise.
26616         * tests/test-sleep.c: Likewise.
26617         * tests/test-snprintf-posix.c: Likewise.
26618         * tests/test-snprintf.c: Likewise.
26619         * tests/test-sprintf-posix.c: Likewise.
26620         * tests/test-stat-time.c: Likewise.
26621         * tests/test-stat.c: Likewise.
26622         * tests/test-strcasestr.c: Likewise.
26623         * tests/test-strchrnul.c: Likewise.
26624         * tests/test-strerror.c: Likewise.
26625         * tests/test-striconv.c: Likewise.
26626         * tests/test-striconveh.c: Likewise.
26627         * tests/test-striconveha.c: Likewise.
26628         * tests/test-strsignal.c: Likewise.
26629         * tests/test-strstr.c: Likewise.
26630         * tests/test-strtod.c: Likewise.
26631         * tests/test-strverscmp.c: Likewise.
26632         * tests/test-symlink.c: Likewise.
26633         * tests/test-symlinkat.c: Likewise.
26634         * tests/test-trunc1.c: Likewise.
26635         * tests/test-trunc2.c: Likewise.
26636         * tests/test-truncf1.c: Likewise.
26637         * tests/test-truncf2.c: Likewise.
26638         * tests/test-truncl.c: Likewise.
26639         * tests/test-uname.c: Likewise.
26640         * tests/test-unlink.c: Likewise.
26641         * tests/test-unlinkat.c: Likewise.
26642         * tests/test-unsetenv.c: Likewise.
26643         * tests/test-usleep.c: Likewise.
26644         * tests/test-utimens.c: Likewise.
26645         * tests/test-utimensat.c: Likewise.
26646         * tests/test-vasnprintf-posix.c: Likewise.
26647         * tests/test-vasnprintf-posix2.c: Likewise.
26648         * tests/test-vasnprintf.c: Likewise.
26649         * tests/test-vasprintf-posix.c: Likewise.
26650         * tests/test-vasprintf.c: Likewise.
26651         * tests/test-vdprintf-posix.c: Likewise.
26652         * tests/test-vfprintf-posix.c: Likewise.
26653         * tests/test-vprintf-posix.c: Likewise.
26654         * tests/test-vsnprintf-posix.c: Likewise.
26655         * tests/test-vsnprintf.c: Likewise.
26656         * tests/test-vsprintf-posix.c: Likewise.
26657         * tests/test-wcrtomb.c: Likewise.
26658         * tests/test-wcsnrtombs.c: Likewise.
26659         * tests/test-wcsrtombs.c: Likewise.
26660         * tests/test-wctype.c: Likewise.
26661         * tests/test-wcwidth.c: Likewise.
26662         * tests/test-xfprintf-posix.c: Likewise.
26663         * tests/test-xmemdup0.c: Likewise.
26664         * tests/test-xprintf-posix.c: Likewise.
26665         * tests/test-xvasprintf.c: Likewise.
26666         * tests/unicase/test-locale-language.c: Likewise.
26667         * tests/unicase/test-mapping-part1.h: Likewise.
26668         * tests/unicase/test-predicate-part1.h: Likewise.
26669         * tests/unicase/test-u8-casecmp.c: Likewise.
26670         * tests/unicase/test-u8-casecoll.c: Likewise.
26671         * tests/unicase/test-u8-casefold.c: Likewise.
26672         * tests/unicase/test-u8-is-cased.c: Likewise.
26673         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26674         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26675         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26676         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26677         * tests/unicase/test-u8-tolower.c: Likewise.
26678         * tests/unicase/test-u8-totitle.c: Likewise.
26679         * tests/unicase/test-u8-toupper.c: Likewise.
26680         * tests/unicase/test-u16-casecmp.c: Likewise.
26681         * tests/unicase/test-u16-casecoll.c: Likewise.
26682         * tests/unicase/test-u16-casefold.c: Likewise.
26683         * tests/unicase/test-u16-is-cased.c: Likewise.
26684         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26685         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26686         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26687         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26688         * tests/unicase/test-u16-tolower.c: Likewise.
26689         * tests/unicase/test-u16-totitle.c: Likewise.
26690         * tests/unicase/test-u16-toupper.c: Likewise.
26691         * tests/unicase/test-u32-casecmp.c: Likewise.
26692         * tests/unicase/test-u32-casecoll.c: Likewise.
26693         * tests/unicase/test-u32-casefold.c: Likewise.
26694         * tests/unicase/test-u32-is-cased.c: Likewise.
26695         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26696         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26697         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26698         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26699         * tests/unicase/test-u32-tolower.c: Likewise.
26700         * tests/unicase/test-u32-totitle.c: Likewise.
26701         * tests/unicase/test-u32-toupper.c: Likewise.
26702         * tests/unicase/test-ulc-casecmp.c: Likewise.
26703         * tests/unicase/test-ulc-casecoll.c: Likewise.
26704         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26705         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26706         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26707         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26708         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26709         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26710         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26711         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26712         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26713         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26714         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26715         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26716         * tests/unictype/test-bidi_byname.c: Likewise.
26717         * tests/unictype/test-bidi_name.c: Likewise.
26718         * tests/unictype/test-bidi_of.c: Likewise.
26719         * tests/unictype/test-bidi_test.c: Likewise.
26720         * tests/unictype/test-block_list.c: Likewise.
26721         * tests/unictype/test-block_of.c: Likewise.
26722         * tests/unictype/test-block_test.c: Likewise.
26723         * tests/unictype/test-categ_and.c: Likewise.
26724         * tests/unictype/test-categ_and_not.c: Likewise.
26725         * tests/unictype/test-categ_byname.c: Likewise.
26726         * tests/unictype/test-categ_name.c: Likewise.
26727         * tests/unictype/test-categ_none.c: Likewise.
26728         * tests/unictype/test-categ_of.c: Likewise.
26729         * tests/unictype/test-categ_or.c: Likewise.
26730         * tests/unictype/test-categ_test_withtable.c: Likewise.
26731         * tests/unictype/test-combining.c: Likewise.
26732         * tests/unictype/test-decdigit.c: Likewise.
26733         * tests/unictype/test-digit.c: Likewise.
26734         * tests/unictype/test-mirror.c: Likewise.
26735         * tests/unictype/test-numeric.c: Likewise.
26736         * tests/unictype/test-pr_byname.c: Likewise.
26737         * tests/unictype/test-pr_test.c: Likewise.
26738         * tests/unictype/test-predicate-part1.h: Likewise.
26739         * tests/unictype/test-scripts.c: Likewise.
26740         * tests/unictype/test-sy_c_ident.c: Likewise.
26741         * tests/unictype/test-sy_java_ident.c: Likewise.
26742         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26743         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26744         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26745         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26746         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26747         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26748         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26749         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26750         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26751         * tests/uninorm/test-compat-decomposition.c: Likewise.
26752         * tests/uninorm/test-composition.c: Likewise.
26753         * tests/uninorm/test-decomposing-form.c: Likewise.
26754         * tests/uninorm/test-decomposition.c: Likewise.
26755         * tests/uninorm/test-u8-nfc.c: Likewise.
26756         * tests/uninorm/test-u8-nfd.c: Likewise.
26757         * tests/uninorm/test-u8-nfkc.c: Likewise.
26758         * tests/uninorm/test-u8-nfkd.c: Likewise.
26759         * tests/uninorm/test-u8-normcmp.c: Likewise.
26760         * tests/uninorm/test-u8-normcoll.c: Likewise.
26761         * tests/uninorm/test-u16-nfc.c: Likewise.
26762         * tests/uninorm/test-u16-nfd.c: Likewise.
26763         * tests/uninorm/test-u16-nfkc.c: Likewise.
26764         * tests/uninorm/test-u16-nfkd.c: Likewise.
26765         * tests/uninorm/test-u16-normcmp.c: Likewise.
26766         * tests/uninorm/test-u16-normcoll.c: Likewise.
26767         * tests/uninorm/test-u32-nfc.c: Likewise.
26768         * tests/uninorm/test-u32-nfd.c: Likewise.
26769         * tests/uninorm/test-u32-nfkc.c: Likewise.
26770         * tests/uninorm/test-u32-nfkd.c: Likewise.
26771         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26772         * tests/uninorm/test-u32-normcmp.c: Likewise.
26773         * tests/uninorm/test-u32-normcoll.c: Likewise.
26774         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26775         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26776         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26777         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26778         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26779         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26780         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26781         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26782         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26783         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26784         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26785         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26786         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26787         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26788         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26789         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26790         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26791         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26792         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26793         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26794         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26795         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26796         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26797         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26798         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26799         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26800         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26801         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26802         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26803         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26804         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26805         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26806         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26807         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26808         * tests/uniwidth/test-u8-width.c: Likewise.
26809         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26810         * tests/uniwidth/test-u16-width.c: Likewise.
26811         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26812         * tests/uniwidth/test-u32-width.c: Likewise.
26813         * tests/uniwidth/test-uc_width.c: Likewise.
26814         * tests/uniwidth/test-uc_width2.c: Likewise.
26815         * modules/acl-tests (Files): Add tests/macros.h.
26816         * modules/areadlink-tests (Files): Likewise.
26817         * modules/areadlink-with-size-tests (Files): Likewise.
26818         * modules/areadlinkat-tests (Files): Likewise.
26819         * modules/areadlinkat-with-size-tests (Files): Likewise.
26820         * modules/argmatch-tests (Files): Likewise.
26821         * modules/argv-iter-tests (Files): Likewise.
26822         * modules/array-list-tests (Files): Likewise.
26823         * modules/array-mergesort-tests (Files): Likewise.
26824         * modules/array-oset-tests (Files): Likewise.
26825         * modules/avltree-list-tests (Files): Likewise.
26826         * modules/avltree-oset-tests (Files): Likewise.
26827         * modules/avltreehash-list-tests (Files): Likewise.
26828         * modules/base64-tests (Files): Likewise.
26829         * modules/binary-io-tests (Files): Likewise.
26830         * modules/bitrotate-tests (Files): Likewise.
26831         * modules/btowc-tests (Files): Likewise.
26832         * modules/byteswap-tests (Files): Likewise.
26833         * modules/c-ctype-tests (Files): Likewise.
26834         * modules/c-stack-tests (Files): Likewise.
26835         * modules/c-strcase-tests (Files): Likewise.
26836         * modules/c-strcasestr-tests (Files): Likewise.
26837         * modules/c-strstr-tests (Files): Likewise.
26838         * modules/canonicalize-lgpl-tests (Files): Likewise.
26839         * modules/canonicalize-tests (Files): Likewise.
26840         * modules/carray-list-tests (Files): Likewise.
26841         * modules/ceilf-tests (Files): Likewise.
26842         * modules/ceill-tests (Files): Likewise.
26843         * modules/chown-tests (Files): Likewise.
26844         * modules/cloexec-tests (Files): Likewise.
26845         * modules/copy-file-tests (Files): Likewise.
26846         * modules/count-one-bits-tests (Files): Likewise.
26847         * modules/dprintf-posix-tests (Files): Likewise.
26848         * modules/dup2-tests (Files): Likewise.
26849         * modules/dup3-tests (Files): Likewise.
26850         * modules/duplocale-tests (Files): Likewise.
26851         * modules/fbufmode-tests (Files): Likewise.
26852         * modules/fchdir-tests (Files): Likewise.
26853         * modules/fcntl-safer-tests (Files): Likewise.
26854         * modules/fcntl-tests (Files): Likewise.
26855         * modules/fdopendir-tests (Files): Likewise.
26856         * modules/fdutimensat-tests (Files): Likewise.
26857         * modules/fflush-tests (Files): Likewise.
26858         * modules/filevercmp-tests (Files): Likewise.
26859         * modules/flock-tests (Files): Likewise.
26860         * modules/floorf-tests (Files): Likewise.
26861         * modules/floorl-tests (Files): Likewise.
26862         * modules/fnmatch-tests (Files): Likewise.
26863         * modules/fopen-safer-tests (Files): Likewise.
26864         * modules/fopen-tests (Files): Likewise.
26865         * modules/fpending-tests (Files): Likewise.
26866         * modules/fprintf-posix-tests (Files): Likewise.
26867         * modules/fpurge-tests (Files): Likewise.
26868         * modules/freadable-tests (Files): Likewise.
26869         * modules/freadahead-tests (Files): Likewise.
26870         * modules/freading-tests (Files): Likewise.
26871         * modules/freadptr-tests (Files): Likewise.
26872         * modules/freadseek-tests (Files): Likewise.
26873         * modules/freopen-tests (Files): Likewise.
26874         * modules/frexp-nolibm-tests (Files): Likewise.
26875         * modules/frexp-tests (Files): Likewise.
26876         * modules/frexpl-nolibm-tests (Files): Likewise.
26877         * modules/frexpl-tests (Files): Likewise.
26878         * modules/fseek-tests (Files): Likewise.
26879         * modules/fseeko-tests (Files): Likewise.
26880         * modules/fstrcmp-tests (Files): Likewise.
26881         * modules/fsync-tests (Files): Likewise.
26882         * modules/ftell-tests (Files): Likewise.
26883         * modules/ftello-tests (Files): Likewise.
26884         * modules/func-tests (Files): Likewise.
26885         * modules/futimens-tests (Files): Likewise.
26886         * modules/fwritable-tests (Files): Likewise.
26887         * modules/fwriting-tests (Files): Likewise.
26888         * modules/getcwd-tests (Files): Likewise.
26889         * modules/getdate-tests (Files): Likewise.
26890         * modules/getdelim-tests (Files): Likewise.
26891         * modules/getdtablesize-tests (Files): Likewise.
26892         * modules/getgroups-tests (Files): Likewise.
26893         * modules/getline-tests (Files): Likewise.
26894         * modules/getndelim2-tests (Files): Likewise.
26895         * modules/glob-tests (Files): Likewise.
26896         * modules/hash-tests (Files): Likewise.
26897         * modules/i-ring-tests (Files): Likewise.
26898         * modules/iconv-tests (Files): Likewise.
26899         * modules/iconv_open-utf-tests (Files): Likewise.
26900         * modules/idpriv-drop-tests (Files): Likewise.
26901         * modules/idpriv-droptemp-tests (Files): Likewise.
26902         * modules/inet_ntop-tests (Files): Likewise.
26903         * modules/inet_pton-tests (Files): Likewise.
26904         * modules/isblank-tests (Files): Likewise.
26905         * modules/isfinite-tests (Files): Likewise.
26906         * modules/isinf-tests (Files): Likewise.
26907         * modules/isnan-tests (Files): Likewise.
26908         * modules/isnand-nolibm-tests (Files): Likewise.
26909         * modules/isnand-tests (Files): Likewise.
26910         * modules/isnanf-nolibm-tests (Files): Likewise.
26911         * modules/isnanf-tests (Files): Likewise.
26912         * modules/isnanl-nolibm-tests (Files): Likewise.
26913         * modules/isnanl-tests (Files): Likewise.
26914         * modules/lchown-tests (Files): Likewise.
26915         * modules/ldexpl-tests (Files): Likewise.
26916         * modules/link-tests (Files): Likewise.
26917         * modules/linkat-tests (Files): Likewise.
26918         * modules/linked-list-tests (Files): Likewise.
26919         * modules/linkedhash-list-tests (Files): Likewise.
26920         * modules/localename-tests (Files): Likewise.
26921         * modules/lseek-tests (Files): Likewise.
26922         * modules/lstat-tests (Files): Likewise.
26923         * modules/mbmemcasecmp-tests (Files): Likewise.
26924         * modules/mbmemcasecoll-tests (Files): Likewise.
26925         * modules/mbrtowc-tests (Files): Likewise.
26926         * modules/mbscasecmp-tests (Files): Likewise.
26927         * modules/mbscasestr-tests (Files): Likewise.
26928         * modules/mbschr-tests (Files): Likewise.
26929         * modules/mbscspn-tests (Files): Likewise.
26930         * modules/mbsinit-tests (Files): Likewise.
26931         * modules/mbsncasecmp-tests (Files): Likewise.
26932         * modules/mbsnrtowcs-tests (Files): Likewise.
26933         * modules/mbspbrk-tests (Files): Likewise.
26934         * modules/mbspcasecmp-tests (Files): Likewise.
26935         * modules/mbsrchr-tests (Files): Likewise.
26936         * modules/mbsrtowcs-tests (Files): Likewise.
26937         * modules/mbsspn-tests (Files): Likewise.
26938         * modules/mbsstr-tests (Files): Likewise.
26939         * modules/memchr-tests (Files): Likewise.
26940         * modules/memchr2-tests (Files): Likewise.
26941         * modules/memcmp-tests (Files): Likewise.
26942         * modules/memmem-tests (Files): Likewise.
26943         * modules/memrchr-tests (Files): Likewise.
26944         * modules/mkdir-tests (Files): Likewise.
26945         * modules/mkfifo-tests (Files): Likewise.
26946         * modules/mkfifoat-tests (Files): Likewise.
26947         * modules/mknod-tests (Files): Likewise.
26948         * modules/nanosleep-tests (Files): Likewise.
26949         * modules/nl_langinfo-tests (Files): Likewise.
26950         * modules/obstack-printf-tests (Files): Likewise.
26951         * modules/open-tests (Files): Likewise.
26952         * modules/openat-tests (Files): Likewise.
26953         * modules/pipe-filter-gi-tests (Files): Likewise.
26954         * modules/pipe-filter-ii-tests (Files): Likewise.
26955         * modules/pipe2-tests (Files): Likewise.
26956         * modules/popen-safer-tests (Files): Likewise.
26957         * modules/popen-tests (Files): Likewise.
26958         * modules/posixtm-tests (Files): Likewise.
26959         * modules/pread-tests (Files): Likewise.
26960         * modules/printf-frexp-tests (Files): Likewise.
26961         * modules/printf-frexpl-tests (Files): Likewise.
26962         * modules/printf-posix-tests (Files): Likewise.
26963         * modules/priv-set-tests (Files): Likewise.
26964         * modules/quotearg-tests (Files): Likewise.
26965         * modules/random_r-tests (Files): Likewise.
26966         * modules/rawmemchr-tests (Files): Likewise.
26967         * modules/rbtree-list-tests (Files): Likewise.
26968         * modules/rbtree-oset-tests (Files): Likewise.
26969         * modules/rbtreehash-list-tests (Files): Likewise.
26970         * modules/readlink-tests (Files): Likewise.
26971         * modules/remove-tests (Files): Likewise.
26972         * modules/rename-tests (Files): Likewise.
26973         * modules/renameat-tests (Files): Likewise.
26974         * modules/rmdir-tests (Files): Likewise.
26975         * modules/round-tests (Files): Likewise.
26976         * modules/roundf-tests (Files): Likewise.
26977         * modules/roundl-tests (Files): Likewise.
26978         * modules/safe-alloc-tests (Files): Likewise.
26979         * modules/setenv-tests (Files): Likewise.
26980         * modules/sigaction-tests (Files): Likewise.
26981         * modules/signbit-tests (Files): Likewise.
26982         * modules/sleep-tests (Files): Likewise.
26983         * modules/snprintf-posix-tests (Files): Likewise.
26984         * modules/snprintf-tests (Files): Likewise.
26985         * modules/sprintf-posix-tests (Files): Likewise.
26986         * modules/stat-tests (Files): Likewise.
26987         * modules/stat-time-tests (Files): Likewise.
26988         * modules/strcasestr-tests (Files): Likewise.
26989         * modules/strchrnul-tests (Files): Likewise.
26990         * modules/strerror-tests (Files): Likewise.
26991         * modules/striconv-tests (Files): Likewise.
26992         * modules/striconveh-tests (Files): Likewise.
26993         * modules/striconveha-tests (Files): Likewise.
26994         * modules/strsignal-tests (Files): Likewise.
26995         * modules/strstr-tests (Files): Likewise.
26996         * modules/strtod-tests (Files): Likewise.
26997         * modules/strverscmp-tests (Files): Likewise.
26998         * modules/symlink-tests (Files): Likewise.
26999         * modules/symlinkat-tests (Files): Likewise.
27000         * modules/trunc-tests (Files): Likewise.
27001         * modules/truncf-tests (Files): Likewise.
27002         * modules/truncl-tests (Files): Likewise.
27003         * modules/uname-tests (Files): Likewise.
27004         * modules/unicase/cased-tests (Files): Likewise.
27005         * modules/unicase/ignorable-tests (Files): Likewise.
27006         * modules/unicase/locale-language-tests (Files): Likewise.
27007         * modules/unicase/tolower-tests (Files): Likewise.
27008         * modules/unicase/totitle-tests (Files): Likewise.
27009         * modules/unicase/toupper-tests (Files): Likewise.
27010         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27011         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27012         * modules/unicase/u8-casefold-tests (Files): Likewise.
27013         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27014         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27015         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27016         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27017         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27018         * modules/unicase/u8-tolower-tests (Files): Likewise.
27019         * modules/unicase/u8-totitle-tests (Files): Likewise.
27020         * modules/unicase/u8-toupper-tests (Files): Likewise.
27021         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27022         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27023         * modules/unicase/u16-casefold-tests (Files): Likewise.
27024         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27025         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27026         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27027         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27028         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27029         * modules/unicase/u16-tolower-tests (Files): Likewise.
27030         * modules/unicase/u16-totitle-tests (Files): Likewise.
27031         * modules/unicase/u16-toupper-tests (Files): Likewise.
27032         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27033         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27034         * modules/unicase/u32-casefold-tests (Files): Likewise.
27035         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27036         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27037         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27038         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27039         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27040         * modules/unicase/u32-tolower-tests (Files): Likewise.
27041         * modules/unicase/u32-totitle-tests (Files): Likewise.
27042         * modules/unicase/u32-toupper-tests (Files): Likewise.
27043         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27044         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27045         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27046         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27047         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27048         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27049         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27050         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27051         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27052         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27053         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27054         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27055         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27056         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27057         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27058         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27059         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27060         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27061         * modules/unictype/block-list-tests (Files): Likewise.
27062         * modules/unictype/block-of-tests (Files): Likewise.
27063         * modules/unictype/block-test-tests (Files): Likewise.
27064         * modules/unictype/category-C-tests (Files): Likewise.
27065         * modules/unictype/category-Cc-tests (Files): Likewise.
27066         * modules/unictype/category-Cf-tests (Files): Likewise.
27067         * modules/unictype/category-Cn-tests (Files): Likewise.
27068         * modules/unictype/category-Co-tests (Files): Likewise.
27069         * modules/unictype/category-Cs-tests (Files): Likewise.
27070         * modules/unictype/category-L-tests (Files): Likewise.
27071         * modules/unictype/category-Ll-tests (Files): Likewise.
27072         * modules/unictype/category-Lm-tests (Files): Likewise.
27073         * modules/unictype/category-Lo-tests (Files): Likewise.
27074         * modules/unictype/category-Lt-tests (Files): Likewise.
27075         * modules/unictype/category-Lu-tests (Files): Likewise.
27076         * modules/unictype/category-M-tests (Files): Likewise.
27077         * modules/unictype/category-Mc-tests (Files): Likewise.
27078         * modules/unictype/category-Me-tests (Files): Likewise.
27079         * modules/unictype/category-Mn-tests (Files): Likewise.
27080         * modules/unictype/category-N-tests (Files): Likewise.
27081         * modules/unictype/category-Nd-tests (Files): Likewise.
27082         * modules/unictype/category-Nl-tests (Files): Likewise.
27083         * modules/unictype/category-No-tests (Files): Likewise.
27084         * modules/unictype/category-P-tests (Files): Likewise.
27085         * modules/unictype/category-Pc-tests (Files): Likewise.
27086         * modules/unictype/category-Pd-tests (Files): Likewise.
27087         * modules/unictype/category-Pe-tests (Files): Likewise.
27088         * modules/unictype/category-Pf-tests (Files): Likewise.
27089         * modules/unictype/category-Pi-tests (Files): Likewise.
27090         * modules/unictype/category-Po-tests (Files): Likewise.
27091         * modules/unictype/category-Ps-tests (Files): Likewise.
27092         * modules/unictype/category-S-tests (Files): Likewise.
27093         * modules/unictype/category-Sc-tests (Files): Likewise.
27094         * modules/unictype/category-Sk-tests (Files): Likewise.
27095         * modules/unictype/category-Sm-tests (Files): Likewise.
27096         * modules/unictype/category-So-tests (Files): Likewise.
27097         * modules/unictype/category-Z-tests (Files): Likewise.
27098         * modules/unictype/category-Zl-tests (Files): Likewise.
27099         * modules/unictype/category-Zp-tests (Files): Likewise.
27100         * modules/unictype/category-Zs-tests (Files): Likewise.
27101         * modules/unictype/category-and-not-tests (Files): Likewise.
27102         * modules/unictype/category-and-tests (Files): Likewise.
27103         * modules/unictype/category-byname-tests (Files): Likewise.
27104         * modules/unictype/category-name-tests (Files): Likewise.
27105         * modules/unictype/category-none-tests (Files): Likewise.
27106         * modules/unictype/category-of-tests (Files): Likewise.
27107         * modules/unictype/category-or-tests (Files): Likewise.
27108         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27109         * modules/unictype/combining-class-tests (Files): Likewise.
27110         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27111         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27112         * modules/unictype/ctype-blank-tests (Files): Likewise.
27113         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27114         * modules/unictype/ctype-digit-tests (Files): Likewise.
27115         * modules/unictype/ctype-graph-tests (Files): Likewise.
27116         * modules/unictype/ctype-lower-tests (Files): Likewise.
27117         * modules/unictype/ctype-print-tests (Files): Likewise.
27118         * modules/unictype/ctype-punct-tests (Files): Likewise.
27119         * modules/unictype/ctype-space-tests (Files): Likewise.
27120         * modules/unictype/ctype-upper-tests (Files): Likewise.
27121         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27122         * modules/unictype/decimal-digit-tests (Files): Likewise.
27123         * modules/unictype/digit-tests (Files): Likewise.
27124         * modules/unictype/mirror-tests (Files): Likewise.
27125         * modules/unictype/numeric-tests (Files): Likewise.
27126         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27127         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27128         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27129         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27130         Likewise.
27131         * modules/unictype/property-bidi-block-separator-tests (Files):
27132         Likewise.
27133         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27134         Likewise.
27135         * modules/unictype/property-bidi-common-separator-tests (Files):
27136         Likewise.
27137         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27138         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27139         Likewise.
27140         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27141         Likewise.
27142         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27143         Likewise.
27144         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27145         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27146         Likewise.
27147         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27148         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27149         Likewise.
27150         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27151         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27152         * modules/unictype/property-bidi-segment-separator-tests (Files):
27153         Likewise.
27154         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27155         * modules/unictype/property-byname-tests (Files): Likewise.
27156         * modules/unictype/property-combining-tests (Files): Likewise.
27157         * modules/unictype/property-composite-tests (Files): Likewise.
27158         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27159         * modules/unictype/property-dash-tests (Files): Likewise.
27160         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27161         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27162         Likewise.
27163         * modules/unictype/property-deprecated-tests (Files): Likewise.
27164         * modules/unictype/property-diacritic-tests (Files): Likewise.
27165         * modules/unictype/property-extender-tests (Files): Likewise.
27166         * modules/unictype/property-format-control-tests (Files): Likewise.
27167         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27168         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27169         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27170         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27171         * modules/unictype/property-hyphen-tests (Files): Likewise.
27172         * modules/unictype/property-id-continue-tests (Files): Likewise.
27173         * modules/unictype/property-id-start-tests (Files): Likewise.
27174         * modules/unictype/property-ideographic-tests (Files): Likewise.
27175         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27176         * modules/unictype/property-ids-trinary-operator-tests (Files):
27177         Likewise.
27178         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27179         * modules/unictype/property-iso-control-tests (Files): Likewise.
27180         * modules/unictype/property-join-control-tests (Files): Likewise.
27181         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27182         * modules/unictype/property-line-separator-tests (Files): Likewise.
27183         * modules/unictype/property-logical-order-exception-tests (Files):
27184         Likewise.
27185         * modules/unictype/property-lowercase-tests (Files): Likewise.
27186         * modules/unictype/property-math-tests (Files): Likewise.
27187         * modules/unictype/property-non-break-tests (Files): Likewise.
27188         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27189         * modules/unictype/property-numeric-tests (Files): Likewise.
27190         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27191         * modules/unictype/property-other-default-ignorable-code-point-tests
27192         (Files): Likewise.
27193         * modules/unictype/property-other-grapheme-extend-tests (Files):
27194         Likewise.
27195         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27196         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27197         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27198         * modules/unictype/property-other-math-tests (Files): Likewise.
27199         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27200         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27201         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27202         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27203         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27204         * modules/unictype/property-private-use-tests (Files): Likewise.
27205         * modules/unictype/property-punctuation-tests (Files): Likewise.
27206         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27207         * modules/unictype/property-radical-tests (Files): Likewise.
27208         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27209         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27210         * modules/unictype/property-space-tests (Files): Likewise.
27211         * modules/unictype/property-terminal-punctuation-tests (Files):
27212         Likewise.
27213         * modules/unictype/property-test-tests (Files): Likewise.
27214         * modules/unictype/property-titlecase-tests (Files): Likewise.
27215         * modules/unictype/property-unassigned-code-value-tests (Files):
27216         Likewise.
27217         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27218         * modules/unictype/property-uppercase-tests (Files): Likewise.
27219         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27220         * modules/unictype/property-white-space-tests (Files): Likewise.
27221         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27222         * modules/unictype/property-xid-start-tests (Files): Likewise.
27223         * modules/unictype/property-zero-width-tests (Files): Likewise.
27224         * modules/unictype/scripts-tests (Files): Likewise.
27225         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27226         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27227         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27228         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27229         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27230         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27231         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27232         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27233         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27234         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27235         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27236         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27237         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27238         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27239         * modules/uninorm/composition-tests (Files): Likewise.
27240         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27241         * modules/uninorm/decomposition-tests (Files): Likewise.
27242         * modules/uninorm/filter-tests (Files): Likewise.
27243         * modules/uninorm/nfc-tests (Files): Likewise.
27244         * modules/uninorm/nfd-tests (Files): Likewise.
27245         * modules/uninorm/nfkc-tests (Files): Likewise.
27246         * modules/uninorm/nfkd-tests (Files): Likewise.
27247         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27248         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27249         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27250         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27251         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27252         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27253         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27254         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27255         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27256         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27257         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27258         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27259         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27260         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27261         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27262         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27263         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27264         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27265         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27266         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27267         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27268         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27269         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27270         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27271         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27272         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27273         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27274         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27275         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27276         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27277         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27278         * modules/uniwidth/u8-width-tests (Files): Likewise.
27279         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27280         * modules/uniwidth/u16-width-tests (Files): Likewise.
27281         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27282         * modules/uniwidth/u32-width-tests (Files): Likewise.
27283         * modules/uniwidth/width-tests (Files): Likewise.
27284         * modules/unlink-tests (Files): Likewise.
27285         * modules/unsetenv-tests (Files): Likewise.
27286         * modules/usleep-tests (Files): Likewise.
27287         * modules/utimens-tests (Files): Likewise.
27288         * modules/utimensat-tests (Files): Likewise.
27289         * modules/vasnprintf-posix-tests (Files): Likewise.
27290         * modules/vasnprintf-tests (Files): Likewise.
27291         * modules/vasprintf-posix-tests (Files): Likewise.
27292         * modules/vasprintf-tests (Files): Likewise.
27293         * modules/vdprintf-posix-tests (Files): Likewise.
27294         * modules/vfprintf-posix-tests (Files): Likewise.
27295         * modules/vprintf-posix-tests (Files): Likewise.
27296         * modules/vsnprintf-posix-tests (Files): Likewise.
27297         * modules/vsnprintf-tests (Files): Likewise.
27298         * modules/vsprintf-posix-tests (Files): Likewise.
27299         * modules/wcrtomb-tests (Files): Likewise.
27300         * modules/wcsnrtombs-tests (Files): Likewise.
27301         * modules/wcsrtombs-tests (Files): Likewise.
27302         * modules/wctype-tests (Files): Likewise.
27303         * modules/wcwidth-tests (Files): Likewise.
27304         * modules/xmemdup0-tests (Files): Likewise.
27305         * modules/xprintf-posix-tests (Files): Likewise.
27306         * modules/xvasprintf-tests (Files): Likewise.
27307
27308 2009-12-24  Eric Blake  <ebb9@byu.net>
27309
27310         test-nanosleep: fix typo
27311         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27312         patch.
27313         Reported by Bruno Haible.
27314
27315 2009-12-24  Bruno Haible  <bruno@clisp.org>
27316
27317         Reduce namespace pollution on glibc systems.
27318         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27319         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27320         systems.
27321         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27322         <getopt.h> on glibc systems.
27323         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27324         systems.
27325         * lib/fcntl.c: Include <unistd.h> here instead.
27326
27327 2009-12-24  Bruno Haible  <bruno@clisp.org>
27328
27329         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27330
27331 2009-12-24  Eric Blake  <ebb9@byu.net>
27332
27333         tests: add signature checks
27334         * tests/signature.h (SIGNATURE_CHECK): New file.
27335         * modules/atexit-tests (Files): Use it.
27336         * modules/btowc-tests (Files): Likewise.
27337         * modules/canonicalize-lgpl-tests (Files): Likewise.
27338         * modules/ceilf-tests (Files): Likewise.
27339         * modules/ceill-tests (Files): Likewise.
27340         * modules/chown-tests (Files): Likewise.
27341         * modules/dprintf-posix-tests (Files): Likewise.
27342         * modules/dup2-tests (Files): Likewise.
27343         * modules/dup3-tests (Files): Likewise.
27344         * modules/duplocale-tests (Files): Likewise.
27345         * modules/fchdir-tests (Files): Likewise.
27346         * modules/fcntl-tests (Files): Likewise.
27347         * modules/fdopendir-tests (Files): Likewise.
27348         * modules/fflush-tests (Files): Likewise.
27349         * modules/flock-tests (Files): Likewise.
27350         * modules/floorf-tests (Files): Likewise.
27351         * modules/floorl-tests (Files): Likewise.
27352         * modules/fnmatch-tests (Files): Likewise.
27353         * modules/fopen-tests (Files): Likewise.
27354         * modules/fprintf-posix-tests (Files): Likewise.
27355         * modules/freopen-tests (Files): Likewise.
27356         * modules/frexp-nolibm-tests (Files): Likewise.
27357         * modules/frexp-tests (Files): Likewise.
27358         * modules/frexpl-nolibm-tests (Files): Likewise.
27359         * modules/frexpl-tests (Files): Likewise.
27360         * modules/fseek-tests (Files): Likewise.
27361         * modules/fseeko-tests (Files): Likewise.
27362         * modules/fsync-tests (Files): Likewise.
27363         * modules/ftell-tests (Files): Likewise.
27364         * modules/ftello-tests (Files): Likewise.
27365         * modules/futimens-tests (Files): Likewise.
27366         * modules/getaddrinfo-tests (Files): Likewise.
27367         * modules/getcwd-tests (Files): Likewise.
27368         * modules/getdelim-tests (Files): Likewise.
27369         * modules/getdtablesize-tests (Files): Likewise.
27370         * modules/getgroups-tests (Files): Likewise.
27371         * modules/gethostname-tests (Files): Likewise.
27372         * modules/getline-tests (Files): Likewise.
27373         * modules/getopt-posix-tests (Files): Likewise.
27374         * modules/gettimeofday-tests (Files): Likewise.
27375         * modules/glob-tests (Files): Likewise.
27376         * modules/iconv-tests (Files): Likewise.
27377         * modules/inet_ntop-tests (Files): Likewise.
27378         * modules/inet_pton-tests (Files): Likewise.
27379         * modules/isblank-tests (Files): Likewise.
27380         * modules/lchown-tests (Files): Likewise.
27381         * modules/ldexpl-tests (Files): Likewise.
27382         * modules/link-tests (Files): Likewise.
27383         * modules/linkat-tests (Files): Likewise.
27384         * modules/lseek-tests (Files): Likewise.
27385         * modules/lstat-tests (Files): Likewise.
27386         * modules/mbrtowc-tests (Files): Likewise.
27387         * modules/mbsinit-tests (Files): Likewise.
27388         * modules/mbsnrtowcs-tests (Files): Likewise.
27389         * modules/mbsrtowcs-tests (Files): Likewise.
27390         * modules/memchr-tests (Files): Likewise.
27391         * modules/memcmp-tests (Files): Likewise.
27392         * modules/memmem-tests (Files): Likewise.
27393         * modules/memrchr-tests (Files): Likewise.
27394         * modules/mkdir-tests (Files): Likewise.
27395         * modules/mkfifo-tests (Files): Likewise.
27396         * modules/mkfifoat-tests (Files): Likewise.
27397         * modules/mknod-tests (Files): Likewise.
27398         * modules/nanosleep-tests (Files): Likewise.
27399         * modules/nl_langinfo-tests (Files): Likewise.
27400         * modules/obstack-printf-tests (Files): Likewise.
27401         * modules/open-tests (Files): Likewise.
27402         * modules/openat-tests (Files): Likewise.
27403         * modules/perror-tests (Files): Likewise.
27404         * modules/pipe2-tests (Files): Likewise.
27405         * modules/poll-tests (Files): Likewise.
27406         * modules/popen-tests (Files): Likewise.
27407         * modules/posix_spawn-tests (Files): Likewise.
27408         * modules/posix_spawnp-tests (Files): Likewise.
27409         * modules/pread-tests (Files): Likewise.
27410         * modules/printf-posix-tests (Files): Likewise.
27411         * modules/pty-tests (Files): Likewise.
27412         * modules/random_r-tests (Files): Likewise.
27413         * modules/rawmemchr-tests (Files): Likewise.
27414         * modules/readlink-tests (Files): Likewise.
27415         * modules/remove-tests (Files): Likewise.
27416         * modules/rename-tests (Files): Likewise.
27417         * modules/renameat-tests (Files): Likewise.
27418         * modules/rmdir-tests (Files): Likewise.
27419         * modules/round-tests (Files): Likewise.
27420         * modules/roundf-tests (Files): Likewise.
27421         * modules/roundl-tests (Files): Likewise.
27422         * modules/select-tests (Files): Likewise.
27423         * modules/setenv-tests (Files): Likewise.
27424         * modules/sigaction-tests (Files): Likewise.
27425         * modules/sleep-tests (Files): Likewise.
27426         * modules/snprintf-posix-tests (Files): Likewise.
27427         * modules/snprintf-tests (Files): Likewise.
27428         * modules/sprintf-posix-tests (Files): Likewise.
27429         * modules/stat-tests (Files): Likewise.
27430         * modules/strcasestr-tests (Files): Likewise.
27431         * modules/strchrnul-tests (Files): Likewise.
27432         * modules/strerror-tests (Files): Likewise.
27433         * modules/strsignal-tests (Files): Likewise.
27434         * modules/strstr-tests (Files): Likewise.
27435         * modules/strtod-tests (Files): Likewise.
27436         * modules/strverscmp-tests (Files): Likewise.
27437         * modules/symlink-tests (Files): Likewise.
27438         * modules/symlinkat-tests (Files): Likewise.
27439         * modules/times-tests (Files): Likewise.
27440         * modules/trunc-tests (Files): Likewise.
27441         * modules/truncf-tests (Files): Likewise.
27442         * modules/truncl-tests (Files): Likewise.
27443         * modules/tsearch-tests (Files): Likewise.
27444         * modules/uname-tests (Files): Likewise.
27445         * modules/unlink-tests (Files): Likewise.
27446         * modules/unsetenv-tests (Files): Likewise.
27447         * modules/usleep-tests (Files): Likewise.
27448         * modules/utimensat-tests (Files): Likewise.
27449         * modules/vasprintf-tests (Files): Likewise.
27450         * modules/vdprintf-posix-tests (Files): Likewise.
27451         * modules/vfprintf-posix-tests (Files): Likewise.
27452         * modules/vprintf-posix-tests (Files): Likewise.
27453         * modules/vsnprintf-posix-tests (Files): Likewise.
27454         * modules/vsnprintf-tests (Files): Likewise.
27455         * modules/vsprintf-posix-tests (Files): Likewise.
27456         * modules/wcrtomb-tests (Files): Likewise.
27457         * modules/wcsnrtombs-tests (Files): Likewise.
27458         * modules/wcsrtombs-tests (Files): Likewise.
27459         * modules/wcwidth-tests (Files): Likewise.
27460         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27461         * tests/test-isinf.c (isinf): Likewise.
27462         * tests/test-isnan.c (isnan): Likewise.
27463         * tests/test-signbit.c (signbit): Likewise.
27464         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27465         declaration, either as macro or with correct signature.
27466         (select): Ensure function under test is declared with correct
27467         signature in correct header.
27468         * tests/test-atexit.c (atexit): Likewise.
27469         * tests/test-btowc.c (btowc): Likewise.
27470         * tests/test-canonicalize-lgpl.c (realpath)
27471         (canonicalize_file_name): Likewise.
27472         * tests/test-ceilf1.c (ceilf): Likewise.
27473         * tests/test-ceill.c (ceill): Likewise.
27474         * tests/test-chown.c (chown): Likewise.
27475         * tests/test-dprintf-posix.c (dprintf): Likewise.
27476         * tests/test-dup2.c (dup2): Likewise.
27477         * tests/test-dup3.c (dup3): Likewise.
27478         * tests/test-duplocale.c (duplocale): Likewise.
27479         * tests/test-fchdir.c (fchdir): Likewise.
27480         * tests/test-fchownat.c (fchownat): Likewise.
27481         * tests/test-fcntl.c (fcntl): Likewise.
27482         * tests/test-fdopendir.c (fdopendir): Likewise.
27483         * tests/test-fflush.c (fflush): Likewise.
27484         * tests/test-flock.c (flock): Likewise.
27485         * tests/test-floorf1.c (floorf): Likewise.
27486         * tests/test-floorl.c (floorl): Likewise.
27487         * tests/test-fnmatch.c (fnmatch): Likewise.
27488         * tests/test-fopen.c (fopen): Likewise.
27489         * tests/test-fprintf-posix.c (fprintf): Likewise.
27490         * tests/test-freopen.c (freopen): Likewise.
27491         * tests/test-frexp.c (frexp): Likewise.
27492         * tests/test-frexpl.c (frexpl): Likewise.
27493         * tests/test-fseek.c (fseek): Likewise.
27494         * tests/test-fseeko.c (fseeko): Likewise.
27495         * tests/test-fstatat.c (fstatat): Likewise.
27496         * tests/test-fsync.c (fsync): Likewise.
27497         * tests/test-ftell.c (ftell): Likewise.
27498         * tests/test-ftello.c (ftello): Likewise.
27499         * tests/test-futimens.c (futimens): Likewise.
27500         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27501         (gai_strerror): Likewise.
27502         * tests/test-getcwd.c (getcwd): Likewise.
27503         * tests/test-getdelim.c (getdelim): Likewise.
27504         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27505         * tests/test-getgroups.c (getgroups): Likewise.
27506         * tests/test-gethostname.c (gethostname): Likewise.
27507         * tests/test-getline.c (getline): Likewise.
27508         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27509         Likewise.
27510         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27511         * tests/test-glob.c (glob, globfree): Likewise.
27512         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27513         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27514         * tests/test-inet_pton.c (inet_pton): Likewise.
27515         * tests/test-isblank.c (isblank): Likewise.
27516         * tests/test-lchown.c (lchown): Likewise.
27517         * tests/test-ldexpl.c (ldexpl): Likewise.
27518         * tests/test-link.c (link): Likewise.
27519         * tests/test-linkat.c (linkat): Likewise.
27520         * tests/test-lseek.c (lseek): Likewise.
27521         * tests/test-lstat.c (lstat): Likewise.
27522         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27523         * tests/test-mbsinit.c (mbsinit): Likewise.
27524         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27525         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27526         * tests/test-memchr.c (memchr): Likewise.
27527         * tests/test-memcmp.c (memcmp): Likewise.
27528         * tests/test-memmem.c (memmem): Likewise.
27529         * tests/test-memrchr.c (memrchr): Likewise.
27530         * tests/test-mkdir.c (mkdir): Likewise.
27531         * tests/test-mkdirat.c (mkdirat): Likewise.
27532         * tests/test-mkfifo.c (mkfifo): Likewise.
27533         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27534         * tests/test-mknod.c (mknod): Likewise.
27535         * tests/test-nanosleep.c (nanosleep): Likewise.
27536         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27537         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27538         Likewise.
27539         * tests/test-open.c (open): Likewise.
27540         * tests/test-openat.c (openat): Likewise.
27541         * tests/test-perror.c (perror): Likewise.
27542         * tests/test-pipe2.c (pipe2): Likewise.
27543         * tests/test-poll.c (poll): Likewise.
27544         * tests/test-popen.c (popen, pclose): Likewise.
27545         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27546         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27547         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27548         (posix_spawn_file_actions_destroy)
27549         (posix_spawn_file_actions_addclose)
27550         (posix_spawn_file_actions_addopen)
27551         (posix_spawn_file_actions_adddup2): Likewise.
27552         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27553         * tests/test-pread.c (pread): Likewise.
27554         * tests/test-printf-posix.c (printf): Likewise.
27555         * tests/test-pty.c (openpty, forkpty): Likewise.
27556         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27557         (random_r): Likewise.
27558         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27559         * tests/test-readlink.c (readlink): Likewise.
27560         * tests/test-remove.c (remove): Likewise.
27561         * tests/test-rename.c (rename): Likewise.
27562         * tests/test-renameat.c (renameat): Likewise.
27563         * tests/test-rmdir.c (rmdir): Likewise.
27564         * tests/test-round1.c (round): Likewise.
27565         * tests/test-roundf1.c (roundf): Likewise.
27566         * tests/test-roundl.c (roundl): Likewise.
27567         * tests/test-setenv.c (setenv): Likewise.
27568         * tests/test-sigaction.c (sigaction): Likewise.
27569         * tests/test-sleep.c (sleep): Likewise.
27570         * tests/test-snprintf.c (snprintf): Likewise.
27571         * tests/test-sprintf-posix.c (sprintf): Likewise.
27572         * tests/test-stat.c (stat): Likewise.
27573         * tests/test-stpncpy.c (stpncpy): Likewise.
27574         * tests/test-strcasestr.c (strcasestr): Likewise.
27575         * tests/test-strchrnul.c (strchrnul): Likewise.
27576         * tests/test-strerror.c (strerror): Likewise.
27577         * tests/test-strsignal.c (strsignal): Likewise.
27578         * tests/test-strstr.c (strstr): Likewise.
27579         * tests/test-strtod.c (strtod): Likewise.
27580         * tests/test-strverscmp.c (strverscmp): Likewise.
27581         * tests/test-symlink.c (symlink): Likewise.
27582         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27583         * tests/test-times.c (times): Likewise.
27584         * tests/test-trunc1.c (trunc): Likewise.
27585         * tests/test-truncf1.c (truncf): Likewise.
27586         * tests/test-truncl.c (truncl): Likewise.
27587         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27588         Likewise.
27589         * tests/test-uname.c (uname): Likewise.
27590         * tests/test-unlink.c (unlink): Likewise.
27591         * tests/test-unlinkat.c (unlinkat): Likewise.
27592         * tests/test-unsetenv.c (unsetenv): Likewise.
27593         * tests/test-usleep.c (usleep): Likewise.
27594         * tests/test-utimensat.c (utimensat): Likewise.
27595         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27596         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27597         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27598         * tests/test-vprintf-posix.c (vprintf): Likewise.
27599         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27600         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27601         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27602         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27603         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27604         * tests/test-wcwidth.c (wcwidth): Likewise.
27605
27606         build: pull in conditional headers during GNULIB_POSIXCHECK
27607         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27608         definitions from any conditionally-included headers.
27609         * lib/stdlib.in.h (includes): Likewise.
27610         * lib/unistd.in.h (includes): Likewise.
27611
27612 2009-12-24  Bruno Haible  <bruno@clisp.org>
27613
27614         * tests/test-argv-iter.c: Include header file being tested immediately
27615         after config.h.
27616         * tests/test-base64.c: Likewise.
27617         * tests/test-flock.c: Likewise.
27618         * tests/test-fsync.c: Likewise.
27619         * tests/test-getdate.c: Likewise.
27620         * tests/test-getndelim2.c: Likewise.
27621         * tests/test-isfinite.c: Likewise.
27622         * tests/test-isinf.c: Likewise.
27623         * tests/test-strerror.c: Likewise.
27624         * tests/test-strsignal.c: Likewise.
27625
27626 2009-12-23  Eric Blake  <ebb9@byu.net>
27627
27628         unistd: work around cygwin bug
27629         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27630         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27631         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27632
27633 2009-12-23  Bruno Haible  <bruno@clisp.org>
27634
27635         localename: More tests.
27636         * tests/test-localename.c (SIZEOF): New macro.
27637         (categories): New variable.
27638         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27639         test_locale_name_default): Add test w.r.t. thread locale.
27640         (test_locale_name_thread): New function.
27641         (main): Invoke it.
27642
27643         localename: Make aware of thread locale.
27644         * lib/localename.h (gl_locale_name_thread): New declaration.
27645         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27646         behaviour with respect to thread locale.
27647         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27648         <langinfo.h>, glthread/lock.h.
27649         (SIZE_BITS): New macro.
27650         (string_hash): New function.
27651         (struct hash_node): New type.
27652         (HASH_TABLE_SIZE): New macro.
27653         (struniq_hash_table, struniq_lock): New variables.
27654         (struniq): New function.
27655         (gl_locale_name_thread): New function.
27656         (gl_locale_name): Invoke it.
27657         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27658         * modules/localename (Depends-on): Add lock.
27659         Reported by Mike Gran <spk121@yahoo.com>.
27660
27661 2009-12-23  Eric Blake  <ebb9@byu.net>
27662
27663         va-args: new module
27664         * modules/va-args: New file.
27665         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27666         * MODULES.html.sh (Core language properties): Mention it.
27667
27668         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27669         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27670         named alias for __attribute__((__unused__)).
27671         * lib/chown.c: Update client.
27672         * lib/fchmodat.c: Likewise.
27673         * lib/fts.c: Likewise.
27674         * lib/getdate.y: Likewise.
27675         * lib/getgroups.c: Likewise.
27676         * lib/getopt.c: Likewise.
27677         * lib/getugroups.c: Likewise.
27678         * lib/mkdir.c: Likewise.
27679         * lib/mkfifo.c: Likewise.
27680         * lib/mkfifoat.c: Likewise.
27681         * lib/mknod.c: Likewise.
27682         * lib/mknodat.c: Likewise.
27683         * lib/readlink.c: Likewise.
27684         * lib/se-context.in.h: Likewise.
27685         * lib/se-selinux.in.h: Likewise.
27686         * lib/sockets.c: Likewise.
27687         * lib/symlink.c: Likewise.
27688         * lib/symlinkat.c: Likewise.
27689         * lib/unicodeio.c: Likewise.
27690         * lib/unistr.h: Likewise.
27691         * tests/test-areadlink.c: Likewise.
27692         * tests/test-areadlinkat.c: Likewise.
27693         * tests/test-filenamecat.c: Likewise.
27694         * tests/test-fseeko.c: Likewise.
27695         * tests/test-ftello.c: Likewise.
27696         * tests/test-getdate.c: Likewise.
27697         * tests/test-getgroups.c: Likewise.
27698         * tests/test-gethostname.c: Likewise.
27699         * tests/test-quotearg.c: Likewise.
27700         * tests/test-version-etc.c: Likewise.
27701         * tests/test-xalloc-die.c: Likewise.
27702         * tests/test-xfprintf-posix.c: Likewise.
27703         * tests/test-xprintf-posix.c: Likewise.
27704         * tests/test-xvasprintf.c: Likewise.
27705
27706         tests: avoid compiler warnings
27707         * tests/test-fcntl.c (main): Delete unused parameters.
27708         * tests/test-freopen-safer.c (main): Likewise.
27709         * tests/test-xalloc-die.c (main): Mark unused parameters.
27710         * tests/test-fseeko.c (main): Likewise.
27711         * tests/test-ftello.c (main): Likewise.
27712         * tests/test-nanosleep.c (main): Avoid declaration warning.
27713         * tests/test-sleep.c (main): Likewise.
27714         * tests/test-unsetenv.c (main): Silence warning about string
27715         literal.
27716         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27717
27718 2009-12-23  Bruno Haible  <bruno@clisp.org>
27719
27720         * tests/test-localename.c (test_locale_name): New function, extracted
27721         from main. Also test mixed situations.
27722         (test_locale_name_posix, test_locale_name_environ,
27723         test_locale_name_default): New functions.
27724         (main): Invoke them all.
27725         * modules/localename-tests (configure.ac): Test for newlocale.
27726
27727 2009-12-23  Bruno Haible  <bruno@clisp.org>
27728
27729         unistd: Ensure getcwd gets declared before being overridden.
27730         * lib/unistd.in.h: Conditionally include <io.h>.
27731
27732 2009-12-22  Bruno Haible  <bruno@clisp.org>
27733
27734         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27735         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27736         (gl_WCHAR_H): Invoke it.
27737         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27738         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27739         Reported by Karl Berry <karl@freefriends.org>.
27740
27741 2009-12-22  Eric Blake  <ebb9@byu.net>
27742
27743         math, unistd: avoid redundant includes
27744         * lib/math.in.h (isnan): No need to re-include <math.h>.
27745         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27746
27747         getsubopt: work around cygwin bug
27748         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27749         avoid conflicting with system getsubopt.
27750         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27751         bug.
27752
27753         getopt: synchronize from glibc
27754         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27755         parameter order.  Adjust all callers.
27756         (_getopt_internal_r, main): Adjust quoting in error messages.
27757         Drop considerations for outdated POSIX 1003.2 error message.
27758         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27759         callers.
27760         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27761
27762         test-getopt: test stderr behavior
27763         * modules/getopt-posix-tests (Depends-on): Add dup2.
27764         * tests/test-getopt.c (ASSERT): Avoid stderr.
27765         (main): Move stderr to a temporary file.
27766         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27767         Instead, add parameter to inform caller if output occurred.
27768         (test_getopt): Adjust all existing tests to expect silence, and
27769         add new tests of leading ":".
27770         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27771         glibc shortcomings with leading "-:" or "+:" in optstring.
27772         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27773         Likewise.
27774         * doc/posix-functions/getopt.texi (getopt): Likewise.
27775
27776         test-getopt: enhance test
27777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27778         supports optind=0.
27779         * tests/test-getopt.c (OPTIND_MIN): Move...
27780         * tests/test-getopt.h (OPTIND_MIN): ...here.
27781         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27782         Require that optind=0 works, since modern BSD supports it in
27783         addition to optreset, and since coreutils expects it.
27784         (test_getopt_long_only): New test.
27785         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27786         glibc shortcomings with 'W;', and enforcement of optind=0.
27787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27788         Likewise.
27789
27790 2009-12-21  Bruno Haible  <bruno@clisp.org>
27791
27792         localename: Improvements for MacOS X and Cygwin.
27793         * lib/localename.h (gl_locale_name_environ): New declaration.
27794         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27795         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27796         (gl_locale_name_posix): Invoke it.
27797         (gl_locale_name_default): Add comments. Use Windows native API also on
27798         Cygwin.
27799
27800 2009-12-21  Bruno Haible  <bruno@clisp.org>
27801
27802         Update list of Win32 locale ids.
27803         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27804         (LANG_SAMI): Renamed from LANG_SAAMI.
27805         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27806         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27807         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27808         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27809         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27810         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27811         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27812         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27813         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27814         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27815         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27816         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27817         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27818         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27819         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27820         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27821         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27822         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27823         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27824         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27825         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27826         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27827         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27828         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27829         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27830         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27831         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27832         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27833         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27834         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27835         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27836         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27837         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27838         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27839         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27840         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27841         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27842         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27843         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27844         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27845         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27846         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27847         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27848         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27849         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27850         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27851         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27852         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27853         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27854         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27855         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27856         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27857         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27858         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27859         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27860         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27861         Add more languages and countries for Sami, Sorbian. Add more countries
27862         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27863         for Pashto. Change country for Syriac, Tswana.
27864
27865 2009-12-21  Eric Blake  <ebb9@byu.net>
27866
27867         test-utimens: avoid spurious failure
27868         * tests/test-chown.h (nap): Factor...
27869         * tests/nap.h: ...into new file.
27870         * tests/test-lchown.h (nap): Avoid duplication.
27871         * tests/test-utimens-common.h (nap): Use shared implementation,
27872         necessary on file systems with 1-second resolution.
27873         * modules/chown-tests (Files): Include new file.
27874         * modules/fdutimensat-tests (Files): Likewise.
27875         * modules/futimens-tests (Files): Likewise.
27876         * modules/lchown-tests (Files): Likewise.
27877         * modules/openat-tests (Files): Likewise.
27878         * modules/utimens-tests (Files): Likewise.
27879         * modules/utimensat-tests (Files): Likewise.
27880
27881 2009-12-19  Eric Blake  <ebb9@byu.net>
27882
27883         futimens, utimensat: work around Linux bug
27884         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27885         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27886         * lib/utimensat.c (rpl_utimensat): Work around it.
27887         * lib/futimens.c (rpl_futimens): Adjust comment.
27888
27889         utimens: work around Linux ctime bug
27890         * lib/utimens.c (detect_ctime_bug): New helper function.
27891         (update_timespec): Differentiate between workaround needed for
27892         this bug vs. what is needed for systems that lack utimensat.
27893         (fdutimens, lutimens): Work around bug.
27894
27895         utimens: check for ctime update
27896         * tests/test-utimens-common.h (check_ctime): Define.
27897         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27898         * tests/test-futimens.h (test_futimens): Likewise.
27899         * tests/test-lutimens.h (test_lutimens): Likewise.
27900         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27901         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27902
27903 2009-12-19  Bruno Haible  <bruno@clisp.org>
27904
27905         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27906         * tests/test-dprintf-posix2.sh: New file.
27907         * tests/test-dprintf-posix2.c: New file.
27908         * modules/dprintf-posix-tests (Files): Add them.
27909         (configure.ac): Check for getrlimit and setrlimit.
27910         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27911
27912 2009-12-19  Bruno Haible  <bruno@clisp.org>
27913
27914         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27915         * tests/test-fprintf-posix3.sh: New file.
27916         * tests/test-fprintf-posix3.c: New file.
27917         * modules/fprintf-posix-tests (Files): Add them.
27918         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27919
27920 2009-12-19  Eric Blake  <ebb9@byu.net>
27921
27922         dirfd: fix prototype
27923         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27924         * lib/dirfd.c (dirfd): Likewise.
27925
27926         canonicalize: reduce memory usage
27927         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27928         allocation to size.
27929         Reported by Solar Designer <solar@openwall.com>.
27930
27931 2009-12-19  Bruno Haible  <bruno@clisp.org>
27932
27933         New module attribute 'Applicability'.
27934         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27935         * gnulib-tool: New option --extract-applicability.
27936         (func_usage): Document it.
27937         (sed_extract_prog): Recognize it.
27938         (func_get_applicability): New function.
27939         (func_import): Generalize handling of 'link-warning' module.
27940         * modules/link-warning (Applicability): New section.
27941         * modules/arg-nonnull (Applicability): New section.
27942         Repoted by Simon Josefsson <simon@josefsson.org>.
27943
27944 2009-12-19  Bruno Haible  <bruno@clisp.org>
27945
27946         fflush: tweak
27947         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27948         * lib/fseeko.c (rpl_fseeko): Likewise.
27949
27950 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27951
27952         * lib/gl_list.h: Fix typo in comment.
27953
27954 2009-12-16  Eric Blake  <ebb9@byu.net>
27955
27956         fcntl: use to simplify other modules
27957         * modules/cloexec (Depends-on): Add fcntl.
27958         * modules/fchdir (Depends-on): Likewise.
27959         * modules/fd-safer-flag (Depends-on): Likewise.
27960         * modules/unistd-safer (Depends-on): Likewise.
27961         * modules/dup3 (configure.ac): Set module indicator.
27962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27963         missing.
27964         * lib/fchdir.c (_gl_register_dup): Fix comment.
27965         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27966         * lib/dup-safer.c (dup_safer): Likewise.
27967         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27968         * lib/dup3.c (dup3): Likewise.
27969         * tests/test-fchdir.c (main): Enhance test.
27970         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27971
27972         fcntl: port portions of fcntl to mingw
27973         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27974         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27975         replacement for mingw.
27976         * modules/fcntl (Description): Update.
27977         (Depends-on): Add dup2.
27978         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27979         * modules/fcntl-h (Makefile.am): Substitute it.
27980         * lib/fcntl.in.h (fcntl): Update declaration.
27981         (F_DUPFD, F_GETFD): New macros, when needed.
27982         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27983         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27984         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27985         we now guarantee.
27986
27987         fcntl: work around cygwin bug in F_DUPFD
27988         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27989         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27990         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27991         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27992         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27993
27994         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27995         * modules/fcntl (Files): List new files.
27996         (configure.ac): Run a test.
27997         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27998         * lib/fcntl.c (rpl_fcntl): Likewise.
27999         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28000         (gl_FCNTL_H): Always replace fcntl.h.
28001         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28002         * lib/fcntl.in.h (fcntl): Declare replacement.
28003         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28004         needed, plus a witness.
28005         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28006         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28007         * tests/test-fcntl.c: New file.
28008         * modules/fcntl-tests: Likewise.
28009
28010         binary-io: avoid potential compilation warning
28011         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28012         directives.
28013
28014         fflush: avoid compilation error on NetBSD
28015         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28016         between off_t and fpos_t, since the latter is sometimes a struct.
28017         * lib/fseeko.c (rpl_fseeko): Likewise.
28018         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28019
28020 2009-12-15  Eric Blake  <ebb9@byu.net>
28021
28022         fcntl-h, stdio, sys_ioctl: fix declarations
28023         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28024         function must not take arguments.
28025         * lib/sys_ioctl.in.h (ioctl): Likewise.
28026         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28027         (open): Add a link warning.
28028
28029 2009-12-15  Jim Meyering  <meyering@redhat.com>
28030
28031         areadlink, areadlink-with-size: relax license to LGPLv2+
28032         * modules/areadlink (License): Relax to LGPLv2+.
28033         * modules/areadlink-with-size (License): Likewise.
28034
28035 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28036             Bruno Haible  <bruno@clisp.org>
28037
28038         *printf: Fix memory leak.
28039         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28040         * lib/vfprintf.c (vfprintf): Likewise.
28041         * lib/dprintf.c (dprintf): Likewise.
28042         * lib/vdprintf.c (vdprintf): Likewise.
28043
28044 2009-12-14  Eric Blake  <ebb9@byu.net>
28045
28046         accept4: adjust module dependencies
28047         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28048
28049         utimens: one more try at avoiding compiler warning
28050         * lib/utimens.c (lutimens): Lower scope of result.
28051
28052 2009-12-13  Bruno Haible  <bruno@clisp.org>
28053
28054         Move the malloc checking from module 'list' to new module 'xlist'.
28055         * modules/xlist: New file.
28056         * lib/gl_xlist.h: New file.
28057         * lib/gl_xlist.c: New file.
28058         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28059         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28060         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28061         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28062         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28063         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28064         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28065         gl_sortedlist_nx_add): New declarations.
28066         (struct gl_list_implementation): Rename and change methods accordingly.
28067         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28068         (gl_list_nx_create): Renamed from gl_list_create.
28069         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28070         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28071         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28072         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28073         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28074         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28075         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28076         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28077         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28078         gl_list_create_empty.
28079         (gl_list_nx_create): Renamed from gl_list_create.
28080         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28081         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28082         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28083         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28084         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28085         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28086         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28087         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28088         * lib/gl_array_list.c: Don't include xalloc.h.
28089         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28090         NULL upon out-of-memory.
28091         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28092         out-of-memory.
28093         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28094         Change return type to 'int'.
28095         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28096         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28097         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28098         upon out-of-memory.
28099         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28100         upon out-of-memory.
28101         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28102         upon out-of-memory.
28103         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28104         upon out-of-memory.
28105         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28106         out-of-memory.
28107         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28108         Update.
28109         (gl_array_list_implementation): Update.
28110         * lib/gl_carray_list.c: Don't include xalloc.h.
28111         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28112         Return NULL upon out-of-memory.
28113         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28114         out-of-memory.
28115         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28116         Change return type to 'int'.
28117         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28118         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28119         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28120         upon out-of-memory.
28121         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28122         upon out-of-memory.
28123         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28124         out-of-memory.
28125         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28126         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28127         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28128         Update.
28129         (gl_carray_list_implementation): Update.
28130         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28131         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28132         gl_linked_create_empty. Return NULL upon out-of-memory.
28133         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28134         out-of-memory.
28135         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28136         Change return type to 'int'. Return -1 upon out-of-memory.
28137         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28138         out-of-memory.
28139         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28140         upon out-of-memory.
28141         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28142         upon out-of-memory.
28143         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28144         NULL upon out-of-memory.
28145         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28146         upon out-of-memory.
28147         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28148         out-of-memory.
28149         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28150         Update.
28151         * lib/gl_linked_list.c: Don't include xalloc.h.
28152         (gl_linked_list_implementation): Update.
28153         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28154         (add_to_bucket): Change return type to 'int'.
28155         (gl_linkedhash_list_implementation): Update.
28156         * lib/gl_anytree_list1.h (free_subtree): New function.
28157         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28158         gl_tree_create_empty. Return NULL upon out-of-memory.
28159         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28160         Change return type to 'int'. Return -1 upon out-of-memory.
28161         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28162         out-of-memory.
28163         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28164         (gl_tree_remove_node): New function, moved here from
28165         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28166         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28167         Update.
28168         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28169         malloc, not xmalloc. Return NULL upon out-of-memory.
28170         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28171         out-of-memory.
28172         (gl_tree_remove_node_from_tree): New function, extracted from
28173         gl_tree_remove_node.
28174         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28175         upon out-of-memory.
28176         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28177         out-of-memory.
28178         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28179         upon out-of-memory.
28180         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28181         upon out-of-memory.
28182         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28183         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28184         not xmalloc. Return NULL upon out-of-memory.
28185         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28186         out-of-memory.
28187         (gl_tree_remove_node_from_tree): New function, extracted from
28188         gl_tree_remove_node.
28189         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28190         upon out-of-memory.
28191         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28192         out-of-memory.
28193         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28194         upon out-of-memory.
28195         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28196         upon out-of-memory.
28197         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28198         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28199         gl_anytree_list1.h before gl_anyavltree_list2.h.
28200         (gl_avltree_list_implementation): Update.
28201         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28202         gl_anytree_list1.h before gl_anyavltree_list2.h.
28203         (gl_rbtree_list_implementation): Update.
28204         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28205         Change return type to 'int'. Return -1 upon out-of-memory. Use
28206         __builtin_expect.
28207         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28208         (gl_avltreehash_list_implementation): Update.
28209         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28210         (gl_rbtreehash_list_implementation): Update.
28211         * modules/array-list (Depends-on): Remove xalloc.
28212         * modules/carray-list (Depends-on): Likewise.
28213         * modules/linked-list (Depends-on): Likewise.
28214         * modules/linkedhash-list (Depends-on): Likewise.
28215         * modules/avltree-list (Depends-on): Likewise.
28216         * modules/rbtree-list (Depends-on): Likewise.
28217         * modules/avltreehash-list (Depends-on): Likewise.
28218         * modules/rbtreehash-list (Depends-on): Likewise.
28219
28220         * modules/xsublist: New file.
28221         * lib/gl_xsublist.h: New file.
28222         * lib/gl_xsublist.c: New file.
28223         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28224         (gl_sublist_nx_create): New declaration.
28225         * lib/gl_sublist.c: Don't include xalloc.h.
28226         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28227         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28228         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28229         Change return type to 'int'. Return -1 upon out-of-memory.
28230         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28231         upon out-of-memory.
28232         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28233         NULL upon out-of-memory.
28234         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28235         upon out-of-memory.
28236         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28237         NULL upon out-of-memory.
28238         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28239         NULL upon out-of-memory.
28240         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28241         upon out-of-memory.
28242         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28243         (gl_sublist_list_implementation): Update.
28244         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28245         upon out-of-memory.
28246         * modules/sublist (Depends-on): Remove xalloc.
28247
28248         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28249         * tests/test-carray_list.c: Likewise.
28250         * tests/test-linked_list.c: Likewise.
28251         * tests/test-linkedhash_list.c: Likewise.
28252         * tests/test-avltree_list.c: Likewise.
28253         * tests/test-rbtree_list.c: Likewise.
28254         * tests/test-avltreehash_list.c: Likewise.
28255         * tests/test-rbtreehash_list.c: Likewise.
28256         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28257         * modules/carray-list-tests (Makefile.am): Likewise.
28258         * modules/linked-list-tests (Makefile.am): Likewise.
28259         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28260         * modules/avltree-list-tests (Makefile.am): Likewise.
28261         * modules/rbtree-list-tests (Makefile.am): Likewise.
28262         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28263         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28264
28265         * NEWS: Mention the changes.
28266
28267         * lib/clean-temp.c: Include gl_xlist.h.
28268         * modules/clean-temp (Depends-on): Add xlist.
28269
28270         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28271         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28272
28273         * tests/test-array_oset.c: Include gl_xlist.h.
28274         * modules/array-oset-tests (Depends-on): Add xlist.
28275
28276         Reported by José E. Marchesi <jemarch@gnu.org>.
28277
28278 2009-12-13  Bruno Haible  <bruno@clisp.org>
28279
28280         Move the malloc checking from module 'oset' to new module 'xoset'.
28281         * modules/xoset: New file.
28282         * lib/gl_xoset.h: New file.
28283         * lib/gl_xoset.c: New file.
28284         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28285         declarations.
28286         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28287         (struct gl_oset_implementation): Rename and change methods accordingly.
28288         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28289         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28290         'int'. Mark as __warn_unused_result__.
28291         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28292         gl_oset_create_empty.
28293         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28294         'int'.
28295         * lib/gl_array_oset.c: Don't include xalloc.h.
28296         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28297         malloc, not xmalloc.
28298         (grow): Change return type to 'int'. Don't call xalloc_die.
28299         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28300         to 'int'.
28301         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28302         'int'.
28303         (gl_array_oset_implementation): Update.
28304         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28305         gl_tree_create_empty.
28306         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28307         'int'.
28308         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28309         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28310         xmalloc.
28311         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28312         not xmalloc.
28313         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28314         xmalloc.
28315         (gl_avltree_oset_implementation): Update.
28316         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28317         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28318         xmalloc.
28319         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28320         not xmalloc.
28321         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28322         xmalloc.
28323         (gl_rbtree_oset_implementation): Update.
28324         * modules/array-oset (Depends-on): Remove xalloc.
28325         * modules/avltree-oset (Depends-on): Likewise.
28326         * modules/rbtree-oset (Depends-on): Likewise.
28327         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28328         * tests/test-avltree_oset.c: Likewise.
28329         * tests/test-rbtree_oset.c: Likewise.
28330         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28331         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28332         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28333         * NEWS: Mention the change.
28334
28335 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28336
28337         maint.mk: allow a project to override release-prep commands
28338         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28339         commands into a new rule.
28340         (release-prep): New rule.
28341         (release-prep-hook): New overridable variable.
28342
28343 2009-12-13  Bruno Haible  <bruno@clisp.org>
28344
28345         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28346
28347 2009-12-13  Jim Meyering  <meyering@redhat.com>
28348
28349         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28350         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28351
28352 2009-12-12  Bruno Haible  <bruno@clisp.org>
28353
28354         duplocale: Tweak.
28355         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28356
28357 2009-12-12  Karl Berry  <karl@gnu.org>
28358
28359         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28360
28361 2009-12-12  Bruno Haible  <bruno@clisp.org>
28362
28363         * m4/po.m4: Undo incorrect untabification.
28364
28365 2009-12-12  Bruno Haible  <bruno@clisp.org>
28366
28367         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28368         * modules/c-strtod (Depends-on): Add locale.
28369         * modules/c-strtold (Depends-on): Likewise.
28370
28371 2009-12-12  Bruno Haible  <bruno@clisp.org>
28372
28373         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28374
28375 2009-12-11  Eric Blake  <ebb9@byu.net>
28376
28377         setenv: relax requirement in light of POSIX ruling
28378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28379         not NULL.
28380         * tests/test-setenv.c (main): Relax test.
28381         * tests/test-unsetenv.c (main): Likewise.
28382         * doc/posix-functions/setenv.texi (setenv): Document this.
28383         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28384
28385 2009-12-11  Bruno Haible  <bruno@clisp.org>
28386
28387         New module 'fd-safer-flag'.
28388         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28389         * lib/dup-safer.c (dup_safer_flag): Remove function.
28390         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28391         * lib/fd-safer.c (fd_safer_flag): Remove function.
28392         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28393         * modules/cloexec (configure.ac): Drop indicator macro.
28394         * modules/fd-safer-flag: New file.
28395         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28396         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28397         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28398
28399 2009-12-11  Bruno Haible  <bruno@clisp.org>
28400
28401         Tests for module 'nl_langinfo'.
28402         * modules/nl_langinfo-tests: New file.
28403         * tests/test-nl_langinfo.sh: New file.
28404         * tests/test-nl_langinfo.c: New file.
28405
28406         New module 'nl_langinfo'.
28407         * lib/nl_langinfo.c: New file.
28408         * m4/nl_langinfo.m4: New file.
28409         * modules/nl_langinfo: New file.
28410         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28411
28412 2009-12-11  Bruno Haible  <bruno@clisp.org>
28413
28414         Tests for module 'langinfo'.
28415         * modules/langinfo-tests: New file.
28416         * tests/test-langinfo.c: New file.
28417
28418         New module 'langinfo'.
28419         * lib/langinfo.in.h: New file.
28420         * m4/langinfo_h.m4: New file.
28421         * modules/langinfo: New file.
28422         * doc/posix-headers/langinfo.texi: Mention the new module.
28423
28424 2009-12-11  Bruno Haible  <bruno@clisp.org>
28425
28426         * lib/config.charset: Untabify.
28427
28428 2009-12-11  Bruno Haible  <bruno@clisp.org>
28429
28430         * modules/unistd-safer (configure.ac): Drop indicator macro.
28431
28432 2009-12-11  Bruno Haible  <bruno@clisp.org>
28433
28434         Move pipe2-safer code to its own file.
28435         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28436         * lib/pipe-safer.c (pipe2_safer): Remove function.
28437         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28438         (Makefile.am): Add it to lib_SOURCES.
28439
28440 2009-12-10  Bruno Haible  <bruno@clisp.org>
28441
28442         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28443
28444 2009-12-10  Bruno Haible  <bruno@clisp.org>
28445
28446         Declare which arguments expect non-NULL values, for GCC and clang.
28447         * build-aux/arg-nonnull.h: New file.
28448         * modules/arg-nonnull: New file.
28449         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28450         (inet_ntop, inet_pton): Use it.
28451         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28452         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28453         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28454         (open, openat): Use it.
28455         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28456         (fnmatch): Use it.
28457         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28458         (getopt, getopt_long, getopt_long_only): Use it.
28459         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28460         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28461         Use it.
28462         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28463         (iconv_open): Use it.
28464         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28465         (strtoimax, strtoumax): Use it.
28466         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28467         (duplocale): Use it.
28468         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28469         (frexp, frexpl): Use it.
28470         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28471         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28472         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28473         (tsearch, tfind, tdelete, twalk): Use it.
28474         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28475         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28476         sigpending): Use it.
28477         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28478         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28479         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28480         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28481         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28482         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28483         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28484         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28485         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28486         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28487         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28488         Use it.
28489         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28490         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28491         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28492         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28493         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28494         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28495         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28496         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28497         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28498         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28499         strtoull, unsetenv): Use it.
28500         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28501         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28502         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28503         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28504         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28505         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28506         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28507         (strcasecmp, strncasecmp): Use it.
28508         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28509         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28510         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28511         rpl_setsockopt): Use it.
28512         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28513         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28514         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28515         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28516         (gettimeofday): Use it.
28517         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28518         (times): Use it.
28519         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28520         (uname): Use it.
28521         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28522         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28523         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28524         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28525         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28526         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28527         unlinkat, write): Use it.
28528         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28529         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28530         * lib/argv-iter.h: Include arg-nonnull.h.
28531         (_ATTRIBUTE_NONNULL_): Remove macro.
28532         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28533         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28534         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28535         optimization.
28536         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28537         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28538         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28539         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28540         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28541         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28542         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28543         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28544         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28545         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28546         * modules/dirent (Depends-on): Add arg-nonnull.
28547         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28548         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28549         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28550         * modules/fnmatch (Depends-on): Add arg-nonnull.
28551         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28552         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28553         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28554         * modules/glob (Depends-on): Add arg-nonnull.
28555         (Makefile.am): Insert arg-nonnull.h into glob.h.
28556         * modules/iconv_open (Depends-on): Add arg-nonnull.
28557         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28558         * modules/inttypes (Depends-on): Add arg-nonnull.
28559         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28560         * modules/locale (Depends-on): Add arg-nonnull.
28561         (Makefile.am): Insert arg-nonnull.h into locale.h.
28562         * modules/math (Depends-on): Add arg-nonnull.
28563         (Makefile.am): Insert arg-nonnull.h into math.h.
28564         * modules/netdb (Depends-on): Add arg-nonnull.
28565         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28566         * modules/search (Depends-on): Add arg-nonnull.
28567         (Makefile.am): Insert arg-nonnull.h into search.h.
28568         * modules/signal (Depends-on): Add arg-nonnull.
28569         (Makefile.am): Insert arg-nonnull.h into signal.h.
28570         * modules/spawn (Depends-on): Add arg-nonnull.
28571         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28572         * modules/stdio (Depends-on): Add arg-nonnull.
28573         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28574         * modules/stdlib (Depends-on): Add arg-nonnull.
28575         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28576         * modules/string (Depends-on): Add arg-nonnull.
28577         (Makefile.am): Insert arg-nonnull.h into string.h.
28578         * modules/strings (Depends-on): Add arg-nonnull.
28579         (Makefile.am): Insert arg-nonnull.h into strings.h.
28580         * modules/sys_socket (Depends-on): Add arg-nonnull.
28581         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28582         * modules/sys_stat (Depends-on): Add arg-nonnull.
28583         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28584         * modules/sys_time (Depends-on): Add arg-nonnull.
28585         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28586         * modules/sys_times (Depends-on): Add arg-nonnull.
28587         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28588         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28589         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28590         * modules/time (Depends-on): Add arg-nonnull.
28591         (Makefile.am): Insert arg-nonnull.h into time.h.
28592         * modules/unistd (Depends-on): Add arg-nonnull.
28593         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28594         * modules/wchar (Depends-on): Add arg-nonnull.
28595         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28596         * modules/argv-iter (Depends-on): Add arg-nonnull.
28597         * tests/test-canonicalize.c (null_ptr): New function.
28598         (main): Use it.
28599         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28600         (main): Use it.
28601         * tests/test-memmem.c (null_ptr): New function.
28602         (main): Use it.
28603         Reported by Jim Meyering.
28604
28605 2009-12-10  Bruno Haible  <bruno@clisp.org>
28606
28607         Use spaces for indentation, not tabs.
28608         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28609         * m4/*.m4: Untabify.
28610         * build-aux/*.h: Untabify.
28611         * tests/**/*.[hc]: Untabify.
28612         * README: New section "Indent with spaces, not TABs", based on
28613         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28614         * NEWS: Mention the change.
28615
28616 2009-12-10  Bruno Haible  <bruno@clisp.org>
28617
28618         pty test: Fix link error.
28619         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28620         test_pty_LDADD.
28621
28622 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28623
28624         * modules/pty: New file.
28625         * modules/pty-tests: New file.
28626         * m4/pty.m4: New file.
28627         * tests/test-pty.c: New file.
28628         * doc/glibc-headers/pty.texi: Modified.
28629         * doc/glibc-functions/forkpty.texi: Modified.
28630         * doc/glibc-functions/openpty.texi: Modified.
28631
28632 2009-12-10  Bruno Haible  <bruno@clisp.org>
28633
28634         Avoid syntax error in C++ mode.
28635         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28636
28637 2009-12-10  Bruno Haible  <bruno@clisp.org>
28638
28639         Use sed with option -e.
28640         * gnulib-tool (func_version, func_emit_copyright_notice,
28641         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28642         option -e to sed.
28643         * modules/link-warning (Makefile.am): Likewise.
28644
28645 2009-12-10  Jim Meyering  <meyering@redhat.com>
28646
28647         mgetgroups: do not write bytes beyond end of malloc'd buffer
28648         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28649         username, we call getgroups with a one-element-shorter buffer,
28650         but still told it the length was original, max_n_groups.
28651
28652 2009-12-09  Eric Blake  <ebb9@byu.net>
28653
28654         cloexec: relax license
28655         * modules/cloexec (Maintainer): Add myself.
28656         (License): Use LGPL, not GPL.
28657
28658         link-warning: optimize generation
28659         * modules/link-warning (Makefile.am): Reduce process usage.
28660
28661 2009-12-09  Bruno Haible  <bruno@clisp.org>
28662
28663         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28664         workaround was added on 2009-11-17.
28665
28666 2009-12-09  Jim Meyering  <meyering@redhat.com>
28667             Bruno Haible  <bruno@clisp.org>
28668
28669         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28670         * modules/link-warning (Makefile.am): Make the comment-removing sed
28671         command more robust in the face of bootstrap-prepended comment lines.
28672
28673 2009-12-09  Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28676         most one group.
28677
28678 2009-12-09  Simon Josefsson <simon@josefsson.org>
28679             Bruno Haible  <bruno@clisp.org>
28680
28681         * build-aux/link-warning.h: Add copyright notice.
28682         * modules/link-warning (Makefile.am): Generate link-warning.h from
28683         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28684         * NEWS: Mention change in link-warning module.
28685         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28686         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28687         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28688         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28689         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28690         * modules/math (Makefile.am): Add dependency to math.h.
28691         * modules/search (Makefile.am): Add dependency to search.h.
28692         * modules/signal (Makefile.am): Add dependency to signal.h.
28693         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28694         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28695         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28696         * modules/string (Makefile.am): Add dependency to string.h.
28697         * modules/strings (Makefile.am): Add dependency to strings.h.
28698         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28699         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28700         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28701         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28702         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28703         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28704         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28705         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28706         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28707
28708 2009-12-09  Bruno Haible  <bruno@clisp.org>
28709
28710         fchdir: Optimize away rpl_fstat when possible.
28711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28712         REPLACE_OPEN_DIRECTORY.
28713         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28714
28715 2009-12-09  Bruno Haible  <bruno@clisp.org>
28716
28717         * lib/fchdir.c: Update comment.
28718
28719 2009-12-09  Bruno Haible  <bruno@clisp.org>
28720
28721         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28722
28723 2009-12-08  Eric Blake  <ebb9@byu.net>
28724
28725         fchdir: avoid memory leak on re-registration.
28726         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28727
28728 2009-12-08  Jim Meyering  <meyering@redhat.com>
28729
28730         init.sh: avoid Solaris 10 /bin/sh portability problem
28731         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28732         sourced script:
28733           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28734           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28735           bar
28736         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28737         and two tests used that idiom.
28738         * tests/init.sh: Update suggested usage comments.
28739         (path_prepend_): New function, to be used in place
28740         of the --src-path=DIR option.
28741         (setup_): Move PATH-prepending code into path_prepend_.
28742         * tests/test-pread.sh: Adapt to new usage.
28743         * tests/test-xalloc-die.sh: Likewise.
28744
28745 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28746
28747         * doc/gnulib.texi (Glibc pty.h): Add.
28748         * doc/glibc-functions/forkpty.texi: Add.
28749         * doc/glibc-functions/openpty.texi: Add.
28750         Suggested by Bruno Haible.
28751
28752 2009-12-08  Eric Blake  <ebb9@byu.net>
28753
28754         fchdir: fix logic bugs
28755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28756         * tests/test-fchdir.c (main): Enhance test.
28757         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28758         is in use.
28759
28760         dup2: fix logic bugs
28761         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28762         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28763         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28764         exists.
28765         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28766
28767 2009-12-07  Eric Blake  <ebb9@byu.net>
28768
28769         unlink: fix m4 detection
28770         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28771
28772         unistd-safer: add unit test
28773         * modules/unistd-safer-tests: New file.
28774         * tests/test-dup-safer.c: Likewise.
28775         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28776         * tests/test-dup2.c (setmode): Likewise.
28777         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28778
28779         cloexec: preserve text vs. binary across dup_cloexec
28780         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28781         mode.
28782         * modules/dup2-tests (Depends-on): Add binary-io.
28783         * modules/cloexec-tests (Depends-on): Likewise.
28784         * tests/test-dup2.c (setmode, is_mode): New helpers.
28785         (main): Add tests that translation mode is preserved.
28786         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28787         Reported by Bruno Haible.
28788
28789         mgetgroups: reduce duplicate listings
28790         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28791         resulting array.
28792         * tests/test-chown.h (test_chown): Simplify client.
28793         * tests/test-lchown.h (test_lchown): Likewise.
28794
28795 2009-12-06  Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28798         value.
28799
28800 2009-12-06  Bruno Haible  <bruno@clisp.org>
28801
28802         * lib/progname.c: Include stdio.h, stdlib.h.
28803         (set_program_name): Reject a NULL argument.
28804
28805 2009-12-05  Eric Blake  <ebb9@byu.net>
28806
28807         pipe2-safer: new module
28808         * modules/pipe2-safer: New file.
28809         * lib/unistd-safer.h (pipe2_safer): New prototype.
28810         * lib/unistd--.h (pipe2): New wrapper.
28811         * lib/pipe-safer.c (pipe2_safer): New function.
28812         * modules/pipe (Depends-on): Add pipe2-safer.
28813         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28814
28815         stdlib-safer: preserve cloexec flag for mkostemp[s]
28816         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28817         fd_safer_flag.
28818
28819         unistd-safer: allow preservation of cloexec status via flag
28820         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28821         prototypes.
28822         * lib/dup-safer.c (dup_safer_flag): New function.
28823         * lib/fd-safer.c (fd_safer_flag): Likewise.
28824         * modules/cloexec (configure.ac): Set witness.
28825
28826         test-dup2: enhance test
28827         * modules/dup2-tests (Depends-on): Add cloexec.
28828         * tests/test-dup2.c (main): Enhance test.
28829
28830         cloexec: add dup_cloexec
28831         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28832         header and comments.
28833         * lib/cloexec.c (set_cloexec_flag): Add comments.
28834         (dup_cloexec): New function, with mingw implementation borrowed
28835         from...
28836         * lib/w32spawn.h (dup_noinherit): ...here.
28837         * modules/execute (Depends-on): Add cloexec.
28838         * modules/pipe (Depends-on): Likewise.
28839         * modules/cloexec (Depends-on): Add dup2.
28840         * modules/cloexec-tests (Files): New file.
28841         * tests/test-cloexec.c: Likewise.
28842
28843         test-xalloc-die: fix test for mingw
28844         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28845         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28846         directory and .exe suffix off argv[0] output.
28847
28848         test-fseeko: fix test for mingw
28849         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28850         than undefining fseek, so test will pass on mingw.
28851
28852 2009-12-05  Bruno Haible  <bruno@clisp.org>
28853
28854         * lib/progname.h (set_program_name): Clarify specification.
28855         * lib/progname.c (set_program_name): Likewise.
28856         Reported by Jim Meyering.
28857
28858 2009-12-05  Jim Meyering  <meyering@redhat.com>
28859
28860         maint.mk: backslash-escape parens in default regexp
28861         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28862         backslash-escape the literal parentheses.
28863
28864         maint.mk: news-date-check: use grep -E
28865         * top/maint.mk (today): Define a Make variable, not a...
28866         (news-date-check): ...shell variable.
28867         (news-date-regexp): Use the Make variable.
28868         Use grep's -E option.  Change the failing diagnostic to mention
28869         the variable, $(news-date-regexp).
28870
28871 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28872
28873         maintainer-makefile: allow customization of NEWS entry format
28874         * top/maint.mk (news-date-regexp): New overridable variable.
28875         (news-date-check): Use it.
28876
28877 2009-12-04  Eric Blake  <ebb9@byu.net>
28878
28879         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28880         * lib/mgetgroups.h (xgetgroups): New prototype.
28881         * lib/mgetgroups.c (xgetgroups): New wrapper.
28882         (mgetgroups): Handle ENOSYS.
28883         * modules/mgetgroups (Depends-on): Add realloc.
28884         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28885
28886         mgetgroups: avoid argument promotion issues with -1
28887         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28888         for invalid gid_t.
28889         * tests/test-chown.h (getegid, test_chown): Likewise.
28890         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28891
28892 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28893
28894         exclude: Fix header file problems.
28895         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28896
28897 2009-12-01  Jim Meyering  <meyering@redhat.com>
28898
28899         fts: fts_open: do not let an empty string cause immediate failure
28900         This is required in support of GNU rm, for which the command
28901         "rm A '' B" must process and remove both A and B, in spite of
28902         the empty string argument.
28903         * lib/fts.c (fts_open): Do not let the presence of an empty string
28904         cause fts_open to fail immediately.  Most fts-using tools must be
28905         able to process all arguments, in order, and can be expected to
28906         diagnose such arguments themselves.
28907
28908 2009-11-30  Eric Blake  <ebb9@byu.net>
28909
28910         utimens: fix compilation error
28911         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28912         Declare variable at right scope.
28913
28914 2009-11-29  Jim Meyering  <meyering@redhat.com>
28915
28916         bootstrap: handle perl-5.11's changed --version output
28917         * build-aux/bootstrap (get_version): Handle perl separately,
28918         since perl-5.11's --version output is different.
28919
28920 2009-11-28  Jim Meyering  <meyering@redhat.com>
28921
28922         userspec: depend on the inttostr module, too
28923         * modules/userspec (Depends-on): Add inttostr.
28924
28925         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28926         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28927         number of MAXUID when it evaluates to (uid_t) -1.
28928         Likewise for group ID.  Reported by Matt McCutchen in
28929         <http://savannah.gnu.org/bugs/?28113>
28930
28931         userspec: reformat to use spaces, not TABs
28932         * lib/userspec.c: Expand TABs to spaces.
28933         Add Emacs' "indent-tabs-mode: nil" hint.
28934
28935 2009-11-27  Eric Blake  <ebb9@byu.net>
28936
28937         getopt-gnu: flush out another BSD bug
28938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28939         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28940         flush out BSD bug.
28941         * tests/test-getopt.h (test_getopt): End lists with NULL.
28942         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28943         (test_getopt_long_posix): Enhance test.
28944         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28945         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28946         getopt-gnu.
28947         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28948         Likewise.
28949
28950 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28951
28952         * modules/idpriv-droptemp-tests (Notice): Fix text.
28953
28954 2009-11-27  Jim Meyering  <meyering@redhat.com>
28955
28956         test-xalloc-die: avoid spurious failure due to libtool argv difference
28957         In a libtool-enabled project, this test would fail due to a difference
28958         in the emitted program name, e.g.,
28959         -test-xalloc-die: memory exhausted
28960         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28961         Use program to avoid that.
28962         * modules/xalloc-die-tests (Depends-on): Add progname.
28963         * tests/test-xalloc-die.c: Include progname.h".
28964         (program_name): Remove decl.
28965         (main): Call set_program_name.
28966         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28967
28968 2009-11-26  Richard Jones  <rjones@redhat.com>
28969
28970         w32sock: leave win32 error in place.
28971         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28972
28973 2009-11-26  Eric Blake  <ebb9@byu.net>
28974
28975         init.sh: suggest to use skip_ and fail_ functions in comments
28976         * tests/init.sh: Add a sentence.
28977
28978 2009-11-25  Bruno Haible  <bruno@clisp.org>
28979
28980         init.sh: add documentation in comments
28981         * tests/init.sh: Add some developer and user documentation.
28982
28983 2009-11-26  Jim Meyering  <meyering@redhat.com>
28984
28985         init.sh: accommodate even those who specify bogus srcdir manually
28986         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28987         configure-time tests to be sanitized, so that there is no need to
28988         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28989         (with no double quotes) suffices.  However, since tests may be
28990         invoked manually, and since you may explicitly set srcdir to the
28991         name of a directory containing spaces, do quote its uses here.
28992         * tests/test-pread.sh: Likewise.
28993         Suggested by Bruno Haible.
28994
28995         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28996         * tests/test-pread.sh: Write no data into the pipe, because
28997         test-pread actually reads none.  This avoids a diagnostic,
28998         "bash: echo: write error: Broken pipe", that arises in the unusual
28999         event something is ignoring SIGPIPE, and might be interpreted
29000         as some sort of failure.  Reported by Bruno Haible.
29001
29002 2009-11-25  Jim Meyering  <meyering@redhat.com>
29003
29004         test-pread: cover failure with ESPIPE and EINVAL
29005         * tests/test-pread.c (main): Test for failure, too.
29006         * tests/test-pread.sh: Invoke with stdin on a pipe.
29007         Suggested by Eric Blake.
29008
29009         pread: improvement and fix
29010         * modules/pread (Depends-on): Depend on lseek, for portability to
29011         e.g., mingw.  Suggested by Eric Blake.
29012         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29013
29014         unistd.in.h: correct declaration of pread
29015         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29016         Reported by Richard W.M. Jones.
29017
29018         test-pread.sh: distribute the test script
29019         * modules/pread-tests (Files): Include test-pread.sh.
29020
29021         test-pread.sh: clean up
29022         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29023         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29024         That is unnecessary, since it's always ".".
29025         Suggestion from Eric Blake.
29026
29027         test-pread.sh: make executable
29028         * tests/test-pread.sh: Set executable bit.
29029         Reported by Eric Blake.
29030
29031         correct typo in test-pread.sh
29032         * tests/test-pread.sh: Add #! line.
29033
29034         test pread
29035         * tests/test-pread.c: New file.
29036         * tests/test-pread.sh: Likewise.
29037         * modules/pread-tests: Likewise.
29038
29039         pread: new module
29040         * modules/pread: New file.
29041         * lib/unistd.in.h (pread): Define/declare.
29042         * lib/pread.c (pread): New file.
29043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29044         * modules/unistd (Makefile.am): Substitute witnesses.
29045         * doc/posix-functions/pread.texi (pread): Update.
29046         * MODULES.html.sh: Add pread.
29047
29048 2009-11-25  Jim Meyering  <meyering@redhat.com>
29049
29050         tests/init.sh: new file to be used via most *.sh tests
29051         * tests/init.sh: New file.
29052
29053 2009-11-25  Eric Blake  <ebb9@byu.net>
29054
29055         utimens: work around older Linux failure with symlinks
29056         * lib/utimens.c (lutimensat_works_really): New variable.
29057         (fdutimens, lutimens): Use it to manage kernels that support
29058         nanosecond times on files, but not on symlinks.
29059         Reported by OndÅ™ej Vašík.
29060
29061         utimes: fix configure grammar
29062         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29063
29064 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29065
29066         regex: Fix fastmap for multibyte character ranges.
29067         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29068         characters when a multibyte character range is included.
29069
29070 2009-11-22  Andy Wingo  <wingo@pobox.com>
29071
29072         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29073         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29074
29075 2009-11-24  Bruno Haible  <bruno@clisp.org>
29076
29077         doc: Most *_l functions exist in MacOS X 10.5.
29078         * doc/posix-functions/duplocale.texi: Update platforms list.
29079         * doc/posix-functions/freelocale.texi: Likewise.
29080         * doc/posix-functions/newlocale.texi: Likewise.
29081         * doc/posix-functions/uselocale.texi: Likewise.
29082         * doc/posix-functions/isalnum_l.texi: Likewise.
29083         * doc/posix-functions/isalpha_l.texi: Likewise.
29084         * doc/posix-functions/isblank_l.texi: Likewise.
29085         * doc/posix-functions/iscntrl_l.texi: Likewise.
29086         * doc/posix-functions/isdigit_l.texi: Likewise.
29087         * doc/posix-functions/isgraph_l.texi: Likewise.
29088         * doc/posix-functions/islower_l.texi: Likewise.
29089         * doc/posix-functions/isprint_l.texi: Likewise.
29090         * doc/posix-functions/ispunct_l.texi: Likewise.
29091         * doc/posix-functions/isspace_l.texi: Likewise.
29092         * doc/posix-functions/isupper_l.texi: Likewise.
29093         * doc/posix-functions/iswalnum_l.texi: Likewise.
29094         * doc/posix-functions/iswalpha_l.texi: Likewise.
29095         * doc/posix-functions/iswblank_l.texi: Likewise.
29096         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29097         * doc/posix-functions/iswctype_l.texi: Likewise.
29098         * doc/posix-functions/iswdigit_l.texi: Likewise.
29099         * doc/posix-functions/iswgraph_l.texi: Likewise.
29100         * doc/posix-functions/iswlower_l.texi: Likewise.
29101         * doc/posix-functions/iswprint_l.texi: Likewise.
29102         * doc/posix-functions/iswpunct_l.texi: Likewise.
29103         * doc/posix-functions/iswspace_l.texi: Likewise.
29104         * doc/posix-functions/iswupper_l.texi: Likewise.
29105         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29106         * doc/posix-functions/isxdigit_l.texi: Likewise.
29107         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29108         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29109         * doc/posix-functions/strcoll_l.texi: Likewise.
29110         * doc/posix-functions/strfmon_l.texi: Likewise.
29111         * doc/posix-functions/strftime_l.texi: Likewise.
29112         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29113         * doc/posix-functions/strxfrm_l.texi: Likewise.
29114         * doc/posix-functions/tolower_l.texi: Likewise.
29115         * doc/posix-functions/toupper_l.texi: Likewise.
29116         * doc/posix-functions/towctrans_l.texi: Likewise.
29117         * doc/posix-functions/towlower_l.texi: Likewise.
29118         * doc/posix-functions/towupper_l.texi: Likewise.
29119         * doc/posix-functions/wcscoll_l.texi: Likewise.
29120         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29121         * doc/posix-functions/wctrans_l.texi: Likewise.
29122         * doc/posix-functions/wctype_l.texi: Likewise.
29123         * doc/glibc-functions/strptime_l.texi: Likewise.
29124         * doc/glibc-functions/strtod_l.texi: Likewise.
29125         * doc/glibc-functions/strtof_l.texi: Likewise.
29126         * doc/glibc-functions/strtol_l.texi: Likewise.
29127         * doc/glibc-functions/strtold_l.texi: Likewise.
29128         * doc/glibc-functions/strtoll_l.texi: Likewise.
29129         * doc/glibc-functions/strtoul_l.texi: Likewise.
29130         * doc/glibc-functions/strtoull_l.texi: Likewise.
29131         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29132         * doc/glibc-functions/wcstod_l.texi: Likewise.
29133         * doc/glibc-functions/wcstof_l.texi: Likewise.
29134         * doc/glibc-functions/wcstol_l.texi: Likewise.
29135         * doc/glibc-functions/wcstold_l.texi: Likewise.
29136         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29137         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29138         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29139
29140 2009-11-24  Bruno Haible  <bruno@clisp.org>
29141
29142         duplocale: Fix logic bug.
29143         * lib/duplocale.c: Don't include <langinfo.h>.
29144         (_NL_LOCALE_NAME): Remove macro.
29145         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29146         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29147
29148 2009-11-23  Jim Meyering  <meyering@redhat.com>
29149
29150         test-update-copyright: don't hard-code /usr/bin/perl
29151         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29152         perl to print the current year.  Gilles Espinasse reported that
29153         the replaced use of perl was hard-coded as /usr/bin/perl.
29154
29155 2009-11-23  Bruno Haible  <bruno@clisp.org>
29156
29157         duplocale: Add support for glibc 2.3.x.
29158         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29159
29160 2009-11-22  Bruno Haible  <bruno@clisp.org>
29161
29162         vasnprintf: Tiny optimization.
29163         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29164         MacOS X.
29165
29166 2009-11-22  Bruno Haible  <bruno@clisp.org>
29167
29168         Tests for module 'duplocale'.
29169         * modules/duplocale-tests: New file.
29170         * tests/test-duplocale.c: New file.
29171
29172         New module 'duplocale'.
29173         * m4/duplocale.m4: New file.
29174         * lib/locale.in.h (duplocale): New declaration.
29175         * lib/duplocale.c: New file.
29176         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29177         gl_LOCALE_H_DEFAULTS): New macros.
29178         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29179         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29180         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29181         REPLACE_DUPLOCALE.
29182         * modules/duplocale: New file.
29183         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29184
29185 2009-11-22  Bruno Haible  <bruno@clisp.org>
29186
29187         * modules/locale-tests (configure.ac): Test for newlocale function.
29188         * tests/test-locale.c: When the system has extended locale functions,
29189         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29190
29191         locale: Make locale_t available when possible.
29192         * lib/locale.in.h: Include <xlocale.h> when it exists.
29193         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29194         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29195         * modules/locale (Depends-on): Add extensions.
29196         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29197         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29198
29199 2009-11-22  Bruno Haible  <bruno@clisp.org>
29200
29201         Add comments.
29202         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29203         invocation.
29204         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29205         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29206         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29207
29208 2009-11-22  Bruno Haible  <bruno@clisp.org>
29209
29210         error: account for the possibility of freopen (stdout).
29211         * lib/error.c: Include <unistd.h>.
29212         (flush_stdout): New function, extracted from error and error_at_line.
29213         Determine stdout's fd dynamically.
29214         (error, error_at_line): Invoke flush_stdout.
29215         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29216         * modules/error (Depends-on): Add unistd.
29217
29218 2009-11-22  Bruno Haible  <bruno@clisp.org>
29219
29220         diffseq: Add comment.
29221         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29222
29223 2009-11-22  Jim Meyering  <meyering@redhat.com>
29224
29225         c-stack: avoid defining an unused static function
29226         * lib/c-stack.c (find_stack_direction): Do not define this function
29227         when it will not be used.
29228
29229         diffseq: avoid spurious gcc warnings
29230         * lib/diffseq.h (IF_LINT2): Define.
29231         (compareseq): Use it to initialize two members of "part".
29232         This avoids two used-uninitialized warnings.
29233
29234 2009-11-21  Jim Meyering  <meyering@redhat.com>
29235
29236         c-stack: avoid "ignoring return value of `write'" warning
29237         * lib/c-stack.c: Include "ignore-value.h".
29238         (die): Explicitly ignore each write return value.
29239         * modules/c-stack (Depends-on): Add ignore-value.
29240
29241 2009-11-21  Bruno Haible  <bruno@clisp.org>
29242
29243         diffseq: reduce scope of variable 'best'.
29244         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29245         variable, earlier used for two different purposes.
29246
29247 2009-11-21  Jim Meyering  <meyering@redhat.com>
29248
29249         diffseq: remove useless assignment to "best"
29250         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29251         assignment.  At that point "best" is already guaranteed to be zero.
29252
29253 2009-11-20  Eric Blake  <ebb9@byu.net>
29254
29255         build: mention ftp redirector in release announcements
29256         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29257         values that used to come from cfg.mk; mention FTP redirect URL.
29258         * build-aux/announce-gen: Mention the mirror list.
29259         Suggested by Karl Berry.
29260
29261         nanosleep: improve port to mingw
29262         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29264         LIB_NANOSLEEP, but only when needed.
29265         * modules/select (Link): Document LIBSOCKET.
29266         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29267         enough.
29268
29269         nanosleep: work around cygwin bug
29270         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29271         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29272         bug.
29273         (getnow): Delete, not needed.
29274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29275         LIB_CLOCK_GETTIME.
29276         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29277         clock-time, gettime.
29278         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29279         bug.
29280         * modules/nanosleep-tests: New test.
29281         * tests/test-nanosleep.c: New file.
29282
29283         sleep: work around cygwin bug
29284         * lib/sleep.c (rpl_sleep): Work around the bug.
29285         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29286         (gl_PREREQ_SLEEP): Delete unused macro.
29287         * modules/sleep (Depends-on): Add verify.
29288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29289         * modules/unistd (Makefile.am): Substitute witness.
29290         * lib/unistd.in.h (sleep): Update prototype.
29291         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29292         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29293         * modules/sleep-tests (Depends-on): Check for alarm.
29294
29295 2009-11-20  Jim Meyering  <meyering@redhat.com>
29296
29297         maint.mk: improve sc_prohibit_magic_number_exit
29298         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29299         so it does not match uses like System.exit(1).
29300         Add comments showing how to correct all offenders.
29301
29302 2009-11-19  Eric Blake  <ebb9@byu.net>
29303
29304         xalloc-die-tests: add missing library
29305         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29306
29307         test-xvasprintf: silence compiler warnings
29308         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29309         empty string from gcc.
29310
29311 2009-11-19  Jim Meyering  <meyering@redhat.com>
29312
29313         xfreopen: new module, from coreutils
29314         * modules/xfreopen: New module.
29315         * lib/xfreopen.c: New file.
29316         * lib/xfreopen.h: New file.
29317         * MODULES.html.sh (File stream based Input/Output"): Add it.
29318
29319 2009-11-19  Eric Blake  <ebb9@byu.net>
29320
29321         manywarnings: depend on warnings
29322         * modules/manywarnings (Depends-on): Add warnings.
29323
29324         build: avoid compiler warnings
29325         * lib/select.c (rpl_select): Delete unused variable.
29326         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29327
29328 2009-11-18  Eric Blake  <ebb9@byu.net>
29329
29330         tests: avoid false negative with --with-packager
29331         * tests/test-version-etc.sh: Discard packager information.
29332         * tests/test-argp-version-etc-1.sh: Likewise.
29333         Reported by Mike Frysinger.
29334
29335         utimens: fix regression on Solaris
29336         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29337         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29338         can only change fd timestamps via futimesat.  Instead, use an
29339         additional witness macro to avoid BSD bug.
29340         Reported by Jim Meyering.
29341
29342 2009-11-17  Eric Blake  <ebb9@byu.net>
29343
29344         usleep: use it to simplify tests
29345         * modules/stat-time-tests (Depends-on): Add usleep.
29346         (configure.ac): Drop usleep check.
29347         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29348         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29349         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29350         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29351         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29352         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29353         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29354         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29355         Likewise.
29356         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29357         * tests/test-lchown.h (nap): Likewise.
29358         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29359         * tests/test-stat-time.c (nap): Likewise.
29360         * tests/test-utimens-common.h (nap): Update comments.
29361
29362         usleep: new module
29363         * modules/usleep: New file.
29364         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29365         * lib/usleep.c (usleep): Likewise.
29366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29367         * modules/unistd (Makefile.am): Substitute witnesses.
29368         * lib/unistd.in.h (usleep): Add declaration.
29369         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29370         * MODULES.html.sh (Date and time): Likewise.
29371         * modules/usleep-tests (Depends-on): New test.
29372         * tests/test-usleep.c: New file.
29373
29374         chown: work around OpenBSD bug
29375         * lib/chown.c (rpl_chown): Work around the bug.
29376         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29377         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29378         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29379         * modules/chown (Depends-on): Add stdbool.
29380         * modules/lchown (Depends-on): Likewise.
29381         * doc/posix-functions/chown.texi (chown): Document the bug.
29382         * doc/posix-functions/lchown.texi (lchown): Likewise.
29383         * tests/test-lchown.h (test_chown): Relax test.
29384
29385         mkstemp: avoid conflict with C++ keyword template
29386         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29387         * lib/mkostemp.c (mkostemp): Likewise.
29388         * lib/mkostemps.c (mkostemps): Likewise.
29389         * lib/mkstemp.c (mkstemp): Likewise.
29390         * lib/mkstemps.c (mkstemps): Likewise.
29391
29392         xalloc-die-tests: optimize
29393         * tests/test-xalloc-die.sh: Reduce number of processes.
29394
29395 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29396
29397         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29398         patch from ludo@gnu.org (Ludovic Courtès).
29399
29400 2009-11-17  Jim Meyering  <meyering@redhat.com>
29401
29402         version-etc: use proper license string
29403         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29404         * modules/version-etc-fsf: Likewise.
29405
29406 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29407
29408         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29409         printed to stdout.  Deal with EOL differences.
29410
29411 2009-11-17  Eric Blake  <ebb9@byu.net>
29412
29413         unsetenv: work around Solaris bug
29414         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29415         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29416         Reported by Jim Meyering.
29417
29418         vasnprintf: avoid compiler warnings
29419         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29420         variables.
29421         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29422
29423 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29424
29425         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29426         settings since xalloc-die is no longer the self test,
29427         xalloc-die.sh is.
29428
29429 2009-11-17  Jim Meyering  <meyering@redhat.com>
29430
29431         test-xalloc-die.sh: make the code agree with the commit log
29432         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29433         at the end, just in case you happen to have a test-xalloc-die
29434         program in some other PATH directory.
29435
29436         test-xalloc-die.sh: fix a portability bug
29437         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29438         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29439         Otherwise, argv[0] (as often seen in diagnostics) would be too
29440         system-dependent, sometimes with, and sometimes without the leading "./".
29441
29442         version-etc-fsf: relax license to LGPLv3+
29443         * modules/version-etc-fsf (License): Relax license.
29444
29445 2009-11-16  Eric Blake  <ebb9@byu.net>
29446
29447         xalloc-die-tests: avoid printing null pointer
29448         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29449         shell script.
29450         * tests/test-xalloc-die.c (program_name): Declare.
29451         * tests/test-xalloc-die.sh (tmpfiles): New file.
29452
29453         setenv, unsetenv: work around various bugs
29454         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29455         (setenv) [HAVE_SETENV]: Work around bugs.
29456         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29458         for bugs.
29459         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29460         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29462         * modules/stdlib (Makefile.am): Update substitutions.
29463         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29464         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29465         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29466         * modules/setenv-tests: New test.
29467         * modules/unsetenv-tests: Likewise.
29468         * tests/test-setenv.c: New file.
29469         * tests/test-unsetenv.c: Likewise.
29470
29471 2009-11-16  Jim Meyering  <meyering@redhat.com>
29472
29473         version-etc: relax license to LGPLv3+
29474         * modules/version-etc (License): Relax license.
29475
29476         better AC_REQUIRE expanded-before-required-warning avoidance
29477         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29478         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29479         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29480         which is no longer needed.
29481
29482 2009-11-16  Eric Blake  <ebb9@byu.net>
29483
29484         test-freading: clean up temporary file
29485         * tests/test-freading.c (main): Remove file on success, and use
29486         ASSERT more liberally.
29487         Reported by Jim Meyering.
29488
29489 2009-11-16  Jim Meyering  <meyering@redhat.com>
29490
29491         avoid new AC_REQUIRE expanded-before-required warnings
29492         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29493         merely using it.
29494         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29495         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29496
29497 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29498
29499         * tests/test-xalloc-die.c: New file.
29500         * modules/xalloc-die-tests: New file.
29501         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29502         XFAIL_TESTS so it can be appended by modules.
29503
29504 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29505
29506         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29507         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29508
29509 2009-11-14  Eric Blake  <ebb9@byu.net>
29510
29511         fnmatch: avoid compiler warning
29512         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29513         to silence compiler warning about mismatch signedness in ?:.
29514         Reported by Robert Millan.
29515
29516         intprops: add double-inclusion guard
29517         * lib/intprops.h: Allow idempotent includes.
29518         Suggested by Bruce Korb.
29519
29520         openat: detect Solaris fchownat bug
29521         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29522         penalizing glibc chownat when only lchownat is broken.
29523         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29524         trailing slash bugs.
29525         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29526         * modules/openat-tests (Files): Include more files.
29527         (Depends-on): Add mgetgroups, sleep, stat-time.
29528         (configure.ac): Add additional checks.
29529         (Makefile.am): Build new test.
29530         * tests/test-fchownat.c: New file.
29531
29532         lchown: detect Solaris and FreeBSD bug
29533         * lib/lchown.c (rpl_lchown): Work around bug.
29534         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29536         * modules/unistd (Makefile.am): Populate it.
29537         * lib/unistd.in.h (lchown): Update declaration.
29538         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29539         * modules/lchown-tests: New file.
29540         * tests/test-lchown.h (test_lchown): Likewise.
29541         * tests/test-lchown.c (main): Likewise.
29542
29543         chown: detect Solaris and FreeBSD bug
29544         * lib/chown.c (rpl_chown): Work around bug.
29545         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29546         (gl_PREREQ_CHOWN): Delete.
29547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29548         * modules/unistd (Makefile.am): Populate it.
29549         * lib/unistd.in.h (chown): Update declaration.
29550         * lib/lchown.c (chown): Update client.
29551         * modules/lchown (Depends-on): Add lstat.
29552         * doc/posix-functions/chown.texi (chown): Document the bug.
29553         * doc/posix-functions/getgroups.texi (getgroups): Document
29554         getgroups pitfall.
29555         * modules/chown-tests: New file.
29556         * tests/test-chown.h (test_chown): Likewise.
29557         * tests/test-chown.c (main): Likewise.
29558
29559 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29560
29561         gnulib-tool: correctly detect absence of m4 directories
29562         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29563
29564 2009-11-14  Jim Meyering  <meyering@redhat.com>
29565
29566         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29567         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29568
29569 2009-11-14  John W. Eaton  <jwe@gnu.org>
29570
29571         strftime.h: wrap funtion declaration in extern "C" block
29572         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29573
29574 2009-11-13  Eric Blake  <ebb9@byu.net>
29575
29576         getgroups: avoid compiler warning
29577         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29578
29579         getgroups: work around FreeBSD bug
29580         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29581         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29582         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29583         * tests/test-getgroups.c (main): Fix buffer overrun.
29584
29585         getgroups: avoid compilation failure
29586         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29587         * modules/getgroups (Depends-on): Add stdint.
29588
29589 2009-11-13  Jim Meyering  <meyering@redhat.com>
29590
29591         test-getgroups: avoid compilation failure
29592         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29593
29594 2009-11-13  Eric Blake  <ebb9@byu.net>
29595
29596         mgetgroups: new module, taken from coreutils
29597         * modules/mgetgroups: New file.
29598         * lib/mgetgroups.h: Likewise.
29599         * lib/mgetgroups.c (mgetgroups): Likewise.
29600         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29601         * MODULES.html.sh (Users and groups): Mention it.
29602
29603         getgroups: don't expose GETGROUPS_T to user
29604         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29605         an element at a time if GETGROUPS_T is wrong size.
29606         * lib/getugroups.h (getugroups): Change signature.
29607         * lib/unistd.in.h (getgroups): Likewise.
29608         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29609         signature needs fixing.
29610         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29611         AC_TYPE_GETGROUPS.
29612         * modules/group-member (Depends-on): Add getgroups.
29613         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29614         (group_member): Rely on getgroups replacement.
29615         * lib/getugroups.c (getugroups): Use gid_t.
29616         * tests/test-getgroups.c (main): Likewise.
29617         * NEWS: Mention the signature change.
29618         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29619         problem with signature.
29620         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29621         GETGROUPS_T is still useful for setgroups.
29622
29623         getgroups, getugroups: provide stubs for mingw
29624         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29625         * lib/getugroups.c (getugroups): Likewise.
29626         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29627         function.  Modernize replacement scheme.
29628         (gl_PREREQ_GETGROUPS): Delete.
29629         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29630         * modules/getgroups (configure.ac): Declare witness.
29631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29632         * modules/unistd (Depends-on): Substitute witness.
29633         * lib/unistd.in.h (getgroups): Declare replacement.
29634
29635         getgroups: avoid calling exit
29636         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29637         drop xalloc.
29638         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29639         dependencies.
29640         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29641         exiting, in the rare case of malloc failure.
29642
29643         getgroups: fix logic error
29644         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29645         has more than 20 groups.
29646         * modules/getgroups-tests: New test.
29647         * tests/test-getgroups.c: New file.
29648
29649 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29650
29651         * tests/test-base64.c: Improve.
29652
29653 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29654
29655         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29656         Blake <ebb9@byu.net>.
29657
29658 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29659
29660         * tests/test-xvasprintf.c: Add %s%s related checks.
29661
29662 2009-11-12  Eric Blake  <ebb9@byu.net>
29663
29664         version-etc: match standards.texi style
29665         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29666         and use <> only for URLs.
29667
29668 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29669
29670         fts: do not fail on a submount during traversal
29671         * lib/fts.c (fts_build): Read the stat info again after opening
29672         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29673         Original report at http://bugzilla.redhat.com/501848.
29674
29675 2009-11-12  Jim Meyering  <meyering@redhat.com>
29676
29677         bootstrap: sync from coreutils
29678         * build-aux/bootstrap (bootstrap_epilogue): New function.
29679         Use git_modules_config in one more place.  This make bootstrap's
29680         --gnulib-srcdir option more useful for testing.
29681
29682         bootstrap: generalize autoheader check
29683         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29684         AC_CONFIG_HEADERS.
29685
29686 2009-11-11  Eric Blake  <ebb9@byu.net>
29687
29688         mkfifoat: use new modules for Solaris and BSD bugs
29689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29690         * lib/mkfifoat.c (mknodat): Split...
29691         * lib/mknodat.c (mknodat): ...into new file.
29692         * modules/mkfifoat (Files): Ship new file.
29693         (Depends-on): Add mkfifo, mknod.
29694         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29695         (Depends-on): Add symlink.
29696         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29697         redundant with test_mkfifo.h.
29698         (do_mkfifoat, do_mknodat): New helpers.
29699
29700         mknod: new module
29701         * modules/mknod: New file.
29702         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29703         * lib/mknod.c (mknod): Likewise.
29704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29705         defaults.
29706         * modules/sys_stat (Makefile.am): Substitute them.
29707         * lib/sys_stat.in.h (mknod): Declare replacement.
29708         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29709         Document it.
29710         * doc/posix-functions/mknod.texi (mknod): Likewise.
29711         * modules/mknod-tests: New test.
29712         * tests/test-mknod.c: Likewise.
29713
29714         mkfifo: new module
29715         * modules/mkfifo: New file.
29716         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29717         * lib/mkfifo.c (mkfifo): Likewise.
29718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29719         defaults.
29720         * modules/sys_stat (Makefile.am): Substitute them.
29721         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29722         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29723         Document it.
29724         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29725         * modules/mkfifo-tests: New test.
29726         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29727         from test-mkfifoat.c.
29728         * tests/test-mkfifo.c: New file.
29729
29730         readlink: detect FreeBSD bug
29731         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29732         slash on symlink.
29733         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29734         * tests/test-readlink.h (test_readlink): Enhance test.
29735
29736         symlink: detect FreeBSD bug
29737         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29738         slash on symlink.
29739         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29740         * tests/test-symlink.h (test_symlink): Enhance test.
29741
29742 2009-11-10  Eric Blake  <ebb9@byu.net>
29743
29744         link: detect FreeBSD bug
29745         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29746         symlink.
29747         * doc/posix-functions/link.texi (link): Document the bug.
29748         * tests/test-link.h (test_link): Enhance test.
29749         * tests/test-linkat.c (main): Update caller.
29750
29751         unlink, remove: detect FreeBSD bug
29752         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29753         slash on symlink.
29754         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29755         * doc/posix-functions/remove.texi (remove): Likewise.
29756         * tests/test-unlink.h (test_unlink): Enhance test.
29757         * tests/test-remove.c (main): Likewise.
29758
29759 2009-11-09  Eric Blake  <ebb9@byu.net>
29760
29761         rename: detect FreeBSD bug
29762         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29763         slash on symlink.
29764         * modules/renameat-tests (Depends-on): Add filenamecat.
29765         * tests/test-rename.h (test_rename): Allow one more errno.
29766         * tests/test-renameat.c (main): Likewise.
29767         * doc/posix-functions/rename.texi (rename): Document the bug.
29768
29769         open: detect FreeBSD bug
29770         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29771         symlink.
29772         * doc/posix-functions/open.texi (open): Document the bug.
29773         * doc/posix-functions/utimes.texi (utimes): Likewise.
29774         * tests/test-open.h (test_open): Add parameters, and test symlink
29775         handling.
29776         * tests/test-open.c (main): Adjust caller.
29777         * tests/test-fcntl-safer.c (main): Likewise.
29778         * modules/open-tests (Depends-on): Add stdbool, symlink.
29779         * modules/fcntl-safer-tests (Depends-on): Likewise.
29780         * tests/test-openat.c (main): Add test-open tests.
29781
29782         stat: detect FreeBSD bug
29783         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29784         symlink.
29785         * doc/posix-functions/stat.texi (stat): Document the bug.
29786         * tests/test-stat.h (test_stat_func): Add argument.
29787         * tests/test-stat.c (main): Adjust caller.
29788         * tests/test-fstatat.c (main): Likewise.
29789         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29790         Reported by Jim Meyering.
29791
29792 2009-11-09  James Youngman  <jay@gnu.org>
29793
29794         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29795         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29796
29797 2009-11-08  Jim Meyering  <meyering@redhat.com>
29798
29799         utimens: remove invalid futimesat call
29800         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29801         It used the file descriptor of the target file as the DIR_FD
29802         parameter and NULL as the file name.  That caused failure with
29803         errno == EFAULT on FreeBSD-8.0-rc2
29804
29805 2009-11-07  Eric Blake  <ebb9@byu.net>
29806
29807         fflush, freadseek: use fseeko, not fseek
29808         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29809         (clear_ungetc_buffer): Avoid potential problems on large files.
29810         * lib/freadseek.c (freadseek): Likewise.
29811         * modules/freadseek (Depends-on): Add fseeko.
29812         * modules/fseek (configure.ac): Set a witness.
29813         * tests/test-fflush.c (main): Use fseeko.
29814         * tests/test-fpurge.c (fseek): Disable link warning.
29815         * tests/test-freadable.c (fseek): Likewise.
29816         * tests/test-freading.c (fseek): Likewise.
29817         * tests/test-fseeko.c (fseek): Likewise.
29818         * tests/test-ftell.c (fseek): Likewise.
29819         * tests/test-ftello.c (fseek): Likewise.
29820         * tests/test-fwritable.c (fseek): Likewise.
29821         * tests/test-fwriting.c (fseek): Likewise.
29822
29823 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29824
29825         * modules/memchr (Depends-on): Drop getpagesize dependency.
29826
29827 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29828
29829         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29830         Reported by Ludovic Courtès.
29831         * build-aux/pmccabe2html: Improve example usage.
29832         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29833
29834 2009-11-06  Jim Meyering  <meyering@redhat.com>
29835
29836         do-release-commit-and-tag: New module.
29837         Automate the release-commit and tag process.
29838         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29839         * modules/do-release-commit-and-tag: New file.
29840         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29841
29842 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29843
29844         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29845         because test-select.c uses inet_pton.
29846
29847 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29848
29849         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29850         GETADDRINFO_LIB.  Bump serial number.
29851         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29852         Suggested by Eric Blake <ebb9@byu.net>.
29853
29854 2009-11-05  Eric Blake  <ebb9@byu.net>
29855
29856         strtod: detect darwin bug
29857         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29858         Reported by Leo Davis.
29859
29860         freopen-safer: new module
29861         * modules/freopen-safer: New module.
29862         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29863         * lib/freopen-safer.c (freopen_safer): New file.
29864         * lib/stdio-safer.h (freopen_safer): New declaration.
29865         * lib/stdio--.h (freopen): New override.
29866         * MODULES.html.sh (File stream based Input/Output): Mention it.
29867         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29868         freopen-safer module.
29869         * doc/posix-functions/stderr.texi (stderr): Likewise.
29870         * doc/posix-functions/stdin.texi (stdin): Likewise.
29871         * doc/posix-functions/stdout.texi (stdout): Likewise.
29872         * modules/freopen-safer-tests: New test.
29873         * tests/test-reopen-safer.c: New file.
29874
29875 2009-11-05  Jim Meyering  <meyering@redhat.com>
29876
29877         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29878         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29879
29880 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29881
29882         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29883
29884 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29885
29886         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29887
29888 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29889
29890         Fix link error.
29891         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29892         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29893
29894 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29895
29896         * tests/test-func.c: Also test value of __func__.
29897
29898 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29899
29900         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29901         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29902
29903 2009-11-05  Bruno Haible  <bruno@clisp.org>
29904
29905         Fix link error.
29906         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29907         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29908         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29909
29910 2009-11-05  Bruno Haible  <bruno@clisp.org>
29911
29912         Tests for module 'inet_pton'.
29913         * modules/inet_pton-tests: New file.
29914         * tests/test-inet_pton.c: New file.
29915
29916 2009-11-05  Bruno Haible  <bruno@clisp.org>
29917
29918         Tests for module 'inet_ntop'.
29919         * modules/inet_ntop-tests: New file.
29920         * tests/test-inet_ntop.c: New file.
29921
29922 2009-11-04  Eric Blake  <ebb9@byu.net>
29923
29924         stdlib-safer: wrap all mkstemp variants
29925         * modules/mkostemp (configure.ac): Set witness.
29926         * modules/mkostemps (configure.ac): Likewise.
29927         * modules/mkstemps (configure.ac): Likewise.
29928         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29929         (mkstemps_safer): Wrap more functions.
29930         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29931         wrapping.
29932         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29933         (mkstemps_safer): Implement the wrappers.
29934
29935         mkstemps, mkostemps: new modules
29936         * modules/mkostemps: New module.
29937         * modules/mkstemps: Likewise.
29938         * lib/mkostemps.c (mkostemps): New file.
29939         * lib/mkstemps.c (mkstemps): Likewise.
29940         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29941         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29943         * modules/stdlib (Makefile.am): Substitute them.
29944         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29945         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29946         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29947         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29948         * MODULES.html.sh (File system functions): Mention them.
29949
29950         tempname: resync from glibc
29951         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29952         same values for __GT_FILE as glibc.  Abort even when assertions
29953         are disabled.
29954         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29955         match its value otherwise.  Allow idempotent inclusion.
29956         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29957         * lib/mkostemp.c (mkostemp): Likewise.
29958         * lib/mkstemp.c (mkstemp): Likewise.
29959         * lib/tmpfile.c (tmpfile): Likewise.
29960         * NEWS: Document this.
29961
29962         utimens: fix use of futimens on older Linux
29963         * lib/utimens.c (fdutimens): Use updated, rather than original,
29964         timespec to avoid bug in older Linux kernel.
29965         Reported by Simon Josefsson.
29966
29967 2009-11-04  Bruno Haible  <bruno@clisp.org>
29968
29969         Make num_processors more flexible and consistent.
29970         * lib/nproc.h (enum nproc_query): New type.
29971         (num_processors): Add a 'query' argument.
29972         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29973         (num_processors): Add a 'query' argument. Test the value of the
29974         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29975         mingw, count the number of CPUs available for the current process.
29976         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29977         Check for sched_getaffinity and sched_getaffinity_np.
29978         * modules/nproc (Depends-on): Add c-ctype, extensions.
29979         * NEWS: Mention the change.
29980
29981 2009-11-03  Bruno Haible  <bruno@clisp.org>
29982
29983         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29984
29985 2009-11-03  Jim Meyering  <meyering@redhat.com>
29986
29987         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29988         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29989         if it is defined.
29990
29991 2009-11-02  Eric Blake  <ebb9@byu.net>
29992
29993         mktime, timegm: share common declaration
29994         * lib/mktime-internal.h: New file.
29995         * lib/mktime.c: Use it rather than open-coding a declaration.
29996         * lib/timegm.c: Likewise.
29997         * modules/mktime (Files): Ship it.
29998         * modules/timegm (Files): Likewise.
29999         Suggested by Bruno Haible.
30000
30001         test-update-copyright: update test to match script changes
30002         * tests/test-update-copyright.sh: Avoid hard-coding perl
30003         location.  Don't update *.bak created by earlier runs.
30004
30005 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30006             Simon Josefsson  <simon@josefsson.org>
30007             Bruno Haible  <bruno@clisp.org>
30008
30009         Fix link error on Solaris 8.
30010         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30011         also in libnsl. Define also INET_PTON_LIB.
30012         * modules/inet_pton (Link): New section.
30013
30014 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30015             Bruno Haible  <bruno@clisp.org>
30016
30017         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30018         * modules/inet_ntop (Link): New section.
30019         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30020
30021 2009-11-02  Eric Blake  <ebb9@byu.net>
30022
30023         maint: avoid compiler warnings in m4 macros
30024         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30025         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30026
30027 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30028
30029         * m4/pmccabe2html.m4: Remove file.
30030         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30031         function.  Change maintainer.
30032         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30033         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30034         Courtès).
30035
30036 2009-10-31  Eric Blake  <ebb9@byu.net>
30037
30038         fseeko: fix m4 regression
30039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30040         regression from 2009-10-27.
30041         Reported by Ralf Wildenhues.
30042
30043 2009-10-31  Jim Meyering  <meyering@redhat.com>
30044
30045         inttostr: aesthetics and improved (compile-time) safety
30046         Define inttype_is_signed rather than inttype_is_unsigned,
30047         since the sole use is via "#if inttype_is_signed".
30048         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30049         inttype_is_unsigned.
30050         * lib/offtostr.c (inttype_is_signed): Likewise.
30051         * lib/uinttostr.c (inttype_is_signed): Likewise.
30052         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30053         * lib/inttostr.c (inttostr): Use verify to cross-check the
30054         inttype_is_signed value and the signedness of the actual type.
30055         * modules/inttostr (Depends-on): Add verify.
30056
30057 2009-10-30  Eric Blake  <ebb9@byu.net>
30058
30059         build: avoid compiler warnings
30060         * lib/fchmodat.c (lchmod): Mark unused variables.
30061         * lib/getopt.c (_getopt_initialize): Likewise.
30062         * lib/mktime.c (__mktime_internal): Provide prototype.
30063         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30064         older gcc that do not understand #pragma GCC diagnostic.
30065         * lib/uinttostr.c (inttype_is_unsigned): Define.
30066         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30067
30068 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30069
30070         stat: fix compilation on AIX
30071         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30072         only see struct stat64.
30073
30074 2009-10-30  Eric Blake  <ebb9@byu.net>
30075
30076         exclude: make more robust
30077         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30078         rather than masking a coding bug.
30079         Suggested by Bruno Haible.
30080
30081 2009-10-30  Jim Meyering  <meyering@redhat.com>
30082
30083         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30084         Rather than putting #!/usr/bin/perl on the first line,
30085         start with a variant of what's recommended by "man perlrun" that
30086         invokes the first "perl" program from your shell's search path.
30087         * build-aux/gitlog-to-changelog: Replace #!... as above.
30088         Add a "Local Variables" perl mode setting.
30089         Prompted by a patch from Ludovic Courtès.
30090         Improved by Eric Blake.
30091         * build-aux/useless-if-before-free: Likewise.
30092         * build-aux/announce-gen: Likewise.
30093         * build-aux/update-copyright: Likewise.
30094
30095 2009-10-29  Eric Blake  <ebb9@byu.net>
30096
30097         filenamecat-lgpl: adjust clients
30098         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30099         filenamecat.
30100         * modules/renameat (Depends-on): Likewise.
30101
30102         filenamecat: split into filenamecat-lgpl
30103         * modules/filenamecat-lgpl: New module.
30104         * modules/filenamecat (Files): Move library-safe files into
30105         filenamecat-lgpl.
30106         (Depends-on): Add filenamecat-lgpl.
30107         (configure.ac): Declare witness.
30108         * lib/filenamecat.h (file_name_concat): Only declare when using
30109         GPL module.
30110         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30111         Move...
30112         * lib/filenamecat-lgpl.c: ...into new file.
30113         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30114         (gl_FILE_NAME_CONCAT): Use it.
30115         * MODULES.html.sh (File system functions): Mention new module.
30116
30117         argp: avoid memory leak
30118         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30119         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30120         base_name, since the latter malloc()s and can call exit().
30121         Leak introduced 2006-07-03.
30122
30123         dirname-lgpl: adjust clients that don't need full dirname
30124         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30125         * modules/filenamecat (Depends-on): Likewise.
30126         * modules/linkat (Depends-on): Likewise.
30127         * modules/mkancesdirs (Depends-on): Likewise.
30128         * modules/mkdir (Depends-on): Likewise.
30129         * modules/openat (Depends-on): Likewise.
30130         * modules/savewd (Depends-on): Likewise.
30131         * modules/rename (Depends-on): Likewise.
30132         (License): Relax license.
30133         * modules/mkdir-tests (Depends-on): Drop progname.
30134         (Makefile.am): Delete unneeded LDADD.
30135         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30136
30137         dirname: split into dirname-lgpl
30138         * modules/dirname-lgpl: New module.
30139         * modules/dirname (Files): Move library-safe files into
30140         dirname-lgpl.
30141         (Depends-on): Add dirname-lgpl.
30142         (configure.ac): Declare witness.
30143         * modules/double-slash-root (License): Relax license.
30144         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30145         module.
30146         * lib/dirname.c (dir_len, mdir_name): Move...
30147         * lib/dirname-lgpl.c: ...into new file.
30148         * lib/basename.c (last_component, base_len): Move...
30149         * lib/basename-lgpl.c: ...into new file.
30150         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30151         (gl_DIRNAME): Use it.
30152         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30153         Mention new module.
30154         * modules/dirname-tests (Depends-on): Add progname.
30155         * tests/test-dirname.c (program_name): Delete.
30156
30157         mkdir: make safe for libraries
30158         * modules/mkdir (Depends-on): Drop xalloc.
30159         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30160         exit.
30161
30162         tests: avoid some compiler warnings
30163         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30164         literals.
30165         * tests/test-memchr.c (main): Avoid type mismatch.
30166         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30167         * tests/test-base64.c (main): Likewise.
30168         * tests/test-getdelim.c (main): Likewise.
30169         * tests/test-gethostname.c (main): Likewise.
30170         * tests/test-getline.c (main): Likewise.
30171         * tests/test-netinet_in.c (main): Likewise.
30172         * tests/test-select.c (open_server_socket, main): Likewise.
30173         * tests/test-select-stdin.c (main): Likewise.
30174         * tests/test-sockets.c (main): Likewise.
30175         * tests/test-strsignal.c (main): Likewise.
30176         * tests/test-sys_select.c (main): Likewise.
30177         * tests/test-sys_socket.c (main): Likewise.
30178         * tests/test-u64.c (main): Likewise.
30179         * tests/test-xfprintf-posix.c (main): Likewise.
30180         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30181
30182         sockets: avoid compiler warning
30183         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30184
30185         maint: detect usage(1) and other suspicious exits
30186         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30187
30188 2009-10-29  Jim Meyering  <meyering@redhat.com>
30189
30190         timespec: long-to-int truncation could make timespec_cmp malfunction
30191         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30192         a multiple of 2^32 nanoseconds as no difference.
30193
30194 2009-10-28  Jim Meyering  <meyering@redhat.com>
30195
30196         fprintftime: wrap macro code argument in "do {...} while(0)"
30197         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30198         cpy macro must be a statement that can be followed by a semicolon.
30199         Now that the else clause contains a comment and is hence longer
30200         than one line, I require curly braces.  That in turn requires
30201         that we wrap this code block in the standard do...while(0).
30202
30203         fprintftime: remove stray semicolon from previous change
30204         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30205
30206         fprintftime: avoid a warning about ignored fwrite return value
30207         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30208         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30209         that is unsafe.
30210         * modules/fprintftime (Depends-on): Add ignore-value.
30211
30212         exclude: avoid an unwarranted warning
30213         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30214
30215 2009-10-27  Eric Blake  <ebb9@byu.net>
30216
30217         fseek: avoid compilation failure when fflush is replaced
30218         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30219         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30220         module is in use.
30221         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30222         module is not in use; since REPLACE_FSEEK worked otherwise.
30223         (GNULIB_FTELLO): Likewise for ftell.
30224         Reported by Ian Beckwith and others.
30225
30226 2009-10-27  Bruno Haible  <bruno@clisp.org>
30227
30228         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30229         Reported by Jim Meyering.
30230
30231 2009-10-27  Jim Meyering  <jim@meyering.net>
30232             Bruno Haible  <bruno@clisp.org>
30233
30234         Avoid warning despite dropping the return value of fwrite.
30235         * lib/unicodeio.c: Include ignore-value.h.
30236         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30237         * modules/unicodeio (Depends-on): Add ignore-value.
30238
30239 2009-10-26  Eric Blake  <ebb9@byu.net>
30240
30241         areadlinkat: fix fallback path
30242         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30243         pointer and zero.
30244
30245 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30246
30247         Use a better IO block size for modern systems
30248         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30249         * lib/md2.c: Likewise.
30250         * lib/md4.c: Likewise.
30251         * lib/md5.c: Likewise.
30252         * lib/sha1.c: Likewise.
30253         * lib/sha256.c: Likewise.
30254         * lib/sha512.c: Likewise.
30255
30256 2009-10-22  Eric Blake  <ebb9@byu.net>
30257
30258         tests: avoid several compiler warnings
30259         * tests/test-getcwd.c (main): Avoid buffer underflow.
30260         * tests/test-getdate.c (main): String literals are not safe with
30261         putenv, so use setenv.  Declare unused argument.
30262         * modules/getdate-tests (Depends-on): Add setenv.
30263         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30264         problems with string literals in char *.
30265         * tests/test-hash.c (main): Avoid shadowing declaration.
30266         (insert_new): Treat string literals as char const *.
30267         * tests/test-getopt.h (test_getopt): Likewise.
30268         (getopt_loop): Alter types to minimize casting elsewhere.
30269         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30270         (test_getopt_long_posix): Likewise.
30271         (do_getopt_long): Add wrapper to minimize casting.
30272         * tests/test-atexit.c (clear_temp_file): Use void.
30273         * tests/test-areadlink-with-size.c (main): Declare unused
30274         arguments.
30275         * tests/test-areadlink.c (main): Likewise.
30276         * tests/test-areadlinkat-with-size.c (main): Likewise.
30277         * tests/test-areadlinkat.c (main): Likewise.
30278         * tests/test-canonicalize-lgpl.c (main): Likewise.
30279         * tests/test-canonicalize.c (main): Likewise.
30280         * tests/test-dirent-safer.c (main): Likewise.
30281         * tests/test-dirname.c (main): Likewise.
30282         * tests/test-dup2.c (main): Likewise.
30283         * tests/test-fchdir.c (main): Likewise.
30284         * tests/test-fcntl-h.c (main): Likewise.
30285         * tests/test-fcntl-safer.c (main): Likewise.
30286         * tests/test-fdopendir.c (main): Likewise.
30287         * tests/test-fdutimensat.c (main): Likewise.
30288         * tests/test-fflush.c (main): Likewise.
30289         * tests/test-filenamecat.c (main): Likewise.
30290         * tests/test-filevercmp.c (main): Likewise.
30291         * tests/test-fopen-safer.c (main): Likewise.
30292         * tests/test-fopen.c (main): Likewise.
30293         * tests/test-fpending.c (main): Likewise.
30294         * tests/test-fpurge.c (main): Likewise.
30295         * tests/test-freading.c (main): Likewise.
30296         * tests/test-fstatat.c (main): Likewise.
30297         * tests/test-fsync.c (main): Likewise.
30298         * tests/test-futimens.c (main): Likewise.
30299         * tests/test-getndelim2.c (main): Likewise.
30300         * tests/test-gettimeofday.c (main): Likewise.
30301         * tests/test-getopt.c (main): Likewise.
30302         * tests/test-i-ring.c (main): Likewise.
30303         * tests/test-inttypes.c (main): Likewise.
30304         * tests/test-link.c (main): Likewise.
30305         * tests/test-lstat.c (main): Likewise.
30306         * tests/test-math.c (main): Likewise.
30307         * tests/test-md5.c (main): Likewise.
30308         * tests/test-memchr2.c (main): Likewise.
30309         * tests/test-memrchr.c (main): Likewise.
30310         * tests/test-mkdir.c (main): Likewise.
30311         * tests/test-mkdirat.c (main): Likewise.
30312         * tests/test-mkfifoat.c (main): Likewise.
30313         * tests/test-open.c (main): Likewise.
30314         * tests/test-openat-safer.c (main): Likewise.
30315         * tests/test-openat.c (main): Likewise.
30316         * tests/test-quotearg.c (main): Likewise.
30317         * tests/test-rawmemchr.c (main): Likewise.
30318         * tests/test-readlink.c (main): Likewise.
30319         * tests/test-remove.c (main): Likewise.
30320         * tests/test-rename.c (main): Likewise.
30321         * tests/test-renameat.c (main): Likewise.
30322         * tests/test-rmdir.c (main): Likewise.
30323         * tests/test-sha1.c (main): Likewise.
30324         * tests/test-signal.c (main): Likewise.
30325         * tests/test-sigaction.c (main): Likewise.
30326         * tests/test-stat.c (main): Likewise.
30327         * tests/test-stat-time.c (main): Likewise.
30328         * tests/test-stddef.c (main): Likewise.
30329         * tests/test-stdint.c (main): Likewise.
30330         * tests/test-stdio.c (main): Likewise.
30331         * tests/test-stdlib.c (main): Likewise.
30332         * tests/test-strchrnul.c (main): Likewise.
30333         * tests/test-strerror.c (main): Likewise.
30334         * tests/test-string.c (main): Likewise.
30335         * tests/test-strtod.c (main): Likewise.
30336         * tests/test-strverscmp.c (main): Likewise.
30337         * tests/test-symlink.c (main): Likewise.
30338         * tests/test-symlinkat.c (main): Likewise.
30339         * tests/test-sys_stat.c (main): Likewise.
30340         * tests/test-sys_time.c (main): Likewise.
30341         * tests/test-time.c (main): Likewise.
30342         * tests/test-unistd.c (main): Likewise.
30343         * tests/test-unlink.c (main): Likewise.
30344         * tests/test-unlinkat.c (main): Likewise.
30345         * tests/test-utimens.c (main): Likewise.
30346         * tests/test-utimensat.c (main): Likewise.
30347         * tests/test-version-etc.c (main): Likewise.
30348         * tests/test-wchar.c (main): Likewise.
30349         * tests/test-wctype.c (main): Likewise.
30350         * tests/test-xprintf-posix.c (main): Likewise.
30351         * tests/test-posixtm.c (main): Likewise.
30352         (STREQ): Delete unused macro.
30353         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30354         shadowed variables.
30355         * tests/test-memchr.c (main): Likewise.
30356
30357 2009-10-21  Eric Blake  <ebb9@byu.net>
30358
30359         areadlinkat: avoid failure on older glibc
30360         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30361         rather than mis-comparing 0 against FUNC_RESULT of char*.
30362
30363 2009-10-21  Bruno Haible  <bruno@clisp.org>
30364
30365         * modules/stpncpy (License): Relicense under LGPLv2+.
30366         Reported by David Lutterkort <lutter@redhat.com>.
30367
30368 2009-10-20  Eric Blake  <ebb9@byu.net>
30369
30370         utimensat: work around Solaris 9 bug
30371         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30372         has trailing slash bugs.
30373         * tests/test-lutimens.h (test_lutimens): Enhance test.
30374         * tests/test-utimens.h (test_utimens): Likewise.
30375         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30376         * doc/posix-functions/utimes.texi (utimes): Likewise.
30377         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30378         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30379         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30380         * doc/posix-functions/futimens.texi (futimens): Likewise.
30381
30382         fdutimensat: new module
30383         * modules/fdutimensat: New file.
30384         * lib/fdutimensat.c (fdutimensat): Likewise.
30385         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30386         * MODULES.html.sh (File system functions): Mention module.
30387         * modules/fdutimensat-tests: New test.
30388         * tests/test-fdutimensat.c: Likewise.
30389
30390         doc: regenerate INSTALL
30391         * doc/INSTALL: Reflect recent autoconf update.
30392         * doc/INSTALL.ISO: Likewise.
30393         * doc/INSTALL.UTF-8: Likewise.
30394
30395 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30396
30397         acl: warn if ACL support is not detected
30398         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30399
30400 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30401
30402         * lib/nproc.h: Add extern "C" block for C++.
30403
30404 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30405             Bruno Haible  <bruno@clisp.org>
30406
30407         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30408         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30409         * doc/posix-functions/isalpha.texi: Likewise.
30410         * doc/posix-functions/isblank.texi: Likewise.
30411         * doc/posix-functions/iscntrl.texi: Likewise.
30412         * doc/posix-functions/isdigit.texi: Likewise.
30413         * doc/posix-functions/isgraph.texi: Likewise.
30414         * doc/posix-functions/islower.texi: Likewise.
30415         * doc/posix-functions/isprint.texi: Likewise.
30416         * doc/posix-functions/ispunct.texi: Likewise.
30417         * doc/posix-functions/isspace.texi: Likewise.
30418         * doc/posix-functions/isupper.texi: Likewise.
30419         * doc/posix-functions/isxdigit.texi: Likewise.
30420
30421 2009-10-18  Bruno Haible  <bruno@clisp.org>
30422
30423         Tests for module 'isblank'.
30424         * modules/isblank-tests: New file.
30425         * tests/test-isblank.c: New file.
30426
30427         New module 'isblank'.
30428         * lib/isblank.c: New file.
30429         * m4/isblank.m4: New file.
30430         * modules/isblank: New file.
30431         * doc/posix-functions/isblank.texi: Mention the new module.
30432
30433 2009-10-18  Bruno Haible  <bruno@clisp.org>
30434
30435         New module 'ctype'.
30436         * lib/ctype.in.h: New file.
30437         * m4/ctype.m4: New file.
30438         * modules/ctype: New file.
30439         * doc/posix-headers/ctype.texi: Mention the new module.
30440
30441 2009-10-18  Jim Meyering  <meyering@redhat.com>
30442
30443         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30444         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30445         right after its initialization, rather than farther down.
30446         Keeping these in close proximity makes it easier to ensure
30447         that each such variable is initialized.  E.g.,
30448
30449             LIB_CLOCK_GETTIME=
30450             AC_SUBST([LIB_CLOCK_GETTIME])
30451
30452         This change also increments these serial numbers.
30453         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30454         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30456
30457 2009-10-18  Bruno Haible  <bruno@clisp.org>
30458
30459         Don't let environment variables perturb build.
30460         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30461         (gl_PREREQ_GETHRXTIME): ... not here.
30462
30463 2009-10-18  Bruno Haible  <bruno@clisp.org>
30464
30465         Avoid symlink attack in localcharset module.
30466         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30467         (O_NOFOLLOW): Define fallback.
30468         (get_charset_aliases): Don't open the file if it is a symbolic link.
30469         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30470         gl_FCNTL_H.
30471         (gl_FCNTL_H): Require it.
30472         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30473         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30474         Reported by Fergal Glynn <fglynn@veracode.com>.
30475
30476 2009-10-18  Bruno Haible  <bruno@clisp.org>
30477
30478         Implement nproc for mingw.
30479         * lib/nproc.c: Include <windows.h>
30480         (num_processors): On native Windows platforms, try GetSystemInfo.
30481
30482 2009-10-18  Bruno Haible  <bruno@clisp.org>
30483
30484         Implement nproc for IRIX.
30485         * lib/nproc.c: Include <sys/sysmp.h>.
30486         (num_processors): On IRIX systems, try sysmp.
30487         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30488
30489 2009-10-18  Bruno Haible  <bruno@clisp.org>
30490
30491         Implement nproc for HP-UX.
30492         * lib/nproc.c: Include <sys/pstat.h>
30493         (num_processors): On HP-UX systems, try pstat_getdynamic.
30494         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30495         pstat_getdynamic.
30496
30497 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30498             Bruno Haible  <bruno@clisp.org>
30499
30500         Implement nproc for NetBSD, OpenBSD.
30501         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30502         (ARRAY_SIZE): New macro.
30503         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30504         * m4/nproc.m4: New file.
30505         * modules/nproc (Files): Add m4/nproc.m4.
30506         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30507         (Makefile.am): Instead, augment lib_SOURCES.
30508
30509 2009-10-18  Bruno Haible  <bruno@clisp.org>
30510
30511         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30512         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30513         sys/param.h.
30514
30515 2009-10-16  Eric Blake  <ebb9@byu.net>
30516
30517         utimensat: new module
30518         * modules/utimensat: New file.
30519         * lib/utimensat.c (utimensat): Likewise.
30520         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30521         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30522         so we can work around Linux bugs.
30523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30524         * modules/sys_stat (Makefile.am): Substitute them.
30525         * lib/sys_stat.in.h (utimensat): Declare it.
30526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30527         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30528         * modules/utimensat-tests: New test.
30529         * tests/test-utimensat.c: Likewise.
30530
30531         utimens: let lutimens work on non-symlinks
30532         * lib/utimens.c (lutimens): Fall back to utimens rather than
30533         failing with ENOSYS, when file is not a symlink.
30534         (utimens): Reduce redirection.
30535         * tests/test-lutimens.h (test_lutimens): Update test to cover
30536         non-symlinks.
30537         * tests/test-utimens.h (test_utimens): Update test to cover
30538         symlinks.
30539         * tests/test-utimens.c (main): Update caller.
30540
30541         utimens: cache whether utimensat syscall works
30542         * lib/utimens.c (utimensat_works_really): New cache variable.
30543         (fdutimens, lutimens): Use it to avoid failing syscall.
30544
30545         test-stat-time, test-utimens: improve portability
30546         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30547         ext4 on alpha, and for cygwin.
30548         * tests/test-utimens-common.h: New file.
30549         (nap): Factor delays into single function.
30550         * tests/test-lutimens.h (test_lutimens): Use new header.
30551         * tests/test-futimens.h (test_futimens): Likewise.
30552         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30553         timestamps to occur from same machine, as was done previously for
30554         test_utimens.
30555         * modules/utimens-tests (Files): Ship new file.
30556         * modules/futimens-tests (Files): Likewise.
30557         Reported in part by Jim Meyering.
30558
30559         sys_stat: sort replacement declarations
30560         * lib/sys_stat.in.h: Sort declarations.
30561         * lib/futimens.c (futimens): Fix typo.
30562
30563 2009-10-15  Jim Meyering  <meyering@redhat.com>
30564
30565         don't let environment settings perturb build
30566         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30567         could cause a configure-time and/or build-time malfunction.
30568         Typically, a configure-time function-in-library test is performed
30569         via code like this:
30570
30571           LIB_VAR=
30572           AC_SUBST([LIB_VAR])
30573           prefix_saved_LIBS=$LIBS
30574             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30575                        [test "$ac_cv_search_FUNC" = "none required" ||
30576                         LIB_VAR=$ac_cv_search_FUNC])
30577           LIBS=$prefix_saved_LIBS
30578
30579         However, in each of the files affected by this change, the LIB_VAR=
30580         initialization was omitted.  Thus, when set in the environment, its
30581         value would propagate into generated Makefiles when FUNC is not found
30582         in LIB_NAME.
30583         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30584         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30586
30587 2009-10-14  Eric Blake  <ebb9@byu.net>
30588
30589         fchdir: avoid infinite recursion in mingw
30590         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30591         recursing.
30592
30593         test-stat-time: port to mingw
30594         * tests/test-stat-time.c (force_unlink): Return a value.
30595         (test_ctime) [W32]: Fix compilation error.
30596         (nap): Don't call usleep with too large an argument.  Use
30597         force_unlink.
30598         * doc/pastposix-functions/usleep.texi (usleep): Document the
30599         portability issue.
30600
30601 2009-10-13  Jim Meyering  <meyering@redhat.com>
30602
30603         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30604         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30605         * modules/pipe-filter-ii: Likewise.
30606         * modules/sys_socket-tests: Likewise.
30607         * modules/tsearch-tests: Likewise.
30608         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30609         (check): Depend on it.
30610
30611 2009-10-12  Eric Blake  <ebb9@byu.net>
30612
30613         utimens-tests: port to NFS file systems
30614         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30615         comparisons to avoid spurious failures from timestamp drift
30616         between NFS machines.
30617
30618 2009-10-12  Eric Blake  <ebb9@byu.net>
30619
30620         stat-time-tests: minor cleanups
30621         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30622         * tests/test-stat-time.c (nap): Separate assignment from call.
30623         Suggested by Paolo Bonzini and Bruno Haible.
30624
30625         sys_stat: guarantee struct timespec
30626         * lib/sys_stat.in.h (includes): Always include <time.h>
30627         * modules/sys_stat (Depends-on): Add time.
30628         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30629         mode_t permission values.
30630         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30631         get at subsecond timestamps.
30632
30633 2009-10-10  Eric Blake  <ebb9@byu.net>
30634
30635         futimens: new module
30636         * modules/futimens: New file.
30637         * lib/futimens.c (futimens): Likewise.
30638         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30639         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30640         we can work around Linux bugs.
30641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30642         * modules/sys_stat (Makefile.am): Substitute them.
30643         * lib/sys_stat.in.h (futimens): Declare it.
30644         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30645         * doc/posix-functions/futimens.texi (futimens): Likewise.
30646         * modules/futimens-tests: New test.
30647         * tests/test-futimens.c: Likewise.
30648
30649         utimens: introduce fdutimens
30650         * lib/utimens.h (fdutimens): New prototype.
30651         * lib/utimens.c (gl_futimens): Move guts...
30652         (fdutimens): ...to new interface.
30653         * tests/test-utimens.c (do_fdutimens): Use it.
30654
30655         utimens: add UTIME_NOW and UTIME_OMIT support
30656         * lib/utimens.c (validate_timespec, update_timespec): New helper
30657         functions.
30658         (gl_futimens, lutimens): Use them.
30659         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30660         stdbool, sys_stat.
30661         (Link): Mention resulting library dependency.
30662         * modules/utimecmp (Link): Likewise.
30663         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30664         (Makefile.am): Pick up library dependency.
30665         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30666         definition.
30667         * tests/test-sys_stat.c: Test the definitions.
30668         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30669         * NEWS: Document library dependency.
30670
30671         utimecmp: support symlink timestamps
30672         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30673         hashing when possible.  Use pathconf when available.
30674         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30675         * modules/utimecmp (Depends-on): Add lstat.
30676
30677         utimens: add lutimens interface
30678         * lib/utimens.c (lutimens): New function.
30679         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30680         * lib/utimens.h (lutimens): Declare new interface.
30681         * tests/test-utimens.c (main): Enhance test.
30682         * tests/test-lutimens.h (test_lutimens): New file.
30683         * modules/utimens-tests (Files): Distribute it.
30684         (Depends-on): Add symlink.
30685         (configure.ac): Check for usleep.
30686
30687         utimens: validate futimens usage
30688         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30689         fewer syscalls on failure later on.  Avoid compiler warning on
30690         mingw.
30691         * modules/utimens (Depends-on): Add dup2.
30692
30693         utimens: add test
30694         * modules/utimens-tests: New test.
30695         * tests/test-utimens.h: New file.
30696         * tests/test-futimens.h: Likewise.
30697         * tests/test-utimens.c: Likewise.
30698
30699         doc: mention timestamp portability issues
30700         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30701         instead.
30702         * doc/posix-functions/utime.texi (utime): Likewise.
30703         * doc/posix-functions/utimes.texi (utimes): Likewise.
30704         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30705         instead.
30706         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30707         module.
30708         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30709         Mention weakness with symlink timestamps.
30710         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30711         to utimensat/futimens instead.
30712         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30713
30714         test-dup2: enhance test
30715         * tests/test-dup2.c (main): Also check AT_FDCWD.
30716
30717         test-stat-time: avoid more spurious failures
30718         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30719         xfs; and avoid race if the two timestamps cross quantization edge.
30720
30721         relocatable: prefer 'file system' over 'filesystem'
30722         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30723         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30724         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30725         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30726         * lib/relocatable.c (compute_curr_prefix): Likewise.
30727
30728 2009-10-10  Jim Meyering  <meyering@redhat.com>
30729
30730         stat-time-tests: check for the usleep function
30731         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30732
30733 2009-10-10  Bruno Haible  <bruno@clisp.org>
30734
30735         * modules/xnanosleep: Put the Link section after the Include section.
30736
30737 2009-10-09  Eric Blake  <ebb9@byu.net>
30738
30739         dup2: work around FreeBSD 6.1 bug
30740         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30741         * doc/posix-functions/dup2.texi (dup2): Document it.
30742         Reported by Nelson H. F. Beebe and Jim Meyering.
30743
30744         test-stat-time: port to buggy NFS clients
30745         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30746         (test_ctime): Also skip test if mtime and ctime are skewed.
30747
30748         maint: prefer 'file system' over 'filesystem'
30749         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30750         * doc/posix-functions/lstat.texi (lstat): Likewise.
30751         * lib/file-has-acl.c (file_has_acl): Likewise.
30752         * lib/fwriteerror.c [TEST]: Likewise.
30753         * tests/test-areadlink.h (test_areadlink): Likewise.
30754         * tests/test-areadlinkat-with-size.c (main): Likewise.
30755         * tests/test-areadlinkat.c (main): Likewise.
30756         * tests/test-canonicalize-lgpl.c (main): Likewise.
30757         * tests/test-canonicalize.c (main): Likewise.
30758         * tests/test-fstatat.c (main): Likewise.
30759         * tests/test-linkat.c (main): Likewise.
30760         * tests/test-lstat.h (test_lstat_func): Likewise.
30761         * tests/test-mkdir.h (test_mkdir): Likewise.
30762         * tests/test-readlink.h (test_readlink): Likewise.
30763         * tests/test-remove.c (main): Likewise.
30764         * tests/test-rename.h (test_rename): Likewise.
30765         * tests/test-renameat.c (main): Likewise.
30766         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30767         * tests/test-symlink.h (test_symlink): Likewise.
30768         * tests/test-symlinkat.c (main): Likewise.
30769         * tests/test-unlink.h (test_unlink_func): Likewise.
30770         * tests/test-unlinkat.c (main): Likewise.
30771
30772         maint: make realtime library usage explicit
30773         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30774         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30775         * modules/settime (Link): Likewise.
30776         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30777
30778         test-stat-time: speed up execution
30779         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30780         warning on mingw.
30781         (nap): New helper function.
30782         (prepare_test): Use it to reduce sleep time.
30783         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30784         execution.
30785         * modules/stat-time-tests (configure.ac): Check for usleep.
30786
30787 2009-10-09  Jim Meyering  <meyering@redhat.com>
30788
30789         selinux-h: always use getfilecon wrappers
30790         * lib/getfilecon.c: New file.
30791         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30792         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30793         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30794         (fgetfilecon): Provide a stub.
30795         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30796         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30797         file unconditionally.
30798         When <selinux/selinux.h> is found, arrange to use wrappers.
30799         * modules/selinux-h (Files): Add getfilecon.c.
30800         (Makefile.am): Substitute include-next-related bits
30801         into the now-always-generated selinux/selinux.h file.
30802         * doc/glibc-functions/lgetfilecon.texi: New file.
30803         * doc/glibc-functions/fgetfilecon.texi: New file.
30804         * doc/glibc-functions/getfilecon.texi: New file.
30805         * doc/glibc-functions/getfilecon-desc.texi: New file.
30806         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30807         which to pull in the new files.
30808         * MODULES.html.sh (Misc): Add selinux-h.
30809
30810 2009-10-08  Jim Meyering  <meyering@redhat.com>
30811
30812         unistd: fix comment typo
30813         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30814
30815 2009-10-08  Eric Blake  <ebb9@byu.net>
30816
30817         areadlink: use SIZE_MAX consistently
30818         * modules/areadlink (Depends-on): Add stdint.
30819         * modules/areadlink-with-size (Depends-on): Likewise.
30820         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30821         gives NULL; drop sys/types, since unistd gives size_t; and add
30822         stdint for SIZE_MAX.
30823         (SIZE_MAX): Rely on headers.
30824         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30825         and add stdint.
30826         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30827         (SIZE_MAX): Likewise.
30828         (INITIAL_BUF_SIZE): Turn into enum.
30829         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30830
30831 2009-10-08  Jim Meyering  <meyering@redhat.com>
30832
30833         areadlinkat: avoid compilation failure
30834         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30835         Fix typo in comment.
30836
30837 2009-10-07  Eric Blake  <ebb9@byu.net>
30838
30839         areadlinkat-with-size: new module
30840         * modules/areadlinkat-with-size: New module.
30841         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30842         * lib/areadlink.h (areadlinkat): Declare it.
30843         * MODULES.html.sh (File system functions): Mention it.
30844         * modules/areadlinkat-with-size-tests: New test.
30845         * tests/test-areadlinkat-with-size.c: New file.
30846
30847         xreadlinkat: new module
30848         * modules/xreadlinkat: New module.
30849         * lib/xreadlinkat.c (xreadlinkat): New file.
30850         * lib/xreadlink.h (xreadlinkat): Declare it.
30851         * MODULES.html.sh (File system functions): Mention it.
30852
30853         areadlinkat: new module
30854         * lib/at-func.c (FUNC_FAIL): New define.
30855         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30856         * modules/areadlinkat: New module.
30857         * lib/linkat.c (areadlinkat): Move...
30858         * lib/areadlinkat.c (areadlinkat): ...to new file.
30859         * lib/areadlink.h (areadlinkat): Declare it.
30860         * modules/linkat (Depends-on): Add areadlinkat.
30861         * MODULES.html.sh (File system functions): Mention it.
30862         * modules/areadlinkat-tests: New test.
30863         * tests/test-areadlinkat.c: New file.
30864
30865         areadlink, areadlink-with-size: add tests
30866         * modules/areadlink-tests: New test.
30867         * modules/areadlink-with-size-tests: Likewise.
30868         * tests/test-areadlink.h: New file.
30869         * tests/test-areadlink.c: Likewise.
30870         * tests/test-areadlink-with-size.c: Likewise.
30871
30872         maint: minor cleanups
30873         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30874         _UNUSED_PARAMETER_ instead.
30875         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30876         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30877         * modules/linkat-tests (Files): Distribute test-link.h.
30878
30879         openat, utimens: whitespace cleanup
30880         * lib/openat.c: Prefer space throughout, rather than mix of 8
30881         spaces vs. tabs.
30882         * lib/at-func.c: Likewise.
30883         * lib/utimens.c: Likewise.
30884
30885         openat: avoid using wrong fd
30886         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30887         working directory chooses same fd.
30888         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30889
30890         mkdir, mkdirat: fix cygwin 1.5.x bug
30891         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30892         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30893         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30894         bug.
30895         (gl_PREREQ_MKDIR): Delete unused macro.
30896         * modules/mkdir (Files): Track file rename.
30897         (configure.ac): Update macro name.
30898         * modules/openat (Depends-on): Add mkdir.
30899         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30900
30901         mkdir, mkdirat: add tests
30902         * modules/mkdir-tests: New test.
30903         * tests/test-mkdir.h: New file.
30904         * tests/test-mkdir.c: Likewise.
30905         * tests/test-mkdirat.c: Likewise.
30906         * modules/openat-tests (Files): Add new files.
30907         (Makefile.am): Run new test.
30908
30909 2009-10-06  Eric Blake  <ebb9@byu.net>
30910
30911         doc: tweak *at function documentation
30912         * doc/posix-functions/faccessat.texi (faccessat): Mention
30913         known issue with replacement.
30914         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30915         * doc/posix-functions/linkat.texi (linkat): Likewise.
30916         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30917         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30918         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30919         * doc/posix-functions/renameat.texi (renameat): Likewise.
30920         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30921
30922         openat: fix GNU/Hurd bug in unlinkat
30923         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30924         broken.
30925         * doc/posix-functions/unlink.texi (unlink): Document this.
30926         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30927
30928         fdopendir: fix GNU/Hurd bug
30929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30930         allowing non-directory fds.
30931         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30932         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30933         * modules/dirent (Makefile.am): Substitute it.
30934         * lib/dirent.in.h (fdopendir): Declare replacement.
30935         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30936         * tests/test-fdopendir.c (main): Test something other than
30937         /dev/null, since on Hurd that behaves like a directory.
30938
30939         test-symlink: port to GNU/Hurd
30940         * tests/test-symlink.h (test_symlink): Relax expected errno.
30941
30942         doc: tweak more cygwin information
30943         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30944         now compatible with glibc.
30945         * doc/posix-functions/getopt.texi (getopt): Likewise.
30946
30947         getopt-gnu: add another test
30948         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30949         guarantee behavior relied on by m4.
30950         * tests/test-getopt.c (main): Use it.
30951         * modules/getopt-posix-tests (Depends-on): Add setenv.
30952         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30953
30954         getopt: fix compilation on darwin
30955         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30956         include.
30957         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30958         Reported by Ludovic Courtès.
30959
30960 2009-10-06  Bruno Haible  <bruno@clisp.org>
30961
30962         * modules/size_max (Description): Discourage its use.
30963         Reported by Simon Josefsson.
30964
30965 2009-10-06  Jim Meyering  <meyering@redhat.com>
30966
30967         linkat: avoid compilation failure
30968         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30969
30970 2009-10-05  Eric Blake  <ebb9@byu.net>
30971
30972         linkat: support Linux 2.6.17
30973         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30974         linkat on Linux, but allow cache variable override.
30975         * lib/linkat.c (rpl_linkat): Define override.
30976         * modules/linkat (Depends-on): Add symlinkat.
30977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30978         * modules/unistd (Makefile.am): Substitute it.
30979         * lib/unistd.in.h (linkat): Declare replacement.
30980         Reported by Pádraig Brady.
30981
30982         quotearg: port test to systems with C.UTF-8 locale
30983         * tests/test-quotearg.c (struct result_strings): Add another
30984         member, differentiating between C.ASCII and C.UTF-8 handling.
30985         (compare_strings): Add parameter.
30986         (main): Adjust all callers.
30987
30988         getopt: avoid clash with FreeBSD _getopt_internal
30989         * lib/getopt.in.h (_getopt_internal): Override the name.
30990         * lib/getopt_int.h (includes): Pick up any overrides.
30991         Reported by Reuben Thomas.
30992
30993         hash: allow C89 compilation
30994         * lib/hash.c (check_tuning): Move declaration before statement.
30995         Reported by Reuben Thomas.
30996
30997 2009-10-05  Karl Berry  <karl@gnu.org>
30998
30999         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31000
31001 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31002             Bruno Haible  <bruno@clisp.org>
31003
31004         * lib/uname.c (uname): Use a table-driven algorithm to compute
31005         Windows NT versions.
31006
31007 2009-10-04  Bruno Haible  <bruno@clisp.org>
31008
31009         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31010         program_invocation_short_name.
31011         * modules/progname (configure.ac): Test for presence of
31012         program_invocation_short_name.
31013         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31014
31015 2009-10-04  Bruno Haible  <bruno@clisp.org>
31016
31017         * lib/progname.c (set_program_name): Fix comment.
31018         Reported by Jim Meyering.
31019
31020 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31021             Bruno Haible  <bruno@clisp.org>
31022
31023         * lib/uname.c: Include <string.h>.
31024         (uname): Do only one call to GetVersionEx in the common case.
31025
31026 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31027             Bruno Haible  <bruno@clisp.org>
31028
31029         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31030         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31031         (uname): Add support for Windows CE and various non-x86 CPU types.
31032
31033 2009-10-03  Bruno Haible  <bruno@clisp.org>
31034
31035         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31036         invocation to tests/configure.ac.
31037         Reported by Ian Beckwith <ianb@erislabs.net>.
31038
31039 2009-10-02  Eric Blake  <ebb9@byu.net>
31040
31041         fchdir: avoid compiler warning
31042         * lib/fchdir.c (canonicalize_file_name)
31043         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31044
31045         test-open: support mingw errno values
31046         * tests/test-open.h (test_open): Relax test.
31047         * tests/test-fopen.h (test_fopen): Likewise.
31048         * tests/test-openat-safer.c (main): Likewise.
31049
31050         open: fix opening directory on mingw
31051         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31052
31053         test-open: on GNU/Hurd, /dev/null is a directory
31054         * tests/test-fopen.h (main): Rename...
31055         (test_fopen): ...to this.  Use a guaranteed non-directory when
31056         confirming open behavior on trailing slash.
31057         * tests/test-openat-safer.c (main): Likewise.
31058         * tests/test-open.h (main): Likewise....
31059         (test_open): ...to this.
31060         * tests/test-fopen.c (main): Adjust caller.
31061         * tests/test-fopen-safer.c (main): Likewise.
31062         * tests/test-open.c (main): Likewise.
31063         * tests/test-fcntl-safer.c (main): Likewise.
31064         Reported by Samuel Thibault.
31065
31066         rename, fchdir: don't ignore chdir failure
31067         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31068         * lib/rename.c (rpl_rename) [W32]: Likewise.
31069         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31070         an empty destination directory if source cannot be renamed,
31071         although there is still possibility for failure.
31072         * doc/posix-functions/rename.texi (rename): Document the race.
31073         Reported by Jim Meyering.
31074
31075         maint: cleanup whitespace in recent commits
31076         * lib/rename.c (rpl_rename): Remove tabs.
31077         * tests/test-link.h (test_link): Likewise.
31078         * lib/fchdir.c (get_name): Likewise.
31079         Reported by Jim Meyering.
31080
31081 2009-10-02  Ben Pfaff  <blp@gnu.org>
31082
31083         relocatable-prog-wrapper: Add missing dependency on
31084         double-slash-root.
31085         * modules/relocatable-prog-wrapper: Add dependency.
31086         Reported by Ian Beckwith <ianb@erislabs.net>.
31087
31088 2009-10-02  Eric Blake  <ebb9@byu.net>
31089
31090         renameat: fix Solaris bugs
31091         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31092         needed fixing.
31093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31094         * modules/stdio (Makefile.am): Substitute it.
31095         * lib/stdio.in.h (renameat): Declare replacement.
31096         * lib/renameat.c (rpl_renameat): Implement fix.
31097
31098         renameat: new module
31099         * modules/renameat: New file.
31100         * lib/renameat.c (renameat): Likewise.
31101         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31103         * modules/stdio (Makefile.am): Substitute them.
31104         * lib/stdio.in.h (renameat): Declare it.
31105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31106         * doc/posix-functions/renameat.texi (renameat): Likewise.
31107         * modules/renameat-tests: New test.
31108         * tests/test-renameat.c: Likewise.
31109
31110         rename: fix mingw bugs
31111         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31112         directory overwrite bugs.
31113
31114         rename: fix another cygwin 1.5 bug
31115         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31116         checks.
31117         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31118         unnecessary cygwin workarounds.  Also work around bug with moving
31119         full directory onto an empty one.
31120         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31121
31122         rename-dest-slash: merge into rename module
31123         * modules/rename-dest-slash (Status): Mark obsolete.
31124         (Depends-on): Add rename.
31125         (Files): Let rename do it all.
31126         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31127         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31128         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31129         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31130         * lib/rename.c (rpl_rename): Update comments.
31131
31132         rename: fix cygwin 1.5.x bugs
31133         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31134         * lib/rename.c (rpl_rename): Work around them.
31135         * modules/rename (Depends-on): Add same-inode.
31136
31137         rename: fix Solaris 10 bug
31138         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31139         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31140         was the only bug.
31141
31142         rename: fix Solaris 9 bug
31143         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31144         on non-directory.  Avoid calling exit.
31145         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31146         strdup.
31147         * modules/rename-tests (Depends-on): Drop lstat.
31148         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31149         (gl_PREREQ_RENAME): Delete unused macro.
31150
31151         rename-dest-slash: fix NetBSD bug
31152         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31153         links.
31154         * modules/rename-dest-slash (Depends-on): Add same-inode.
31155
31156         rename-tests: new test, exposes several platform bugs
31157         * modules/rename-tests: New file.
31158         * tests/test-rename.h: Likewise.
31159         * tests/test-rename.c: Likewise.
31160         * doc/posix-functions/rename.texi (rename): Improve documentation,
31161         including bugs that will eventually be fixed in gnulib.
31162
31163 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31164
31165         * lib/uname.c: Include <stdlib.h>
31166         (uname): Assume version info is available.
31167
31168 2009-10-02  Jim Meyering  <meyering@redhat.com>
31169
31170         gnu-web-doc-update: correct --help output
31171         * build-aux/gnu-web-doc-update: Make --help output relevant.
31172
31173         gnu-web-doc-update: add standard options
31174         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31175
31176         gnu-web-doc-update: New module.
31177         Use this script to automatically update the on-line web documentation
31178         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31179         * modules/gnu-web-doc-update: New file, from coreutils.
31180         * build-aux/gnu-web-doc-update: New script.
31181
31182 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31183
31184         link: LoadLibrary is not needed.
31185         * lib/link.c: Use GetModuleHandle.
31186
31187 2009-10-01  Eric Blake  <ebb9@byu.net>
31188
31189         getopt: bump serial number
31190         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31191         change.
31192
31193         tests: tighten link, rmdir, and remove tests
31194         * tests/test-link.h (includes): No need to use <config.h> here.
31195         Clean up if directory hard link was created, otherwise test for
31196         trailing '.'.
31197         * tests/test-linkat.c (main): Simplify.
31198         * tests/test-remove.c (main): Enhance test for trailing '.'.
31199         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31200
31201 2009-10-01  Jim Meyering  <meyering@redhat.com>
31202
31203         maint.mk: requiring "make major" was annoying, for a "minor" release.
31204         What is intended is "stable", to contrast with alpha and beta,
31205         so require "make stable", not "make major".
31206         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31207         (get_tool_versions): Likewise.
31208         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31209
31210 2009-09-30  Ben Pfaff  <blp@gnu.org>
31211
31212         Fix broken build of replacement for Windows tmpfile().
31213         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31214         flags argument added along with the 'mkostemp' module.
31215
31216 2009-09-28  Bruno Haible  <bruno@clisp.org>
31217
31218         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31219         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31220         to 'remove_elt'.
31221         (gl_list_remove): Update.
31222         * lib/gl_list.c (gl_list_remove): Update.
31223         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31224         to 'remove_elt'.
31225         (gl_oset_remove): Update.
31226         * lib/gl_list.c (gl_oset_remove): Update.
31227         Reported by Eric Blake.
31228
31229 2009-09-28  Eric Blake  <ebb9@byu.net>
31230
31231         doc: mention yet more cygwin 1.7 status
31232         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31233         cygwin.
31234         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31235         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31236
31237         argp: fix test failure
31238         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31239         that are not upper-case.  Pass correct range to tolower.
31240
31241 2009-09-27  Jim Meyering  <meyering@redhat.com>
31242
31243         test-yesno: work around sparc-dash here-document infelicity
31244         Without this change, the literal \177 byte in a here document
31245         would make dash 0.5.5.1-3 access uninitialized memory.
31246         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31247         Instead, use a marker, "@", and filter through tr to create the desired
31248         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31249
31250 2009-09-27  Bruno Haible  <bruno@clisp.org>
31251
31252         Disable untested support for new flavours of ACLs on AIX.
31253         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31254         progress.
31255         * lib/set-mode-acl.c (qset_acl): Likewise.
31256
31257 2008-12-07  Bruno Haible  <bruno@clisp.org>
31258
31259         Add support for new flavours of ACLs on AIX. (Untested.)
31260         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31261         (file_has_acl): Add support for newer AIX.
31262         * lib/set-mode-acl.c (qset_acl): Likewise.
31263         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31264         Rainer Tammer <tammer@tammer.net>.
31265
31266 2009-09-26  Eric Blake  <ebb9@byu.net>
31267
31268         argp: fix compilation of getopt
31269         * lib/getopt.in.h (includes): Use different guard than glibc.
31270         Reported by Sergey Poznyakoff.
31271
31272         doc: mention more cygwin 1.7 status
31273         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31274         bug.
31275         * doc/posix-functions/execl.texi (execl): Likewise.
31276         * doc/posix-functions/execle.texi (execle): Likewise.
31277         * doc/posix-functions/execlp.texi (execlp): Likewise.
31278         * doc/posix-functions/execv.texi (execv): Likewise.
31279         * doc/posix-functions/execve.texi (execve): Likewise.
31280         * doc/posix-functions/execvp.texi (execvp): Likewise.
31281         * doc/glibc-functions/canonicalize_file_name.texi
31282         (canonicalize_file_name): Cygwin 1.7 now provides this.
31283         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31284         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31285         on AT_SYMLINK_NOFOLLOW.
31286
31287 2009-09-24  Eric Blake  <ebb9@byu.net>
31288
31289         test-linkat: make test more robust
31290         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31291
31292         getopt: fix inclusion guards for cygwin
31293         * modules/getopt-posix (Depends-on): Add include-next.
31294         (Makefile.am): Substitute more items in replacement header.
31295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31296         <getopt.h>.
31297         * lib/getopt.in.h (includes): Use split inclusion guard, and
31298         prefer <getopt.h> over include <unistd.h> when one is present.
31299         (option): Also override name of 'struct option'.
31300
31301         same-inode: revert prior change; it is not yet ready
31302         * NEWS: Undo mention of this change.
31303         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31304         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31305         * lib/cycle-check.c (cycle_check): Likewise.
31306         * lib/same.c (same_name): Likewise.
31307         * lib/at-func2.c (at_func2): Likewise.
31308
31309 2009-09-23  Eric Blake  <ebb9@byu.net>
31310
31311         linkat: new module
31312         * modules/linkat: New file.
31313         * lib/at-func2.c (at_func2): Likewise.
31314         * lib/linkat.c (linkat): Likewise.
31315         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31316         * lib/openat-priv.h (at_func2): Add declaration.
31317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31318         * modules/unistd (Makefile.am): Substitute them.
31319         * lib/unistd.in.h (linkat): Declare it.
31320         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31321         * doc/posix-functions/linkat.texi (linkat): Likewise.
31322         * doc/posix-functions/link.texi (link): Tweak wording.
31323         * tests/test-link.c (main): Move guts...
31324         * tests/test-link.h (test_link): ...into new file.
31325         * modules/linkat-tests: New test.
31326         * tests/test-linkat.c: Likewise.
31327         * modules/link-tests (Files): Ship new file.
31328         (Depends-on): Add stdbool.
31329
31330         dirname: add library-safe mdir_name
31331         * lib/dirname.h (mdir_name): New prototype.
31332         * lib/dirname.c (dir_name): Move guts...
31333         (mdir_name): ...to new function that avoids xalloc_die.
31334
31335         fchdir: another mingw fix
31336         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31337         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31338         on mingw (where it has not yet been ported), and make it optional
31339         elsewhere.
31340         (_gl_register_fd): Use it.
31341
31342         same-inode: make SAME_INODE tri-state, to port to mingw
31343         * NEWS: Mention this change.
31344         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31345         st_ino always being 0.
31346         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31347         * lib/cycle-check.c (cycle_check): Likewise.
31348         * lib/same.c (same_name): Likewise.
31349
31350         lstat: avoid mingw compilation error
31351         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31352         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31353         lstat ourselves.
31354         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31355         was adequate.
31356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31357         the checks for lstat.
31358         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31359
31360         link: fix test failure on Solaris 9
31361         * lib/link.c (rpl_link): Don't assume link will catch bogus
31362         trailing slash on source.
31363
31364         test-symlinkat: enhance test
31365         * tests/test-readlink.c (main): Move guts...
31366         * tests/test-readlink.h (test_readlink): ...into new file.
31367         * tests/test-symlink.c (main): Move guts...
31368         * tests/test-symlink.h (test_symlink): ...into new file.
31369         * tests/test-symlinkat.c (main): Use new files for further
31370         coverage.
31371         (do_symlink, do_readlink): New helper functions.
31372         * modules/symlink-tests (Files): Ship new file.
31373         (Depends-on): Add stdbool.
31374         * modules/readlink-tests (Files): Ship new file.
31375         (Depends-on): Add stdbool.
31376         * modules/symlinkat-tests (Files): Use new files.
31377
31378 2009-09-23  Eric Blake  <ebb9@byu.net>
31379
31380         readlink: document portability issue with symlink length
31381         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31382         systems have bogus st_size on symlinks, and mention the
31383         areadlink-with-size module.
31384         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31385         * doc/posix-functions/readlink.texi (readlink): Mention the
31386         areadlink module, and ERANGE failure.
31387         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31388         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31389
31390         readlink: fix Solaris 9 bug with trailing slash
31391         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31392         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31393         * doc/posix-functions/readlink.texi (readlink): Document this.
31394         * modules/readlink-tests: New test.
31395         * tests/test-readlink.c: Likewise.
31396
31397         readlink: fix cygwin 1.5.x bug with return type
31398         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31399         * lib/unistd.in.h (readlink): Use ssize_t.
31400         * lib/readlink.c (readlink): Likewise.
31401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31402         * modules/unistd (Makefile.am): Substitute it.
31403         * lib/unistd.in.h (readlink): Declare replacement.
31404         * doc/posix-functions/readlink.texi (readlink): Document this.
31405
31406         symlink: use throughout gnulib
31407         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31408         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31409         symlink is not used.
31410         * modules/symlinkat (Depends-on): Add symlink.
31411         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31412         * modules/canonicalize-tests (Depends-on): Likewise.
31413         * modules/lstat-tests (Depends-on): Likewise.
31414         * modules/openat-tests (Depends-on): Likewise.
31415         * modules/remove-tests (Depends-on): Likewise.
31416         * modules/rmdir-tests (Depends-on): Likewise.
31417         * modules/unlink-tests (Depends-on): Likewise.
31418         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31419         * tests/test-canonicalize.c (symlink): Likewise.
31420         * tests/test-fstatat.c (symlink): Likewise.
31421         * tests/test-lstat.c (symlink): Likewise.
31422         * tests/test-remove.c (symlink): Likewise.
31423         * tests/test-rmdir.c (symlink): Likewise.
31424         * tests/test-unlink.c (symlink): Likewise.
31425         * tests/test-unlinkat.c (symlink): Likewise.
31426
31427         symlink: new module, for Solaris 9 bug
31428         * modules/symlink: New file.
31429         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31430         * lib/symlink.c: Likewise.
31431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31432         * modules/unistd (Makefile.am): Substitute them.
31433         * lib/unistd.in.h (symlink): Declare replacement.
31434         * MODULES.html.sh (File system functions): Mention it.
31435         * doc/posix-functions/symlink.texi (symlink): Likewise.
31436         * modules/symlink-tests: New test.
31437         * tests/test-symlink.c: Likewise.
31438
31439 2009-09-23  Bruno Haible  <bruno@clisp.org>
31440
31441         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31442         when needed.
31443         Test case: gnulib-tool --import --with-tests atexit inttypes.
31444         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31445
31446 2009-09-23  Bruno Haible  <bruno@clisp.org>
31447
31448         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31449         subcommand, not in a subshell.
31450
31451 2009-09-22  Eric Blake  <ebb9@byu.net>
31452
31453         unistd: sort replacement declarations
31454         * lib/unistd.in.h: Sort declarations.
31455
31456         open, openat: minor optimization
31457         * lib/open.c (open): If open succeeded, len is non-zero.
31458         * lib/openat.c (rpl_openat): Likewise.
31459
31460         link-follow: ensure correct result
31461         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31462         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31463         distinguish between possible failures.
31464
31465 2009-09-21  Eric Blake  <ebb9@byu.net>
31466
31467         fts: avoid compiler warning
31468         * lib/fts.c (dirent_inode_sort_may_be_useful)
31469         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31470
31471 2009-09-19  Bruno Haible  <bruno@clisp.org>
31472
31473         * lib/progreloc.c (canonicalize_file_name): New declaration.
31474
31475 2009-09-19  Eric Blake  <ebb9@byu.net>
31476
31477         link: fix quoting
31478         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31479
31480         openat: fix openat bugs on Solaris 9
31481         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31482         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31483         * modules/openat (Depends-on): Add open.
31484         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31485         * modules/fcntl-h (Makefile.am): Substitute it.
31486         * lib/fcntl.in.h (openat): Declare replacement.
31487         * doc/posix-functions/openat.texi (openat): Document this.
31488
31489         openat: move fstatat and unlinkat into correct files
31490         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31491         compiled.
31492         * lib/openat.c (fstatat, unlinkat): Move...
31493         * lib/fstatat.c (fstatat): ...into correct files.
31494         * lib/unlinkat.c (unlinkat): Likewise.
31495
31496         openat: fix unlinkat bugs on Solaris 9
31497         * lib/unlinkat.c (unlinkat): New file.
31498         * modules/openat (Depends-on): Add unlink.
31499         (Files): Distribute it.
31500         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31501         trailing slash behavior is broken.
31502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31503         * modules/unistd (Makefile.am): Substitute it.
31504         * lib/unistd.in.h (unlinkat): Declare replacement.
31505         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31506
31507         openat: fix fstatat bugs on Solaris 9
31508         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31509         stat.
31510         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31511
31512         test-unlinkat: enhance test, to expose Solaris 9 bug
31513         * tests/test-unlink.c (main): Factor guts...
31514         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31515         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31516         * tests/test-rmdir.c (main): Adjust caller.
31517         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31518         (unlinker): New helper function.
31519         (rmdirat): Enhance check.
31520         * modules/rmdir-tests (Depends-on): Add stdbool.
31521         * modules/unlink-tests (Depends-on): Likewise.
31522         (Files): Add test-unlink.h.
31523         * modules/openat-tests (Files): Likewise.
31524         (Depends-on): Add unlinkdir.
31525
31526         test-fstatat: new test, to expose Solaris 9 bugs
31527         * tests/test-stat.c (main): Factor guts...
31528         * tests/test-stat.h (test_stat_func): ...into new file.
31529         * tests/test-lstat.c (main): Factor guts...
31530         * tests/test-lstat.h (test_lstat_func): ...into new file.
31531         * tests/test-fstatat.c: New file.
31532         * modules/stat-tests (Files): Add test-stat.h.
31533         * modules/lstat-tests (Files): Add test-lstat.h.
31534         (Depends-on): Add stdbool.
31535         * modules/openat-tests (Depends-on): Add pathmax.
31536         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31537         (Makefile.am): Run new test.
31538
31539         remove: new module, for mingw and Solaris 9 bugs
31540         * modules/remove: New file.
31541         * lib/remove.c: Likewise.
31542         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31544         * modules/stdio (Makefile.am): Use them.
31545         * lib/stdio.in.h (remove): Declare replacement.
31546         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31547         * doc/posix-functions/remove.texi (remove): Likewise.
31548         * modules/remove-tests: New test.
31549         * tests/test-remove.c: Likewise.
31550
31551         unlink: new module, for Solaris 9 bug
31552         * modules/unlink: New file.
31553         * lib/unlink.c: Likewise.
31554         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31556         * modules/unistd (Makefile.am): Use them.
31557         * lib/unistd.in.h (stat): Declare replacement.
31558         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31559         * doc/posix-functions/unlink.texi (unlink): Likewise.
31560         * modules/unlink-tests: New test.
31561         * tests/test-unlink.c: Likewise.
31562
31563         lstat: fix Solaris 9 bug
31564         * lib/lstat.c (lstat): Also check for trailing slash on
31565         non-symlink, non-directories.  Use stat module to simplify logic.
31566         * doc/posix-functions/lstat.texi (lstat): Document it.
31567         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31568         (configure.ac): Check for symlink.
31569         * tests/test-lstat.c (main): Add more tests.
31570
31571         stat: add as dependency to other modules
31572         * modules/chown (Depends-on): Add stat.
31573         * modules/euidaccess (Depends-on): Likewise.
31574         * modules/fchdir (Depends-on): Likewise.
31575         * modules/isdir (Depends-on): Likewise.
31576         * modules/link (Depends-on): Likewise.
31577         * modules/lstat (Depends-on): Likewise.
31578         * modules/mkdir-p (Depends-on): Likewise.
31579         * modules/modechange (Depends-on): Likewise.
31580         * modules/open (Depends-on): Likewise.
31581         * modules/readlink (Depends-on): Likewise.
31582         * modules/same (Depends-on): Likewise.
31583
31584         stat: fix Solaris 9 bug
31585         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31586         slash.
31587         * lib/stat.c (rpl_stat): Work around it.
31588         * doc/posix-functions/stat.texi (stat): Update documentation.
31589
31590         stat: new module, for mingw bug
31591         * modules/stat: New file.
31592         * lib/stat.c: Likewise.
31593         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31594         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31595         * modules/sys_stat (Makefile.am): Use them.
31596         * lib/sys_stat.in.h (stat): Declare replacement.
31597         * lib/openat.c (fstatat): Deal with lstat and stat being function
31598         macros.
31599         * modules/openat (Depends-on): Add inline.
31600         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31601         * doc/posix-functions/stat.texi (stat): Likewise.
31602         * modules/stat-tests: New test.
31603         * tests/test-stat.c: Likewise.
31604
31605 2009-09-19  Jim Meyering  <meyering@redhat.com>
31606
31607         syntax-check: detect unnecessary inclusion of canonicalize.h
31608         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31609
31610 2009-09-19  Eric Blake  <ebb9@byu.net>
31611
31612         canonicalize-lgpl: adjust clients to use correct header
31613         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31614         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31615         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31616         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31617         * lib/progreloc.c (includes): Likewise.
31618
31619 2009-09-19  Jim Meyering  <meyering@redhat.com>
31620
31621         test-posixtm.c: correct a comment
31622         * tests/test-posixtm.c: Correct first-line comment.
31623         Spotted by Eric Blake.
31624
31625 2009-09-16  Jim Meyering  <meyering@redhat.com>
31626
31627         posixtm-tests: make T const-correct; add a test case
31628         * tests/test-posixtm.c (T): Declare const.
31629         Add a test for -(2^31+1).
31630         Remove useless can-succeed-only-in-2002 test.
31631
31632         posixtm-tests: adjust the sole failing test
31633         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31634         expected output matches what mktime now produces.  Cross-checked via
31635         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31636
31637         posixtm: move #ifdef'd tests into a new module
31638         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31639         * tests/test-posixtm.c: ... this new file.
31640         * modules/posixtm-tests: New module.
31641
31642 2009-09-19  Eric Blake  <ebb9@byu.net>
31643
31644         openat: simplify use of at-func.c
31645         * lib/at-func.c (includes): Include prerequisites here, to
31646         simplify requirements on client files.
31647         * lib/openat-priv.h: Add double-inclusion guard.
31648         * lib/faccessat.c (includes): Simplify.
31649         * lib/fchmodat.c (includes): Likewise.
31650         * lib/fchownat.c (includes): Likewise.
31651         * lib/mkdirat.c (includes): Likewise.
31652         * lib/mkfifoat.c (includes): Likewise.
31653         * lib/symlinkat.c (includes): Likewise.
31654
31655         openat: allow return of fd 0
31656         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31657         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31658         unistd-safer.
31659         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31660         <fcntl.h>; this module does not leak fds.
31661         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31662         must be allowed to return 0, leaving openat_safer to add the
31663         safety.
31664         (openat_permissive): Avoid writing to just-opened fd 2 if
31665         restoring the current directory fails.
31666         * lib/openat-die.c (openat_restore_fail): Add comment.
31667         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31668         (save_cwd): Guarantee safe fd, but without use of open_safer.
31669         * tests/test-openat.c: New test.
31670         * modules/openat-tests (Files, Makefile.am): Distribute and build
31671         new file.
31672
31673         relocatable-prog-wrapper: fix build
31674         * modules/relocatable-prog-wrapper (Files): Update name of
31675         canonicalize m4 file, broken on 2009-09-17.
31676         Reported by emad hajjar <aleppos@hotmail.com>.
31677
31678 2009-09-19  Bruno Haible  <bruno@clisp.org>
31679
31680         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31681         * lib/safe-alloc.c: Likewise.
31682         Reported by Ian Beckwith <ianb@erislabs.net>.
31683
31684 2009-09-18  Bruno Haible  <bruno@clisp.org>
31685
31686         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31687         Reported by <erobles@sensacd.com.mx>.
31688
31689 2009-09-17  Eric Blake  <ebb9@byu.net>
31690
31691         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31692         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31693         slashes when checking if last component is missing.
31694         * tests/test-canonicalize.c (main): Test this.
31695
31696         canonicalize, canonicalize-lgpl: honor // if distinct from /
31697         * modules/canonicalize (Files): Add double-slash-root.m4.
31698         * modules/canonicalize-lgpl (Files): Likewise.
31699         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31700         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31701         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31702         fallback definition.
31703         (canonicalize_filename_mode): Use it to protect //.
31704         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31705         (__realpath): Likewise.
31706         * tests/test-canonicalize.c (main): Test this.
31707         * tests/test-canonicalize-lgpl.c (main): Likewise.
31708         * modules/canonicalize-tests (Depends-on): Add same-inode.
31709         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31710
31711         canonicalize-lgpl: fix glibc bug with trailing slash
31712         * m4/canonicalize-lgpl.m4: Move contents...
31713         * m4/canonicalize.m4: ...here.
31714         (gl_CANONICALIZE_LGPL): Factor realpath check...
31715         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31716         glibc 2.3.5 bug, fixed 2005-04-27.
31717         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31718         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31719         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31720         * modules/canonicalize-lgpl (Files): Manage file rename.
31721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31722         * modules/stdlib (Makefile.am): Substitute witness.
31723         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31724         is needed.
31725         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31726         replacement is required.
31727         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31728         * doc/glibc-functions/canonicalize_file_name.texi
31729         (canonicalize_file_name): Document this.
31730         * doc/posix-functions/realpath.texi (realpath): Likewise.
31731
31732         canonicalize-lgpl: reject non-directory with trailing slash
31733         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31734         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31735         catches failures in glibc 2.3.5.
31736         * tests/test-canonicalize.c (main): Likewise.
31737
31738         canonicalize-lgpl: use native realpath if it works
31739         * lib/canonicalize-lgpl.c (realpath): Guard with
31740         FUNC_REALPATH_WORKS.
31741         * lib/stdlib.in.h (realpath): Make declaration optional based on
31742         HAVE_REALPATH.
31743         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31744         native realpath works.
31745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31746         * modules/stdlib (Makefile.am): Substitute witness.
31747
31748         canonicalize, canonicalize-lgpl: use <stdlib.h>
31749         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31750         (Include): Mention <stdlib.h>.
31751         (configure.ac): Mention functions we provide.
31752         * modules/canonicalize (configure.ac): Likewise.
31753         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31754         realpath if canonicalize_file_name is missing.
31755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31756         * modules/stdlib (Makefile.am): Substitute witnesses.
31757         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31758         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31759         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31760         * NEWS: Document this.
31761         * doc/glibc-functions/canonicalize_file_name.texi
31762         (canonicalize_file_name): Likewise.
31763         * doc/posix-functions/realpath.texi (realpath): Likewise.
31764         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31765
31766         test-canonicalize: consolidate into single C program
31767         * tests/test-canonicalize.sh: Delete; move setup into...
31768         * tests/test-canonicalize.c (main): ...the program, making it
31769         easier to run in debugger.  Add some tests.
31770         * modules/canonicalize-tests (Files): Remove unused file.
31771         (Depends-on): Add progname.
31772         (configure.ac, Makefile.am): Simplify.
31773
31774         test-canonicalize-lgpl: consolidate into single C program
31775         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31776         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31777         easier to run in debugger.  Add some tests.
31778         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31779         (configure.ac, Makefile.am): Simplify.
31780
31781         canonicalize: avoid resolvepath
31782         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31783         unnecessary checks.
31784         * lib/canonicalize.c (includes): Simplify.
31785         (canonicalize_file_name): Drop resolvepath implementation.
31786         * modules/canonicalize (Depends-on): Drop filenamecat.
31787
31788         canonicalize: don't lose errno
31789         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31790         over calls to free.
31791
31792         canonicalize: simplify errno handling
31793         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31794         assignment.
31795
31796         canonicalize, canonicalize-lgpl: update module dependencies
31797         * modules/canonicalize (Depends-on): Add extensions, lstat,
31798         pathmax, stdlib.
31799         (Files): Drop pathmax.h.
31800         (configure.ac): Adjust macro name.
31801         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31802         lstat, stdlib, sys_stat.
31803         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31804         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31805         extensions.
31806         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31807         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31808         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31809         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31810         declaration, if available.
31811         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31812         we can rely on the readlink module.
31813         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31814         (includes): Use <unistd.h> unconditionally.
31815
31816 2009-09-17  Eric Blake  <ebb9@byu.net>
31817
31818         maint: make Include sections of modules consistent
31819         * modules/alloca: Use only header name; no need to list #include.
31820         * modules/alloca-opt: Likewise.
31821         * modules/arpa_inet: Likewise.
31822         * modules/canon-host: Likewise.
31823         * modules/configmake: Likewise.
31824         * modules/dirent: Likewise.
31825         * modules/eealloc: Likewise.
31826         * modules/environ: Likewise.
31827         * modules/fchdir: Likewise.
31828         * modules/fcntl: Likewise.
31829         * modules/fcntl-h: Likewise.
31830         * modules/gethrxtime: Likewise.
31831         * modules/gettime: Likewise.
31832         * modules/ignore-value: Likewise.
31833         * modules/inet_ntop: Likewise.
31834         * modules/inet_pton: Likewise.
31835         * modules/inttypes: Likewise.
31836         * modules/isnand-nolibm: Likewise.
31837         * modules/isnanf-nolibm: Likewise.
31838         * modules/mbchar: Likewise.
31839         * modules/mbfile: Likewise.
31840         * modules/mbiter: Likewise.
31841         * modules/mbuiter: Likewise.
31842         * modules/netdb: Likewise.
31843         * modules/netinet_in: Likewise.
31844         * modules/nproc: Likewise.
31845         * modules/pagealign_alloc: Likewise.
31846         * modules/poll: Likewise.
31847         * modules/printf-frexp: Likewise.
31848         * modules/pthread: Likewise.
31849         * modules/putenv: Likewise.
31850         * modules/random_r: Likewise.
31851         * modules/relocatable-prog: Likewise.
31852         * modules/search: Likewise.
31853         * modules/select: Likewise.
31854         * modules/selinux-h: Likewise.
31855         * modules/settime: Likewise.
31856         * modules/signal: Likewise.
31857         * modules/size_max: Likewise.
31858         * modules/socklen: Likewise.
31859         * modules/ssize_t: Likewise.
31860         * modules/stdarg: Likewise.
31861         * modules/stdbool: Likewise.
31862         * modules/stddef: Likewise.
31863         * modules/stdint: Likewise.
31864         * modules/stdio: Likewise.
31865         * modules/stdlib: Likewise.
31866         * modules/string: Likewise.
31867         * modules/strings: Likewise.
31868         * modules/sys_file: Likewise.
31869         * modules/sys_ioctl: Likewise.
31870         * modules/sys_select: Likewise.
31871         * modules/sys_socket: Likewise.
31872         * modules/sys_stat: Likewise.
31873         * modules/sys_time: Likewise.
31874         * modules/sys_times: Likewise.
31875         * modules/sys_utsname: Likewise.
31876         * modules/sys_wait: Likewise.
31877         * modules/sysexits: Likewise.
31878         * modules/time: Likewise.
31879         * modules/times: Likewise.
31880         * modules/tmpfile: Likewise.
31881         * modules/trim: Likewise.
31882         * modules/unistd: Likewise.
31883         * modules/wchar: Likewise.
31884         * modules/wctype: Likewise.
31885
31886 2009-09-17  Bruno Haible  <bruno@clisp.org>
31887
31888         Make getdate.y compile on QNX and NetBSD 5 / i386.
31889         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31890         TIME_T_FITS_IN_LONG_INT.
31891         * lib/getdate.y (long_time_t): New type.
31892         (relative_time): Change type of 'seconds' field to long_time_t.
31893         (get_date): Update types of local variables. Check against overflow
31894         during conversion from long_time_t to time_t.
31895         Reported by Matt Kraai <kraai@ftbfs.org>
31896         and Hasso Tepper <hasso@netbsd.org>.
31897
31898 2009-09-17  Bruno Haible  <bruno@clisp.org>
31899
31900         * modules/COPYING: Update copyright years.
31901         * modules/README: Likeiwse.
31902         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31903         Reported by Ian Beckwith <ianb@erislabs.net>.
31904
31905 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31906
31907         * users.txt: Update references for gnuit package.
31908
31909 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31910
31911         * m4/getdelim.m4: Fix typo in copyright line.
31912
31913 2009-09-17  Bruno Haible  <bruno@clisp.org>
31914
31915         * lib/atoll.c: Use the standard header with GPL copyright.
31916         * lib/argz.in.h: Likewise.
31917         * lib/glob.c: Likewise.
31918         * lib/glob-libc.h: Likewise.
31919         * lib/random_r.c: Likewise.
31920         * lib/siglist.h: Likewise.
31921         * lib/strsignal.c: Likewise.
31922         Reported by Ian Beckwith <ianb@erislabs.net>.
31923
31924 2009-09-17  Eric Blake  <ebb9@byu.net>
31925
31926         rmdir: ensure correct dependency order
31927         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31928
31929 2009-09-17  Bruno Haible  <bruno@clisp.org>
31930
31931         Disable assertion that fails on NetBSD 5 / i386.
31932         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31933         Reported by Sam Steingold <sds@gnu.org>
31934         and Hasso Tepper <hasso@netbsd.org>.
31935
31936 2009-09-16  Eric Blake  <ebb9@byu.net>
31937
31938         unlinkdir: port to mingw
31939         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31940         on which no one can unlink a directory.
31941
31942         stdlib: sort witness names
31943         * modules/stdlib (Makefile.am): Sort replacements.
31944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31945         * lib/stdlib.in.h: Likewise.
31946
31947         parse-duration-tests: avoid link failure
31948         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31949         LIBINTL.
31950         Reported by Tom G. Christensen.
31951
31952         openat-tests: ensure unlinkat behaves like rmdir
31953         * tests/test-rmdir.c (main): Factor guts...
31954         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31955         * modules/rmdir-tests (Files): Ship new file.
31956         * modules/openat-tests: New test.
31957         * tests/test-unlinkat.c: Likewise.
31958
31959         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31960         * modules/rmdir-errno (Status, Notice): Now obsolete.
31961
31962         rmdir: work around cygwin 1.5.x and mingw bugs
31963         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31964         * lib/rmdir.c (rmdir): Work around it.
31965         * modules/rmdir (Status, Notice): No longer obsolete.
31966         (Files): Add dos.m4.
31967         (Depends-on): Add unistd.
31968         (configure.ac): Set witnesses.
31969         (License): Relax to LGPLv2+.
31970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31971         * modules/unistd (Makefile.am): Substitute witnesses.
31972         * lib/unistd.in.h (rmdir): Declare replacement.
31973         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31974         * modules/rmdir-tests: New tests.
31975         * tests/test-rmdir.c: Likewise.
31976
31977 2009-09-15  Eric Blake  <ebb9@byu.net>
31978
31979         fchdir: improve use of replacement functions
31980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31982         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31983         REPLACE_CLOSEDIR.
31984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31985         * modules/sys_stat (Makefile.am): Substitute correct witness.
31986         * modules/dirent (Makefile.am): Likewise.
31987         * modules/unistd (Makefile.am): Likewise.
31988         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31989         * lib/unistd.in.h (dup): Likewise.
31990         * lib/sys_stat.in.h (fstat): Likewise.
31991
31992         maint: ignore gnulib-tool temp files
31993         * .gitignore: Ignore files created during gnulib-tool --test.
31994
31995 2009-09-13  Jim Meyering  <meyering@redhat.com>
31996
31997         posixtm: don't reject a time that specify "60" as the number of seconds
31998         * lib/posixtm.c (posixtime): The code to reject invalid dates
31999         would also reject a time specified with the .60 suffix.
32000         But POSIX allows that, in order to accommodate leap seconds.
32001         So don't reject it.
32002         (main): Adjust tests accordingly.
32003         * modules/posixtm (Depends-on): Add stpcpy.
32004
32005 2009-09-11  Jim Meyering  <meyering@redhat.com>
32006
32007         announce-gen: include [$release_type] in emitted Subject:
32008         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32009         e.g., [stable] in the emitted Subject: line.
32010
32011 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32012
32013         Remove obsolete macros from several modules.
32014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32015         obsolete Autoconf macros with their modern counterparts.
32016         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32017         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32018         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32019         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32020         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32021         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32023         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32024         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32025         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32026         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32028         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32029         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32031         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32032         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32033         * m4/time_r.m4 (gl_TIME_R): Likewise.
32034         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32035         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32036         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32037
32038         Fix copyright header in build-aux scripts.
32039         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32040         recommendation.
32041         * build-aux/ncftpput-ftp: Likewise.
32042         * build-aux/update-copyright: Likewise.
32043
32044 2009-09-09  Eric Blake  <ebb9@byu.net>
32045
32046         test-link: allow Linux choice of errno
32047         * tests/test-link.c (main): Relax test for alternate error.
32048
32049         strndup: fix improper m4 caching
32050         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32051         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32052         (gl_PREREQ_STRNDUP): Delete.
32053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32054         * modules/string (Makefile.am): Substitute it.
32055         * lib/string.in.h (strndup): Modernize prototype.
32056
32057         getcwd: port to mingw
32058         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32059         different from the POSIX assumptions made throughout the getcwd
32060         module; fortunately, the mingw getcwd does not need replacement.
32061         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32062         * modules/getcwd-tests: New test.
32063         * tests/test-getcwd.c: Likewise.
32064
32065         link: fix platform bugs
32066         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32067         * lib/link.c (link): Work around them.  Fix related mingw bug.
32068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32069         * modules/unistd (Makefile.am): Substitute it.
32070         * lib/unistd.in.h (link): Declare replacement.
32071         * doc/posix-functions/link.texi (link): Document this.
32072         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32073
32074         test-link: consolidate into single C program, test more cases
32075         * tests/test-link.sh: Delete.
32076         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32077         at least Cygwin and Solaris.
32078         * modules/link-tests (Files): Remove unused file.
32079         (Depends-on): Add errno, sys_stat.
32080         (Makefile.am): Simplify.
32081
32082 2009-09-08  Bruno Haible  <bruno@clisp.org>
32083
32084         Work around towlower, towupper bug on mingw.
32085         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32086         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32087         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32088         * doc/posix-functions/towupper.texi: Likewise.
32089         Reported by Eric Blake.
32090
32091 2009-09-08  Jim Meyering  <meyering@redhat.com>
32092
32093         build: don't try to run autoheader if we don't use it
32094         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32095         is not used in configure.ac.
32096
32097 2009-09-08  Eric Blake  <ebb9@byu.net>
32098
32099         euidaccess: fix compilation error
32100         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32101
32102         rawmemchr: relax license
32103         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32104         okay.
32105         Reported by Jim Meyering.
32106
32107         mkfifoat: new module
32108         * modules/mkfifoat: New file.
32109         * lib/mkfifoat.c: Likewise.
32110         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32112         * modules/sys_stat (Makefile.am): Use them.
32113         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32114         * MODULES.html.sh (File system functions): Mention module.
32115         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32116         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32117         * modules/mkfifoat-tests: New test.
32118         * tests/test-mkfifoat.c: Likewise.
32119
32120         strchrnul: relax license
32121         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32122         okay.
32123         Reported by Jim Meyering.
32124
32125 2009-09-08  Eric Blake  <ebb9@byu.net>
32126
32127         fstatat: fix compilation on Solaris
32128         * lib/fstatat.c (includes): Add fcntl.h.
32129         Reported by Pádraig Brady.
32130
32131 2009-09-07  Eric Blake  <ebb9@byu.net>
32132
32133         rename: modernize replacement
32134         * modules/rename (Depends-on): Add stdio.
32135         (configure.ac): Declare witness.
32136         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32137         stdio take care of replacement.
32138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32139         * modules/stdio (Makefile.am): Substitute them.
32140         * lib/stdio.in.h (rename): Declare replacement.
32141         * lib/rename.c (includes): Allow cross-compilation to non-windows
32142         machines.
32143         * doc/posix-functions/rename.texi (rename): Improve
32144         documentation.
32145
32146         stdio: sort witness names
32147         * modules/stdio (Makefile.am): Sort replacements.
32148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32149         * lib/stdio.in.h: Likewise.
32150
32151         getcwd: minor cleanups
32152         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32153         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32154
32155         openat: provide more convenience names
32156         * modules/faccessat (configure.ac): Add C witness.
32157         * lib/unistd.in.h (readlinkat): Fix typo.
32158         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32159         convenience wrappers.
32160         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32161         wrappers in syntax checks.
32162
32163 2009-09-06  Eric Blake  <ebb9@byu.net>
32164
32165         doc: fix comments in recent patches
32166         * lib/faccessat.c: Mention correct function.
32167         * lib/fchmodat.c: Likewise.
32168         * lib/fchownat.c: Likewise.
32169         * lib/symlinkat.c: Likewise.
32170         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32171         constants.
32172
32173         faccessat, symlinkat: continue cleanup of previous patch
32174         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32175         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32176         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32178         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32179         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32180         set.
32181
32182 2009-09-06  Bruno Haible  <bruno@clisp.org>
32183
32184         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32185         (fstatat): Declare if GNULIB_FSTATAT is set.
32186         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32187         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32188         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32189         * modules/fcntl-h (Files): Remove m4/openat.m4.
32190         * modules/sys_stat (Files): Remove m4/openat.m4.
32191         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32192         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32193         * modules/unistd (Files): Remove m4/openat.m4.
32194         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32195         GNULIB_OPENAT.
32196         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32197         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32199         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32200         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32201         gl_OPENAT_DEFAULTS.
32202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32203         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32204         Don't require gl_OPENAT_DEFAULTS.
32205         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32206         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32207         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32208         (gl_OPENAT_DEFAULTS): Remove macro.
32209
32210 2009-09-06  Bruno Haible  <bruno@clisp.org>
32211
32212         * modules/openat (configure.ac): Remove unneeded witness.
32213
32214 2009-09-06  Bruno Haible  <bruno@clisp.org>
32215
32216         Set errno to ENOSYS when a function is entirely unsupported.
32217         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32218         EOPNOTSUPP.
32219         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32220         * modules/chown (Depends-on): Remove errno.
32221
32222 2009-09-06  Bruno Haible  <bruno@clisp.org>
32223
32224         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32225
32226 2009-09-06  Bruno Haible  <bruno@clisp.org>
32227
32228         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32229
32230 2009-09-06  Ben Pfaff  <blp@gnu.org>
32231             Bruno Haible  <bruno@clisp.org>
32232
32233         Work around a glibc bug in strtok_r.
32234         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32235         Undefine if UNDEFINE_STRTOK_R is set.
32236         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32238         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32239         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32240         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32241         UNDEFINE_STRTOK_R.
32242         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32243
32244 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32245
32246         exclude: minor fix
32247         * lib/exclude.c: Include wctype.h
32248
32249 2009-09-06  Akim Demaille  <demaille@gostai.com>
32250
32251         bootstrap: improve error message
32252         * build-aux/bootstrap (find_tool): Upon failure, report the list
32253         of candidates.
32254         Honor the initial value of the envvar.
32255
32256 2009-09-05  Eric Blake  <ebb9@byu.net>
32257
32258         symlinkat: new module
32259         * modules/symlinkat: New file.
32260         * lib/symlinkat.c: Likewise.
32261         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32263         * modules/unistd (Makefile.am): Use them.
32264         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32265         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32266         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32267         * MODULES.html.sh (File system functions): Mention module.
32268         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32269         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32270         * modules/symlinkat-tests: New test.
32271         * tests/test-symlinkat.c: Likewise.
32272
32273         test-openat-safer: add more checks
32274         * tests/test-openat-safer.c (main): Check more code paths.
32275
32276 2009-09-05  Jim Meyering  <meyering@redhat.com>
32277
32278         syntax-check: detect unnecessary inclusion of openat.h
32279         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32280
32281 2009-09-05  Bruno Haible  <bruno@clisp.org>
32282
32283         Support towlower, towupper.
32284         * doc/posix-functions/towlower.texi: Mention module wctype.
32285         * doc/posix-functions/towupper.texi: Likewise.
32286         * lib/wctype.in.h (towlower, towupper): New functions.
32287         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32288         (ASSERT): New macro.
32289         (e): New variable.
32290         (main): Test also towlower, towupper. Test WEOF argument.
32291         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32292
32293 2009-09-05  Bruno Haible  <bruno@clisp.org>
32294
32295         Fix conversion behaviour when the input is invalid.
32296         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32297         mark occurring in first pass of indirect conversion.
32298         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32299         input.
32300         Found by clang's static analyzer.
32301
32302 2009-09-05  Bruno Haible  <bruno@clisp.org>
32303
32304         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32305         where direct conversion is possible.
32306
32307 2009-09-04  Eric Blake  <ebb9@byu.net>
32308
32309         openat: fail with ENOENT on empty name
32310         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32311         buffer.
32312
32313         link-follow: fix logic bug in prior patch
32314         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32315         reversed sense of yes and no in prior patch.  Avoid confusing
32316         compilation failure with desired semantics.
32317
32318         link-follow: accomodate mingw and cross-compilation
32319         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32320         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32321         cross-compilation results to -1, to make linkat easier to
32322         implement when cross-compiling.  Trivially support mingw.
32323         * modules/link-follow (configure.ac): Call new name.
32324         * NEWS: Mention this.
32325
32326 2009-09-03  Eric Blake  <ebb9@byu.net>
32327
32328         faccessat: compile replacement
32329         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32330         needed.
32331
32332         fts: fix compilation error
32333         * lib/fts.c (includes): Re-add "openat.h", for
32334         openat_needs_fchdir.
32335
32336         faccessat: new module
32337         * modules/faccessat: New file.
32338         * lib/faccessat.c: Likewise.
32339         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32341         * modules/unistd (Makefile.am): Use it.
32342         * lib/unistd.in.h (faccessat): Declare it.
32343         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32344         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32345         * MODULES.html.sh (File system functions): Mention it.
32346         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32347         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32348
32349         euidaccess: prefer POSIX over non-standard implementation
32350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32351         * lib/euidaccess.c (euidaccess): Use it if available.
32352
32353         openat: make template easier to use
32354         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32355         AT_FUNC_F2 to be undefined.
32356         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32357         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32358         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32359         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32360         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32361         Likewise.
32362         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32363         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32364         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32365         Likewise.
32366
32367         openat: declare in POSIX headers
32368         * NEWS: Mention this.
32369         * modules/openat (configure.ac): Declare witnesses.
32370         (Depends-on): Add fcntl-h, sys_stat, unistd.
32371         (Include): Mention correct headers.
32372         * modules/fcntl-h (Depends-on): Add link-warning.
32373         (Files): Add openat.m4.
32374         (Makefile.am): Substitute witnesses.
32375         * modules/sys_stat (Files, Makefile.am): Likewise.
32376         * modules/unistd (Files, Makefile.am): Likewise.
32377         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32378         (gl_OPENAT_DEFAULTS): New macro.
32379         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32382         (SYS_STAT_H): Remove unused variable.
32383         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32384         * lib/fcntl--.h (includes): Remove unneeded header.
32385         * lib/openat-safer.c (includes): Likewise.
32386         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32387         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32388         appropriate headers.
32389         (__OPENAT_PREFIX): Delete.
32390         * lib/fcntl.in.h (openat): Provide declaration.
32391         (AT_FDCWD): Fix Solaris bug.
32392         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32393         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32394         * lib/fchmodat.c (includes):  Adjust to find declaration.
32395         * lib/fchownat.c (includes): Likewise.
32396         * lib/mkdirat.c (includes): Likewise.
32397         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32398         still visible.
32399
32400 2009-09-02  Eric Blake  <ebb9@byu.net>
32401
32402         errno: use consistently
32403         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32404         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32405         * lib/canonicalize.c (ELOOP): Likewise.
32406         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32407         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32408         * lib/lchown.c (EOPNOTSUPP): Likewise.
32409         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32410         * lib/savewd.c (ESTALE): Likewise.
32411         * lib/settime.c (ENOSYS): Likewise.
32412         * lib/utimens.c (ENOSYS): Likewise.
32413         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32414         * lib/chdir-safer.c (ELOOP): Likewise.
32415         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32416         * modules/c-stack (Depends-on): Add errno.
32417         * modules/canonicalize (Depends-on): Likewise.
32418         * modules/chdir-safer (Depends-on): Likewise.
32419         * modules/fdopendir (Depends-on): Likewise.
32420         * modules/inet_ntop (Depends-on): Likewise.
32421         * modules/inet_pton (Depends-on): Likewise.
32422         * modules/lchown (Depends-on): Likewise.
32423         * modules/openat (Depends-on): Likewise.
32424         * modules/savewd (Depends-on): Likewise.
32425         * modules/settime (Depends-on): Likewise.
32426         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32427
32428         fts: avoid leaking fds
32429         * modules/fts (Depends-on): Add cloexec.
32430         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32431         flag.
32432
32433         fts: make directory fds more robust
32434         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32435         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32436
32437         backupfile, chdir-long, fts, savedir: make safer
32438         * lib/backupfile.c (includes): Use "dirent--.h", since
32439         numbered_backup can write to stderr during readdir.
32440         * lib/savedir.c (includes): Likewise.
32441         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32442         emulation can write to stderr on failure.
32443         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32444         * lib/getcwd.c: Document why opendir_safer is unused.
32445         * lib/glob.c: Likewise.
32446         * lib/scandir.c: Likewise.
32447         * lib/openat-proc.c: Likewise, for open_safer.
32448         * modules/backupfile (Depends-on): Add dirent-safer.
32449         * modules/savedir (Depends-on): Likewise.
32450         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32451         * modules/chdir-long (Depends-on): Add openat-safer.
32452
32453         openat-safer: new module
32454         * modules/openat-safer: New file.
32455         * lib/openat-safer.c: Likewise.
32456         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32457         * lib/fcntl-safer.h (openat_safer): Declare.
32458         * lib/fcntl--.h (openat): Override.
32459         * MODULES.html.sh (File descriptor based I/O): Mention it.
32460         * lib/openat.h: Add double-inclusion guards.
32461         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32462         "fcntl--.h", so we can implement openat.
32463         * modules/openat-safer-tests: New test.
32464         * tests/test-openat-safer.c: New file.
32465
32466         dirent-safer: new module
32467         * modules/dirent-safer: New file.
32468         * lib/dirent--.h: Likewise.
32469         * lib/dirent-safer.h: Likewise.
32470         * lib/opendir-safer.c: Likewise.
32471         * m4/dirent-safer.m4: Likewise.
32472         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32473         * modules/dirent-safer-tests: New test.
32474         * tests/test-dirent-safer.c: New file.
32475         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32476
32477         fdopendir: optimize on mingw
32478         * lib/unistd.in.h (_gl_directory_name): New prototype.
32479         * lib/fchdir.c (_gl_directory_name): Implement it.
32480         (fchdir): Use it to simplify implementation.
32481         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32482         fchdir, when available, to avoid calling [f]chdir().
32483
32484         fdopendir: split into its own module
32485         * lib/openat.c (fdopendir): Move...
32486         * lib/fdopendir.c: ...into new file.
32487         * modules/fdopendir: New module.
32488         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32489         * modules/openat (Depends-on): Add fdopendir.
32490         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32491         fdopendir here.
32492         * modules/savedir (Depends-on): Only need fdopendir, not full
32493         openat.
32494         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32495         * lib/openat.h (fdopendir): Drop prototype.
32496         * lib/dirent.in.h (fdopendir): Provide prototype.
32497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32498         * modules/dirent (Makefile.am): Substitute them.
32499         * MODULES.html.sh (File system functions): Mention it.
32500         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32501         * modules/fdopendir-tests: New file.
32502         * tests/test-fdopendir.c: Likewise.
32503
32504         fchdir: use more consistent macro convention
32505         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32506         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32507         REPLACE_FCHDIR, rather than relying on config.h macros.
32508         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32509         inside a single make-time REPLACE_FCHDIR block, rather than using
32510         the config.h FCHDIR_REPLACEMENT.
32511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32512         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32513         Manage fstat replacement.
32514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32515         REPLACE_FCHDIR.
32516         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32517         (Makefile.am): Substitute REPLACE_FCHDIR.
32518         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32519         FCHDIR_REPLACEMENT.
32520         * lib/dup-safer.c (dup_safer): Likewise.
32521         * lib/dup2.c (rpl_dup2): Likewise.
32522         * lib/dup3.c (rpl_dup3): Likewise.
32523         * lib/open.c (rpl_open): Likewise.
32524
32525         fchdir: simplify error handling, and support dup3
32526         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32527         stdbool, malloc-posix, realloc-posix.
32528         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32529         (ensure_dirs_slot): Return false on allocation failure.
32530         (rpl_dup2): Delete.
32531         (_gl_register_dup): New function.
32532         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32533         (_gl_register_fd): Close fd on allocation failure.
32534         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32535         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32536         prototype.
32537         (rpl_dup2_fchdir): Delete prototype.
32538         * lib/open.c (open): Update caller.
32539         * lib/dup2.c (dup2): Track fchdir metadata.
32540         * lib/dup3.c (dup3): Likewise.
32541         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32543
32544 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32545
32546         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32547         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32548         don't pass arguments to AC_OUTPUT.
32549
32550 2009-09-02  Bruno Haible  <bruno@clisp.org>
32551
32552         * modules/mkdtemp (License): Relicense under LGPLv2+.
32553         Reported by Paolo Bonzini.
32554
32555 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32556
32557         Replace uses of obsolete autoconf macros in Jim's modules.
32558         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32559         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32560         can evoke a warning from autoconf when run with -Wobsolete
32561         enabled.  They were declared obsolete for good reasons (see
32562         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32563         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32564         should not continue using the deprecated macros.
32565         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32566         obsolete Autoconf macros with modern counterparts.
32567         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32568         * m4/dos.m4 (gl_AC_DOS): Likewise.
32569         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32570         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32571         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32572         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32573         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32575         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32576         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32578         Likewise.
32579         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32580         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32581         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32582         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32583         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32584         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32585
32586 2009-09-01  Eric Blake  <ebb9@byu.net>
32587
32588         fchdir: fix off-by-one bug in previous patch
32589         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32590         (_gl_unregister_fd): Delete useless if.
32591
32592 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32593
32594         maint.mk: sort the list of syntax-check rules
32595         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32596         easier to get a sense of progress when the rules are run sequentially
32597         and take a long time.
32598
32599 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32600
32601         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32602         * modules/netinet_in: Likewise.
32603         * modules/sys_file: Likewise.
32604         * modules/sys_ioctl: Likewise.
32605         * modules/sys_select: Likewise.
32606         * modules/sys_socket: Likewise.
32607         * modules/sys_stat: Likewise.
32608         * modules/sys_time: Likewise.
32609         * modules/sys_times: Likewise.
32610         * modules/sys_utsname: Likewise.
32611         * modules/sys_wait: Likewise.
32612
32613 2009-09-01  Jim Meyering  <meyering@redhat.com>
32614
32615         fts: help ensure that return values are not ignored
32616         * lib/fts_.h (__GNUC_PREREQ): Define.
32617         (__attribute_warn_unused_result__): Define.
32618         (fts_children, fts_close, fts_open, fts_read): Declare with
32619         __attribute_warn_unused_result__.
32620
32621         fts: fts_close now fails also when closing a dir file descriptor fails
32622         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32623         and propagate to caller, along with errno.
32624
32625         announce-gen: correct formatting in --help output
32626         * build-aux/announce-gen (usage): Move the one-line description in
32627         --help output "up", to where it belongs, just after Usage:.
32628
32629 2009-08-31  Eric Blake  <ebb9@byu.net>
32630
32631         fchdir: port to mingw
32632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32633         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32634         opened, then use a substitute.
32635         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32636         replacement.
32637         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32638         (_gl_register_fd): No need to check stat if open already filters
32639         all directories.
32640         (fchdir): Fix error condition to match POSIX.
32641         * modules/fchdir (Depends-on): Add sys_stat.
32642         * doc/posix-functions/open.texi (open): Document the limitation.
32643         * modules/fchdir-tests: New file.
32644         * tests/test-fchdir.c: Likewise.
32645
32646         canonicalize: allow cross-testing from cygwin to mingw
32647         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32648         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32649         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32650         Likewise.
32651         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32652         target does not support symlinks.
32653         * tests/test-canonicalize-lgpl.sh: Likewise.
32654
32655         chown: avoid compilation warning on mingw
32656         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32657         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32658         mingw.
32659         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32660         * modules/chown (Depends-on): Add errno.
32661
32662 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32663
32664         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32665         command.
32666
32667 2009-08-31  Jim Meyering  <meyering@redhat.com>
32668
32669         canonicalize: remove useless initialization
32670         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32671         initialization of local, "end".
32672
32673 2009-08-30  Bruno Haible  <bruno@clisp.org>
32674
32675         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32676         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32677         ENOSYS.
32678
32679 2009-08-30  Bruno Haible  <bruno@clisp.org>
32680
32681         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32682         /usr/xpg4/bin/tr when it exists.
32683         * tests/test-pipe-filter-gi1.sh: Likewise.
32684
32685 2009-08-30  Bruno Haible  <bruno@clisp.org>
32686
32687         Work around deficient /usr/bin/id program on Solaris.
32688         * tests/test-file-has-acl.sh (ID): New variable.
32689         * tests/test-set-mode-acl.sh (ID): Likewise.
32690         * tests/test-copy-acl.sh (ID): Likewise.
32691         * tests/test-copy-file.sh (ID): Likewise.
32692
32693 2009-08-30  Bruno Haible  <bruno@clisp.org>
32694
32695         New module 'xstriconveh'.
32696         * lib/xstriconveh.h: New file.
32697         * lib/xstriconveh.c: New file.
32698         * modules/xstriconveh: New file.
32699
32700 2009-08-30  Bruno Haible  <bruno@clisp.org>
32701
32702         Make it easier to use mem_cd_iconveh.
32703         * lib/striconveh.h (iconveh_t): New type.
32704         (iconveh_open, iconveh_close): New declarations.
32705         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32706         with a single 'const iconveh_t *' argument.
32707         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32708         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32709         with a single 'const iconveh_t *' argument.
32710         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32711         * tests/test-striconveh.c (main): Update.
32712         * NEWS: Mention the change.
32713
32714 2009-08-30  Bruno Haible  <bruno@clisp.org>
32715
32716         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32717         problem.
32718
32719 2009-08-30  Bruno Haible  <bruno@clisp.org>
32720
32721         Work around iconv_open problem on Solaris.
32722         * lib/iconv_open-solaris.gperf: New file.
32723         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32724         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32725         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32726         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32727         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32728         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32729
32730 2009-08-29  Jim Meyering  <meyering@redhat.com>
32731
32732         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32733         * top/maint.mk (cvs-check): Remove target; it was just an alias
32734         to the better-named vc-diff-check.
32735         (maintainer-distcheck): Remove rule.  It was used only from
32736         the (alpha/beta/major) target, and all of its commands but one
32737         were coreutils-specific.
32738         (vc-dist): Remove rule.
32739         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32740         Run vc-diff-check, not vc-dist.
32741         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32742
32743 2009-08-27  Bruno Haible  <bruno@clisp.org>
32744
32745         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32746         of 0.
32747
32748 2009-08-27  Bruno Haible  <bruno@clisp.org>
32749
32750         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32751         compilers.
32752         * doc/func.texi: Document the SunPRO C bug.
32753
32754 2009-08-27  Bruno Haible  <bruno@clisp.org>
32755
32756         Fix link error on Solaris.
32757         * tests/test-parse-duration.c (xstrdup): Remove function.
32758
32759 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32760
32761         ignore-value: handle pointer types, too
32762         * lib/ignore-value.h (__attribute__): Remove definition.
32763         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32764         of a more concise and more-often effective "(void) i" statement.
32765         (ignore_ptr): New function to suppress warnings from functions that
32766         return pointers, and to make it explicit that one function doesn't
32767         handle all cases.
32768
32769 2009-08-25  Bruno Haible  <bruno@clisp.org>
32770
32771         dup2: work around a Linux bug.
32772         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32773         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32774         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32775         Reported by Simon Josefsson.
32776
32777 2009-08-25  Jim Meyering  <meyering@redhat.com>
32778
32779         libguestfs uses gnulib
32780         * users.txt: Add libguestfs.
32781
32782 2009-08-24  Eric Blake  <ebb9@byu.net>
32783
32784         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32785         * lib/pipe2.c (includes): Add binary-io.h.
32786         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32787
32788 2009-08-24  Bruno Haible  <bruno@clisp.org>
32789
32790         Tolerate declared but missing accept4 syscall.
32791         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32792         available.
32793         * lib/sys_socket.in.h (accept4): If the function is already present,
32794         override it.
32795         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32796         * modules/accept4 (Makefile.am): Compile accept4.c always.
32797         Reported by Paolo Bonzini and Eric Blake.
32798
32799 2009-08-23  Bruno Haible  <bruno@clisp.org>
32800
32801         New module 'accept4'.
32802         * lib/sys_socket.in.h (accept4): New declaration.
32803         * lib/accept4.c: New file.
32804         * m4/accept4.m4: New file.
32805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32806         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32807         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32808         HAVE_ACCEPT4.
32809         * modules/accept4: New file.
32810         * doc/glibc-functions/accept4.texi: Mention the new module.
32811
32812 2009-08-24  Jim Meyering  <meyering@redhat.com>
32813
32814         progname: also set global program_invocation_name, when possible
32815         Before this change, a libtool-enabled program that calls glibc's
32816         error function would report the program name as
32817         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32818         * modules/progname (configure.ac): Check for a declaration of
32819         program_invocation_name.
32820         * lib/progname.c:  Include <errno.h>.
32821         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32822         Set program_invocation_name.
32823
32824 2009-08-23  Bruno Haible  <bruno@clisp.org>
32825
32826         * lib/dup3.c: Include <string.h>.
32827
32828 2009-08-23  Bruno Haible  <bruno@clisp.org>
32829
32830         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32831         * lib/pipe2.c (pipe2): Likewise.
32832         Suggested by Eric Blake.
32833
32834 2009-08-23  Bruno Haible  <bruno@clisp.org>
32835
32836         Tolerate declared but missing dup3 syscall.
32837         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32838         * lib/unistd.in.h (dup3): If the function is already present,
32839         override it.
32840         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32841         * modules/dup3 (Makefile.am): Compile dup3.c always.
32842         Reported by Paolo Bonzini.
32843
32844 2009-08-23  Bruno Haible  <bruno@clisp.org>
32845
32846         Tolerate declared but missing pipe2 syscall.
32847         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32848         available.
32849         * lib/unistd.in.h (pipe2): If the function is already present,
32850         override it.
32851         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32852         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32853         Reported by Paolo Bonzini.
32854
32855 2009-08-23  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/pipe2.c (pipe2): Move #ifs inside function.
32858
32859 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32860
32861         quotearg: document limitations of quote_these_too
32862         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32863         those limitations are created.
32864         * lib/quotearg.h (set_char_quoting): Document that digits and
32865         letters that are special after backslash are not permitted.
32866         (quotearg_char): Cross-reference set_char_quoting documentation.
32867
32868 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32869
32870         quotearg: implement custom_quoting_style
32871         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32872         right_quote fields.
32873         (set_custom_quoting): New public function.
32874         (quotearg_buffer_restyled): Add left_quote and right_quote
32875         arguments, handle them very much like locale quoting, and update
32876         all uses.
32877         (quotearg_n_custom): New public function.
32878         (quotearg_n_custom_mem): New public function.
32879         (quotearg_custom): New public function.
32880         (quotearg_custom_mem): New public function.
32881         * lib/quotearg.h: Prototype and document new public functions.
32882         (enum quoting_style): For escape_quoting_style and
32883         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32884         ignored even though they're otherwise like c_quoting_style.
32885         Add custom_quoting_style member and document with comparison to
32886         clocale_quoting_style.
32887         * tests/test-quotearg.c (custom_quotes): New array.
32888         (custom_results): New array.
32889         (main): Extend to test custom quoting.
32890
32891 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32892
32893         quotearg: fix right quote escaping when it's in quote_these_too
32894         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32895         quote, be sure to prepend only one backslash.
32896         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32897         (main): Test it.
32898
32899 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32900
32901         quotearg-tests: test escaping of embedded locale quotes
32902         * tests/test-quotearg.c (struct result_strings): Add member for
32903         new input.
32904         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32905         (inputs): Add new input.
32906         (results_g): Add expected results.
32907         (flag_results): Likewise.
32908         (locale_results): Likewise.
32909         (compare_strings): Check those.
32910
32911 2009-08-23  Bruno Haible  <bruno@clisp.org>
32912
32913         Tests for module 'dup3'.
32914         * modules/dup3-tests: New file.
32915         * tests/test-dup3.c: New file.
32916
32917         New module 'dup3'.
32918         * lib/unistd.in.h (dup3): New declaration.
32919         * lib/dup3.c: New file.
32920         * m4/dup3.m4: New file.
32921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32922         HAVE_DUP3.
32923         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32924         * modules/dup3: New file.
32925         * doc/glibc-functions/dup3.texi: Mention the new module.
32926
32927 2009-08-23  Bruno Haible  <bruno@clisp.org>
32928
32929         Tweak the dup2 test.
32930         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32931         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32932         the test file is still empty. Fix argument order of lseek.
32933
32934 2009-08-23  Bruno Haible  <bruno@clisp.org>
32935
32936         Avoid test link errors when the modules getopt-gnu, gettext are used.
32937         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32939
32940 2009-08-23  Bruno Haible  <bruno@clisp.org>
32941
32942         Fix getdtablesize() on mingw.
32943         * lib/getdtablesize.c (getdtablesize): Implement differently.
32944         * lib/unistd.in.h (getdtablesize): Improve comment.
32945
32946 2009-08-23  Bruno Haible  <bruno@clisp.org>
32947
32948         New module 'mkostemp'.
32949         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32950         * lib/stdlib.in.h (mksotemp): New declaration.
32951         * lib/mkostemp.c: New file, from glibc with modifications.
32952         * lib/tempname.h (GT_FILE): Remove outdated comment.
32953         (gen_tempname): Add flags argument.
32954         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32955         (__GT_FILE): Map to 1.
32956         (small_open, large_open): Remove macros.
32957         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32958         * lib/mkstemp.c (mkstemp): Update.
32959         * lib/mkdtemp.c (mkdtemp): Likewise.
32960         * m4/mkostemp.m4: New file.
32961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32962         HAVE_MKOSTEMP.
32963         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32964         HAVE_MKOSTEMP.
32965         * modules/mkostemp: New file, based on modules/mkstemp.
32966         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32967         * NEWS: Mention the change.
32968
32969 2009-08-23  Bruno Haible  <bruno@clisp.org>
32970
32971         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32972         Reported by Eric Blake.
32973
32974 2009-08-23  Bruno Haible  <bruno@clisp.org>
32975
32976         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32977         Reported by Eric Blake.
32978
32979 2009-08-23  Bruno Haible  <bruno@clisp.org>
32980
32981         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32982         * modules/pipe2 (Depends-on): Likewise.
32983
32984 2009-08-23  Eric Blake  <ebb9@byu.net>
32985
32986         fcntl-h: add O_TTY_INIT support
32987         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32988         * tests/test-fcntl-h.c (o): Test it.
32989         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32990
32991         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32992         * modules/fcntl: Move <fcntl.h> header replacement...
32993         * modules/fcntl-h: ...to new name, so as not to collide with
32994         like-named function.
32995         * tests/test-fcntl.c: Rename...
32996         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32997         * modules/fcntl-tests: Rename...
32998         * modules/fcntl-h-tests: ...to this.  Update test file name.
32999         * modules/chdir-long (Depends-on): Update clients.
33000         * modules/chdir-safer (Depends-on): Likewise.
33001         * modules/fcntl-safer (Depends-on): Likewise.
33002         * modules/fts (Depends-on): Likewise.
33003         * modules/mkancesdirs (Depends-on): Likewise.
33004         * modules/mkdir-p (Depends-on): Likewise.
33005         * modules/open (Depends-on): Likewise.
33006         * modules/savewd (Depends-on): Likewise.
33007         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33008         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33009
33010 2009-08-22  Bruno Haible  <bruno@clisp.org>
33011
33012         * modules/binary-io (License): Relicense under LGPL.
33013         * modules/pipe2 (License): Likewise.
33014
33015 2009-08-22  Bruno Haible  <bruno@clisp.org>
33016
33017         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33018         return value.
33019         * lib/pipe-filter-gi.c (filter_init): Likewise.
33020         Reported by Eric Blake.
33021
33022 2009-08-22  Bruno Haible  <bruno@clisp.org>
33023
33024         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33025         * modules/pipe (Depends-on): Add pipe2.
33026
33027 2009-08-22  Bruno Haible  <bruno@clisp.org>
33028
33029         Tests for module 'pipe2'.
33030         * modules/pipe2-tests: New file.
33031         * tests/test-pipe2.c: New file.
33032
33033         New module 'pipe2'.
33034         * lib/unistd.in.h (pipe2): New declaration.
33035         * lib/pipe2.c: New file.
33036         * m4/pipe2.m4: New file.
33037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33038         HAVE_PIPE2.
33039         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33040         * modules/pipe2: New file.
33041         * doc/glibc-functions/pipe2.texi: Mention the new module.
33042
33043 2009-08-22  Bruno Haible  <bruno@clisp.org>
33044
33045         Reference some new glibc functions.
33046         * doc/glibc-functions/accept4.texi: New file.
33047         * doc/glibc-functions/dup3.texi: New file.
33048         * doc/glibc-functions/mkostemp.texi: New file.
33049         * doc/glibc-functions/pipe2.texi: New file.
33050         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33051         (Glibc sys/socket.h): Refer to accept4.
33052         (Glibc unistd.h): Refer to dup3, pipe2.
33053         Reported by Eric Blake.
33054
33055 2009-08-22  Jim Meyering  <meyering@redhat.com>
33056             Bruno Haible  <bruno@clisp.org>
33057
33058         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33059         This makes it so packages using automake-1.11's silent-rules option
33060         can print e.g., a single "GEN    configmake.h" line, rather than
33061         the 30+ statements that perform the job.  If you want to see the
33062         actual commands, you can still run "make V=1".
33063         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33064         so that make output is abbreviated when those variables are defined
33065         appropriately.
33066         * modules/argz: Likewise.
33067         * modules/arpa_inet: Likewise.
33068         * modules/byteswap: Likewise.
33069         * modules/configmake: Likewise.
33070         * modules/dirent: Likewise.
33071         * modules/errno: Likewise.
33072         * modules/fcntl: Likewise.
33073         * modules/float: Likewise.
33074         * modules/fnmatch: Likewise.
33075         * modules/getopt-posix: Likewise.
33076         * modules/glob: Likewise.
33077         * modules/iconv_open: Likewise.
33078         * modules/inttypes: Likewise.
33079         * modules/localcharset: Likewise.
33080         * modules/locale: Likewise.
33081         * modules/math: Likewise.
33082         * modules/netdb: Likewise.
33083         * modules/netinet_in: Likewise.
33084         * modules/poll: Likewise.
33085         * modules/posix_spawnp-tests: Likewise.
33086         * modules/sched: Likewise.
33087         * modules/search: Likewise.
33088         * modules/selinux-h: Likewise.
33089         * modules/signal: Likewise.
33090         * modules/spawn: Likewise.
33091         * modules/stdarg: Likewise.
33092         * modules/stdbool: Likewise.
33093         * modules/stddef: Likewise.
33094         * modules/stdint: Likewise.
33095         * modules/stdio: Likewise.
33096         * modules/stdlib: Likewise.
33097         * modules/string: Likewise.
33098         * modules/strings: Likewise.
33099         * modules/sys_file: Likewise.
33100         * modules/sys_ioctl: Likewise.
33101         * modules/sys_select: Likewise.
33102         * modules/sys_socket: Likewise.
33103         * modules/sys_stat: Likewise.
33104         * modules/sys_time: Likewise.
33105         * modules/sys_times: Likewise.
33106         * modules/sys_utsname: Likewise.
33107         * modules/sys_wait: Likewise.
33108         * modules/sysexits: Likewise.
33109         * modules/time: Likewise.
33110         * modules/unistd: Likewise.
33111         * modules/wchar: Likewise.
33112         * modules/wctype: Likewise.
33113
33114 2009-08-22  Jim Meyering  <meyering@redhat.com>
33115
33116         announce-gen: detect write failure
33117         * build-aux/announce-gen: Add Coda at end.
33118         Remove equivalent-but-more-verbose block at top.
33119
33120 2009-08-19  Akim Demaille  <demaille@gostai.com>
33121
33122         bootstrap: --help to stdout.
33123         * bootstrap (usage): Don't send --help to stderr.
33124         Use a here doc instead of a long string.
33125
33126 2009-08-21  Eric Blake  <ebb9@byu.net>
33127
33128         test-popen-safer: split from test-popen
33129         * tests/test-popen.c (main): Move...
33130         * tests/test-popen.h: ...into new file.
33131         * tests/test-popen-safer2.c: New file.
33132         * modules/popen-tests (Files): Add test-popen.h.
33133         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33134         Suggested by Bruno Haible.
33135
33136         test-fcntl-safer: split from test-open
33137         * tests/test-open.c (main): Move...
33138         * tests/test-open.h: ...into new file.
33139         * tests/test-fcntl-safer.c: New file.
33140         * modules/open-tests (Files): Add test-open.h.
33141         * modules/fcntl-safer-tests: New file.
33142         Suggested by Bruno Haible.
33143
33144         test-fopen-safer: split from test-fopen
33145         * tests/test-fopen.c (main): Move...
33146         * tests/test-fopen.h: ...into new file.
33147         * tests/test-fopen-safer.c: New file.
33148         * modules/fopen-tests (Files): Add test-fopen.h.
33149         * modules/fopen-safer-tests: New file.
33150         Suggested by Bruno Haible.
33151
33152 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33153
33154         popen-safer: test O_CLOEXEC at run-time.
33155         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33156
33157 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33158
33159         fcntl: move more flags to the header
33160         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33161         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33162         * lib/fcntl.in.h: Do both things here.
33163
33164 2009-08-21  Jim Meyering  <meyering@redhat.com>
33165
33166         consistently remove $@-t before redirecting to it
33167         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33168         * modules/alloca-opt: Likewise.
33169         * modules/byteswap: Likewise.
33170         * modules/fnmatch: Likewise.
33171         * modules/getopt-posix: Likewise.
33172         * modules/glob: Likewise.
33173         * modules/poll: Likewise.
33174         * modules/posix_spawnp-tests: Likewise.
33175         * modules/sys_socket: Likewise.
33176         * modules/sysexits: Likewise.
33177
33178 2009-08-21  Eric Blake  <ebb9@byu.net>
33179
33180         popen: simplify access to original popen
33181         * lib/popen.c (rpl_popen): No need to worry about popen being a
33182         macro.
33183         Reported by Bruno Haible.
33184
33185 2009-08-20  Eric Blake  <ebb9@byu.net>
33186
33187         build: avoid some compiler warnings
33188         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33189         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33190         type.
33191         (new_exclude_segment, excluded_file_pattern_p)
33192         (excluded_file_name_p): Reduce scope.
33193         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33194         old-style declaration.
33195
33196 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33197
33198         * tests/test-exclude1.sh: Handle Windows EOL.
33199         * tests/test-exclude2.sh: Likewise.
33200         * tests/test-exclude3.sh: Likewise.
33201         * tests/test-exclude4.sh: Likewise.
33202         * tests/test-exclude5.sh: Likewise.
33203         * tests/test-exclude6.sh: Likewise.
33204         * tests/test-exclude7.sh: Likewise.
33205
33206 2009-08-19  Akim Demaille  <demaille@gostai.com>
33207
33208         bootstrap: find sha1sum when named gsha1sum.
33209         * bootstrap (find_tool): New.
33210         ($SHA1SUM): New.
33211         Use it.
33212
33213 2009-08-20  Jim Meyering  <meyering@redhat.com>
33214
33215         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33216         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33217         expression that converts "." in a file name to "\." in the resulting
33218         regexp.  Start with a dummy statement, so that prior shell variable
33219         definitions are expanded portably.  Reported by Simon Josefsson.
33220
33221 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33222
33223         Fix polling for writeability of a screen buffer.
33224         * lib/poll.c: Distinguish input and screen buffers for the
33225         Win32 implementation.
33226         * lib/select.c: Likewise.
33227
33228 2009-08-19  Eric Blake  <ebb9@byu.net>
33229
33230         popen-safer: prevent popen from clobbering std descriptors
33231         * modules/popen-safer: New file.
33232         * lib/popen-safer.c: Likewise.
33233         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33234         * lib/stdio--.h (popen): Provide override.
33235         * lib/stdio-safer.h (popen_safer): Provide declaration.
33236         * tests/test-popen.c (includes): Partially test this.
33237         * modules/popen-safer-tests: New file, for more tests.
33238         * tests/test-popen-safer.c: Likewise.
33239         * MODULES.html.sh (file stream based Input/Output): Mention it.
33240
33241         tests: test some of the *-safer modules
33242         * modules/fopen-safer (Depends-on): Add fopen.
33243         * modules/fcntl-safer (Depends-on): Add fcntl.
33244         * modules/stdlib-safer (Depends-on): Add stdlib.
33245         (configure.ac): Set indicator.
33246         * modules/unistd-safer (configure.ac): Likewise.
33247         * modules/tmpfile-safer (configure.ac): Likewise.
33248         (Depends-on): Add tmpfile.
33249         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33250         active.
33251         * tests/test-fopen.c (includes): Test safer versions when they are
33252         in use.
33253         * tests/test-open.c (includes): Likewise.
33254
33255         popen: fix cygwin 1.5 bug when stdin closed
33256         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33257         * modules/popen: New file.
33258         * modules/popen-tests: Likewise.
33259         * tests/test-popen.c: Likewise.
33260         * m4/popen.m4: Likewise.
33261         * lib/popen.c: Likewise.
33262         * lib/stdio.in.h (popen): New declaration.
33263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33264         * modules/stdio (Makefile.am): Likewise.
33265         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33266
33267 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33268
33269         maint.mk: give full control over update-copyright exclusions
33270         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33271         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33272         (update-copyright): Don't force inclusion of top-level
33273         ChangeLog.  Don't force exclusion of all COPYING files, but make
33274         them the default exclusion instead.
33275
33276 2009-08-16  Bruno Haible  <bruno@clisp.org>
33277
33278         Fix test failures on Solaris 10.
33279         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33280         tests when Solaris iconv() is used.
33281         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33282         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33283         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33284         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33285         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33286
33287 2009-08-16  Bruno Haible  <bruno@clisp.org>
33288
33289         Fix test failures on Solaris 10.
33290         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33291         'tr' program and pass it as first argument.
33292         * tests/test-pipe-filter-gi1.sh: Likewise.
33293         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33294         program as first argument.
33295         * tests/test-pipe-filter-gi1.c (main): Likewise.
33296
33297 2009-08-16  Eric Blake  <ebb9@byu.net>
33298
33299         fpurge: fix previous commits
33300         * modules/fpurge (Makefile.am): Make replacement conditional,
33301         partially reverting 2007-04-29 change; missed in previous
33302         attempt.
33303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33304         is missing.
33305
33306 2009-08-16  Bruno Haible  <bruno@clisp.org>
33307
33308         Clarify fpurge's effect on the file position.
33309         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33310         * tests/test-fpurge.c (main): Make a second pass for checking the file
33311         position.
33312
33313 2009-08-16  Bruno Haible  <bruno@clisp.org>
33314
33315         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33316         declaration of fpurge is missing.
33317         * tests/test-fpurge.c (main): Check that the file has not more contents
33318         than expected. Close the file before removing it.
33319
33320 2009-08-15  Eric Blake  <ebb9@byu.net>
33321
33322         fpurge: don't wrap working cygwin implementation
33323         * lib/fpurge.c (fpurge): Fix comment typo.
33324         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33325         1.7 to avoid replacement.
33326         * tests/test-fpurge.c (main): Enhance test.
33327
33328 2009-08-15  Eric Blake  <ebb9@byu.net>
33329         and Jim Meyering  <meyering@redhat.com>
33330
33331         test-update-copyright: skip if perl is insufficient
33332         * tests/test-update-copyright.sh: Failure to run maintainer tool
33333         should not cause testsuite failure on cygwin 1.5.
33334
33335 2009-08-14  Eric Blake  <ebb9@byu.net>
33336
33337         doc: mention more functions added in cygwin 1.7.0
33338         * doc/posix-headers/limits.texi (limits.h): Update for recent
33339         cygwin additions.
33340         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33341         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33342         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33343         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33344         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33345
33346 2009-08-14  Eric Blake  <ebb9@byu.net>
33347
33348         maint.mk: simplify update-copyright rule
33349         * top/maint.mk (update-copyright-local): Delete, and document how
33350         to do it in cfg.mk instead.
33351         (update-copyright-exclude-regexp): Delete, and document how to do
33352         it in .x-update-copyright instead.
33353         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33354         exclude ChangeLog.
33355
33356 2009-08-14  Bruno Haible  <bruno@clisp.org>
33357
33358         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33359
33360 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33361
33362         maint.mk: support update-copyright-env
33363         * top/maint.mk (update-copyright-env): Define place-holder.
33364         (update-copyright): Expand $(update-copyright-env) before
33365         invoking update-copyright.
33366
33367 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33368
33369         update-copyright: implement forced reformatting
33370         * build-aux/update-copyright: Implement and document
33371         UPDATE_COPYRIGHT_FORCE.
33372         * tests/test-update-copyright.sh: Test it.
33373
33374 2009-08-14  Eric Blake  <ebb9@byu.net>
33375         and Bruno Haible  <bruno@clisp.org>
33376
33377         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33378         * tests/test-locale.c: Revert previous patch related to NULL.
33379         * tests/test-stdio.c: Likewise.
33380         * tests/test-stdlib.c: Likewise.
33381         * tests/test-string.c: Likewise.
33382         * tests/test-unistd.c: Likewise.
33383         * modules/time-tests (Depends-on): Add verify.
33384         * modules/wchar-tests (Depends-on): Likewise.
33385         * tests/test-time.c: Test for NULL compliance.
33386         * tests/test-wchar.c: Likewise.
33387         * modules/locale (Depends-on): Add stddef.
33388         * modules/stdio (Depends-on): Likewise.
33389         * modules/stdlib (Depends-on): Likewise.
33390         * modules/string (Depends-on): Likewise.
33391         * modules/time (Depends-on): Likewise.
33392         * modules/unistd (Depends-on): Likewise.
33393         * modules/wchar (Depends-on): Likewise.
33394         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33395         * lib/stdlib.in.h (includes): Likewise.
33396         * lib/string.in.h (includes): Likewise.
33397         * lib/time.in.h (includes): Likewise.
33398         * lib/unistd.in.h (includes): Likewise.
33399         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33400         replaced.
33401         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33402         * m4/stddef_h.m4: New file.
33403         * modules/stddef: Likewise.
33404         * lib/stddef.in.h: Likewise.
33405         * modules/stddef-tests: Likewise.
33406         * tests/test-stddef.c: Likewise.
33407         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33408         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33409         * doc/posix-headers/locale.texi (locale.h): Likewise.
33410         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33411         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33412         * doc/posix-headers/string.texi (string.h): Likewise.
33413         * doc/posix-headers/time.texi (time.h): Likewise.
33414         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33415         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33416
33417 2009-08-14  Eric Blake  <ebb9@byu.net>
33418
33419         doc: improve git diff of texinfo files
33420         * .gitattributes: Add rule for *.texi files, with hint on how to
33421         use it.
33422         Copied from m4, and based on a report by Bruno Haible.
33423
33424 2009-08-14  Bruno Haible  <bruno@clisp.org>
33425
33426         Disable multithread support by default on Cygwin 1.5.x for real.
33427         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33428
33429 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33430
33431         update-copyright: much ado about intervals
33432         * build-aux/update-copyright: Implement and document
33433         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33434         of copyright year intervals.
33435         Also, document UPDATE_COPYRIGHT_YEAR.
33436         * tests/test-update-copyright.sh: Test it.
33437
33438         update-copyright: convert 2-digit to 4-digit years
33439         * build-aux/update-copyright: Implement and document.
33440         * tests/test-update-copyright.sh: Update.
33441
33442 2009-08-14  Jim Meyering  <meyering@redhat.com>
33443
33444         test-exclude: avoid coreutils "make check" failure
33445         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33446         just as in test-argmatch.c.
33447
33448 2009-08-13  Eric Blake  <ebb9@byu.net>
33449
33450         test-dup2: fix bad assumption
33451         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33452         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33453
33454         test-version-etc: fix CRLF portability issue
33455         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33456         recognize \r.
33457         * tests/test-argp-version-etc-1.sh: Likewise.
33458
33459         getopt: update client modules
33460         * modules/argp (Depends-on): Use getopt-gnu.
33461         * modules/git-merge-changelog (Depends-on): Likewise.
33462         * modules/long-options (Depends-on): Likewise.
33463         * modules/xstrtol (Depends-on): Likewise.
33464
33465 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33466
33467         * tests/test-version-etc.sh: Don't fail on different
33468         project/version.  Don't fail on CRLF differences.  Rewrite to use
33469         multiple -e instead of multiple sed forks, suggested by Eric Blake
33470         <ebb9@byu.net>.
33471         * tests/test-argp-version-etc-1.sh: Likewise.
33472
33473 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33474
33475         * tests/test-version-etc.sh: Don't fail on different
33476         project/version.
33477
33478 2009-08-12  Bruno Haible  <bruno@clisp.org>
33479
33480         Tests for modules 'getopt-posix', 'getopt-gnu'.
33481         * modules/getopt-posix-tests: New file.
33482         * tests/test-getopt.c: New file.
33483         * tests/test-getopt.h: New file.
33484         * tests/test-getopt_long.h: New file.
33485
33486         New modules 'getopt-posix', 'getopt-gnu'.
33487         * modules/getopt-gnu: New file, renamed from modules/getopt.
33488         * modules/getopt-posix: New file.
33489         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33490         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33491         (gl_GETOPT): Remove macro.
33492         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33493         Disable the test against BSD systems that declare optreset. Test
33494         against mingw bug. Test against lack of support of optional arguments
33495         on many platforms.
33496         * doc/glibc-headers/getopt.texi: Update module name and list of
33497         relevant platforms.
33498         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33499         'getopt-gnu' and more portability problems.
33500         * NEWS: Mention the changes.
33501
33502 2009-08-12  Bruno Haible  <bruno@clisp.org>
33503
33504         Ensure that optarg etc. get declared by <unistd.h>.
33505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33506         AC_USE_SYSTEM_EXTENSIONS.
33507         * modules/getopt (Depends-on): Add 'extensions'.
33508
33509 2009-08-12  Bruno Haible  <bruno@clisp.org>
33510
33511         Avoid test link errors.
33512         * modules/pipe-filter-ii-tests (Makefile.am): Define
33513         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33514         * modules/pipe-filter-gi-tests (Makefile.am): Define
33515         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33517
33518 2009-08-12  Bruno Haible  <bruno@clisp.org>
33519
33520         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33521         gl_GETOPT_SUBSTITUTE before.
33522         (gl_GETOPT): Use it.
33523         * m4/argp.m4 (gl_ARGP): Update.
33524         Reported by Sergey Poznyakoff.
33525
33526         * m4/getopt.m4: Reorder macros.
33527         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33528         (gl_GETOPT_SUBSTITUTE): Remove macro.
33529
33530 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33531
33532         Minor improvement in gitlog-to-changelog
33533
33534         * build-aux/gitlog-to-changelog: New option `--format' makes
33535         output format string configurable.
33536
33537 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33538
33539         Optimize exclude: use hash tables for non-wildcard patterns.
33540
33541         * lib/exclude.c: Include hash.h and mbuiter.h
33542         (struct exclude_pattern, exclude_segment): New data types.
33543         (struct exclude): Rewrite.
33544         (fnmatch_pattern_has_wildcards): New function.
33545         (new_exclude_segment, free_exclude_segment): New functions.
33546         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33547         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33548         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33549         * modules/exclude: Depend on hash and mbuiter.
33550
33551         * modules/exclude-tests: New file.
33552         * tests/test-exclude.c: New file.
33553         * tests/test-exclude1.sh: New file.
33554         * tests/test-exclude2.sh: New file.
33555         * tests/test-exclude3.sh: New file.
33556         * tests/test-exclude4.sh: New file.
33557         * tests/test-exclude5.sh: New file.
33558         * tests/test-exclude6.sh: New file.
33559         * tests/test-exclude7.sh: New file.
33560
33561 2009-08-12  Bruno Haible  <bruno@clisp.org>
33562
33563         Ensure that getopt() gets declared by <unistd.h>.
33564         * lib/unistd.in.h: Conditionally include getopt.h.
33565         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33566         Set GNULIB_UNISTD_H_GETOPT.
33567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33568         GNULIB_UNISTD_H_GETOPT.
33569         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33570
33571 2009-08-12  Bruno Haible  <bruno@clisp.org>
33572
33573         Clarify logic.
33574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33575         gl_replace_getopt instead of GETOPT_H.
33576
33577 2009-08-12  Bruno Haible  <bruno@clisp.org>
33578
33579         * m4/getopt.m4: Add comments.
33580
33581 2009-08-12  Bruno Haible  <bruno@clisp.org>
33582
33583         Disable multithread support by default on Cygwin 1.5.x.
33584         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33585         set gl_use_threads=no if not specified otherwise.
33586
33587 2009-08-11  Bruno Haible  <bruno@clisp.org>
33588
33589         Avoid compilation error on NetBSD 5.0.
33590         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33591         * tests/test-stdio.c: Likewise.
33592         * tests/test-stdlib.c: Likewise.
33593         * tests/test-string.c: Likewise.
33594         * tests/test-unistd.c: Likewise.
33595         Reported by Greg Troxel <gdt@ir.bbn.com>
33596         at <https://savannah.gnu.org/support/?106973>.
33597
33598 2009-08-11  Bruno Haible  <bruno@clisp.org>
33599
33600         * modules/dup2-tests (Depends-on): Remove close.
33601
33602         Undo 2009-07-19 commit.
33603         * modules/acl-tests (Depends-on): Remove close.
33604         * modules/binary-io-tests (Depends-on): Likewise.
33605         * modules/closein-tests (Depends-on): Likewise.
33606         * modules/flock-tests (Depends-on): Likewise.
33607         * modules/fsync-tests (Depends-on): Likewise.
33608         * modules/lseek-tests (Depends-on): Likewise.
33609         * modules/pipe-tests (Depends-on): Likewise.
33610         * modules/posix_spawn-tests (Depends-on): Likewise.
33611         * modules/posix_spawnp-tests (Depends-on): Likewise.
33612         * modules/stat-time-tests (Depends-on): Likewise.
33613         * modules/yesno-tests (Depends-on): Likewise.
33614
33615 2009-08-10  Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33618
33619 2009-08-10  Bruno Haible  <bruno@clisp.org>
33620
33621         Fix a gcc warning.
33622         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33623
33624 2009-08-10  Bruno Haible  <bruno@clisp.org>
33625
33626         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33627         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33628         not only the first time.
33629         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33630         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33631         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33632         is 1, not only the the first time.
33633
33634 2009-08-10  Bruno Haible  <bruno@clisp.org>
33635
33636         Make it possible to use module 'gethostname' without module 'close'.
33637         * lib/unistd.in.h (close): Evoke a link error only if
33638         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33640         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33641         * modules/unistd (Makefile.am): Substitute
33642         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33643         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33644         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33645         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33646         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33647         * modules/sys_ioctl (Makefile.am): Substitute
33648         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33649         * modules/socket (configure.ac): On native Windows, set
33650         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33651         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33652         Reported by Sam Steingold <sds@gnu.org>.
33653
33654 2009-08-10  Bruno Haible  <bruno@clisp.org>
33655
33656         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33657         * modules/ioctl (configure.ac): Likewise.
33658
33659 2009-08-10  Bruno Haible  <bruno@clisp.org>
33660
33661         Avoid collision between gnulib wrapper and libintl wrapper.
33662         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33663         already defined in intl/printf.c.
33664         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33665         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33666
33667 2009-08-09  Bruno Haible  <bruno@clisp.org>
33668
33669         Make <sys/select.h> really self-contained, also on Solaris 10.
33670         * lib/sys_select.in.h: Include <string.h>.
33671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33672         Solaris 10 problem.
33673         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33674         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33675         Reported by Jim Meyering.
33676
33677 2009-08-09  Bruno Haible  <bruno@clisp.org>
33678
33679         Avoid warnings from 'aclocal' that are due to a use of macro name
33680         AM_XGETTEXT_OPTION that is not defined in automake.
33681         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33682         automake.
33683         * modules/error (configure.ac): Likewise.
33684         * modules/propername (configure.ac): Likewise.
33685         * modules/vasprintf (configure.ac): Likewise.
33686         * modules/verror (configure.ac): Likewise.
33687         * modules/xprintf (configure.ac): Likewise.
33688         * modules/xvasprintf (configure.ac): Likewise.
33689
33690 2009-08-08  Bruno Haible  <bruno@clisp.org>
33691
33692         Avoid compilation error in C++ mode.
33693         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33694         Reported by Sam Steingold <sds@gnu.org>.
33695
33696 2009-08-08  Bruno Haible  <bruno@clisp.org>
33697
33698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33699         for the various Unix platforms.
33700         * doc/posix-headers/limits.texi: Update platforms list regarding
33701         HOST_NAME_MAX.
33702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33703
33704 2009-08-07  Jim Meyering  <meyering@redhat.com>
33705
33706         selinux-at: fix typo in a comment
33707         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33708         Spotted by Paolo Bonzini.
33709
33710         selinux-at: remove redundant m4 code, add documentation
33711         * modules/selinux-at (configure.ac): Remove redundant code.
33712         LIB_SELINUX is already set via the dependent module, selinux-h.
33713         (Include): Add quotes around selinux-at.h.
33714         * lib/selinux-at.h: Add documentation.
33715         Reported by Bruno Haible in
33716         http://marc.info/?l=gnulib-bug&m=124958988300749
33717
33718 2009-08-07  Bruno Haible  <bruno@clisp.org>
33719
33720         Avoid link error on MacOS X 10.3 and 10.4.
33721         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33722         on non-ELF systems.
33723         * lib/argp-pv.c (argp_program_version): Likewise.
33724         Reported by Simon Josefsson.
33725
33726 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33727
33728         * tests/test-version-etc.sh: Use $EXEEXT.
33729
33730 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33731
33732         update-copyright: update documentation to point to maint.mk
33733         * build-aux/update-copyright: Here.
33734
33735 2009-08-06  Jim Meyering  <meyering@redhat.com>
33736
33737         maint.mk: support update-copyright-local
33738         * top/maint.mk (update-copyright-local): Define place-holder.
33739         (update-copyright): Depend on $(update-copyright-local).
33740
33741 2009-08-06  Jim Meyering  <meyering@redhat.com>
33742
33743         selinux-at: new module
33744         Initially written for coreutils, this module will soon be
33745         used by findutils, too.
33746         * MODULES.html.sh [Misc]: Add selinux-at.
33747         * lib/selinux-at.h: New file, from coreutils.
33748         * lib/selinux-at.c: Likewise.
33749         * modules/selinux-at: Likewise.
33750         (License): Change from LGPL to GPL, since it depends
33751         on the GPL'd openat module.
33752
33753         doc: update README
33754         * README: Remove references to cogito.
33755         Remove cvs-repo-updating instructions from 2007.
33756         Don't imply that CVS is better if you have limited disk space.
33757
33758 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33759
33760         update-copyright: support C-style comments
33761         * build-aux/update-copyright: Implement and document.
33762         * tests/test-update-copyright.sh: Test.
33763
33764 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33765
33766         update-copyright: support omitted "(C)"
33767         * build-aux/update-copyright: Implement and document.  Also,
33768         allow variable whitespace before "(C)".
33769         * tests/test-update-copyright.sh: Test.
33770
33771 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33772
33773         update-copyright: don't trip on non-FSF copyright statements
33774         * build-aux/update-copyright: Fix so that the first correctly
33775         formatted FSF copyright statement is recognized no matter what
33776         appears before it.  Update documentation.
33777         * tests/test-update-copyright.sh: Test that.
33778
33779 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33780
33781         update-copyright: clean up code a little
33782         * build-aux/update-copyright: Append "_re" to the name of any
33783         variable holding a regular expression.
33784         Replace "old" and "new" with "stmt" in variable names.
33785         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33786         handled correctly.
33787         Format code more consistently.
33788
33789 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33790
33791         update-copyright-tests: improve portability
33792         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33793         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33794
33795 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33796
33797         update-copyright: support @copyright{} and &copy;
33798         * build-aux/update-copyright: Implement and document.
33799         * tests/test-update-copyright.sh: Test.
33800
33801 2009-08-04  Jim Meyering  <meyering@redhat.com>
33802
33803         update-copyright-tests: correctly test EOL=\r\n handling
33804         * tests/test-update-copyright.sh: Put \r at the end of some lines
33805         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33806
33807         maint.mk: make update-copyright exclusion list more configurable
33808         * top/maint.mk (update-copyright): Default to excluding COPYING,
33809         but allow an override, in case someone does want to update that file.
33810
33811         maint.mk: don't update copyright date in COPYING
33812         * top/maint.mk (update-copyright): Exclude COPYING.
33813
33814         maint.mk: add a copyright-updating rule
33815         * top/maint.mk (update-copyright): New rule.
33816         Derived from coreutils/Makefile.am.
33817
33818         update-copyright: rename some variables
33819         * build-aux/update-copyright: Rename a few variables for clarity.
33820         Tweak syntax.  List Joel E. Denny as coauthor.
33821
33822 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33823
33824         update-copyright: fix bug for 2-digit last year and add tests
33825         * build-aux/update-copyright: Fix bug.
33826         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33827         specified.
33828         * modules/update-copyright-tests: New
33829         * tests/test-update-copyright.sh: New.
33830
33831 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33832
33833         update-copyright: handle leading tabs in line prefix
33834         * build-aux/update-copyright: Count leading tabs as 8 spaces
33835         when computing margin.  This helps with the formatting of
33836         ChangeLogs, for example.
33837         Fix documentation a little.
33838
33839 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33840
33841         update-copyright: support EOL=\r\n
33842         * build-aux/update-copyright: Implement that.
33843
33844 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33845
33846         update-copyright: automatically format copyright statements
33847         * build-aux/update-copyright: Implement that.
33848         Also, be a little more predictable and safer by always failing
33849         when the full copyright format is not perfectly recognized as an
33850         unbroken whole.  Discussed at
33851         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33852         Rewrite documentation.
33853
33854 2009-08-03  Bruno Haible  <bruno@clisp.org>
33855
33856         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33857
33858 2009-08-02  Bruno Haible  <bruno@clisp.org>
33859
33860         Tests for module 'uname'.
33861         * modules/uname-tests: New file.
33862         * tests/test-uname.c: New file.
33863
33864         New module 'uname'.
33865         * lib/uname.c: New file.
33866         * m4/uname.m4: New file.
33867         * modules/uname: New file.
33868         * doc/posix-functions/uname.texi: Mention the new module.
33869
33870 2009-08-02  Bruno Haible  <bruno@clisp.org>
33871
33872         Tests for module 'sys_utsname'.
33873         * modules/sys_utsname-tests: New file.
33874         * tests/test-sys_utsname.c: New file.
33875
33876         New module 'sys_utsname'.
33877         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33878         * m4/sys_utsname_h.m4: New file.
33879         * modules/sys_utsname: New file.
33880         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33881
33882 2009-08-02  Bruno Haible  <bruno@clisp.org>
33883
33884         Implicitly initialize the sockets library.
33885         * lib/gethostname.c: Include sockets.h.
33886         (rpl_gethostname): Invoke gl_sockets_startup.
33887         * lib/socket.c: Include sockets.h.
33888         (rpl_socket): Invoke gl_sockets_startup.
33889         * modules/gethostname (Depends-on): Add sockets.
33890         * modules/socket (Depends-on): Likewise.
33891         * tests/test-poll.c: Don't include sockets.h.
33892         (main): Don't invoke gl_sockets_startup.
33893         * tests/test-select.c: Don't include sockets.h.
33894         (main): Don't invoke gl_sockets_startup.
33895
33896 2009-08-02  Bruno Haible  <bruno@clisp.org>
33897
33898         Allow multiple calls to gl_sockets_startup.
33899         * lib/sockets.c (initialized_sockets_version): New variable.
33900         (gl_sockets_startup): Do nothing if already called for this or a higher
33901         version.
33902         (gl_sockets_cleanup): Reset initialized_sockets_version.
33903
33904 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33905
33906         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33907         different project/version.
33908
33909 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33910             Bruno Haible  <bruno@clisp.org>
33911
33912         Tests for module 'pipe-filter-gi'.
33913         * modules/pipe-filter-gi-tests: New file.
33914         * tests/test-pipe-filter-gi1.sh: New file.
33915         * tests/test-pipe-filter-gi1.c: New file.
33916         * tests/test-pipe-filter-gi2.sh: New file.
33917         * tests/test-pipe-filter-gi2-main.c: New file.
33918         * tests/test-pipe-filter-gi2-child.c: New file.
33919
33920         New module 'pipe-filter-gi'.
33921         * lib/pipe-filter-gi.c: New file.
33922         * modules/pipe-filter-gi: New file.
33923
33924 2009-08-02  Bruno Haible  <bruno@clisp.org>
33925             Paolo Bonzini  <bonzini@gnu.org>
33926
33927         Tests for module 'pipe-filter-ii'.
33928         * modules/pipe-filter-ii-tests: New file.
33929         * tests/test-pipe-filter-ii1.sh: New file.
33930         * tests/test-pipe-filter-ii1.c: New file.
33931         * tests/test-pipe-filter-ii2.sh: New file.
33932         * tests/test-pipe-filter-ii2-main.c: New file.
33933         * tests/test-pipe-filter-ii2-child.c: New file.
33934
33935         New module 'pipe-filter-ii'.
33936         * lib/pipe-filter.h: New file.
33937         * lib/pipe-filter-ii.c: New file.
33938         * lib/pipe-filter-aux.h: New file.
33939         * modules/pipe-filter-ii: New file.
33940
33941 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33942
33943         * lib/gc-libgcrypt.c: Change copyright to FSF.
33944         * lib/gc-gnulib.c: Likewise.
33945
33946 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33947
33948         * lib/gethostname.c: Include limits.h.
33949
33950 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33951             Bruno Haible  <bruno@clisp.org>
33952
33953         Ensure HOST_NAME_MAX as part of the gethostname module.
33954         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33955         define also HOST_NAME_MAX.
33956         * tests/test-gethostname.c: Include <limits.h>.
33957         (main): Check also HOST_NAME_MAX.
33958         * doc/posix-headers/limits.texi: Document the mingw problem.
33959
33960 2009-08-02  Bruno Haible  <bruno@clisp.org>
33961
33962         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33963         Add comments.
33964
33965 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33966
33967         * lib/gethostname.c: Add Windows wrapper.
33968         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33969         * modules/gethostname: Depend on sys_socket & errno, for also
33970         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33971         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33972
33973 2009-07-31  Jim Meyering  <meyering@redhat.com>
33974
33975         getloadavg: fix symbol name in comment
33976         * lib/getloadavg.c: Correct a typo I introduced when adding
33977         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33978         Matt Kraai spotted the problem.
33979
33980 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33981
33982         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33983         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33984         code also if ! defined N_NAME_POINTER.
33985         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33986         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33987         but the n_name member is a 12-byte array.
33988
33989 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33990
33991         update-copyright: generalize comment handling
33992         * build-aux/update-copyright: Handle copyright statements
33993         within more comment styles.
33994         Document usage.
33995         Report any file with an external copyright holder or parse failure.
33996
33997 2009-07-29  Jim Meyering  <meyering@redhat.com>
33998
33999         mktime: correct setting of REPLACE_MKTIME
34000         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34001
34002         update-copyright: new module
34003         * modules/update-copyright: New file.
34004         * build-aux/update-copyright: New file.
34005         * MODULES.html.sh (maint+release support): Add update-copyright.
34006
34007 2009-07-27  Bruno Haible  <bruno@clisp.org>
34008
34009         Fix compilation error when <ctime> is used and mktime is replaced.
34010         * lib/time.in.h (mktime): New declaration.
34011         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34012         REPLACE_MKTIME instead of defining mktime in config.h.
34013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34014         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34015         Reported by Ross McFarland <rwmcfa1@neces.com>.
34016
34017 2009-07-27  Bruno Haible  <bruno@clisp.org>
34018
34019         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34020         Reported by Matt Kraai <mkraai@beckman.com>.
34021
34022 2009-07-25  Jim Meyering  <meyering@redhat.com>
34023
34024         maint.mk: avoid warnings about missing files
34025         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34026         diagnostic when .prev-version does not exist.
34027         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34028         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34029         nonexistent cfg.mk.
34030         Suggestions from Simon Josefsson.
34031
34032 2009-07-25  Bruno Haible  <bruno@clisp.org>
34033
34034         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34035         defined as macros. Needed on QNX 6.4.1.
34036         Reported by Matt Kraai <mkraai@beckman.com>.
34037
34038 2009-07-23  Jim Meyering  <meyering@redhat.com>
34039
34040         maint.mk: invoke "make dist" with a working value of XZ_OPT
34041         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34042
34043 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34044
34045         Make fseeko.c compile on QNX.
34046         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34047
34048 2009-07-22  Peter Simons  <simons@cryp.to>
34049
34050         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34051         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34052         * lib/md4.h: Likewise.
34053         * lib/md5.h: Likewise.
34054         * lib/sha1.h: Likewise.
34055         * lib/sha256.h: Likewise.
34056         * lib/sha512.h: Likewise.
34057
34058         tests-sha1: don't assign literal string to 'char *' variable
34059         * tests/test-sha1.c (main): Declare locals with "const" to match
34060         attributes of the right hand side.
34061
34062 2009-07-21  Eric Blake  <ebb9@byu.net>
34063
34064         dup2: fix more mingw problems
34065         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34066         fd to itself.
34067         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34068         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34069         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34070         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34071         care of mingw bugs.
34072
34073 2009-07-21  Jim Meyering  <meyering@redhat.com>
34074
34075         vc-list-files: avoid failure when /bin/sh is dash
34076         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34077         On some Debian based systems, /bin/sh is a symlink to dash, and running
34078         this command would omit the "/" following each 'tests' prefix:
34079           dash -x build-aux/vc-list-files -C . tests
34080         That is because bash and dash work differently:
34081           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34082           bash ok
34083           dash odd
34084
34085 2009-07-21  Eric Blake  <ebb9@byu.net>
34086
34087         dup2-tests: test previous patch
34088         * modules/dup2-tests: New file.
34089         * tests/test-dup2.c: Likewise.
34090         * tests/test-open.c (main): Avoid unspecified behavior.
34091         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34092         test.
34093
34094         dup2: work around mingw and cygwin 1.5 bug
34095         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34097         * modules/unistd (Makefile.am): Substitute it.
34098         * lib/unistd.in.h (dup2): Declare the replacement.
34099         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34100         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34101         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34102         * modules/execute (Depends-on): Add dup2.
34103         * modules/fseterr (Depends-on): Likewise.
34104         * modules/pipe (Depends-on): Likewise.
34105         * modules/posix_spawn-internal (Depends-on): Likewise.
34106
34107 2009-07-21  Bruno Haible  <bruno@clisp.org>
34108
34109         * modules/.gitattributes: New file.
34110
34111 2009-07-20  Bruno Haible  <bruno@clisp.org>
34112
34113         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34114         (main): Use it.
34115
34116 2009-07-20  Eric Blake  <ebb9@byu.net>
34117
34118         test-pipe: make a bit more robust.
34119         * tests/test-pipe.c (myerr): Allow error messages regardless of
34120         what we do to stderr.
34121         (test_pipe): Rearrange to avoid deadlock.
34122         (child_main): Try a larger read, to ensure we avoided deadlock.
34123         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34124         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34125         if misused.
34126
34127 2009-07-19  Jim Meyering  <meyering@redhat.com>
34128
34129         fts: avoid false-positive cycle-detection
34130         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34131         for each new command line argument.
34132
34133 2009-07-19  Bruno Haible  <bruno@clisp.org>
34134
34135         Fix build error on mingw with the modules sys_select and unistd.
34136         * modules/acl-tests (Depends-on): Add close.
34137         * modules/binary-io-tests (Depends-on): Likewise.
34138         * modules/closein-tests (Depends-on): Likewise.
34139         * modules/flock-tests (Depends-on): Likewise.
34140         * modules/fsync-tests (Depends-on): Likewise.
34141         * modules/lseek-tests (Depends-on): Likewise.
34142         * modules/pipe-tests (Depends-on): Likewise.
34143         * modules/posix_spawn-tests (Depends-on): Likewise.
34144         * modules/posix_spawnp-tests (Depends-on): Likewise.
34145         * modules/stat-time-tests (Depends-on): Likewise.
34146         * modules/yesno-tests (Depends-on): Likewise.
34147
34148 2009-07-19  Bruno Haible  <bruno@clisp.org>
34149
34150         Unify conditionals.
34151         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34152         macros, not at the compiler macros.
34153         * lib/pipe.c: Likewise.
34154         * lib/execute.c: Likewise.
34155         * lib/spawni.c: Likewise.
34156
34157 2009-07-19  Bruno Haible  <bruno@clisp.org>
34158
34159         Fix handling of closed stdin/stdout/stderr on mingw.
34160         * lib/w32spawn.h: Include unistd.h.
34161         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34162         file descriptor with O_NOINHERIT flag.
34163         (fd_safer_noinherit): New function, based on fd-safer.c.
34164         (dup_safer_noinherit): New function, based on dup-safer.c.
34165         (undup_safer_noinherit): New function.
34166         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34167         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34168         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34169         instead of fd_safer.
34170         * tests/test-pipe.c: Include <windows.h>.
34171         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34172         result.
34173
34174         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34175         from main.
34176         (test_pipe): Pass an extra argument for disambiguation.
34177         (main): Invoke parent_main or child_main.
34178
34179         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34180         consistently.
34181
34182 2009-07-18  Eric Blake  <ebb9@byu.net>
34183
34184         test-pipe: fix mingw build
34185         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34186
34187 2009-07-18  Bruno Haible  <bruno@clisp.org>
34188
34189         * modules/pipe-tests (Makefile.am): Fix typo.
34190
34191 2009-07-18  Eric Blake  <ebb9@byu.net>
34192
34193         error: fix mingw build
34194         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34195         Reported by Bruno Haible.
34196
34197         error: avoid undefined use of stdout
34198         * lib/error.c (error, error_at_line): Check that fd 1 is open
34199         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34200         is handling faults and the close_stdout module wants to report the
34201         detection of closed stdout as an error.
34202
34203 2009-07-17  Eric Blake  <ebb9@byu.net>
34204
34205         pipe: be robust in face of closed fds
34206         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34207         should cause child to misbehave.
34208         * modules/pipe-tests: New module.
34209         * tests/test-pipe.c: New file.
34210         * tests/test-pipe.sh: New file.
34211         Reported by Akim Demaille.
34212
34213 2009-07-14  Bruno Haible  <bruno@clisp.org>
34214
34215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34216         Reported by anonymous kc.
34217
34218 2009-07-07  Jim Meyering  <meyering@redhat.com>
34219
34220         maint.mk: don't look for translatable strings in *.m4 or *.mk
34221         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34222         when searching for translatable strings.
34223
34224 2009-07-05  Jim Meyering  <meyering@redhat.com>
34225
34226         remove superfluous parentheses in STREQ definition
34227         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34228         * lib/getugroups.c (STREQ): Likewise.
34229         * lib/fnmatch.c (STREQ): Likewise.
34230         Spotted by Bruno Haible.
34231
34232 2009-07-04  Jim Meyering  <meyering@redhat.com>
34233
34234         argv-iter: new module
34235         * MODULES.html.sh: Add argv-iter.
34236         * lib/argv-iter.c, lib/argv-iter.h: New files.
34237         * modules/argv-iter: New file.
34238         * modules/argv-iter-tests: New file.
34239         * tests/test-argv-iter.c: Test it.
34240
34241 2009-07-04  Bruno Haible  <bruno@clisp.org>
34242
34243         Fix assertion.
34244         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34245         contains more exact copies of a given entry than file2, leave the extra
34246         copies unpaired rather than aborting.
34247         Reported by Eric Blake.
34248
34249 2009-07-02  Bruno Haible  <bruno@clisp.org>
34250
34251         Speedup git-merge-changelog for git cherry-pick.
34252         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34253         (entries_mapping_get): New function, extracted from compute_mapping.
34254         (entries_mapping_reverse_get): New function.
34255         (compute_mapping): Add a 'full' argument. Return the result in a
34256         'struct entries_mapping'.
34257         (main): Update. Access the mappings through entries_mapping_get.
34258         Reported by Eric Blake.
34259
34260 2009-07-02  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34263         best_i.
34264
34265 2009-07-02  Bruno Haible  <bruno@clisp.org>
34266
34267         Speed up approximate search for matching ChangeLog entries.
34268         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34269         argument. Call fstrcmp_bounded instead of fstrcmp.
34270         (compute_mapping, try_split_merged_entry, main): Update callers.
34271
34272 2009-07-02  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34275
34276 2009-06-30  Bruno Haible  <bruno@clisp.org>
34277
34278         Reduce the number of uc_is_cased calls.
34279         * lib/unicase.h (casing_suffix_context_t): Add
34280         'first_char_except_ignorable' field.
34281         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34282         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34283         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34284         Update initializer.
34285         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34286         case-ignorable characters.
34287         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34288         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34289         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34290         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34291         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34292
34293 2009-06-30  Bruno Haible  <bruno@clisp.org>
34294
34295         Tests for module 'unicase/ignorable'.
34296         * modules/unicase/ignorable-tests: New file.
34297         * tests/unicase/test-ignorable.c: New file, generated by
34298         gen-uni-tables.
34299
34300         Tests for module 'unicase/cased'.
34301         * modules/unicase/cased-tests: New file.
34302         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34303         * tests/unicase/test-predicate-part1.h: New file, derived from
34304         tests/unictype/test-predicate-part1.h.
34305         * tests/unicase/test-predicate-part2.h: New file, same as
34306         tests/unictype/test-predicate-part2.h.
34307
34308         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34309         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34310         (output_casing_properties): New function.
34311         (main): Call it.
34312         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34313         * lib/unicase/cased.c: Include unictype/bitmap.h.
34314         (uc_is_cased): Define through a bitmap lookup.
34315         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34316         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34317         (uc_is_case_ignorable): Define through a bitmap lookup.
34318         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34319         lib/unictype/bitmap.h.
34320         (Depends-on): Add inline. Clean up.
34321         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34322         lib/unictype/bitmap.h.
34323         (Depends-on): Add inline. Clean up.
34324         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34325         recognition.
34326         * tests/unicase/test-u16-tolower.c (main): Likewise.
34327         * tests/unicase/test-u32-tolower.c (main): Likewise.
34328
34329 2009-06-30  Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34332         * lib/unicase/u16-casemap.c: Likewise.
34333         * lib/unicase/u32-casemap.c: Likewise.
34334
34335 2009-06-29  Bruno Haible  <bruno@clisp.org>
34336
34337         Define u32_casefold as a wrapper around u32_ct_casefold.
34338         * lib/unicase/u32-casefold.c: Update.
34339         * modules/unicase/u32-casefold (Depends-on): Add
34340         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34341         unicase/empty-suffix-context. Clean up.
34342
34343         Define u16_casefold as a wrapper around u16_ct_casefold.
34344         * lib/unicase/u16-casefold.c: Update.
34345         * modules/unicase/u16-casefold (Depends-on): Add
34346         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34347         unicase/empty-suffix-context. Clean up.
34348
34349         Define u8_casefold as a wrapper around u8_ct_casefold.
34350         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34351         * lib/unicase/u8-casefold.c: Update.
34352         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34353         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34354
34355         Define u32_totitle as a wrapper around u32_ct_totitle.
34356         * lib/unicase/u32-totitle.c: Update.
34357         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34358         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34359
34360         Define u16_totitle as a wrapper around u16_ct_totitle.
34361         * lib/unicase/u16-totitle.c: Update.
34362         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34363         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34364
34365         Define u8_totitle as a wrapper around u8_ct_totitle.
34366         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34367         functions.
34368         (FUNC): Delegate to U_CT_TOTITLE.
34369         * lib/unicase/u8-totitle.c: Update.
34370         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34371         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34372
34373         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34374         invocation.
34375         * modules/unicase/u32-tolower (Depends-on): Add
34376         unicase/empty-prefix-context, unicase/empty-suffix-context.
34377
34378         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34379         invocation.
34380         * modules/unicase/u16-tolower (Depends-on): Add
34381         unicase/empty-prefix-context, unicase/empty-suffix-context.
34382
34383         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34384         * modules/unicase/u8-tolower (Depends-on): Add
34385         unicase/empty-prefix-context, unicase/empty-suffix-context.
34386
34387         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34388         invocation.
34389         * modules/unicase/u32-toupper (Depends-on): Add
34390         unicase/empty-prefix-context, unicase/empty-suffix-context.
34391
34392         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34393         invocation.
34394         * modules/unicase/u16-toupper (Depends-on): Add
34395         unicase/empty-prefix-context, unicase/empty-suffix-context.
34396
34397         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34398         * modules/unicase/u8-toupper (Depends-on): Add
34399         unicase/empty-prefix-context, unicase/empty-suffix-context.
34400
34401         New module 'unicase/u32-ct-casefold'.
34402         * lib/unicase/u32-ct-casefold.c: New file.
34403         * modules/unicase/u32-ct-casefold: New file.
34404
34405         New module 'unicase/u16-ct-casefold'.
34406         * lib/unicase/u16-ct-casefold.c: New file.
34407         * modules/unicase/u16-ct-casefold: New file.
34408
34409         New module 'unicase/u8-ct-casefold'.
34410         * lib/unicase/u8-ct-casefold.c: New file.
34411         * lib/unicase/u-ct-casefold.h: New file, derived from
34412         lib/unicase/u-casefold.h.
34413         * modules/unicase/u8-ct-casefold: New file.
34414
34415         New module 'unicase/u32-ct-totitle'.
34416         * lib/unicase/u32-ct-totitle.c: New file.
34417         * modules/unicase/u32-ct-totitle: New file.
34418
34419         New module 'unicase/u16-ct-totitle'.
34420         * lib/unicase/u16-ct-totitle.c: New file.
34421         * modules/unicase/u16-ct-totitle: New file.
34422
34423         New module 'unicase/u8-ct-totitle'.
34424         * lib/unicase/u8-ct-totitle.c: New file.
34425         * lib/unicase/u-ct-totitle.h: New file, derived from
34426         lib/unicase/u-totitle.h.
34427         * modules/unicase/u8-ct-totitle: New file.
34428
34429         New module 'unicase/u32-ct-tolower'.
34430         * lib/unicase/u32-ct-tolower.c: New file.
34431         * modules/unicase/u32-ct-tolower: New file.
34432
34433         New module 'unicase/u16-ct-tolower'.
34434         * lib/unicase/u16-ct-tolower.c: New file.
34435         * modules/unicase/u16-ct-tolower: New file.
34436
34437         New module 'unicase/u8-ct-tolower'.
34438         * lib/unicase/u8-ct-tolower.c: New file.
34439         * modules/unicase/u8-ct-tolower: New file.
34440
34441         New module 'unicase/u32-ct-toupper'.
34442         * lib/unicase/u32-ct-toupper.c: New file.
34443         * modules/unicase/u32-ct-toupper: New file.
34444
34445         New module 'unicase/u16-ct-toupper'.
34446         * lib/unicase/u16-ct-toupper.c: New file.
34447         * modules/unicase/u16-ct-toupper: New file.
34448
34449         New module 'unicase/u8-ct-toupper'.
34450         * lib/unicase/u8-ct-toupper.c: New file.
34451         * modules/unicase/u8-ct-toupper: New file.
34452
34453         Add context arguments to u*_casemap functions.
34454         * lib/unicase/unicasemap.h: Include unicase.h.
34455         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34456         suffix_context arguments.
34457         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34458         functions.
34459         (FUNC): Add prefix_context and suffix_context arguments. Use
34460         uc_is_cased and uc_is_case_ignorable.
34461         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34462         * lib/unicase/u16-casemap.c: Likewise.
34463         * lib/unicase/u32-casemap.c: Likewise.
34464         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34465         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34466         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34467         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34468         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34469         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34470
34471         New module 'unicase/u32-suffix-context'.
34472         * lib/unicase/u32-suffix-context.c: New file.
34473         * modules/unicase/u32-suffix-context: New file.
34474
34475         New module 'unicase/u16-suffix-context'.
34476         * lib/unicase/u16-suffix-context.c: New file.
34477         * modules/unicase/u16-suffix-context: New file.
34478
34479         New module 'unicase/u8-suffix-context'.
34480         * lib/unicase/u8-suffix-context.c: New file.
34481         * lib/unicase/u-suffix-context.h: New file.
34482         * modules/unicase/u8-suffix-context: New file.
34483
34484         New module 'unicase/empty-suffix-context'.
34485         * lib/unicase/empty-suffix-context.c: New file.
34486         * modules/unicase/empty-suffix-context: New file.
34487
34488         New module 'unicase/u32-prefix-context'.
34489         * lib/unicase/u32-prefix-context.c: New file.
34490         * modules/unicase/u32-prefix-context: New file.
34491
34492         New module 'unicase/u16-prefix-context'.
34493         * lib/unicase/u16-prefix-context.c: New file.
34494         * modules/unicase/u16-prefix-context: New file.
34495
34496         New module 'unicase/u8-prefix-context'.
34497         * lib/unicase/u8-prefix-context.c: New file.
34498         * lib/unicase/u-prefix-context.h: New file.
34499         * lib/unicase/context.h: New file.
34500         * modules/unicase/u8-prefix-context: New file.
34501
34502         New module 'unicase/empty-prefix-context'.
34503         * lib/unicase/empty-prefix-context.c: New file.
34504         * modules/unicase/empty-prefix-context: New file.
34505
34506         New module 'unicase/ignorable'.
34507         * lib/unicase/ignorable.c: New file.
34508         * modules/unicase/ignorable: New file.
34509
34510         New module 'unicase/cased'.
34511         * lib/unicase/caseprop.h: New file.
34512         * lib/unicase/cased.c: New file.
34513         * modules/unicase/cased: New file.
34514
34515         New functions for case mapping of substrings.
34516         * lib/unicase.h (casing_prefix_context_t): New type.
34517         (unicase_empty_prefix_context): New variable.
34518         (u8_casing_prefix_context, u16_casing_prefix_context,
34519         u32_casing_prefix_context, u8_casing_prefixes_context,
34520         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34521         declarations.
34522         (casing_suffix_context_t): New type.
34523         (unicase_empty_suffix_context): New variable.
34524         (u8_casing_suffix_context, u16_casing_suffix_context,
34525         u32_casing_suffix_context, u8_casing_suffixes_context,
34526         u16_casing_suffixes_context, u32_casing_suffixes_context,
34527         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34528         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34529         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34530         declarations.
34531
34532 2009-06-28  Jim Meyering  <meyering@redhat.com>
34533
34534         boostrap: indent only with spaces
34535         * build-aux/bootstrap: Indent only with spaces, never TABs.
34536
34537         bootstrap: split long lines
34538         * build-aux/bootstrap: Keep line length < 80.
34539
34540         bootstrap: sync from coreutils
34541         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34542         just as autoreconf does.  Verify a list of prerequisite
34543         package-name,version-number pairs if defined in bootstrap.conf.
34544         Refer to README-prereq, if prerequisites are not satisfied.
34545
34546 2009-06-27  Eric Blake  <ebb9@byu.net>
34547
34548         tests: add test for bogus NULL definition
34549         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34550         * tests/test-stdlib.c: Likewise.
34551         * tests/test-string.c: Likewise.
34552         * tests/test-locale.c: Likewise.
34553         * tests/test-unistd.c: Likewise.
34554         * modules/stdio-tests (Depends-on): Add verify.
34555         * modules/stdlib-tests (Depends-on): Likewise.
34556         * modules/string-tests (Depends-on): Likewise.
34557         * modules/locale-tests (Depends-on): Likewise.
34558         * modules/unistd-tests (Depends-on): Likewise.
34559
34560 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34561
34562         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34563         self-explaining comment.
34564         * m4/selinux-selinux-h: Update serial.
34565         (gl_LIBSELINUX): New macro, adding a warning for missing development
34566         packages to code extracted from...
34567         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34568         Add warning for missing development packages here, too.
34569
34570 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34571
34572         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34573
34574 2009-06-25  Eric Blake  <ebb9@byu.net>
34575
34576         version-etc: fix regression
34577         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34578         gcc.
34579         (version_etc): Use it, to catch bugs with trailing NULL.
34580         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34581         (version_etc_va): Fix logic bug.
34582         * modules/version-etc-tests: Add test.
34583         * tests/test-version-etc.c: New file.
34584         * tests/test-version-etc.sh: Likewise.
34585
34586 2009-06-25  Sam Steingold  <sds@gnu.org>
34587
34588         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34589         mbtowc declaration.
34590
34591 2009-06-25  Eric Blake  <ebb9@byu.net>
34592
34593         fpurge: migrate into <stdio.h>
34594         * lib/fpurge.h: Delete...
34595         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34596         * lib/fpurge.c (fpurge): Change declaring header.
34597         * modules/fpurge (Files): Drop deleted file.
34598         (Depends-on): Add stdio.
34599         (configure.ac): Set witness.
34600         * modules/stdio (Makefile.am): Support fpurge macros.
34601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34602         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34603         * lib/fflush.c: Update client.
34604         * tests/test-fpurge.c: Likewise.
34605         * NEWS: Mention the change.
34606
34607 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34608
34609         * lib/argp-version-etc.c (program_authors): Add const
34610         qualifier.
34611         * lib/version-etc.c: Fix typos in the comments.
34612         * modules/argp-version-etc: Depends on version-etc.
34613
34614 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34615
34616         argp-version-etc: new module.
34617
34618         * lib/argp-version-etc.c: New file.
34619         * lib/argp-version-etc.h: New file.
34620         * modules/argp-version-etc: New file.
34621         * modules/argp-version-etc-tests: New file.
34622         * tests/test-argp-version-etc.c: New test.
34623         * tests/test-argp-version-etc-1.sh: New test.
34624
34625 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34626
34627         Provide additional interfaces and documentation for version-etc
34628         module.
34629
34630         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34631         interfaces.
34632         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34633         prototypes.
34634
34635 2009-06-24  Bruno Haible  <bruno@clisp.org>
34636
34637         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34638         HAVE_LIB${NAME} macro.
34639         Reported by Sam Steingold <sds@gnu.org>.
34640
34641 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34642
34643         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34644         needed.
34645
34646 2009-06-21  Bruno Haible  <bruno@clisp.org>
34647
34648         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34649         work.
34650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34651         together with LIB${NAME}, LTLIB${NAME}.
34652         Reported by Sam Steingold <sds@gnu.org>.
34653
34654 2009-06-20  Jim Meyering  <meyering@redhat.com>
34655
34656         tests: make sc_require_test_exit_idiom more generic
34657         * top/maint.mk (Exit_witness_file): New overridable variable.
34658         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34659         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34660
34661 2009-06-19  Jim Meyering  <meyering@redhat.com>
34662
34663         hash: reverse order of src/dst parameters in an internal interface
34664         * lib/hash.c (transfer_entries): Reverse order of parameters to
34665         put DST before SRC.  Adjust callers.
34666
34667         tests: test-hash: avoid wholesale duplication
34668         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34669         Instead, use a loop and add a single conditional.
34670
34671         tests: test-hash: allow seed selection via a command line argument
34672         * tests/test-hash.c (get_seed): New function.
34673         (main): Use it.
34674
34675 2009-06-19  Eric Blake  <ebb9@byu.net>
34676
34677         hash: avoid memory leak on allocation failure
34678         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34679         failure.  Factor repeated algorithm...
34680         (transfer_entries): ...into new helper routine.
34681         (hash_delete): React to hash_rehash return value.
34682
34683         hash: reduce memory pressure in hash_rehash no-op case
34684         * lib/hash.c (next_prime): Avoid overflow.
34685         (hash_initialize): Factor bucket size computation...
34686         (compute_bucket_size): ...into new helper function.
34687         (hash_rehash): Use new function and open coding to reduce memory
34688         pressure, and avoid a memory leak in USE_OBSTACK code.
34689         Reported by Jim Meyering.
34690
34691 2009-06-18  Eric Blake  <ebb9@byu.net>
34692
34693         hash: make rotation more obvious
34694         * modules/hash (Depends-on): Add bitrotate and stdint.
34695         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34696         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34697         (SIZE_MAX): Rely on headers for definition.
34698         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34699         (raw_hasher): Use rotr_sz.
34700         Suggested by Jim Meyering.
34701
34702         hash: fix memory leak in last patch
34703         * lib/hash.c (hash_rehash): Avoid memory leak.
34704
34705         hash: avoid no-op rehashing
34706         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34707
34708         hash: provide default callback functions
34709         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34710         (hash_initialize): Use them as defaults.
34711         * tests/test-hash.c (main): Test this.
34712
34713         hash: minor optimization
34714         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34715         when possible.
34716         (hash_initialize): Document this promise.
34717         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34718         * tests/test-hash.c (hash_compare_strings): Test this.
34719
34720 2009-06-18  Bruno Haible  <bruno@clisp.org>
34721
34722         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34723         going to be replaced anyway.
34724
34725 2009-06-18  Bruno Haible  <bruno@clisp.org>
34726
34727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34728         in one place.
34729         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34730         be replaced anyway.
34731
34732 2009-06-18  Eric Blake  <ebb9@byu.net>
34733
34734         hash: check for resize before insertion
34735         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34736         threshold before insertion, so that a pathological hash_rehash
34737         that fills every bucket can still trigger another rehash.
34738
34739 2009-06-18  Jim Meyering  <meyering@redhat.com>
34740
34741         hash-tests: add a loop around the small tests
34742         * tests/test-hash.c (main): Repeat small tests with selected
34743         small initial table sizes.
34744
34745 2009-06-17  Eric Blake  <ebb9@byu.net>
34746
34747         hash: minor cleanups
34748         * lib/hash.h (hash_entry): Make opaque, by moving...
34749         * lib/hash.c (hash_entry): ...here.
34750         (hash_insert): Clarify restrictions on what can be inserted.
34751         (hash_get_next): Clarify when it is safe to remove an element
34752         during traversal.
34753         (check_tuning): Skip verification when tuning is known safe.
34754         (hash_initialize): Clarify restrictions on tuning.
34755
34756 2009-06-17  Jim Meyering  <jim@meyering.net>
34757         and Eric Blake  <ebb9@byu.net>
34758
34759         hash-tests: new module
34760         * modules/hash-tests: New file.
34761         * tests/test-hash.c: New file.
34762
34763 2009-06-17  Eric Blake  <ebb9@byu.net>
34764
34765         strstr-simple: document new module
34766         * MODULES.html.sh: Document new module.
34767
34768         strstr, strcasestr: replace on platforms with broken memchr
34769         * modules/strstr: Split into...
34770         * modules/strstr-simple: ...new module that does not care about
34771         performance, but does care about glibc bug.
34772         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34773         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34774         if platform memchr is broken, per Debian bug 521737.
34775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34776         memchr.
34777         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34778         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34779         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34780         * modules/mountlist (Depends-on): Add strstr-simple.
34781         * modules/gen-uni-tables (Depends-on): Likewise.
34782         * modules/argz (Depends-on): Add strstr.
34783
34784 2009-06-17  Bruno Haible  <bruno@clisp.org>
34785
34786         * modules/posix_spawn-internal (Depends-on): Add errno.
34787
34788 2009-06-17  Bruno Haible  <bruno@clisp.org>
34789
34790         Define missing ESTALE on Interix 3.5.
34791         * lib/errno.in.h (ESTALE): Assign a value if missing.
34792         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34794         missing.
34795         * doc/posix-headers/errno.texi: Mention the Interix bug.
34796         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34797
34798 2009-06-15  Eric Blake  <ebb9@byu.net>
34799
34800         memchr, memchr2: add valgrind exception
34801         * lib/memchr.valgrind: New file.
34802         * lib/memchr2.valgrind: New file.
34803         * modules/memchr (Files): Distribute valgrind file.
34804         * modules/memchr2 (Files): Likewise.
34805
34806         docs: memchr is no longer obsolete
34807         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34808         * lib/string.in.h (memchr): Simplify logic.
34809
34810 2009-06-14  Jim Meyering  <meyering@redhat.com>
34811
34812         link-follow: fix the "checking..." message to not mention trailing slash
34813         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34814         never considered trailing slashes.
34815
34816 2009-06-14  Bruno Haible  <bruno@clisp.org>
34817
34818         * m4/memchr.m4: Mention also the bug on IA-64.
34819         * doc/posix-functions/memchr.texi: Likewise.
34820
34821 2009-06-12  Eric Blake  <ebb9@byu.net>
34822
34823         memchr: detect broken x86_64 and alpha implementations
34824         * modules/memchr-tests (Depends-on): Move mmap detection...
34825         * modules/memchr (Depends-on): ...here.
34826         (configure.ac): Set indicator.
34827         * lib/string.in.h (memchr): Declare replacement.
34828         * modules/string (Makefile.am): Trigger replacement.
34829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34831         bugs.
34832         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34833         * modules/getpagesize (License): Relax license.
34834
34835 2009-06-11  Bruno Haible  <bruno@clisp.org>
34836
34837         * lib/idpriv.h: Add more references.
34838
34839 2009-06-08  Bruno Haible  <bruno@clisp.org>
34840
34841         Tests for module 'idpriv-droptemp'.
34842         * modules/idpriv-droptemp-tests: New file.
34843         * tests/test-idpriv-droptemp.sh: New file.
34844         * tests/test-idpriv-droptemp.su.sh: New file.
34845         * tests/test-idpriv-droptemp.c: New file.
34846
34847         New module 'idpriv-droptemp'.
34848         * lib/idpriv-droptemp.c: New file.
34849         * modules/idpriv-droptemp: New file.
34850
34851 2009-06-08  Bruno Haible  <bruno@clisp.org>
34852
34853         Tests for module 'idpriv-drop'.
34854         * modules/idpriv-drop-tests: New file.
34855         * tests/test-idpriv-drop.sh: New file.
34856         * tests/test-idpriv-drop.su.sh: New file.
34857         * tests/test-idpriv-drop.c: New file.
34858
34859         New module 'idpriv-drop'.
34860         * lib/idpriv.h: New file.
34861         * lib-idpriv-drop.c: New file.
34862         * m4/idpriv.m4: New file.
34863         * modules/idpriv-drop: New file.
34864
34865 2009-06-08  Bruno Haible  <bruno@clisp.org>
34866
34867         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34868         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34869         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34870         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34871         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34872         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34873         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34874
34875 2009-06-08  Eric Blake  <ebb9@byu.net>
34876
34877         test-strstr: use memory fence, when possible
34878         * tests/test-strstr.c (main): Use memory fence, in order to be
34879         more likely to trigger Debian bug 521737.
34880         * modules/strstr-tests (Files): Pull in additional files.
34881
34882         memchr: no longer obsolete, for wider field testing
34883         * modules/memchr (Status, Notice): Delete, this module is no
34884         longer obsolete.
34885         * modules/vasnprintf (Depends-on): Add memchr.
34886
34887 2009-06-07  Jim Meyering  <meyering@redhat.com>
34888
34889         hash: declare some functions with the warn_unused_result attribute
34890         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34891
34892 2009-06-07  Bruno Haible  <bruno@clisp.org>
34893
34894         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34895         Reported by Eric Blake.
34896
34897 2009-06-06  Eric Blake  <ebb9@byu.net>
34898
34899         test-alignof: fix typo with long double
34900         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34901         compiler error.
34902
34903 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34904
34905         Escape non-texinfo { and }s.
34906         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34907         markup error.
34908
34909 2009-06-04  Jim Meyering  <meyering@redhat.com>
34910
34911         gitlog-to-changelog: don't infloop on an empty commit log
34912         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34913         Reported by Boris Petersen <transacid@centerim.org>.
34914
34915 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34916
34917         version-etc: extend for packagers
34918         Add three new configure options, intended for packagers:
34919           --with-packager="packager name"
34920           --with-packager-version="packager-specific version"
34921           --with-packager-bug-reports="packager bug reporting"
34922         An example with coreutils:
34923           $ ./configure \
34924             --with-packager=Gentoo \
34925             --with-packager-bug-report=http://bugs.gentoo.org/ \
34926             --with-packager-version="patchset 1.6"
34927           $ ./src/ls --version | head -n2
34928           ls (GNU coreutils) 7.1-dirty
34929           Packaged by Gentoo (patchset 1.6)
34930         Note that the bug reporting info via --help doesn't show up because
34931         coreutils uses its own custom emit_bug_reporting_address() implementation
34932         in src/system.h.  If it didn't, it'd look like:
34933           $ ./src/ls --help | tail -n4
34934           Report bugs to <bug-coreutils@gnu.org>.
34935           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34936           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34937           General help using GNU software: <http://www.gnu.org/gethelp/>.
34938         * lib/version-etc.c: Print new information, if provided.
34939         * m4/version-etc.m4: New file.
34940         * modules/version-etc (Files): Add m4/version-etc.m4.
34941         (configure.ac): Add gl_VERSION_ETC.
34942
34943 2009-05-31  Bruno Haible  <bruno@clisp.org>
34944
34945         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34946         and 'int64_t'.
34947         * modules/alignof-tests (Dependencies): Add stdint.
34948         Reported by Eric Blake.
34949
34950 2009-05-31  Bruno Haible  <bruno@clisp.org>
34951
34952         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34953         restriction due to compiler bugs.
34954         Reported by Eric Blake.
34955
34956 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34957             Bruno Haible  <bruno@clisp.org>
34958
34959         Fix test-alignof failure.
34960         * lib/alignof.h (alignof_slot): New macro.
34961         (alignof_type): New macro, with the same semantics as the previous
34962         'alignof'.
34963         (alignof): Alias to alignof_slot.
34964         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34965         check that the results are usable as constant expressions.
34966
34967 2009-05-31  Bruno Haible  <bruno@clisp.org>
34968
34969         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34970         * tests/test-memchr.c (main): Check that memchr does not read past the
34971         first occurrence of the byte.
34972         * tests/test-strstr.c (main): Update comment.
34973         Suggested by Eric Blake.
34974
34975 2009-05-30  Bruno Haible  <bruno@clisp.org>
34976
34977         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34978         detail how to use dumpbin.
34979         Reported by David Byron <dbyron@dbyron.com>.
34980
34981 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34982
34983         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34984
34985 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34986
34987         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34988
34989 2009-05-28  Bruno Haible  <bruno@clisp.org>
34990
34991         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34992         build-aux/ files.
34993
34994 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34995
34996         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34997
34998 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34999
35000         * gnulib-tool (sed_transform_main_lib_file)
35001         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35002         regexps.
35003
35004 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35005
35006         * tests/test-strstr.c: Add another self-test.
35007         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35008         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35009
35010 2009-05-23  Bruno Haible  <bruno@clisp.org>
35011
35012         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35013         change.
35014
35015 2009-05-21  Bruno Haible  <bruno@clisp.org>
35016
35017         Simplify use of mode_t varargs.
35018         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35019         uses 'mode_t' or 'int'.
35020         * lib/openat.c (openat): Likewise.
35021         * lib/open-safer.c (open_safer): Likewise.
35022         * m4/mode_t.m4: New file.
35023         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35024         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35025         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35026         * modules/open (Files): Add m4/mode_t.m4.
35027         * modules/openat (Files): Likewise.
35028         * modules/fcntl-safer (Files): Likewise.
35029         Suggested by Eric Blake.
35030
35031 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35032
35033         * doc/glibc-functions/fallocate.texi: New file.
35034         * doc/gnulib.texi: Include it.
35035
35036 2009-05-21  Eric Blake  <ebb9@byu.net>
35037             Bruno Haible  <bruno@clisp.org>
35038
35039         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35040         invocations.
35041         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35042
35043 2009-05-21  Eric Blake  <ebb9@byu.net>
35044             Bruno Haible  <bruno@clisp.org>
35045
35046         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35047         include_next. Fix of 2008-11-20 commit.
35048         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35049         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35050         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35051         NEXT_MATH_H.
35052         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35053         instead of NEXT_MATH_H.
35054
35055 2009-05-21  Bruno Haible  <bruno@clisp.org>
35056
35057         Avoid redefinition warnings for SIZE_MAX.
35058         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35059         Reported by Simon Josefsson.
35060
35061 2009-05-21  Bruno Haible  <bruno@clisp.org>
35062
35063         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35064         AC_CACHE_VAL.
35065
35066 2009-05-20  Bruno Haible  <bruno@clisp.org>
35067
35068         Make zeroptr.h work on mingw.
35069         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35070         mprotect.
35071         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35072         * modules/memchr2-tests (configure.ac): Likewise.
35073         * modules/memcmp-tests (configure.ac): Likewise.
35074         * modules/memmem-tests (configure.ac): Likewise.
35075         * modules/memrchr-tests (configure.ac): Likewise.
35076         Reported by Simon Josefsson.
35077
35078 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35079
35080         * tests/test-glob.c: Include string.h for strcmp prototype.
35081
35082 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35083
35084         * modules/getdelim (Depends-on): Add explicit stdint, although it
35085         was implicitly already pulled in via realloc-posix.
35086         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35087
35088 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35089
35090         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35091         G. Christensen" <tgc@jupiterrise.com>.
35092         * m4/sys_socket_h.m4: Check for sa_family_t.
35093         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35094         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35095         * tests/test-sys_socket.c: Check that sa_family_t works.
35096
35097 2009-05-18  Eric Blake  <ebb9@byu.net>
35098
35099         maint.mk: allow gnulib_dir in VPATH build
35100         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35101
35102 2009-05-15  Jim Meyering  <meyering@redhat.com>
35103
35104         maint.mk: Give gnulib_dir a default definition.
35105         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35106         Thus, most packages no longer need to specify this variable in cfg.mk
35107
35108 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35109
35110         rename.m4: fix typos that would make non-mingw cross-configure fail
35111         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35112
35113 2009-05-13  Eric Blake  <ebb9@byu.net>
35114
35115         mmap-anon: avoid out-of-order autoconf expansion
35116         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35117         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35118         * modules/memchr-tests (Depends-on): Add extensions.
35119         * modules/memchr2-tests (Depends-on): Add extensions.
35120         * modules/memcmp-tests (Depends-on): Add extensions.
35121         * modules/memmem-tests (Depends-on): Add extensions.
35122         * modules/memrchr-tests (Depends-on): Add extensions.
35123
35124 2009-05-13  Bruno Haible  <bruno@clisp.org>
35125
35126         Make some tests ISO C 99 compliant.
35127         * tests/zerosize-ptr.h: New file.
35128         * tests/test-memchr.c: Include zerosize-ptr.h.
35129         (main): Use a zero-size object pointer instead of NULL.
35130         * tests/test-memchr2.c: Include zerosize-ptr.h.
35131         (main): Use a zero-size object pointer instead of NULL.
35132         * tests/test-memcmp.c: Include zerosize-ptr.h.
35133         (main): Use a zero-size object pointer instead of NULL.
35134         * tests/test-memmem.c: Include zerosize-ptr.h.
35135         (main): Use a zero-size object pointer instead of NULL.
35136         * tests/test-memrchr.c: Include zerosize-ptr.h.
35137         (main): Use a zero-size object pointer instead of NULL.
35138         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35139         m4/mmap-anon.m4.
35140         (Depends-on): Add getpagesize.
35141         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35142         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35143         m4/mmap-anon.m4.
35144         (Depends-on): Add getpagesize.
35145         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35146         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35147         m4/mmap-anon.m4.
35148         (Depends-on): Add getpagesize.
35149         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35150         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35151         m4/mmap-anon.m4.
35152         (Depends-on): Add getpagesize.
35153         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35154         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35155         m4/mmap-anon.m4.
35156         (Depends-on): Add getpagesize.
35157         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35158
35159 2009-05-12  Bruno Haible  <bruno@clisp.org>
35160
35161         Tests for module 'alignof'.
35162         * modules/alignof-tests: New file.
35163         * tests/test-alignof.c: New file.
35164
35165 2009-05-12  Bruno Haible  <bruno@clisp.org>
35166
35167         Fix alignof macro.
35168         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35169         vendor compilers that are always correct.
35170
35171 2009-05-12  Bruno Haible  <bruno@clisp.org>
35172
35173         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35174         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35175         not whether its fully works.
35176
35177 2009-05-12  Bruno Haible  <bruno@clisp.org>
35178
35179         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35180
35181 2009-05-12  Jim Meyering  <meyering@redhat.com>
35182
35183         * top/maint.mk: Adjust backslash alignment.
35184
35185 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35186
35187         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35188
35189 2009-05-11  Eric Blake  <ebb9@byu.net>
35190
35191         argp: avoid undefined behavior
35192         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35193         macros.
35194
35195 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35196
35197         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35198         user.name to prevent git commit from complaining.
35199
35200 2009-05-10  Bruno Haible  <bruno@clisp.org>
35201
35202         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35203         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35204         it rewrites every file name only once.
35205         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35206
35207 2009-05-08  Bruno Haible  <bruno@clisp.org>
35208
35209         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35210         instead of 'max'.
35211
35212 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35213
35214         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35215         sockaddr_storage test.
35216
35217 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35218
35219         * modules/sys_socket (Makefile.am): Substitute
35220         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35221         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35222         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35223         * tests/test-sys_socket.c: Check sockaddr_storage.
35224
35225 2009-05-08  Bruno Haible  <bruno@clisp.org>
35226
35227         New module 'alignof'.
35228         * lib/alignof.h: New file.
35229         * modules/alignof: New file.
35230
35231 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35232             Bruno Haible  <bruno@clisp.org>
35233
35234         Fix test-file-has-acl on FreeBSD.
35235         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35236         mask is implicitly added.
35237         * tests/test-file-has-acl.c: Include <signal.h>.
35238         (main): Terminate the test after 5 seconds.
35239         * modules/acl-tests (configure.ac): Check for alarm function.
35240
35241 2009-05-04  Bruno Haible  <bruno@clisp.org>
35242
35243         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35244         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35245         * modules/errno (configure.ac): Drop AC_REQUIRE.
35246         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35247         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35248
35249 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35250
35251         * modules/glob-tests: New module.
35252         * tests/test-glob.c: Add.
35253
35254 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35255
35256         * modules/fnmatch-tests: New module.
35257         * tests/test-fnmatch.c: Add.
35258
35259 2009-05-04  Eric Blake  <ebb9@byu.net>
35260
35261         maint: make the new no-submodule-changes rule VPATH-safe
35262         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35263
35264 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35265             Bruno Haible  <bruno@clisp.org>
35266
35267         acl: Fix infinite loop on FreeBSD.
35268         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35269         of return value from acl_get_entry.
35270         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35271         Likewise.
35272
35273 2009-05-03  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/acl-internal.h (acl_entries): Clarify return value.
35276         * lib/acl_entries.c (acl_entries): Likewise.
35277
35278 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35279
35280         Bug fix in acl module.
35281         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35282
35283 2009-05-03  Bruno Haible  <bruno@clisp.org>
35284
35285         Create gperf-generated file in the source dir, not in the build dir.
35286         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35287         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35288         * modules/unicase/locale-language (unicase/locale-languages.h):
35289         Likewise.
35290         * modules/unicase/special-casing (unicase/special-casing-table.h):
35291         Likewise.
35292         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35293         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35294         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35295         Reported by Ralf Wildenhues.
35296
35297 2009-05-03  Bruno Haible  <bruno@clisp.org>
35298
35299         * modules/fnmatch (Description, configure.ac): Taken from
35300         fnmatch-posix.
35301         * modules/fnmatch-posix: Turn into a symbolic reference to the
35302         'fnmatch' module, and deprecate.
35303         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35304
35305 2009-05-03  Bruno Haible  <bruno@clisp.org>
35306
35307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35308         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35309         Reported by Ralf Wildenhues.
35310
35311 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35312
35313         * m4/fnmatch.m4: Fix fnmatch re-define.
35314
35315 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35316
35317         priv-set: new module and tests; adapt write-any-file
35318         * lib/priv-set.c: New file.
35319         * lib/priv-set.h: New file.
35320         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35321         * lib/write-any-file.c: Simplify by using priv-set module.
35322         * m4/priv-set.m4: New file.
35323         * modules/priv-set: New file.
35324         * modules/unlinkdir: Add dependency on priv-set module.
35325         * modules/write-any-file: Likewise.
35326
35327         Tests for module 'priv-set'.
35328         * modules/priv-set-tests: New file.
35329         * tests/test-priv-set.c: New file.
35330
35331 2009-05-03  Jim Meyering  <meyering@redhat.com>
35332             Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35335         use the converted UTF-8 variant of the name instead.
35336
35337 2009-05-03  Jim Meyering  <meyering@redhat.com>
35338
35339         tests: tighten some getdate tests
35340         * tests/test-getdate.c (main): Tighten tests: require equality,
35341         not just greater than.  Set TZ envvar to UTC0.
35342
35343 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35344
35345         getdate: correctly interpret "next monday" when run on a Monday
35346         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35347         that e.g., "next tues" (when run on a tuesday) results in a date
35348         that is one week in the future, and not today's date.
35349         I.e., add a week when the wday is the same as the current one.
35350         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35351         and earlier by Martin Bernreuther and Jan Minář.
35352         * tests/test-getdate.c (main): Check that "next DAY" is always in
35353         the future and that "last DAY" is always in the past.
35354
35355 2009-05-02  Jim Meyering  <meyering@redhat.com>
35356
35357         build: ensure that a release build fails when a submodule is unclean
35358         * top/maint.mk (no-submodule-changes): New rule.
35359         (alpha beta major): Depend on it.
35360
35361 2009-05-02  Bruno Haible  <bruno@clisp.org>
35362
35363         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35364         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35365         shell variable gl_fnmatch_required to detect which variant is
35366         requested.
35367         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35368         gl_FUNC_FNMATCH_POSIX.
35369         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35370         exclude fnmatch-posix.
35371
35372 2009-05-02  Bruno Haible  <bruno@clisp.org>
35373
35374         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35375         * modules/mbsrtowcs (License): Change to LGPLv2+.
35376         * modules/strnlen1 (License): Likewise.
35377         Reported by Simon Josefsson.
35378
35379 2009-05-02  Bruno Haible  <bruno@clisp.org>
35380
35381         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35382         "cross".
35383         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35384         gnulib-tool was called with option --source-base=lib.
35385
35386 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35387
35388         Use automake *-local hooks without commands, for extensibility.
35389         * modules/localcharset (Makefile.am): Rename install-exec-local
35390         rule to install-exec-localcharset, and make it a prerequisite of
35391         install-exec-local.  Likewise, rename the uninstall-local rule to
35392         uninstall-localcharset, and make it a prerequisite of the former.
35393
35394 2009-05-01  Bruno Haible  <bruno@clisp.org>
35395
35396         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35397         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35398         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35400         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35401         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35402         m4/locale-zh.m4, m4/codeset.m4.
35403
35404         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35405         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35406         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35407         m4/locale-zh.m4.
35408
35409         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35410         REPLACE_WCRTOMB if mbstate_t must be replaced.
35411         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35412         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35413
35414 2009-05-01  Bruno Haible  <bruno@clisp.org>
35415
35416         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35417         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35418         dngettext, dcngettext, textdomain, bindtextdomain,
35419         bind_textdomain_codeset): Undefine before redefining.
35420
35421 2009-04-30  Bruno Haible  <bruno@clisp.org>
35422
35423         Fix bug introduced on 2009-04-25.
35424         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35425         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35426         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35427         is defined.
35428         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35429         is defined.
35430         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35431         is defined.
35432         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35433
35434 2009-04-28  Bruno Haible  <bruno@clisp.org>
35435
35436         Comment tweaks.
35437         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35438         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35439         * lib/unicase.h (u*_casexfrm): Likewise.
35440         Reported by Paolo Bonzini.
35441
35442 2009-04-28  Bruno Haible  <bruno@clisp.org>
35443
35444         Fix a compilation error.
35445         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35446         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35447         Reported by Jim Meyering.
35448
35449 2009-04-27  Bruno Haible  <bruno@clisp.org>
35450
35451         New module 'libunistring'.
35452         * modules/libunistring: New file.
35453         * m4/libunistring.m4: New file.
35454         * MODULES.html.sh (Unicode string functions): Add it.
35455
35456 2009-04-27  Eric Blake  <ebb9@byu.net>
35457
35458         maint.mk: allow package-specific header to provide <config.h>
35459         * top/maint.mk (sc_require_config_h): New variable.
35460         (sc_require_config_h, sc_require_config_h_first): Use it.
35461
35462 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35463
35464         * top/maint.mk (sc_avoid_if_before_free): Except
35465         useless-if-before-free script.
35466
35467 2009-04-27  Eric Blake  <ebb9@byu.net>
35468
35469         maintainer-makefile: depend on all required helper scripts
35470         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35471         useless-if-before-free.
35472         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35473         version, rather than assuming gnulib checkout is available.
35474         Reported by Simen Josefsson.
35475
35476 2009-04-26  Bruno Haible  <bruno@clisp.org>
35477
35478         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35479         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35480         "../" or "..".
35481
35482 2009-04-26  Bruno Haible  <bruno@clisp.org>
35483
35484         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35485         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35486         AC_LIB_HAVE_LINKFLAGS.
35487
35488 2009-04-26  Bruno Haible  <bruno@clisp.org>
35489
35490         Simplify calling convention of u*_conv_from_encoding.
35491         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35492         u32_conv_from_encoding): Expect a resultbuf argument and return the
35493         result directly as a pointer.
35494         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35495         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35496         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35497         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35498         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35499         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35500         Update.
35501         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35502         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35503         * lib/vasnprintf.c (VASNPRINTF): Update.
35504         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35505         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35506         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35507         * NEWS: Mention the change.
35508
35509 2009-04-26  Bruno Haible  <bruno@clisp.org>
35510
35511         Simplify calling convention of u*_conv_to_encoding.
35512         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35513         u32_conv_to_encoding): Expect a resultbuf argument and return the
35514         result directly as a pointer.
35515         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35516         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35517         freeing scaled_offsets if mem_iconveha failed.
35518         * lib/unicase/u-casexfrm.h (FUNC): Update.
35519         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35520         * lib/vasnprintf.c (VASNPRINTF): Update.
35521         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35522         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35523         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35524         * NEWS: Mention the change.
35525
35526 2009-04-26  Bruno Haible  <bruno@clisp.org>
35527
35528         Avoid test failures on AIX and OSF/1.
35529         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35530         malloc(0).
35531         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35532         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35533         Likewise.
35534         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35535         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35536         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35537         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35538         * doc/posix-functions/malloc.texi: Document the portability problem
35539         related to malloc(0).
35540
35541 2009-04-26  Bruno Haible  <bruno@clisp.org>
35542
35543         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35544         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35545         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35546
35547 2009-04-25  Bruno Haible  <bruno@clisp.org>
35548
35549         Avoid link error when creating a namespace clean library.
35550         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35551         as macro with arguments if already defined as an alias.
35552         * lib/signbitf.c (gl_signbitf): Don't undefine.
35553         * lib/signbitd.c (gl_signbitd): Don't undefine.
35554         * lib/signbitl.c (gl_signbitl): Don't undefine.
35555
35556 2009-04-25  Jim Meyering  <meyering@redhat.com>
35557
35558         vc-list-files: fix another quoting bug
35559         * build-aux/vc-list-files: Avoid sed backslash expansion
35560         of pathological directory names.
35561
35562 2009-04-25  Eric Blake  <ebb9@byu.net>
35563
35564         vc-list-files: fix shell quoting error
35565         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35566         timestamp.
35567
35568 2009-04-25  Jim Meyering  <meyering@redhat.com>
35569
35570         vc-list-files: restore lost functionality with subdir argument
35571         * build-aux/vc-list-files: When given a non-"." sub-directory
35572         argument, substitute the $dir/ prefix back onto each resulting name.
35573         Otherwise, coreutils' root_tests check would fail.
35574
35575 2009-04-24  Eric Blake  <ebb9@byu.net>
35576
35577         vc-list-files: ignore git symlinks
35578         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35579         than ls-files, to ignore git symlinks.
35580
35581         maint.mk: import improvements from m4
35582         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35583         (move_if_change): Delete unused macro.
35584         (news-date-check, vc-diff-check): Support VPATH builds.
35585         (announcement): Likewise.  Split --bootstrap-tools list...
35586         (boostrap-tools): ...into separate list, which can be overridden
35587         in cfg.mk.
35588         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35589         requiring dependency on useless-if-before-free module.
35590         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35591         Support VPATH builds.
35592
35593 2009-04-24  Jim Meyering  <meyering@redhat.com>
35594
35595         maint.mk: remove coreutils-specific rules and variables
35596         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35597         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35598         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35599
35600         maint.mk: remove obsolete rule
35601         * top/maint.mk (rel-check): Remove rule.
35602         (WGET, WGETFLAGS): Remove now-unused variables.
35603
35604 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35605
35606         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35607         consistency.
35608
35609         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35610         '$(PATH_SEPARATOR)' instead of ':'.
35611
35612 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35613
35614         * lib/getopt1.c (main): Use 'const' for static array.
35615
35616 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35617
35618         * top/maint.mk: Sync with coreutils.
35619         * NEWS: Explain incompatibilities.
35620
35621 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35622             Bruno Haible  <bruno@clisp.org>
35623
35624         Fix cross-compilation results.
35625         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35626         statement, as third argument of AC_TRY_RUN.
35627         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35628         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35629         Likewise.
35630         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35631         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35632         Likewise.
35633         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35634         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35635         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35636
35637 2009-04-20  Bruno Haible  <bruno@clisp.org>
35638
35639         Avoid test failure on mingw.
35640         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35641
35642 2009-04-20  Bruno Haible  <bruno@clisp.org>
35643
35644         Avoid compilation error on mingw.
35645         * modules/localename-tests (Depends-on): Add locale.
35646
35647 2009-04-19  Bruno Haible  <bruno@clisp.org>
35648
35649         Support for building a shared library on Windows platforms.
35650         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35651         (main): Test the presence of UNINORM_NFC here.
35652         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35653         (main): Test the presence of UNINORM_NFD here.
35654         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35655         (main): Test the presence of UNINORM_NFKC here.
35656         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35657         (main): Test the presence of UNINORM_NFKD here.
35658
35659 2009-04-19  Bruno Haible  <bruno@clisp.org>
35660
35661         Avoid a compiler warning.
35662         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35663         Change type of variable 'sequence'.
35664
35665 2009-04-19  Bruno Haible  <bruno@clisp.org>
35666
35667         * modules/configmake (Makefile.am): When the contents of configmake.h
35668         does not change, arrange to preserve its modification time.
35669
35670 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35671
35672         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35673         gettext domain.
35674
35675 2009-04-16  Jim Meyering  <meyering@redhat.com>
35676
35677         useless-if-before-free: improve conversion code
35678         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35679         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35680
35681 2009-04-14  Bruno Haible  <bruno@clisp.org>
35682
35683         * modules/fcntl (Depends-on): Add extensions.
35684         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35685
35686 2009-04-12  Ben Pfaff  <blp@gnu.org>
35687
35688         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35689         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35690
35691 2009-03-20  Ben Pfaff  <blp@gnu.org>
35692
35693         Make rename replace existing destinations on Windows.
35694         * m4/rename.m4: Add test for Mingw.
35695         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35696         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35697         * doc/posix-functions/rename.texi: Document.
35698
35699 2009-04-10  Bruno Haible  <bruno@clisp.org>
35700
35701         New include file "iconveh.h".
35702         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35703         * lib/striconveh.h: Include it.
35704         (enum iconv_ilseq_handler): Remove definition.
35705         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35706         striconveh.h.
35707         * lib/striconveha.c: Include striconveh.h.
35708         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35709         * modules/striconveh (Files): Add lib/iconveh.h.
35710         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35711         lib/striconveh.h.
35712
35713 2009-04-10  Bruno Haible  <bruno@clisp.org>
35714
35715         * lib/uniconv.h: Update comment.
35716
35717 2009-04-10  Bruno Haible  <bruno@clisp.org>
35718
35719         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35720         always.
35721         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35722         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35723         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35724         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35725         "unistring-notinline.h", so that the function gets defined always.
35726         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35727         * lib/unistr/u8-uctomb.c: Likewise.
35728         * lib/unistr/u16-mbtouc.c: Likewise.
35729         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35730         * lib/unistr/u16-uctomb.c: Likewise.
35731         * lib/unistr/u32-mbtouc.c: Likewise.
35732         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35733         * lib/unistr/u32-uctomb.c: Likewise.
35734
35735 2009-04-10  Bruno Haible  <bruno@clisp.org>
35736
35737         Mark 'utime' obsolete.
35738         * modules/utime (Status, Notice): New sections.
35739         Suggested by Jim Meyering.
35740
35741         Fix cross-compile guess for utime test.
35742         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35743         autoconf.
35744         * doc/posix-functions/utime.texi: Give more precisions.
35745         Reported by Jan <ipif@ymail.com>.
35746
35747 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35748
35749         filevercmp: correct today's change
35750         * lib/filevercmp.c: Also handle coreutils' test inputs.
35751         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35752
35753         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35754         for reporting it.
35755         * lib/filevercmp.c: Special handle for "", "." and "..".
35756         * tests/test-filevercmp.c: Enlarge the set suite.
35757
35758 2009-04-07  Jim Meyering  <meyering@redhat.com>
35759
35760         useless-if-before-free: show how to remove braced useless free, too
35761         * build-aux/useless-if-before-free: still only in a comment, though.
35762
35763 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35764
35765         maint.mk: import changes to syntax-check macros from coreutils
35766         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35767         Use them in the relevant macros.
35768
35769 2009-04-06  Bruno Haible  <bruno@clisp.org>
35770
35771         Fix unportable use of bit-fields.
35772         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35773         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35774         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35775
35776 2009-04-06  Bruno Haible  <bruno@clisp.org>
35777
35778         Avoid test failures on AIX and OSF/1.
35779         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35780         that malloc(0) = NULL.
35781         * tests/unicase/test-u8-tolower.c (check): Likewise.
35782         * tests/unicase/test-u8-totitle.c (check): Likewise.
35783         * tests/unicase/test-u8-toupper.c (check): Likewise.
35784         * tests/unicase/test-u16-casefold.c (check): Likewise.
35785         * tests/unicase/test-u16-tolower.c (check): Likewise.
35786         * tests/unicase/test-u16-totitle.c (check): Likewise.
35787         * tests/unicase/test-u16-toupper.c (check): Likewise.
35788         * tests/unicase/test-u32-casefold.c (check): Likewise.
35789         * tests/unicase/test-u32-tolower.c (check): Likewise.
35790         * tests/unicase/test-u32-totitle.c (check): Likewise.
35791         * tests/unicase/test-u32-toupper.c (check): Likewise.
35792         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35793         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35794         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35795         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35796         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35797         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35798         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35799         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35800         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35801         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35802         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35803         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35804
35805 2009-04-05  Bruno Haible  <bruno@clisp.org>
35806
35807         Work around an autoconf limitation.
35808         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35809         comment line if it would be longer than 3 KB.
35810
35811 2009-04-05  Bruno Haible  <bruno@clisp.org>
35812
35813         Avoid test failure with libiconv-1.13.
35814         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35815         of the expected test results.
35816
35817 2009-04-05  Bruno Haible  <bruno@clisp.org>
35818
35819         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35820         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35821         that it should be installed.
35822
35823 2009-04-05  Bruno Haible  <bruno@clisp.org>
35824
35825         * gnulib-tool: New option --copy-file.
35826         (func_usage): Document it.
35827         (func_dest_tmpfilename): Moved out of func_import.
35828         (func_add_file, func_update_file): New functions, extracted from
35829         func_import.
35830         (func_import): Update.
35831
35832 2009-04-05  Karl Berry  <karl@gnu.org>
35833
35834         * README: prominently mention gnulib-tool.
35835         Rearrange sections so getting the code is near the top.
35836
35837 2009-04-05  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/unicase.h: Mention u*_cmp2.
35840         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35841         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35842         * lib/unicase/ulc-casecmp.c: Likewise.
35843         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35844         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35845         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35846         unistr/u8-cmp.
35847         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35848         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35849         unistr/u16-cmp.
35850         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35851         unistr/u32-cmp.
35852
35853         * lib/uninorm.h: Mention u*_cmp2.
35854         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35855         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35856         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35857         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35858         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35859         unistr/u8-cmp.
35860         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35861         unistr/u16-cmp.
35862         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35863         unistr/u32-cmp.
35864
35865         New module 'unistr/u32-cmp2'.
35866         * lib/unistr/u32-cmp2.c: New file.
35867         * modules/unistr/u32-cmp2: New file.
35868
35869         New module 'unistr/u16-cmp2'.
35870         * lib/unistr/u16-cmp2.c: New file.
35871         * modules/unistr/u16-cmp2: New file.
35872
35873         New module 'unistr/u8-cmp2'.
35874         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35875         * lib/unistr/u8-cmp2.c: New file.
35876         * lib/unistr/u-cmp2.h: New file.
35877         * modules/unistr/u8-cmp2: New file.
35878
35879 2009-04-05  Bruno Haible  <bruno@clisp.org>
35880
35881         * lib/unictype.h (uc_property_is_valid): New macro.
35882         * tests/unictype/test-pr_byname.c (main): Use it.
35883
35884         * lib/unistr.h: Doc fixes.
35885         * lib/uniconv.h: Doc fixes.
35886         * lib/unictype.h: Doc fixes.
35887
35888 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35889
35890         Port coreutils 7.2 to Solaris 8.
35891
35892         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35893         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35894         for Solaris 8.  This is a bit of a hack, as it means it's the
35895         caller's responsibility to add -lnsl if needed, but most likely it
35896         won't be needed since only getaddrinfo uses this and getaddrinfo
35897         isn't needed on Solaris 8.
35898
35899         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35900         problem to Solaris 8 encountered with coreutils 7.2, which
35901         resulted in a message "fnmatch.c:292: warning: passing argument 4
35902         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35903         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35904
35905 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35906
35907         * m4/ld-version-script.m4: Add FIXME comment.
35908
35909 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35910
35911         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35912         SOVERSION variable.
35913
35914 2009-04-02  Bruno Haible  <bruno@clisp.org>
35915
35916         * Makefile (info, html, dvi, pdf): Combine the rules.
35917         Suggested by Jim Meyering.
35918
35919 2009-04-01  Bruno Haible  <bruno@clisp.org>
35920
35921         * Makefile (info, html, dvi, pdf): New targets.
35922         Reported by Reuben Thomas <rrt@sc3d.org>.
35923
35924 2009-04-01  Bruno Haible  <bruno@clisp.org>
35925
35926         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35927         can be put into PATH.
35928         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35929
35930 2009-04-01  Bruno Haible  <bruno@clisp.org>
35931
35932         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35933
35934 2009-04-01  Bruno Haible  <bruno@clisp.org>
35935
35936         Rename module 'visibility'.
35937         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35938         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35939         * doc/gnulib.texi: Update.
35940         * MODULES.html.sh (Misc): Update.
35941         * NEWS: Mention the change.
35942
35943 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35944
35945         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35946         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35947         Eric Blake <ebb9@byu.net> for review.
35948         * MODULES.html.sh: Add lib-msvc-compat.
35949         * doc/gnulib.texi: Link to new section.
35950         * m4/ld-output-def.m4: New file.
35951         * doc/ld-output-def.texi: New file.
35952
35953 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35954
35955         Rename ld-version-script to lib-symbol-versions.  Suggested by
35956         Bruno Haible <bruno@clisp.org>.
35957         * modules/ld-version-script: Renamed to lib-symbol-versions.
35958         * doc/ld-version-script.texi: Fix module name.
35959         * MODULES.html.sh: Add lib-symbol-versions.
35960
35961 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35962
35963         * modules/u64-tests: New file.
35964         * tests/test-u64.c: New file.
35965
35966 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35967
35968         * MODULES.html.sh: Mention u64.
35969         * modules/u64: New module.
35970         * modules/crypto/sha512: Depend on u64 module instead of providing
35971         u64.h.
35972
35973 2009-03-27  Eric Blake  <ebb9@byu.net>
35974
35975         test-strerror: make debugging EAI_SYSTEM easier
35976         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35977         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35978         failure was EAI_SYSTEM.
35979
35980 2009-03-25  Bruno Haible  <bruno@clisp.org>
35981
35982         Fix a problem with --enable-relocatable on Solaris 7.
35983         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35984         since 2008-02-24.
35985
35986 2009-03-25  Eric Blake  <ebb9@byu.net>
35987
35988         test-sockets: avoid gcc warning
35989         * tests/test-sockets.c (main): Silence compiler warning.
35990
35991 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35992
35993         New modules nproc, pthread, contributed by Glen Lenker.
35994
35995         * MODULES.html.sh: Add pthread, nproc.
35996         * lib/nproc.c: New file.
35997         * lib/nproc.h: New file.
35998         * lib/pthread.in.h: New file.
35999         * m4/pthread.m4: New file.
36000         * modules/nproc: New file.
36001         * modules/pthread: New file.
36002
36003 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36004
36005         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36006         New variable.
36007
36008 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36009
36010         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36011         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36012         * tests/test-filevercmp.c: Add tests for backup suffixes.
36013
36014 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36015
36016         * modules/stdlib (Depends-on): Add stdint, needed when defining
36017         struct random_data on, for example, HP-UX 10.20.  Reported by
36018         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36019
36020 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36021
36022         * lib/readline.c (readline): Call fflush on stdout after printing
36023         prompt.
36024
36025 2009-03-20  Bruno Haible  <bruno@clisp.org>
36026
36027         Remove dependency from 'close' module to -lws2_32 on native Windows.
36028         * lib/close-hook.h: New file.
36029         * lib/close-hook.c: New file.
36030         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36031         w32sock.h.
36032         (_gl_close_fd_maybe_socket): Remove function.
36033         (rpl_close): Invoke execute_all_close_hooks instead of
36034         _gl_close_fd_maybe_socket.
36035         * lib/sockets.c: Include close-hook.h, w32sock.h.
36036         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36037         (close_sockets_hook): New variable.
36038         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36039         (gl_sockets_cleanup): Unregister it.
36040         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36041         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36042         * modules/close-hook: New file.
36043         * modules/close (Files): Remove lib/w32sock.h.
36044         (Depends-on): Add close-hook.
36045         (Link): Remove section.
36046         * modules/sockets (Files): Add lib/w32sock.h.
36047         (Depends-on): Add close-hook.
36048         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36049         invocation.
36050         * NEWS: Mention that LIB_CLOSE is gone.
36051
36052 2009-03-23  Eric Blake  <ebb9@byu.net>
36053
36054         signal-tests: test previous patch
36055         * tests/test-signal.c: New file.
36056         * modules/signal-tests: Likewise.
36057
36058         signal.h: always support 'volatile sig_atomic_t'
36059         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36060         (gl_SIGNAL_H_DEFAULTS): Add a default.
36061         * modules/signal (Makefile.am): Substitute if needed.
36062         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36063         users can blindly add volatile.
36064         * doc/posix-headers/signal.texi (signal.h): Document it.
36065         Reported by Matthew Woehlke.
36066
36067 2009-03-23  Jim Meyering  <meyering@redhat.com>
36068
36069         pathmax: PATH_MAX: use pathconf only when available
36070         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36071         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36072         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36073         This avoids a link failure in a PSP cross-compilation environment
36074         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36075
36076         * lib/vasnprintf.c (divide): Fix typo in comment.
36077
36078 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36079
36080         * gnulib-tool (func_filter_filelist): Fix comment.
36081
36082 2009-03-20  Bruno Haible  <bruno@clisp.org>
36083
36084         Make sockets.h self-contained.
36085         * lib/sockets.c: Include sockets.h first.
36086         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36087
36088 2009-03-19  Eric Blake  <ebb9@byu.net>
36089
36090         doc: mention more functions added in cygwin 1.7.0
36091         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36092         addition.
36093         * doc/posix-functions/log2f.texi: Likewise.
36094
36095 2009-03-19  Jim Meyering  <meyering@redhat.com>
36096
36097         fsusage: avoid syntax error due to statement-before-declaration
36098         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36099         after all declarations.  Reported by Matthew Woehlke in
36100         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36101
36102 2009-03-18  Eric Blake  <ebb9@byu.net>
36103
36104         build-aux/compile: sync from automake
36105         * build-aux/compile: New file, from automake.
36106         * config/srclist.txt: Mention build-aux/compile.
36107
36108 2009-03-17  Bruno Haible  <bruno@clisp.org>
36109
36110         * lib/git-merge-changelog.c: Fix typo in comment.
36111         Reported by Reuben Thomas <rrt@sc3d.org>.
36112
36113 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36114
36115         * m4/regex.m4: update and improve help for
36116         --without-included-regex.
36117
36118 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36119
36120         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36121         failure on missing include files.
36122
36123 2009-03-17  Eric Blake  <ebb9@byu.net>
36124
36125         doc: mention more functions added in cygwin 1.7.0
36126         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36127         addition.
36128         * doc/posix-functions/fwscanf.texi: Likewise.
36129         * doc/posix-functions/swprintf.texi: Likewise.
36130         * doc/posix-functions/swscanf.texi: Likewise.
36131         * doc/posix-functions/vfwprintf.texi: Likewise.
36132         * doc/posix-functions/vfwscanf.texi: Likewise.
36133         * doc/posix-functions/vswprintf.texi: Likewise.
36134         * doc/posix-functions/vswscanf.texi: Likewise.
36135         * doc/posix-functions/vwprintf.texi: Likewise.
36136         * doc/posix-functions/vwscanf.texi: Likewise.
36137         * doc/posix-functions/wcscasecmp.texi: Likewise.
36138         * doc/posix-functions/wcsdup.texi: Likewise.
36139         * doc/posix-functions/wcsftime.texi: Likewise.
36140         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36141         * doc/posix-functions/wprintf.texi: Likewise.
36142         * doc/posix-functions/wscanf.texi: Likewise.
36143         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36144
36145 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36146
36147         maint.mk: really add $(AM_MAKEFLAGS)
36148         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36149         was inadvertently omitted in the last commit.
36150         Spotted by Bruno Haible.
36151
36152         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36153         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36154         $(AM_MAKEFLAGS)' rather than plain `make'.
36155
36156         gnulib-tool: execute $MAKE not make
36157         * gnulib-tool: Default $MAKE to 'make'.
36158         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36159         than make.  Initialize $MAKE in the do-autobuild script.
36160
36161         gnulib-tool: use $MAKE not make in generated files
36162         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36163         make, in generated files.  Initialize $MAKE in the do-autobuild
36164         script.
36165
36166         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36167
36168         GNUmakefile: disable parallelism only for multiple, recursive targets
36169         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36170         additions in the Makefile.
36171         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36172         by Automake.
36173         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36174         are listed on the command line and at least one of them is
36175         listed in $(ALL_RECURSIVE_TARGETS).
36176
36177 2009-03-14  Bruno Haible  <bruno@clisp.org>
36178
36179         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36180         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36181         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36182         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36183         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36184         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36185         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36186         unistr/u8-uctomb.
36187         * modules/unistr/u8-strchr (Depends-on): Likewise.
36188         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36189         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36190         unistr/u16-uctomb.
36191         * modules/unistr/u16-strchr (Depends-on): Likewise.
36192         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36193
36194 2009-03-12  Bruno Haible  <bruno@clisp.org>
36195
36196         Work around select() bug on Interix 3.5.
36197         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36198         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36199         * m4/select.m4: New file.
36200         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36201         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36202         * modules/select (Files): Add m4/select.m4.
36203         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36204         * modules/nanosleep (Depends-on): Add select.
36205         * modules/poll (Depends-on): Likewise.
36206         * doc/posix-functions/select.texi: Mention the Interix bug.
36207         Reported by Markus Duft <mduft@gentoo.org>.
36208
36209         * lib/select.c: Renamed from lib/winsock-select.c.
36210         * modules/select (Files): Add lib/select.c, remove
36211         lib/winsock-select.c.
36212         (configure.ac): Update.
36213
36214 2009-03-12  Jim Meyering  <meyering@redhat.com>
36215
36216         avoid gcc warnings about unused macro definitions
36217         * lib/readtokens.c (STREQ): Remove unused definition.
36218         * lib/xmalloc.c (SIZE_MAX): Likewise.
36219         * lib/openat-die.c (N_): Likewise.
36220         * lib/mountlist.c (SIZE_MAX): Remove definition.
36221         Instead, include <stdint.h>.
36222         * lib/readutmp.c: Likewise.
36223         * modules/readutmp (Depends-on): Add stdint.
36224         * modules/mountlist (Depends-on): Add stdint.
36225         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36226
36227 2009-03-10  Bruno Haible  <bruno@clisp.org>
36228
36229         Tests for module 'mbmemcasecoll'.
36230         * modules/mbmemcasecoll-tests: New file.
36231         * tests/test-mbmemcasecoll1.sh: New file.
36232         * tests/test-mbmemcasecoll2.sh: New file.
36233         * tests/test-mbmemcasecoll3.sh: New file.
36234         * tests/test-mbmemcasecoll.c: New file.
36235
36236         New module 'mbmemcasecoll'.
36237         * lib/mbmemcasecoll.h: New file.
36238         * lib/mbmemcasecoll.c: New file.
36239         * modules/mbmemcasecoll: New file.
36240
36241         * tests/test-mbmemcasecmp.h: New file, extracted from
36242         tests/test-mbmemcasecmp.c.
36243         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36244         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36245         (main): Update.
36246         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36247
36248 2009-03-09  Bruno Haible  <bruno@clisp.org>
36249
36250         Tests for module 'mbmemcasecmp'.
36251         * modules/mbmemcasecmp-tests: New file.
36252         * tests/test-mbmemcasecmp1.sh: New file.
36253         * tests/test-mbmemcasecmp2.sh: New file.
36254         * tests/test-mbmemcasecmp3.sh: New file.
36255         * tests/test-mbmemcasecmp.c: New file.
36256
36257         New module 'mbmemcasecmp'.
36258         * lib/mbmemcasecmp.h: New file.
36259         * lib/mbmemcasecmp.c: New file.
36260         * modules/mbmemcasecmp: New file.
36261
36262 2009-03-09  Bruno Haible  <bruno@clisp.org>
36263
36264         Tests for module 'unicase/ulc-casecoll'.
36265         * modules/unicase/ulc-casecoll-tests: New file.
36266         * tests/unicase/test-ulc-casecoll1.sh: New file.
36267         * tests/unicase/test-ulc-casecoll2.sh: New file.
36268         * tests/unicase/test-ulc-casecoll.c: New file.
36269
36270         New module 'unicase/ulc-casecoll'.
36271         * lib/unicase.h (ulc_casecoll): New declaration.
36272         * lib/unicase/ulc-casecoll.c: New file.
36273         * modules/unicase/ulc-casecoll: New file.
36274
36275         New module 'unicase/ulc-casexfrm'.
36276         * lib/unicase.h (ulc_casexfrm): New declaration.
36277         * lib/unicase/ulc-casexfrm.c: New file.
36278         * modules/unicase/ulc-casexfrm: New file.
36279
36280 2009-03-09  Bruno Haible  <bruno@clisp.org>
36281
36282         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36283         invocations.
36284
36285         * m4/mbscasecmp.m4: Remove file.
36286         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36287         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36288
36289         * m4/mbscasestr.m4: Remove file.
36290         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36291         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36292
36293         * m4/mbschr.m4: Remove file.
36294         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36295         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36296
36297         * m4/mbscspn.m4: Remove file.
36298         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36299         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36300
36301         * m4/mbslen.m4: Remove file.
36302         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36303         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36304
36305         * m4/mbsncasecmp.m4: Remove file.
36306         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36307         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36308
36309         * m4/mbsnlen.m4: Remove file.
36310         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36311         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36312
36313         * m4/mbspbrk.m4: Remove file.
36314         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36315         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36316
36317         * m4/mbspcasecmp.m4: Remove file.
36318         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36319         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36320
36321         * m4/mbsrchr.m4: Remove file.
36322         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36323         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36324
36325         * m4/mbssep.m4: Remove file.
36326         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36327         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36328
36329         * m4/mbsspn.m4: Remove file.
36330         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36331         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36332
36333         * m4/mbsstr.m4: Remove file.
36334         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36335         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36336
36337         * m4/mbstok_r.m4: Remove file.
36338         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36339         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36340
36341         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36342
36343         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36344         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36345
36346         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36347
36348 2009-03-08  Bruno Haible  <bruno@clisp.org>
36349
36350         Tests for module 'unicase/ulc-casecmp'.
36351         * modules/unicase/ulc-casecmp-tests: New file.
36352         * tests/unicase/test-ulc-casecmp1.sh: New file.
36353         * tests/unicase/test-ulc-casecmp2.sh: New file.
36354         * tests/unicase/test-ulc-casecmp.c: New file.
36355
36356         New module 'unicase/ulc-casecmp'.
36357         * lib/unicase.h (ulc_casecmp): New declaration.
36358         * lib/unicase/ulc-casecmp.c: New file.
36359         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36360         'const SRC_UNIT *'.
36361         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36362         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36363         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36364         * modules/unicase/ulc-casecmp: New file.
36365
36366         Tests for module 'unicase/u32-is-cased'.
36367         * modules/unicase/u32-is-cased-tests: New file.
36368         * tests/unicase/test-u32-is-cased.c: New file.
36369
36370         Tests for module 'unicase/u16-is-cased'.
36371         * modules/unicase/u16-is-cased-tests: New file.
36372         * tests/unicase/test-u16-is-cased.c: New file.
36373
36374         Tests for module 'unicase/u8-is-cased'.
36375         * modules/unicase/u8-is-cased-tests: New file.
36376         * tests/unicase/test-u8-is-cased.c: New file.
36377         * tests/unicase/test-is-cased.h: New file.
36378
36379         New module 'unicase/u32-is-cased'.
36380         * lib/unicase/u32-is-cased.c: New file.
36381         * modules/unicase/u32-is-cased: New file.
36382
36383         New module 'unicase/u16-is-cased'.
36384         * lib/unicase/u16-is-cased.c: New file.
36385         * modules/unicase/u16-is-cased: New file.
36386
36387         New module 'unicase/u8-is-cased'.
36388         * lib/unicase/u8-is-cased.c: New file.
36389         * lib/unicase/u-is-cased.h: New file.
36390         * modules/unicase/u8-is-cased: New file.
36391
36392         Tests for module 'unicase/u32-is-casefolded'.
36393         * modules/unicase/u32-is-casefolded-tests: New file.
36394         * tests/unicase/test-u32-is-casefolded.c: New file.
36395
36396         Tests for module 'unicase/u16-is-casefolded'.
36397         * modules/unicase/u16-is-casefolded-tests: New file.
36398         * tests/unicase/test-u16-is-casefolded.c: New file.
36399
36400         Tests for module 'unicase/u8-is-casefolded'.
36401         * modules/unicase/u8-is-casefolded-tests: New file.
36402         * tests/unicase/test-u8-is-casefolded.c: New file.
36403         * tests/unicase/test-is-casefolded.h: New file.
36404
36405         New module 'unicase/u32-is-casefolded'.
36406         * lib/unicase/u32-is-casefolded.c: New file.
36407         * modules/unicase/u32-is-casefolded: New file.
36408
36409         New module 'unicase/u16-is-casefolded'.
36410         * lib/unicase/u16-is-casefolded.c: New file.
36411         * modules/unicase/u16-is-casefolded: New file.
36412
36413         New module 'unicase/u8-is-casefolded'.
36414         * lib/unicase/u8-is-casefolded.c: New file.
36415         * modules/unicase/u8-is-casefolded: New file.
36416
36417         Tests for module 'unicase/u32-is-titlecase'.
36418         * modules/unicase/u32-is-titlecase-tests: New file.
36419         * tests/unicase/test-u32-is-titlecase.c: New file.
36420
36421         Tests for module 'unicase/u16-is-titlecase'.
36422         * modules/unicase/u16-is-titlecase-tests: New file.
36423         * tests/unicase/test-u16-is-titlecase.c: New file.
36424
36425         Tests for module 'unicase/u8-is-titlecase'.
36426         * modules/unicase/u8-is-titlecase-tests: New file.
36427         * tests/unicase/test-u8-is-titlecase.c: New file.
36428         * tests/unicase/test-is-titlecase.h: New file.
36429
36430         New module 'unicase/u32-is-titlecase'.
36431         * lib/unicase/u32-is-titlecase.c: New file.
36432         * modules/unicase/u32-is-titlecase: New file.
36433
36434         New module 'unicase/u16-is-titlecase'.
36435         * lib/unicase/u16-is-titlecase.c: New file.
36436         * modules/unicase/u16-is-titlecase: New file.
36437
36438         New module 'unicase/u8-is-titlecase'.
36439         * lib/unicase/u8-is-titlecase.c: New file.
36440         * modules/unicase/u8-is-titlecase: New file.
36441
36442         Tests for module 'unicase/u32-is-lowercase'.
36443         * modules/unicase/u32-is-lowercase-tests: New file.
36444         * tests/unicase/test-u32-is-lowercase.c: New file.
36445
36446         Tests for module 'unicase/u16-is-lowercase'.
36447         * modules/unicase/u16-is-lowercase-tests: New file.
36448         * tests/unicase/test-u16-is-lowercase.c: New file.
36449
36450         Tests for module 'unicase/u8-is-lowercase'.
36451         * modules/unicase/u8-is-lowercase-tests: New file.
36452         * tests/unicase/test-u8-is-lowercase.c: New file.
36453         * tests/unicase/test-is-lowercase.h: New file.
36454
36455         New module 'unicase/u32-is-lowercase'.
36456         * lib/unicase/u32-is-lowercase.c: New file.
36457         * modules/unicase/u32-is-lowercase: New file.
36458
36459         New module 'unicase/u16-is-lowercase'.
36460         * lib/unicase/u16-is-lowercase.c: New file.
36461         * modules/unicase/u16-is-lowercase: New file.
36462
36463         New module 'unicase/u8-is-lowercase'.
36464         * lib/unicase/u8-is-lowercase.c: New file.
36465         * modules/unicase/u8-is-lowercase: New file.
36466
36467         Tests for module 'unicase/u32-is-uppercase'.
36468         * modules/unicase/u32-is-uppercase-tests: New file.
36469         * tests/unicase/test-u32-is-uppercase.c: New file.
36470
36471         Tests for module 'unicase/u16-is-uppercase'.
36472         * modules/unicase/u16-is-uppercase-tests: New file.
36473         * tests/unicase/test-u16-is-uppercase.c: New file.
36474
36475         Tests for module 'unicase/u8-is-uppercase'.
36476         * modules/unicase/u8-is-uppercase-tests: New file.
36477         * tests/unicase/test-u8-is-uppercase.c: New file.
36478         * tests/unicase/test-is-uppercase.h: New file.
36479
36480         New module 'unicase/u32-is-uppercase'.
36481         * lib/unicase/u32-is-uppercase.c: New file.
36482         * modules/unicase/u32-is-uppercase: New file.
36483
36484         New module 'unicase/u16-is-uppercase'.
36485         * lib/unicase/u16-is-uppercase.c: New file.
36486         * modules/unicase/u16-is-uppercase: New file.
36487
36488         New module 'unicase/u8-is-uppercase'.
36489         * lib/unicase/u8-is-uppercase.c: New file.
36490         * modules/unicase/u8-is-uppercase: New file.
36491
36492         New module 'unicase/u32-is-invariant'.
36493         * lib/unicase/u32-is-invariant.c: New file.
36494         * modules/unicase/u32-is-invariant: New file.
36495
36496         New module 'unicase/u16-is-invariant'.
36497         * lib/unicase/u16-is-invariant.c: New file.
36498         * modules/unicase/u16-is-invariant: New file.
36499
36500         New module 'unicase/u8-is-invariant'.
36501         * lib/unicase/u8-is-invariant.c: New file.
36502         * lib/unicase/invariant.h: New file.
36503         * lib/unicase/u-is-invariant.h: New file.
36504         * modules/unicase/u8-is-invariant: New file.
36505
36506         Tests for module 'unicase/u32-casecoll'.
36507         * modules/unicase/u32-casecoll-tests: New file.
36508         * tests/unicase/test-u32-casecoll.c: New file.
36509
36510         Tests for module 'unicase/u16-casecoll'.
36511         * modules/unicase/u16-casecoll-tests: New file.
36512         * tests/unicase/test-u16-casecoll.c: New file.
36513
36514         Tests for module 'unicase/u8-casecoll'.
36515         * modules/unicase/u8-casecoll-tests: New file.
36516         * tests/unicase/test-u8-casecoll.c: New file.
36517
36518         New module 'unicase/u32-casecoll'.
36519         * lib/unicase/u32-casecoll.c: New file.
36520         * modules/unicase/u32-casecoll: New file.
36521
36522         New module 'unicase/u16-casecoll'.
36523         * lib/unicase/u16-casecoll.c: New file.
36524         * modules/unicase/u16-casecoll: New file.
36525
36526         New module 'unicase/u8-casecoll'.
36527         * lib/unicase/u8-casecoll.c: New file.
36528         * lib/unicase/u-casecoll.h: New file.
36529         * modules/unicase/u8-casecoll: New file.
36530
36531         New module 'unicase/u32-casexfrm'.
36532         * lib/unicase/u32-casexfrm.c: New file.
36533         * modules/unicase/u32-casexfrm: New file.
36534
36535         New module 'unicase/u16-casexfrm'.
36536         * lib/unicase/u16-casexfrm.c: New file.
36537         * modules/unicase/u16-casexfrm: New file.
36538
36539         New module 'unicase/u8-casexfrm'.
36540         * lib/unicase/u8-casexfrm.c: New file.
36541         * lib/unicase/u-casexfrm.h: New file.
36542         * modules/unicase/u8-casexfrm: New file.
36543
36544         Tests for module 'unicase/u32-casecmp'.
36545         * modules/unicase/u32-casecmp-tests: New file.
36546         * tests/unicase/test-u32-casecmp.c: New file.
36547
36548         Tests for module 'unicase/u16-casecmp'.
36549         * modules/unicase/u16-casecmp-tests: New file.
36550         * tests/unicase/test-u16-casecmp.c: New file.
36551
36552         Tests for module 'unicase/u8-casecmp'.
36553         * modules/unicase/u8-casecmp-tests: New file.
36554         * tests/unicase/test-u8-casecmp.c: New file.
36555         * tests/unicase/test-casecmp.h: New file.
36556
36557         New module 'unicase/u32-casecmp'.
36558         * lib/unicase/u32-casecmp.c: New file.
36559         * modules/unicase/u32-casecmp: New file.
36560
36561         New module 'unicase/u16-casecmp'.
36562         * lib/unicase/u16-casecmp.c: New file.
36563         * modules/unicase/u16-casecmp: New file.
36564
36565         New module 'unicase/u8-casecmp'.
36566         * lib/unicase/u8-casecmp.c: New file.
36567         * lib/unicase/u-casecmp.h: New file.
36568         * modules/unicase/u8-casecmp: New file.
36569
36570         Tests for module 'unicase/u32-casefold'.
36571         * modules/unicase/u32-casefold-tests: New file.
36572         * tests/unicase/test-u32-casefold.c: New file.
36573
36574         Tests for module 'unicase/u16-casefold'.
36575         * modules/unicase/u16-casefold-tests: New file.
36576         * tests/unicase/test-u16-casefold.c: New file.
36577
36578         Tests for module 'unicase/u8-casefold'.
36579         * modules/unicase/u8-casefold-tests: New file.
36580         * tests/unicase/test-u8-casefold.c: New file.
36581
36582         New module 'unicase/u32-casefold'.
36583         * lib/unicase/u32-casefold.c: New file.
36584         * modules/unicase/u32-casefold: New file.
36585
36586         New module 'unicase/u16-casefold'.
36587         * lib/unicase/u16-casefold.c: New file.
36588         * modules/unicase/u16-casefold: New file.
36589
36590         New module 'unicase/u8-casefold'.
36591         * lib/unicase/u8-casefold.c: New file.
36592         * lib/unicase/u-casefold.h: New file.
36593         * modules/unicase/u8-casefold: New file.
36594
36595         New module 'unicase/tocasefold'.
36596         * lib/unicase/casefold.h: New file.
36597         * lib/unicase/tocasefold.c: New file.
36598         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36599         * modules/unicase/tocasefold: New file.
36600
36601         Tests for module 'unicase/u32-totitle'.
36602         * modules/unicase/u32-totitle-tests: New file.
36603         * tests/unicase/test-u32-totitle.c: New file.
36604
36605         Tests for module 'unicase/u16-totitle'.
36606         * modules/unicase/u16-totitle-tests: New file.
36607         * tests/unicase/test-u16-totitle.c: New file.
36608
36609         Tests for module 'unicase/u8-totitle'.
36610         * modules/unicase/u8-totitle-tests: New file.
36611         * tests/unicase/test-u8-totitle.c: New file.
36612
36613         New module 'unicase/u32-totitle'.
36614         * lib/unicase/u32-totitle.c: New file.
36615         * modules/unicase/u32-totitle: New file.
36616
36617         New module 'unicase/u16-totitle'.
36618         * lib/unicase/u16-totitle.c: New file.
36619         * modules/unicase/u16-totitle: New file.
36620
36621         New module 'unicase/u8-totitle'.
36622         * lib/unicase/u8-totitle.c: New file.
36623         * lib/unicase/u-totitle.h: New file.
36624         * modules/unicase/u8-totitle: New file.
36625
36626         Tests for module 'unicase/u32-tolower'.
36627         * modules/unicase/u32-tolower-tests: New file.
36628         * tests/unicase/test-u32-tolower.c: New file.
36629
36630         Tests for module 'unicase/u16-tolower'.
36631         * modules/unicase/u16-tolower-tests: New file.
36632         * tests/unicase/test-u16-tolower.c: New file.
36633
36634         Tests for module 'unicase/u8-tolower'.
36635         * modules/unicase/u8-tolower-tests: New file.
36636         * tests/unicase/test-u8-tolower.c: New file.
36637
36638         New module 'unicase/u32-tolower'.
36639         * lib/unicase/u32-tolower.c: New file.
36640         * modules/unicase/u32-tolower: New file.
36641
36642         New module 'unicase/u16-tolower'.
36643         * lib/unicase/u16-tolower.c: New file.
36644         * modules/unicase/u16-tolower: New file.
36645
36646         New module 'unicase/u8-tolower'.
36647         * lib/unicase/u8-tolower.c: New file.
36648         * modules/unicase/u8-tolower: New file.
36649
36650         Tests for module 'unicase/u32-toupper'.
36651         * modules/unicase/u32-toupper-tests: New file.
36652         * tests/unicase/test-u32-toupper.c: New file.
36653
36654         Tests for module 'unicase/u16-toupper'.
36655         * modules/unicase/u16-toupper-tests: New file.
36656         * tests/unicase/test-u16-toupper.c: New file.
36657
36658         Tests for module 'unicase/u8-toupper'.
36659         * modules/unicase/u8-toupper-tests: New file.
36660         * tests/unicase/test-u8-toupper.c: New file.
36661
36662         New module 'unicase/u32-toupper'.
36663         * lib/unicase/u32-toupper.c: New file.
36664         * modules/unicase/u32-toupper: New file.
36665
36666         New module 'unicase/u16-toupper'.
36667         * lib/unicase/u16-toupper.c: New file.
36668         * modules/unicase/u16-toupper: New file.
36669
36670         New module 'unicase/u8-toupper'.
36671         * lib/unicase/u8-toupper.c: New file.
36672         * modules/unicase/u8-toupper: New file.
36673
36674         New module 'unicase/u32-casemap'.
36675         * lib/unicase/u32-casemap.c: New file.
36676         * modules/unicase/u32-casemap: New file.
36677
36678         New module 'unicase/u16-casemap'.
36679         * lib/unicase/u16-casemap.c: New file.
36680         * modules/unicase/u16-casemap: New file.
36681
36682         New module 'unicase/u8-casemap'.
36683         * lib/unicase/unicasemap.h: New file.
36684         * lib/unicase/u8-casemap.c: New file.
36685         * lib/unicase/u-casemap.h: New file.
36686         * modules/unicase/u8-casemap: New file.
36687
36688         New module 'unicase/special-casing'.
36689         * lib/unicase/special-casing.h: New file.
36690         * lib/unicase/special-casing.c: New file.
36691         * lib/unicase/special-casing-table.gperf: New file, generated by
36692         gen-uni-tables.c.
36693         * modules/unicase/special-casing: New file.
36694
36695         Tests for module 'unicase/locale-language'.
36696         * modules/unicase/locale-language-tests: New file.
36697         * tests/unicase/test-locale-language.sh: New file.
36698         * tests/unicase/test-locale-language.c: New file.
36699
36700         New module 'unicase/locale-language'.
36701         * lib/unicase/locale-language.c: New file.
36702         * lib/unicase/locale-languages.gperf: New file.
36703         * modules/unicase/locale-language: New file.
36704
36705         Generate more tables for case conversion and case folding.
36706         * lib/gen-uni-tables.c (SCC_*): New enum items.
36707         (struct special_casing_rule): New type.
36708         (casing_rules, num_casing_rules, allocated_casing_rules): New
36709         variables.
36710         (add_casing_rule, fill_casing_rules): New functions.
36711         (struct casefold_rule): New type.
36712         (casefolding_rules, num_casefolding_rules,
36713         allocated_casefolding_rules): New variables.
36714         (fill_casefolding_rules): New function.
36715         (unicode_casefold): New variable.
36716         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36717         sort_casing_rules, output_casing_rules): New functions.
36718         (main): Accept to more arguments: SpecialCasing.txt and
36719         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36720         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36721         Output mapping for casefolding.
36722
36723         * lib/unicase.h: Include stdbool.h, uninorm.h.
36724         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36725         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36726         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36727         arguments.
36728         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36729         resultp arguments.
36730         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36731         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36732         resultp arguments.
36733         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36734         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36735         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36736         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36737         declarations.
36738         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36739
36740 2009-03-08  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36743         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36744         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36745         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36746
36747 2009-03-07  Bruno Haible  <bruno@clisp.org>
36748
36749         Adjust u*_normcmp, u*_normcoll API.
36750         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36751         u16_normcoll, u32_normcoll): Change failure conventions.
36752         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36753         errno and return -1.
36754         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36755
36756 2009-03-07  Bruno Haible  <bruno@clisp.org>
36757
36758         Tests for module 'uninorm/u32-normcoll'.
36759         * modules/uninorm/u32-normcoll-tests: New file.
36760         * tests/uninorm/test-u32-normcoll.c: New file.
36761
36762         Tests for module 'uninorm/u16-normcoll'.
36763         * modules/uninorm/u16-normcoll-tests: New file.
36764         * tests/uninorm/test-u16-normcoll.c: New file.
36765
36766         Tests for module 'uninorm/u8-normcoll'.
36767         * modules/uninorm/u8-normcoll-tests: New file.
36768         * tests/uninorm/test-u8-normcoll.c: New file.
36769
36770 2009-03-07  Bruno Haible  <bruno@clisp.org>
36771
36772         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36773         tests/uninorm/test-u32-normcmp.c.
36774         * tests/uninorm/test-u32-normcmp.c: Include it.
36775         (test_nonascii): New function, extracted from main. Add some more
36776         tests.
36777         (main): Invoke test_ascii and test_nonascii.
36778         * modules/uninorm/u32-normcmp-tests (Files): Add
36779         tests/uninorm/test-u32-normcmp.h.
36780         (Depends-on): Remove uninorm/u32-normcmp.
36781
36782         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36783         tests/uninorm/test-u16-normcmp.c.
36784         * tests/uninorm/test-u16-normcmp.c: Include it.
36785         (test_nonascii): New function, extracted from main. Add some more
36786         tests.
36787         (main): Invoke test_ascii and test_nonascii.
36788         * modules/uninorm/u16-normcmp-tests (Files): Add
36789         tests/uninorm/test-u16-normcmp.h.
36790         (Depends-on): Remove uninorm/u16-normcmp.
36791
36792         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36793         tests/uninorm/test-u8-normcmp.c.
36794         * tests/uninorm/test-u8-normcmp.c: Include it.
36795         (test_nonascii): New function, extracted from main. Add some more
36796         tests.
36797         (main): Invoke test_ascii and test_nonascii.
36798         * modules/uninorm/u8-normcmp-tests (Files): Add
36799         tests/uninorm/test-u8-normcmp.h.
36800         (Depends-on): Remove uninorm/u8-normcmp.
36801
36802 2009-03-07  Bruno Haible  <bruno@clisp.org>
36803
36804         New module 'uninorm/u32-normcoll'.
36805         * lib/uninorm/u32-normcoll.c: New file.
36806         * modules/uninorm/u32-normcoll: New file.
36807
36808         New module 'uninorm/u16-normcoll'.
36809         * lib/uninorm/u16-normcoll.c: New file.
36810         * modules/uninorm/u16-normcoll: New file.
36811
36812         New module 'uninorm/u8-normcoll'.
36813         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36814         declarations.
36815         * lib/uninorm/u8-normcoll.c: New file.
36816         * lib/uninorm/u-normcoll.h: New file.
36817         * modules/uninorm/u8-normcoll: New file.
36818
36819         New module 'uninorm/u32-normxfrm'.
36820         * lib/uninorm/u32-normxfrm.c: New file.
36821         * modules/uninorm/u32-normxfrm: New file.
36822
36823         New module 'uninorm/u16-normxfrm'.
36824         * lib/uninorm/u16-normxfrm.c: New file.
36825         * modules/uninorm/u16-normxfrm: New file.
36826
36827         New module 'uninorm/u8-normxfrm'.
36828         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36829         declarations.
36830         * lib/uninorm/u8-normxfrm.c: New file.
36831         * lib/uninorm/u-normxfrm.h: New file.
36832         * modules/uninorm/u8-normxfrm: New file.
36833
36834 2009-03-07  Bruno Haible  <bruno@clisp.org>
36835
36836         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36837         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36838         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36839
36840 2009-03-07  Bruno Haible  <bruno@clisp.org>
36841
36842         New module 'memxfrm'.
36843         * lib/memxfrm.h: New file.
36844         * lib/memxfrm.c: New file.
36845         * modules/memxfrm: New file.
36846
36847 2009-03-07  Bruno Haible  <bruno@clisp.org>
36848
36849         New module 'memcmp2'.
36850         * lib/memcmp2.h: New file.
36851         * lib/memcmp2.c: New file.
36852         * modules/memcmp2: New file.
36853
36854 2009-03-07  Bruno Haible  <bruno@clisp.org>
36855
36856         Tests for module 'uninorm/decomposing-form'.
36857         * modules/uninorm/decomposing-form-tests: New file.
36858         * tests/uninorm/test-decomposing-form.c: New file.
36859
36860         New module 'uninorm/decomposing-form'.
36861         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36862         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36863         Add 'decomposing_variant' field.
36864         * lib/uninorm/decomposing-form.c: New file.
36865         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36866         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36867         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36868         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36869         * modules/uninorm/decomposing-form: New file.
36870         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36871         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36872
36873 2009-03-07  Bruno Haible  <bruno@clisp.org>
36874
36875         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36876         strings.
36877
36878 2009-03-06  Bruno Haible  <bruno@clisp.org>
36879
36880         Tests for module 'uninorm/u32-normcmp'.
36881         * tests/uninorm/test-u32-normcmp.c: New file.
36882         * modules/uninorm/u32-normcmp-tests: New file.
36883
36884         Tests for module 'uninorm/u16-normcmp'.
36885         * tests/uninorm/test-u16-normcmp.c: New file.
36886         * modules/uninorm/u16-normcmp-tests: New file.
36887
36888         Tests for module 'uninorm/u8-normcmp'.
36889         * tests/uninorm/test-u8-normcmp.c: New file.
36890         * modules/uninorm/u8-normcmp-tests: New file.
36891
36892         New module 'uninorm/u32-normcmp'.
36893         * lib/uninorm/u32-normcmp.c: New file.
36894         * modules/uninorm/u32-normcmp: New file.
36895
36896         New module 'uninorm/u16-normcmp'.
36897         * lib/uninorm/u16-normcmp.c: New file.
36898         * modules/uninorm/u16-normcmp: New file.
36899
36900         New module 'uninorm/u8-normcmp'.
36901         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36902         declarations.
36903         * lib/uninorm/u8-normcmp.c: New file.
36904         * lib/uninorm/u-normcmp.h: New file.
36905         * modules/uninorm/u8-normcmp: New file.
36906
36907 2009-03-06  Bruno Haible  <bruno@clisp.org>
36908
36909         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36910         Reported by Eric Blake.
36911
36912 2009-03-06  Eric Blake  <ebb9@byu.net>
36913             Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36916         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36917         condition.
36918         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36919         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36920         condition.
36921         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36922
36923 2009-03-06  Eric Blake  <ebb9@byu.net>
36924
36925         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36926         to avoid compiler warnings.
36927         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36928
36929 2009-03-05  Bruno Haible  <bruno@clisp.org>
36930
36931         * tests/test-ftell.c (main): Disable test beyond end of file on
36932         FreeMiNT.
36933         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36934
36935 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36936
36937         * lib/filevercmp.c: Move hidden files up in ordering.
36938         * tests/test-filevercmp.c: Add tests for hidden files.
36939
36940 2009-03-04  Bruno Haible  <bruno@clisp.org>
36941
36942         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36943         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36944         AM_CFLAGS.
36945         Reported by Simon Josefsson.
36946
36947 2009-03-03  Bruno Haible  <bruno@clisp.org>
36948
36949         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36950         Reported by Simon Josefsson.
36951
36952         * doc/ld-version-script.texi: Update node reference.
36953
36954 2009-03-03  Bruno Haible  <bruno@clisp.org>
36955
36956         * modules/visibility (License): Change to 'unlimited'.
36957         Suggested by Simon Josefsson.
36958
36959 2009-03-03  Jim Meyering  <meyering@redhat.com>
36960
36961         unlinkdir: cannot_unlink_dir may modify process state
36962         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36963         it's neither thread-safe nor appropriate for use in a library.
36964
36965 2009-03-03  Eric Blake  <ebb9@byu.net>
36966
36967         test-closein: silence test under Darwin
36968         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36969         care if it dies from EPIPE or EBADF.
36970
36971 2009-03-03  Bruno Haible  <bruno@clisp.org>
36972
36973         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36974         earlier.
36975         * doc/visibility.texi: Fix @node and @section.
36976
36977 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36978
36979         * doc/gnulib.texi: Link to sections for ld version script and
36980         visibility.
36981         * doc/visibility.texi: Add @node and @section.
36982         * modules/ld-version-script: New module.
36983         * m4/ld-version-script.m4: New file.
36984         * doc/ld-version-script.texi: New file.
36985
36986 2009-03-02  David Lutterkort  <lutter@redhat.com>
36987
36988         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36990
36991 2009-03-02  Bruno Haible  <bruno@clisp.org>
36992
36993         * doc/visibility.texi: Mention libtool's -export-symbols option.
36994
36995 2009-03-02  Jim Meyering  <meyering@redhat.com>
36996
36997         announce-gen: new option: --no-print-checksums
36998         * build-aux/announce-gen (usage): Describe it.
36999         (print_checksums): Print a newline here, not in the [*] footnote.
37000         (main): Honor it.
37001
37002 2009-03-01  Bruno Haible  <bruno@clisp.org>
37003
37004         Use socklen_t in the native Windows replacements prototypes.
37005         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37006         instead of 'int'.
37007         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37008         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37009         * modules/getsockopt (Depends-on): Add socklen.
37010         * modules/setsockopt (Depends-on): Add socklen.
37011
37012 2009-03-01  Bruno Haible  <bruno@clisp.org>
37013
37014         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37015         least 4.2.
37016
37017 2009-03-01  Eric Blake  <ebb9@byu.net>
37018             Bruno Haible  <bruno@clisp.org>
37019
37020         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37021         error messages.
37022         * lib/wait-process.c (wait_subprocess): Omit error message about
37023         deadly signal sent to the child of termsigp != NULL.
37024
37025 2009-03-01  Eric Blake  <ebb9@byu.net>
37026
37027         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37028
37029 2009-03-01  Bruno Haible  <bruno@clisp.org>
37030
37031         Avoid a gcc warning.
37032         * tests/test-sched.c (b): Make global.
37033         Reported by Eric Blake.
37034
37035 2009-01-19  Martin Lambers  <marlam@marlam.de>
37036
37037         Provide POSIX semantics for socket timeout options on W32.
37038         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37039         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37040         * modules/setsockopt: Depend on sys_time module for struct timeval.
37041         * modules/getsockopt: Depend on sys_time module for struct timeval.
37042
37043 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37044
37045         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37046         __USE_GNU, for consistency with netdb.in.h.
37047         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37048
37049 2009-03-01  Bruno Haible  <bruno@clisp.org>
37050
37051         More support for FreeMiNT.
37052         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37053         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37054
37055 2009-03-01  Bruno Haible  <bruno@clisp.org>
37056
37057         More support for FreeMiNT.
37058         * lib/fpurge.c (fpurge): Correct last commit.
37059         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37060
37061 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37062
37063         Fix unportable awk script in vc-list-files.
37064         * build-aux/vc-list-files: In the replacement awk script, use
37065         substr with a second argument of 1, not zero.
37066         Report by Simon Josefsson.
37067
37068 2009-02-28  Bruno Haible  <bruno@clisp.org>
37069
37070         More support for FreeMiNT.
37071         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37072         to FreeMiNT today.
37073         * lib/fwriting.c (fwriting): Likewise.
37074         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37075
37076 2009-02-28  Bruno Haible  <bruno@clisp.org>
37077
37078         * tests/test-freadseek.c (main): Disable test beyond end of file on
37079         FreeMiNT.
37080         * tests/test-ftello.c (main): Likewise.
37081         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37082
37083 2009-02-28  Bruno Haible  <bruno@clisp.org>
37084
37085         Add tentative support for FreeMiNT.
37086         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37087         * lib/fpurge.c (fpurge): Likewise.
37088         * lib/freadable.c (freadable): Likewise.
37089         * lib/freading.c (freading): Likewise.
37090         * lib/freadptr.c (freadptr): Likewise.
37091         * lib/freadseek.c (freadptrinc): Likewise.
37092         * lib/fseeko.c (rpl_fseeko): Likewise.
37093         * lib/fseterr.c (fseterr): Likewise.
37094         * lib/fwritable.c (fwritable): Likewise.
37095         * lib/fwriting.c (fwriting): Likewise.
37096         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37097         Hourihane.
37098         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37099
37100 2009-02-28  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37103         SIGCHLD.
37104         Reported by Jim Meyering.
37105
37106 2009-02-28  Bruno Haible  <bruno@clisp.org>
37107
37108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37109         Mention the results of these tests on various platforms.
37110         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37111         order.
37112         * doc/posix-functions/printf.texi: Likewise.
37113         * doc/posix-functions/snprintf.texi: Likewise.
37114         * doc/posix-functions/sprintf.texi: Likewise.
37115         * doc/posix-functions/vfprintf.texi: Likewise.
37116         * doc/posix-functions/vprintf.texi: Likewise.
37117         * doc/posix-functions/vsnprintf.texi: Likewise.
37118         * doc/posix-functions/vsprintf.texi: Likewise.
37119         * doc/glibc-functions/obstack_printf.texi: Likewise.
37120         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37121
37122 2009-02-28  Bruno Haible  <bruno@clisp.org>
37123
37124         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37125         Reported by Loïc Minier <lool@dooz.org>.
37126
37127 2009-02-27  Bruno Haible  <bruno@clisp.org>
37128
37129         * gnulib-tool (func_import): Make the sed expression used to create the
37130         sed script for updating the .gitignore file POSIX compliant.
37131         Reported by Eric Blake.
37132
37133 2009-02-27  Bruno Haible  <bruno@clisp.org>
37134
37135         * gnulib-tool (sed): Don't alias as "sed --posix".
37136         Reported by Eric Blake.
37137
37138 2009-02-27  Bruno Haible  <bruno@clisp.org>
37139
37140         Avoid test link errors.
37141         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37142         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37143         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37144         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37146
37147 2009-02-27  Bruno Haible  <bruno@clisp.org>
37148
37149         Avoid spurious "(cached)" in configure output.
37150         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37151         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37152         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37153         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37154         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37155         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37156         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37157         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37158         Reported by Eric Blake.
37159
37160 2009-02-27  Eric Blake  <ebb9@byu.net>
37161
37162         printf: fix regression in previous patch
37163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37164
37165 2009-02-27  Bruno Haible  <bruno@clisp.org>
37166
37167         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37168         value.
37169         * lib/stdint.in.h: Likewise.
37170         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37171
37172 2009-02-27  Eric Blake  <ebb9@byu.net>
37173
37174         doc: mention more functions added in cygwin 1.7.0
37175         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37176         addition.
37177         * doc/posix-functions/open_wmemstream.texi: Likewise.
37178         * doc/posix-functions/wcsnlen.texi: Likewise.
37179         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37180         * doc/posix-functions/wcstod.texi: Likewise.
37181         * doc/posix-functions/wcstof.texi: Likewise.
37182         * doc/posix-functions/wcstoimax.texi: Likewise.
37183         * doc/posix-functions/wcstok.texi: Likewise.
37184         * doc/posix-functions/wcstoumax.texi: Likewise.
37185
37186         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37188         * doc/posix-functions/fprintf.texi: Update.
37189         * doc/posix-functions/printf.texi: Update.
37190         * doc/posix-functions/snprintf.texi: Update.
37191         * doc/posix-functions/sprintf.texi: Update.
37192         * doc/posix-functions/vfprintf.texi: Update.
37193         * doc/posix-functions/vprintf.texi: Update.
37194         * doc/posix-functions/vsnprintf.texi: Update.
37195         * doc/posix-functions/vsprintf.texi: Update.
37196         * doc/glibc-functions/obstack_printf.texi: Update.
37197         * doc/glibc-functions/obstack_vprintf.texi: Update.
37198
37199 2009-02-26  Eric Blake  <ebb9@byu.net>
37200
37201         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37202         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37203         compilation bug by using runtime conversion.
37204         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37205         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37206         * modules/ceill-tests (Files): Use nan.h.
37207         * modules/floorl-tests (Files): Likewise.
37208         * modules/frexpl-tests (Files): Likewise.
37209         * modules/isnanl-tests (Files): Likewise.
37210         * modules/ldexpl-tests (Files): Likewise.
37211         * modules/roundl-tests (Files): Likewise.
37212         * modules/truncl-tests (Files): Likewise.
37213         * tests/test-ceill.c (main): Use a working NaN.
37214         * tests/test-floorl.c (main): Likewise.
37215         * tests/test-frexpl.c (main): Likewise.
37216         * tests/test-isnan.c (test_long_double): Likewise.
37217         * tests/test-isnanl.h (main): Likewise.
37218         * tests/test-ldexpl.h (main): Likewise.
37219         * tests/test-roundl.h (main): Likewise.
37220         * tests/test-truncl.h (main): Likewise.
37221         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37222
37223 2009-02-26  Eric Blake  <ebb9@byu.net>
37224             Bruno Haible  <bruno@clisp.org>
37225
37226         Work around a *printf bug with %ls on Solaris.
37227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37228         precision is specified, sprintf stops converting the wide string
37229         argument when the number of bytes that have been produced by this
37230         conversion equals or exceeds the precision.
37231         * doc/posix-functions/fprintf.texi: Update.
37232         * doc/posix-functions/printf.texi: Update.
37233         * doc/posix-functions/snprintf.texi: Update.
37234         * doc/posix-functions/sprintf.texi: Update.
37235         * doc/posix-functions/vfprintf.texi: Update.
37236         * doc/posix-functions/vprintf.texi: Update.
37237         * doc/posix-functions/vsnprintf.texi: Update.
37238         * doc/posix-functions/vsprintf.texi: Update.
37239         * doc/glibc-functions/obstack_printf.texi: Update.
37240         * doc/glibc-functions/obstack_vprintf.texi: Update.
37241
37242 2009-02-26  Eric Blake  <ebb9@byu.net>
37243
37244         stdlib: favor compiler check of random.h
37245         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37246         to avoid an ObjC random.h installed by Swarm.
37247
37248 2009-02-26  Bruno Haible  <bruno@clisp.org>
37249
37250         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37251         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37252         Reported by Gary V. Vaughan <gary@gnu.org>.
37253
37254 2009-02-26  Bruno Haible  <bruno@clisp.org>
37255
37256         Fix *printf behaviour regarding the %ls directive.
37257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37258         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37259         NEED_PRINTF_DIRECTIVE_LS.
37260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37261         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37263         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37264         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37265         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37266         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37271         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37275         * doc/posix-functions/fprintf.texi: Update.
37276         * doc/posix-functions/printf.texi: Update.
37277         * doc/posix-functions/snprintf.texi: Update.
37278         * doc/posix-functions/sprintf.texi: Update.
37279         * doc/posix-functions/vfprintf.texi: Update.
37280         * doc/posix-functions/vprintf.texi: Update.
37281         * doc/posix-functions/vsnprintf.texi: Update.
37282         * doc/posix-functions/vsprintf.texi: Update.
37283         * doc/glibc-functions/obstack_printf.texi: Update.
37284         * doc/glibc-functions/obstack_vprintf.texi: Update.
37285         Reported by Eric Blake.
37286
37287 2009-02-25  Bruno Haible  <bruno@clisp.org>
37288
37289         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37290         with known value.
37291         Reported by Gary V. Vaughan <gary@gnu.org>.
37292
37293 2009-02-25  Bruno Haible  <bruno@clisp.org>
37294
37295         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37296         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37297         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37298         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37299         Reported by Gary V. Vaughan <gary@gnu.org>.
37300
37301 2009-02-25  Bruno Haible  <bruno@clisp.org>
37302
37303         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37304         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37305         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37306         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37307         Reported by Gary V. Vaughan <gary@gnu.org>.
37308
37309 2009-02-25  Eric Blake  <ebb9@byu.net>
37310
37311         tests: skip fseek/ftell tests if ungetc is broken
37312         * m4/ungetc.m4: New file.
37313         * modules/fseek-tests: Split test, so ungetc dependency is
37314         separate from rest of test.
37315         * modules/fseeko-tests: Likewise.
37316         * modules/ftell-tests: Likewise.
37317         * modules/ftello-tests: Likewise.
37318         * tests/test-fseek.c (main): Isolate ungetc dependency.
37319         * tests/test-fseeko.c (main): Likewise.
37320         * tests/test-ftell.c (main): Likewise.
37321         * tests/test-ftello.c (main): Likewise.
37322         * tests/test-fseek2.sh: New file.
37323         * tests/test-fseeko2.sh: Likewise.
37324         * tests/test-ftell2.sh: Likewise.
37325         * tests/test-ftello2.sh: Likewise.
37326
37327 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37328
37329         test-getaddrinfo: fix usage of skip return code 77
37330         * tests/test-gettaddrinfo.c: Return skip code 77 only
37331         for first occurance of skip (4x77 is not 77)
37332
37333 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37334
37335         strtod: avoid C99 decl-after-statement
37336         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37337
37338 2009-02-24  Eric Blake  <ebb9@byu.net>
37339
37340         strtod: detect HP-UX 11.31 bug
37341         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37342         Reported by Gary V. Vaughan.
37343
37344 2009-02-23  Bruno Haible  <bruno@clisp.org>
37345
37346         Fix invalid read past end of memory block.
37347         * lib/vasnprintf.c (DCHAR_SET): Define.
37348         (local_wcslen): Define only when needed.
37349         (local_strnlen, local_wcsnlen): New functions.
37350         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37351         directives that involve a conversion ourselves.
37352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37353         wcsnlen, mbrtowc, wcrtomb.
37354         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37355         * tests/test-vasprintf-posix.c (test_function): Likewise.
37356         * tests/test-snprintf-posix.h (test_function): Likewise.
37357         * tests/test-sprintf-posix.h (test_function): Likewise.
37358         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37359
37360 2009-02-22  Bruno Haible  <bruno@clisp.org>
37361
37362         Implement new clarified decomposition of Hangul syllables.
37363         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37364         of type LTV, return only a pairwise decomposition.
37365         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37366         Likewise.
37367         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37368         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37369         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37370
37371 2009-02-22  Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37374         zero-length results and shrink excess allocated memory.
37375         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37376         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37377         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37378         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37379         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37380         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37381         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37382         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37383         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37384         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37385         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37386         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37387
37388 2009-02-21  Bruno Haible  <bruno@clisp.org>
37389
37390         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37391         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37392         spaces after a period. Put a space between a macro name and its
37393         argument list. Trivial rewordings.
37394         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37395         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37396         (main): Return 0 explicitly.
37397
37398 2009-02-21  Bruno Haible  <bruno@clisp.org>
37399
37400         Tests for module 'uninorm/filter'.
37401         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37402         * modules/uninorm/filter-tests: New file.
37403
37404         New module 'uninorm/filter'.
37405         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37406         uninorm_filter_flush, uninorm_filter_free): New declarations.
37407         * lib/uninorm/uninorm-filter.c: New file.
37408         * modules/uninorm/filter: New file.
37409
37410 2009-02-21  Bruno Haible  <bruno@clisp.org>
37411
37412         Tests for module 'uninorm/nfkc'.
37413         * tests/uninorm/test-nfkc.c: New file.
37414         * tests/uninorm/test-u8-nfkc.c: New file.
37415         * tests/uninorm/test-u16-nfkc.c: New file.
37416         * tests/uninorm/test-u32-nfkc.c: New file.
37417         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37418         * tests/uninorm/test-u32-nfkc-big.c: New file.
37419         * modules/uninorm/nfkc-tests: New file.
37420
37421         New module 'uninorm/nfkc'.
37422         * lib/uninorm/nfkc.c: New file.
37423         * modules/uninorm/nfkc: New file.
37424
37425         Tests for module 'uninorm/nfkd'.
37426         * tests/uninorm/test-nfkd.c: New file.
37427         * tests/uninorm/test-u8-nfkd.c: New file.
37428         * tests/uninorm/test-u16-nfkd.c: New file.
37429         * tests/uninorm/test-u32-nfkd.c: New file.
37430         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37431         * tests/uninorm/test-u32-nfkd-big.c: New file.
37432         * modules/uninorm/nfkd-tests: New file.
37433
37434         New module 'uninorm/nfkd'.
37435         * lib/uninorm/nfkd.c: New file.
37436         * modules/uninorm/nfkd: New file.
37437
37438         Tests for module 'uninorm/nfc'.
37439         * tests/uninorm/test-nfc.c: New file.
37440         * tests/uninorm/test-u8-nfc.c: New file.
37441         * tests/uninorm/test-u16-nfc.c: New file.
37442         * tests/uninorm/test-u32-nfc.c: New file.
37443         * tests/uninorm/test-u32-nfc-big.sh: New file.
37444         * tests/uninorm/test-u32-nfc-big.c: New file.
37445         * modules/uninorm/nfc-tests: New file.
37446
37447         New module 'uninorm/nfc'.
37448         * lib/uninorm/nfc.c: New file.
37449         * modules/uninorm/nfc: New file.
37450
37451         Tests for module 'uninorm/nfd'.
37452         * tests/uninorm/test-nfd.c: New file.
37453         * tests/uninorm/test-u8-nfd.c: New file.
37454         * tests/uninorm/test-u16-nfd.c: New file.
37455         * tests/uninorm/test-u32-nfd.c: New file.
37456         * tests/uninorm/test-u32-nfd-big.sh: New file.
37457         * tests/uninorm/test-u32-nfd-big.c: New file.
37458         * tests/uninorm/test-u32-normalize-big.h: New file.
37459         * tests/uninorm/test-u32-normalize-big.c: New file.
37460         * tests/uninorm/NormalizationTest.txt: New file, created from
37461         Unicode 5.1.0 NormalizationTest.txt.
37462         * modules/uninorm/nfd-tests: New file.
37463
37464         New module 'uninorm/nfd'.
37465         * lib/uninorm/nfd.c: New file.
37466         * modules/uninorm/nfd: New file.
37467
37468         New module 'uninorm/u32-normalize'.
37469         * lib/uninorm/u32-normalize.c: New file.
37470         * modules/uninorm/u32-normalize: New file.
37471
37472         New module 'uninorm/u16-normalize'.
37473         * lib/uninorm/u16-normalize.c: New file.
37474         * modules/uninorm/u16-normalize: New file.
37475
37476         New module 'uninorm/u8-normalize'.
37477         * lib/uninorm/u8-normalize.c: New file.
37478         * lib/uninorm/normalize-internal.h: New file.
37479         * lib/uninorm/u-normalize-internal.h: New file.
37480         * modules/uninorm/u8-normalize: New file.
37481
37482         New module 'uninorm/decompose-internal'.
37483         * lib/uninorm/decompose-internal.c: New file.
37484         * modules/uninorm/decompose-internal: New file.
37485
37486         Tests for module 'uninorm/composition'.
37487         * tests/uninorm/test-composition.c: New file.
37488         * modules/uninorm/composition-tests: New file.
37489
37490         New module 'uninorm/composition'.
37491         * lib/uninorm/composition.c: New file.
37492         * lib/uninorm/composition-table.gperf: New file, generated by
37493         gen-uni-tables.
37494         * modules/uninorm/composition: New file.
37495
37496         Tests for module 'uninorm/compat-decomposition'.
37497         * tests/uninorm/test-compat-decomposition.c: New file.
37498         * modules/uninorm/compat-decomposition-tests: New file.
37499
37500         New module 'uninorm/compat-decomposition'.
37501         * lib/uninorm/decompose-internal.h: New file.
37502         * lib/uninorm/compat-decomposition.c: New file.
37503         * modules/uninorm/compat-decomposition: New file.
37504
37505         Tests for module 'uninorm/canonical-decomposition'.
37506         * tests/uninorm/test-canonical-decomposition.c: New file.
37507         * modules/uninorm/canonical-decomposition-tests: New file.
37508
37509         New module 'uninorm/canonical-decomposition'.
37510         * lib/uninorm/canonical-decomposition.c: New file.
37511         * modules/uninorm/canonical-decomposition: New file.
37512
37513         Tests for module 'uninorm/decomposition'.
37514         * tests/uninorm/test-decomposition.c: New file.
37515         * modules/uninorm/decomposition-tests: New file.
37516
37517         New module 'uninorm/decomposition'.
37518         * lib/uninorm/decomposition.c: New file.
37519         * modules/uninorm/decomposition: New file.
37520
37521         New module 'uninorm/decomposition-table'.
37522         * lib/uninorm/decomposition-table.h: New file.
37523         * lib/uninorm/decomposition-table.c: New file.
37524         * lib/uninorm/decomposition-table1.h: New file, generated by
37525         gen-uni-tables.
37526         * lib/uninorm/decomposition-table2.h: New file, generated by
37527         gen-uni-tables.
37528         * modules/uninorm/decomposition-table: New file.
37529
37530         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37531         (UC_DECOMP_*): New enumeration items.
37532         (get_decomposition): New function.
37533         (struct decomp_table): New type.
37534         (output_decomposition, output_decomposition_tables): New functions.
37535         (unicode_composition_exclusions): New variable.
37536         (fill_composition_exclusions, debug_output_composition_tables): New
37537         functions.
37538         (main): Accept one more argument. Invoke fill_composition_exclusions.
37539         Output decomposition and composition tables.
37540
37541         New module 'uninorm/base'.
37542         * lib/uninorm.h: New file.
37543         * lib/unictype.h: Update comment.
37544         * modules/uninorm/base: New file.
37545
37546 2009-02-21  David Lutterkort  <lutter@redhat.com>
37547
37548         Tests for module 'safe-alloc'.
37549         * tests/test-safe-alloc.c: New file.
37550         * modules/safe-alloc-tests: New file.
37551
37552         New module 'safe-alloc'.
37553         * lib/safe-alloc.h: New file.
37554         * lib/safe-alloc.c: New file.
37555         * m4/safe-alloc.m4: New file.
37556         * modules/safe-alloc: New file.
37557         * doc/safe-alloc.texi: New file.
37558         * doc/gnulib.texi: Include it.
37559         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37560         safe-alloc.
37561
37562 2009-02-18  Bruno Haible  <bruno@clisp.org>
37563
37564         Fix link error on non-glibc systems.
37565         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37566         variable.
37567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37568
37569 2009-02-18  Jim Meyering  <meyering@redhat.com>
37570
37571         fts: avoid used-uninitialized error due to recent change
37572         * lib/fts.c (fts_read): Guard uses of the new member,
37573         parent->fts_n_dirs_remaining, since it's not relevant for
37574         the parent of a directory specified on the command-line.
37575
37576 2009-02-17  James Youngman  <jay@gnu.org>
37577             Bruno Haible  <bruno@clisp.org>
37578
37579         * m4/include_next.m4: Reformulate comment.
37580
37581 2009-02-16  Jim Meyering  <meyering@redhat.com>
37582
37583         fts: add #if guards so that the fts_lgpl module still builds
37584         * lib/fts.c: Guard just-added hash-table-using parts with
37585         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37586         Reported by Simon Josefsson.
37587
37588 2009-02-15  Bruno Haible  <bruno@clisp.org>
37589
37590         * modules/array-mergesort-tests: New file.
37591         * tests/test-array-mergesort.c: New file.
37592
37593         New module 'array-mergesort'.
37594         * modules/array-mergesort: New file.
37595         * lib/array-mergesort.h: New file.
37596
37597 2009-02-15  Bruno Haible  <bruno@clisp.org>
37598
37599         Fix 2009-02-07 commit.
37600         * lib/gen-uni-tables.c (output_predicate, output_category,
37601         output_combclass, output_bidi_category, output_decimal_digit,
37602         output_digit, output_numeric, output_mirror, output_scripts,
37603         output_ident_category, output_simple_mapping): Fix format directives.
37604         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37605
37606 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37607
37608         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37609         fixes are available from IBM.
37610
37611 2009-02-13  Jim Meyering  <meyering@redhat.com>
37612
37613         fts: arrange not to stat non-directories in more cases
37614         This makes GNU find (when it doesn't need to stat each file)
37615         *much* more efficient at traversing reiserfs file systems.
37616         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37617         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37618         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37619         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37620         (leaf_optimization_applies): New function.
37621         (LCO_hash, LCO_compare): New helper functions.
37622         (link_count_optimize_ok): New function.
37623         (fts_stat): Initialize new member (if dir).
37624         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37625         we've just stat'ed a directory.  Skip the stat call when possible.
37626         ---
37627         Note this AFS-related exchange:
37628         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37629         and note find's pioctl call in find/fstype.c.
37630         But that is necessary only if you want to enable the
37631         optimization for AFS, and for now, I don't.
37632
37633         fts: move a function definition "up" (no semantic change)
37634         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37635         "up" to precede upcoming use of a related function.
37636
37637 2009-02-11  Jim Meyering  <meyering@redhat.com>
37638
37639         fts: correct internal computation of nlinks (optimization-related)
37640         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37641         whether the current entry is a directory, so don't test it.
37642
37643 2009-02-10  Bruno Haible  <bruno@clisp.org>
37644
37645         Tests for module 'uniwbrk/ulc-wordbreaks'.
37646         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37647         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37648         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37649
37650         Tests for module 'uniwbrk/u32-wordbreaks'.
37651         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37652         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37653
37654         Tests for module 'uniwbrk/u16-wordbreaks'.
37655         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37656         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37657
37658         Tests for module 'uniwbrk/u8-wordbreaks'.
37659         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37660         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37661
37662 2009-02-10  Bruno Haible  <bruno@clisp.org>
37663
37664         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37665         property.
37666         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37667         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37668         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37669
37670 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37671
37672         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37673         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37674
37675 2009-02-10  Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37678         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37679         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37680         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37681         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37682         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37683
37684 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37685
37686         * lib/sockets.h (gl_fd_to_handle): New function.
37687
37688         * tests/test-sockets.c: Call gl_fd_to_handle.
37689
37690 2009-02-09  Bruno Haible  <bruno@clisp.org>
37691
37692         * doc/havelib.texi: Document the conventions on bi-arch systems.
37693
37694 2009-02-08  Bruno Haible  <bruno@clisp.org>
37695
37696         Document the AC_LIB_LINKFLAGS macro.
37697         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37698         * doc/gnulib.texi: Include it.
37699
37700 2009-02-08  Bruno Haible  <bruno@clisp.org>
37701
37702         Fix wrong order of sections, compared to TOC.
37703         * doc/gnulib.texi: Include relocatable-maint.texi after the
37704         "Regular expressions" node, not before.
37705
37706 2009-02-08  Bruno Haible  <bruno@clisp.org>
37707
37708         Tests for module 'unicase/totitle'.
37709         * modules/unicase/totitle-tests: New file.
37710
37711         Tests for module 'unicase/tolower'.
37712         * modules/unicase/tolower-tests: New file.
37713
37714         Tests for module 'unicase/toupper'.
37715         * modules/unicase/toupper-tests: New file.
37716         * tests/unicase/test-mapping-part1.h: New file.
37717         * tests/unicase/test-mapping-part2.h: New file.
37718
37719         New module 'unicase/totitle'.
37720         * modules/unicase/totitle: New file.
37721         * lib/unicase/totitle.c: New file.
37722
37723         New module 'unicase/tolower'.
37724         * modules/unicase/tolower: New file.
37725         * lib/unicase/tolower.c: New file.
37726
37727         New module 'unicase/toupper'.
37728         * modules/unicase/toupper: New file.
37729         * lib/unicase/toupper.c: New file.
37730         * lib/unicase/simple-mapping.h: New file.
37731
37732         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37733         (mapping_table): New structure.
37734         (output_simple_mapping): New function.
37735         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37736         * modules/gen-uni-tables (Description): Update.
37737         * lib/unicase/toupper.h: New file, automatically generated by
37738         gen-uni-tables.
37739         * lib/unicase/tolower.h: New file, automatically generated by
37740         gen-uni-tables.
37741         * lib/unicase/totitle.h: New file, automatically generated by
37742         gen-uni-tables.
37743         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37744         gen-uni-tables.
37745         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37746         gen-uni-tables.
37747         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37748         gen-uni-tables.
37749
37750         New module 'unicase/base'.
37751         * modules/unicase/base: New file.
37752         * lib/unicase.h: New file.
37753
37754 2009-02-08  Bruno Haible  <bruno@clisp.org>
37755
37756         New module 'uniwbrk/ulc-wordbreaks'.
37757         * modules/uniwbrk/ulc-wordbreaks: New file.
37758         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37759
37760         New module 'uniwbrk/u32-wordbreaks'.
37761         * modules/uniwbrk/u32-wordbreaks: New file.
37762         * lib/uniwbrk/u32-wordbreaks.c: New file.
37763
37764         New module 'uniwbrk/u16-wordbreaks'.
37765         * modules/uniwbrk/u16-wordbreaks: New file.
37766         * lib/uniwbrk/u16-wordbreaks.c: New file.
37767
37768         New module 'uniwbrk/u8-wordbreaks'.
37769         * modules/uniwbrk/u8-wordbreaks: New file.
37770         * lib/uniwbrk/u8-wordbreaks.c: New file.
37771         * lib/uniwbrk/u-wordbreaks.h: New file.
37772
37773         New module 'uniwbrk/table'.
37774         * modules/uniwbrk/table: New file.
37775         * lib/uniwbrk/wbrktable.h: New file.
37776         * lib/uniwbrk/wbrktable.c: New file.
37777
37778         New module 'uniwbrk/wordbreak-property'.
37779         * modules/uniwbrk/wordbreak-property: New file.
37780         * lib/uniwbrk/wordbreak-property.c: New file.
37781
37782         * lib/gen-uni-tables.c (WBP_*): New enum items.
37783         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37784         (unicode_org_wbp): New variable.
37785         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37786         New functions.
37787         (wbp_table): New structure.
37788         (output_wbp, output_wbrk_tables): New functions.
37789         (main): Accept additional argument. Invoke fill_org_wbp,
37790         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37791         output_wbrk_tables.
37792         * modules/gen-uni-tables (Description): Update.
37793         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37794         gen-uni-tables.
37795
37796         New module 'uniwbrk/base'.
37797         * modules/uniwbrk/base: New file.
37798         * lib/uniwbrk.h: New file.
37799
37800 2009-02-08  Bruno Haible  <bruno@clisp.org>
37801
37802         Update to Unicode 5.1.0.
37803         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37804         U+2185..U+2188.
37805         (is_property_default_ignorable_code_point): Don't include characters
37806         of category Cc or Cs and not-a-characters.
37807         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37808         U+0D79, U+109E, U+109F, U+A60C.
37809         * lib/unictype/bidi_of.h: Regenerated.
37810         * lib/unictype/blocks.h: Regenerated.
37811         * lib/unictype/categ_C.h: Regenerated.
37812         * lib/unictype/categ_Cf.h: Regenerated.
37813         * lib/unictype/categ_Cn.h: Regenerated.
37814         * lib/unictype/categ_L.h: Regenerated.
37815         * lib/unictype/categ_Ll.h: Regenerated.
37816         * lib/unictype/categ_Lm.h: Regenerated.
37817         * lib/unictype/categ_Lo.h: Regenerated.
37818         * lib/unictype/categ_Lu.h: Regenerated.
37819         * lib/unictype/categ_M.h: Regenerated.
37820         * lib/unictype/categ_Mc.h: Regenerated.
37821         * lib/unictype/categ_Me.h: Regenerated.
37822         * lib/unictype/categ_Mn.h: Regenerated.
37823         * lib/unictype/categ_N.h: Regenerated.
37824         * lib/unictype/categ_Nd.h: Regenerated.
37825         * lib/unictype/categ_Nl.h: Regenerated.
37826         * lib/unictype/categ_No.h: Regenerated.
37827         * lib/unictype/categ_P.h: Regenerated.
37828         * lib/unictype/categ_Pd.h: Regenerated.
37829         * lib/unictype/categ_Pe.h: Regenerated.
37830         * lib/unictype/categ_Pf.h: Regenerated.
37831         * lib/unictype/categ_Pi.h: Regenerated.
37832         * lib/unictype/categ_Po.h: Regenerated.
37833         * lib/unictype/categ_Ps.h: Regenerated.
37834         * lib/unictype/categ_S.h: Regenerated.
37835         * lib/unictype/categ_Sk.h: Regenerated.
37836         * lib/unictype/categ_Sm.h: Regenerated.
37837         * lib/unictype/categ_So.h: Regenerated.
37838         * lib/unictype/categ_of.h: Regenerated.
37839         * lib/unictype/combining.h: Regenerated.
37840         * lib/unictype/ctype_alnum.h: Regenerated.
37841         * lib/unictype/ctype_alpha.h: Regenerated.
37842         * lib/unictype/ctype_graph.h: Regenerated.
37843         * lib/unictype/ctype_lower.h: Regenerated.
37844         * lib/unictype/ctype_print.h: Regenerated.
37845         * lib/unictype/ctype_punct.h: Regenerated.
37846         * lib/unictype/ctype_upper.h: Regenerated.
37847         * lib/unictype/decdigit.h: Regenerated.
37848         * lib/unictype/digit.h: Regenerated.
37849         * lib/unictype/mirror.h: Regenerated.
37850         * lib/unictype/numeric.h: Regenerated.
37851         * lib/unictype/pr_alphabetic.h: Regenerated.
37852         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37853         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37854         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37855         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37856         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37857         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37858         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37859         * lib/unictype/pr_combining.h: Regenerated.
37860         * lib/unictype/pr_dash.h: Regenerated.
37861         * lib/unictype/pr_decimal_digit.h: Regenerated.
37862         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37863         * lib/unictype/pr_deprecated.h: Regenerated.
37864         * lib/unictype/pr_diacritic.h: Regenerated.
37865         * lib/unictype/pr_extender.h: Regenerated.
37866         * lib/unictype/pr_format_control.h: Regenerated.
37867         * lib/unictype/pr_grapheme_base.h: Regenerated.
37868         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37869         * lib/unictype/pr_grapheme_link.h: Regenerated.
37870         * lib/unictype/pr_id_continue.h: Regenerated.
37871         * lib/unictype/pr_id_start.h: Regenerated.
37872         * lib/unictype/pr_ideographic.h: Regenerated.
37873         * lib/unictype/pr_ignorable_control.h: Regenerated.
37874         * lib/unictype/pr_lowercase.h: Regenerated.
37875         * lib/unictype/pr_math.h: Regenerated.
37876         * lib/unictype/pr_numeric.h: Regenerated.
37877         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37878         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37879         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37880         * lib/unictype/pr_other_id_continue.h: Regenerated.
37881         * lib/unictype/pr_other_lowercase.h: Regenerated.
37882         * lib/unictype/pr_other_math.h: Regenerated.
37883         * lib/unictype/pr_punctuation.h: Regenerated.
37884         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37885         * lib/unictype/pr_soft_dotted.h: Regenerated.
37886         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37887         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37888         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37889         * lib/unictype/pr_uppercase.h: Regenerated.
37890         * lib/unictype/pr_xid_continue.h: Regenerated.
37891         * lib/unictype/pr_xid_start.h: Regenerated.
37892         * lib/unictype/pr_zero_width.h: Regenerated.
37893         * lib/unictype/scripts.h: Regenerated.
37894         * lib/unictype/scripts_byname.gperf: Regenerated.
37895         * lib/unictype/sy_java_ident.h: Regenerated.
37896         * lib/unilbrk/lbrkprop1.h: Regenerated.
37897         * lib/unilbrk/lbrkprop2.h: Regenerated.
37898         * tests/unictype/test-categ_C.c: Regenerated.
37899         * tests/unictype/test-categ_Cf.c: Regenerated.
37900         * tests/unictype/test-categ_Cn.c: Regenerated.
37901         * tests/unictype/test-categ_L.c: Regenerated.
37902         * tests/unictype/test-categ_Ll.c: Regenerated.
37903         * tests/unictype/test-categ_Lm.c: Regenerated.
37904         * tests/unictype/test-categ_Lo.c: Regenerated.
37905         * tests/unictype/test-categ_Lu.c: Regenerated.
37906         * tests/unictype/test-categ_M.c: Regenerated.
37907         * tests/unictype/test-categ_Mc.c: Regenerated.
37908         * tests/unictype/test-categ_Me.c: Regenerated.
37909         * tests/unictype/test-categ_Mn.c: Regenerated.
37910         * tests/unictype/test-categ_N.c: Regenerated.
37911         * tests/unictype/test-categ_Nd.c: Regenerated.
37912         * tests/unictype/test-categ_Nl.c: Regenerated.
37913         * tests/unictype/test-categ_No.c: Regenerated.
37914         * tests/unictype/test-categ_P.c: Regenerated.
37915         * tests/unictype/test-categ_Pd.c: Regenerated.
37916         * tests/unictype/test-categ_Pe.c: Regenerated.
37917         * tests/unictype/test-categ_Pf.c: Regenerated.
37918         * tests/unictype/test-categ_Pi.c: Regenerated.
37919         * tests/unictype/test-categ_Po.c: Regenerated.
37920         * tests/unictype/test-categ_Ps.c: Regenerated.
37921         * tests/unictype/test-categ_S.c: Regenerated.
37922         * tests/unictype/test-categ_Sk.c: Regenerated.
37923         * tests/unictype/test-categ_Sm.c: Regenerated.
37924         * tests/unictype/test-categ_So.c: Regenerated.
37925         * tests/unictype/test-ctype_alnum.c: Regenerated.
37926         * tests/unictype/test-ctype_alpha.c: Regenerated.
37927         * tests/unictype/test-ctype_graph.c: Regenerated.
37928         * tests/unictype/test-ctype_lower.c: Regenerated.
37929         * tests/unictype/test-ctype_print.c: Regenerated.
37930         * tests/unictype/test-ctype_punct.c: Regenerated.
37931         * tests/unictype/test-ctype_upper.c: Regenerated.
37932         * tests/unictype/test-decdigit.h: Regenerated.
37933         * tests/unictype/test-digit.h: Regenerated.
37934         * tests/unictype/test-numeric.h: Regenerated.
37935         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37936         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37937         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37938         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37939         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37940         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37941         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37942         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37943         * tests/unictype/test-pr_combining.c: Regenerated.
37944         * tests/unictype/test-pr_dash.c: Regenerated.
37945         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37946         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37947         * tests/unictype/test-pr_deprecated.c: Regenerated.
37948         * tests/unictype/test-pr_diacritic.c: Regenerated.
37949         * tests/unictype/test-pr_extender.c: Regenerated.
37950         * tests/unictype/test-pr_format_control.c: Regenerated.
37951         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37952         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37953         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37954         * tests/unictype/test-pr_id_continue.c: Regenerated.
37955         * tests/unictype/test-pr_id_start.c: Regenerated.
37956         * tests/unictype/test-pr_ideographic.c: Regenerated.
37957         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37958         * tests/unictype/test-pr_lowercase.c: Regenerated.
37959         * tests/unictype/test-pr_math.c: Regenerated.
37960         * tests/unictype/test-pr_numeric.c: Regenerated.
37961         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37962         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37963         Regenerated.
37964         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37965         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37966         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37967         * tests/unictype/test-pr_other_math.c: Regenerated.
37968         * tests/unictype/test-pr_punctuation.c: Regenerated.
37969         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37970         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37971         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37972         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37973         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37974         * tests/unictype/test-pr_uppercase.c: Regenerated.
37975         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37976         * tests/unictype/test-pr_xid_start.c: Regenerated.
37977         * tests/unictype/test-pr_zero_width.c: Regenerated.
37978
37979         Update to Unicode 5.1.0.
37980         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37981         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37982         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37983         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37984         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37985         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37986         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37987         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37988         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37989         (nonspacing_table_ind): Update.
37990         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37991
37992         Update to Unicode 5.1.0.
37993         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37994         code transform.
37995         * lib/uniname/uniname.c (unicode_character_name,
37996         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37997         * lib/uniname/uninames.h: Regenerated.
37998         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37999
38000 2009-02-07  Bruno Haible  <bruno@clisp.org>
38001
38002         Merge gen-ctype and gen-lbrk into a single program.
38003         * lib/gen-uni-tables.c: New file, incorporating
38004         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38005         Add directory prefixes to the names of the generated files.
38006         * lib/unictype/gen-ctype.c: Remove file.
38007         * lib/unilbrk/gen-lbrk.c: Remove file.
38008         * modules/gen-uni-tables: New file.
38009         * modules/unictype/gen-ctype: Remove file.
38010         * modules/unilbrk/gen-lbrk: Remove file.
38011
38012 2009-02-07  Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38015
38016         New module 'unistr/u32-strcoll'.
38017         * modules/unistr/u32-strcoll: New file.
38018         * lib/unistr/u32-strcoll.c: New file.
38019
38020         New module 'unistr/u16-strcoll'.
38021         * modules/unistr/u16-strcoll: New file.
38022         * lib/unistr/u16-strcoll.c: New file.
38023
38024         New module 'unistr/u8-strcoll'.
38025         * modules/unistr/u8-strcoll: New file.
38026         * lib/unistr/u8-strcoll.c: New file.
38027         * lib/unistr/u-strcoll.h: New file.
38028
38029 2009-02-07  Bruno Haible  <bruno@clisp.org>
38030
38031         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38032         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38033         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38034         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38035         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38036         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38037
38038 2009-02-07  Bruno Haible  <bruno@clisp.org>
38039
38040         Make 64-bit clean.
38041         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38042         output_combclass, output_bidi_category, output_decimal_digit,
38043         output_digit, output_numeric, output_mirror, output_scripts,
38044         output_ident_category): Use proper width specifier in format strings.
38045
38046 2009-02-07  Bruno Haible  <bruno@clisp.org>
38047
38048         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38049         failure behaviour.
38050
38051 2009-02-07  Jim Meyering  <meyering@redhat.com>
38052
38053         regex: avoid compilation failure with upcoming gcc-4.4
38054         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38055         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38056         "... error: integer overflow in preprocessor expression".
38057
38058 2009-02-05  Ben Pfaff  <blp@gnu.org>
38059
38060         Fix link errors on Windows when close module is used.
38061         * modules/close: Add $(LIB_CLOSE) to Link section.
38062         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38063         $(LIB_CLOSE) on Windows.
38064
38065 2009-02-05  Jim Meyering  <meyering@redhat.com>
38066
38067         still avoid unused-parameter warnings, but do it cleanly
38068         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38069         (get_fs_usage): Cast to void instead.
38070         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38071         (dev_from_mount_options, read_file_system_list): Cast to void.
38072         Prompted by Bruno Haible.
38073
38074 2009-02-04  Jim Meyering  <meyering@redhat.com>
38075
38076         fsusage.c: correct copyright year
38077         * lib/fsusage.c: Reflect year in which the change is pushed into
38078
38079         avoid misc. warnings
38080         * lib/fsusage.c (UNUSED_PARAM): Define.
38081         (get_fs_usage): Mark parameter "disk" as unused.
38082         * lib/getugroups.c (getgrent): Use "void" in prototype.
38083         * lib/mountlist.c: Mark unused parameters.
38084         (read_file_system_list): Declare a local with "const".
38085         * lib/nanosleep.c (getnow): Declare static.
38086         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38087
38088         dirfd: set errno upon failure
38089         * lib/dirfd.c: Include <errno.h>.
38090         Set errno to ENOTSUP when returning -1.
38091         * modules/dirfd (Depends-on): Add errno.
38092         Suggested by John Kodis <kodis@comcast.net>.
38093
38094 2009-02-01  Bruno Haible  <bruno@clisp.org>
38095
38096         Don't assume sizeof (long) >= sizeof (void *).
38097         * lib/memcmp.c: Include stdint.h.
38098         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38099         srcp2 to 'const byte *'.
38100         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38101         types to uintptr_t.
38102         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38103         * modules/memcmp (Depends-on): Add stdint.
38104         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38105
38106 2009-01-30  Eric Blake  <ebb9@byu.net>
38107
38108         fix more require-before-expand issues
38109         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38110         expand, AC_PROG_AWK.
38111         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38112
38113 2009-01-28  Eric Blake  <ebb9@byu.net>
38114
38115         version-etc: use consistent URL formatting
38116         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38117         Improve formatting.  Use fputs for string without %.
38118
38119 2009-01-28  Jim Meyering  <meyering@redhat.com>
38120
38121         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38122         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38123         "underquoted definition of NAME" from autoconf-2.59.
38124
38125 2009-01-28  Bruno Haible  <bruno@clisp.org>
38126
38127         * doc/gnulib.texi: Add "Obsolete modules" to index.
38128
38129 2009-01-28  Jim Meyering  <meyering@redhat.com>
38130
38131         useless-if-before-free: recognize more variants
38132         * build-aux/useless-if-before-free: Also recognize e.g.,
38133         if (NULL != p) free (p);
38134
38135 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38136
38137         test-getaddrinfo: skip (don't fail) this test when there's no network
38138         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38139         on the presumption that it means you lack network access.
38140
38141 2009-01-26  Jim Meyering  <meyering@redhat.com>
38142
38143         fflush: avoid warnings on modern systems
38144         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38145         pos and result, into scopes where they're used.
38146
38147 2009-01-26  Eric Blake  <ebb9@byu.net>
38148
38149         Silence warning reintroduced by recent extensions patch.
38150         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38151         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38152         autoconf.
38153
38154         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38155         * m4/00gnulib.m4: New file.
38156         * gnulib-tool (func_get_filelist): Always use it.
38157         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38158         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38159
38160 2009-01-25  Bruno Haible  <bruno@clisp.org>
38161
38162         Make test-quotearg work on MacOS X and AIX.
38163         * tests/test-quotearg.sh: New file.
38164         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38165         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38166         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38167         include <libintl.h>.
38168         (fake_locale): Remove variable.
38169         (gettext, dgettext, dcgettext): Remove functions.
38170         (main): Instead of setting a fake locale, set a real locale. Call
38171         textdomain and bindtextdomain.
38172         * modules/quotearg-tests (Files): Add the new files.
38173         (Depends-on): Add gettext, setenv, unsetenv.
38174         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38175         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38176         Augment TESTS_ENVIRONMENT.
38177
38178 2009-01-25  Bruno Haible  <bruno@clisp.org>
38179
38180         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38181         fr_FR.ISO8859-1 locale on MacOS X.
38182         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38183         ja_JP.eucJP locale on MacOS X.
38184         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38185         zh_CN.GB18030 locale on MacOS X.
38186
38187 2009-01-25  Bruno Haible  <bruno@clisp.org>
38188
38189         Avoid link errors on MacOS X 10.3.
38190         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38191         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38192
38193 2009-01-25  Bruno Haible  <bruno@clisp.org>
38194
38195         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38196         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38197         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38198         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38199         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38200         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38201         posix_spawnattr_init, posix_spawnattr_setsigmask,
38202         posix_spawnattr_setflags, posix_spawnattr_destroy.
38203
38204         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38205         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38206         * modules/execute (Files): Remove m4/posix_spawn.m4.
38207         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38208         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38209         posix_spawnattr_init, posix_spawnattr_setsigmask,
38210         posix_spawnattr_setflags, posix_spawnattr_destroy.
38211
38212 2009-01-25  Bruno Haible  <bruno@clisp.org>
38213
38214         * lib/glthread/threadlib.c: Include <stdlib.h>.
38215
38216 2009-01-25  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/glthread/threadlib.c (dummy): New declaration.
38219
38220 2009-01-25  Bruno Haible  <bruno@clisp.org>
38221
38222         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38223         multibyte characters also for the GB18030 encoding. Don't crash when
38224         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38225
38226 2009-01-25  Bruno Haible  <bruno@clisp.org>
38227
38228         Avoid redefining 'struct random_data' on OSF/1 5.1.
38229         * lib/stdlib.in.h: Include <random.h> if it exists.
38230         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38231         HAVE_RANDOM_H. Include <random.h> when testing whether
38232         'struct random_data' exists.
38233         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38234
38235 2009-01-25  Bruno Haible  <bruno@clisp.org>
38236
38237         Don't install charset.alias on MacOS X >= 10.3.
38238         * lib/localcharset.c (DARWIN7): New macro.
38239         (get_charset_aliases): Hardcode the result for Darwin7.
38240         * modules/localcharset (install-exec-local): Don't install
38241         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38242
38243 2009-01-25  Bruno Haible  <bruno@clisp.org>
38244
38245         Don't install charset.alias on mingw and Cygwin.
38246         * modules/localcharset (install-exec-local): Don't install
38247         charset.alias on mingw and Cygwin, if the file does not yet exist.
38248         The result for these platforms is hardcoded in localcharset.c.
38249
38250 2009-01-25  Bruno Haible  <bruno@clisp.org>
38251
38252         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38254         before requiring AC_USE_SYSTEM_EXTENSIONS.
38255
38256 2009-01-25  Jim Meyering  <meyering@redhat.com>
38257
38258         c-strtod: avoid warnings
38259         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38260         "assignment discards qualifiers from pointer target type" warnings.
38261
38262 2009-01-24  Bruno Haible  <bruno@clisp.org>
38263
38264         Add support for non-UTF-8 locales on MacOS X.
38265         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38266         canonical encodings. For Darwin 7 and newer, don't map traditional
38267         encodings to UTF-8.
38268         Reported by Vincent Lefevre <vincent@vinc17.org>
38269         at <http://savannah.gnu.org/bugs/?25235>.
38270
38271 2009-01-24  Bruno Haible  <bruno@clisp.org>
38272
38273         * doc/gnulib.texi (Obsolete modules): New section.
38274         Reported by Mike Frysinger <vapier@gentoo.org>.
38275
38276 2009-01-24  Bruno Haible  <bruno@clisp.org>
38277
38278         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38279         (%.dvi): New rule.
38280
38281 2009-01-24  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38284         Reported by Eric Blake.
38285
38286 2009-01-24  Bruno Haible  <bruno@clisp.org>
38287
38288         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38289         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38290         Reported by Gary V. Vaughan <gary@gnu.org>.
38291
38292 2009-01-24  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38295
38296 2009-01-23  Bruno Haible  <bruno@clisp.org>
38297
38298         Make c-strtod, c-strtold usable in libraries.
38299         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38300         (C_STRTOD): Call strdup instead of xstrdup.
38301         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38302         * modules/c-strtold (Depends-on): Likewise.
38303         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38304         * NEWS: Mention the change.
38305         Reported by Michael Gold <mgold@ncf.ca>.
38306
38307 2009-01-23  Jim Meyering  <meyering@redhat.com>
38308
38309         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38310         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38311         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38312
38313 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38314
38315         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38316         GNU CoreUtils.
38317         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38318         * modules/version-etc (Description): Update.
38319
38320 2009-01-22  Bruno Haible  <bruno@clisp.org>
38321
38322         Cache the C locale object.
38323         * lib/c-strtod.c (c_locale_cache): New variable.
38324         (c_locale): New function.
38325         (C_STRTOD): Use it, and don't call freelocale.
38326         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38327         Suggested by Paolo Bonzini.
38328
38329 2009-01-21  Bruno Haible  <bruno@clisp.org>
38330
38331         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38332         conditions other than overflow.
38333
38334 2009-01-21  Bruno Haible  <bruno@clisp.org>
38335
38336         * lib/c-strtod.c: Include errno.h.
38337         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38338         value from STRTOD_L and STRTOD.
38339
38340 2009-01-21  Bruno Haible  <bruno@clisp.org>
38341         and Jim Meyering  <meyering@redhat.com>
38342
38343         nanosleep: skip configure test (fail it) for apple universal builds
38344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38345         universal builds, assume that nanosleep does not work.
38346         * modules/nanosleep (Depends-on): Add multiarch.
38347
38348         mktime: skip configure test (fail it) for apple universal builds
38349         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38350         universal builds, assume that mktime does not work.
38351         * modules/mktime (Depends-on): Add multiarch.
38352
38353 2009-01-21  Eric Blake  <ebb9@byu.net>
38354
38355         multiarch: avoid expand-before-require warning
38356         * modules/multiarch (configure.ac): Require, rather than expand,
38357         gl_MULTIARCH.
38358         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38359         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38360         enforce that all clients require it.  Partial reversion of
38361         2008-12-29 patch.
38362
38363         error: avoid expand-before-require warning
38364         * modules/errno (configure.ac): Require, rather than expand,
38365         gl_HEADER_ERRNO_H.
38366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38367         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38368         enforce that all clients require it.
38369
38370         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38371         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38372         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38373         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38374
38375 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38376
38377         Revert:
38378         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38379
38380         regex: do not depend on obsolete modules.
38381         * modules/regex: Remove memcmp and memmove.
38382
38383 2009-01-20  Bruno Haible  <bruno@clisp.org>
38384
38385         Make the 'link' module link on Windows NT 4.
38386         * lib/link.c (_WIN32_WINNT): Don't define.
38387         (CreateHardLinkFuncType): New type.
38388         (CreateHardLinkFunc, initialized): New variables.
38389         (initialize): New function.
38390         (link): Invoke CreateHardLink indirectly through the function pointer.
38391
38392 2009-01-20  Bruno Haible  <bruno@clisp.org>
38393
38394         Fix compilation failure on mingw.
38395         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38396
38397 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38398
38399         * doc/c-strtod.texi: Mention a couple of restrictions.
38400
38401 2009-01-20  Jim Meyering  <meyering@redhat.com>
38402
38403         gettimeofday: move more declarations out of functions
38404         * lib/gettimeofday.c: Move extern declarations of tzset and
38405         gmtime out of containing functions.  Prompted by Bruno Haible.
38406
38407 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38408
38409         regex: do not depend on obsolete modules.
38410         * modules/regex: Remove memcmp and memmove.
38411
38412 2009-01-19  Bruno Haible  <bruno@clisp.org>
38413
38414         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38415         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38416         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38417         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38418         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38419
38420 2009-01-19  Bruno Haible  <bruno@clisp.org>
38421
38422         * tests/test-link.c: Include <errno.h>.
38423         (main): Exit with code 77 when a hard link cannot be created due to
38424         the file system.
38425         * tests/test-link.sh: Skip test when a hard link cannot be created due
38426         to the file system.
38427         Suggested by Eric Blake.
38428
38429 2009-01-19  Martin Lambers  <marlam@marlam.de>
38430
38431         * modules/link-tests: New file.
38432         * tests/test-link.sh: New file.
38433         * tests/test-link.c: New file.
38434
38435 2009-01-19  Eric Blake  <ebb9@byu.net>
38436
38437         doc: mention another function added in cygwin 1.7.0
38438         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38439         Another new function in cygwin 1.7.
38440
38441 2009-01-19  Bruno Haible  <bruno@clisp.org>
38442
38443         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38444         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38445         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38446         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38447         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38448         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38449         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38450         * m4/md4.m4 (gl_MD4): Likewise.
38451         * m4/md5.m4 (gl_MD5): Likewise.
38452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38453         * m4/sha1.m4 (gl_SHA1): Likewise.
38454         * m4/sha256.m4 (gl_SHA256): Likewise.
38455         * m4/sha512.m4 (gl_SHA512): Likewise.
38456
38457 2009-01-19  Bruno Haible  <bruno@clisp.org>
38458
38459         * modules/uniname/uniname-tests (Depends-on): Add progname.
38460         * tests/uniname/test-uninames.c: Include progname.h.
38461         (main): Call set_program_name.
38462
38463         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38464         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38465         (main): Call set_program_name.
38466
38467         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38468         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38469         (main): Call set_program_name.
38470
38471         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38472         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38473         (main): Call set_program_name.
38474
38475         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38476         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38477         (main): Call set_program_name.
38478
38479         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38480         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38481         (main): Call set_program_name.
38482
38483         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38484         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38485         (main): Call set_program_name.
38486
38487         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38488         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38489         (main): Call set_program_name.
38490
38491         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38492         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38493         (main): Call set_program_name.
38494
38495 2009-01-19  Eric Blake  <ebb9@byu.net>
38496
38497         test-unistd: test previous patch
38498         * tests/test-unistd.c: Test *_FILENO macros.
38499
38500         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38501         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38502         Guarantee a definition.
38503         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38504         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38505         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38506         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38507         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38508         Likewise.
38509         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38510         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38511         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38512         Likewise.
38513         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38514         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38515         (STDERR_FILENO): Likewise.
38516         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38517         (STDERR_FILENO): Likewise.
38518         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38519         (STDERR_FILENO): Likewise.
38520         Reported by Elbert Pol.
38521
38522 2009-01-19  Eric Blake  <ebb9@byu.net>
38523
38524         doc: mention more functions added in cygwin 1.7.0
38525         * doc/posix-functions/abort.texi (abort): Update wording related
38526         to cygwin.
38527         * doc/posix-functions/daylight.texi (daylight): Likewise.
38528         * doc/posix-functions/optarg.texi (optarg): Likewise.
38529         * doc/posix-functions/optarg.texi (opterr): Likewise.
38530         * doc/posix-functions/optarg.texi (optind): Likewise.
38531         * doc/posix-functions/optarg.texi (optopt): Likewise.
38532         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38533         worked in 1.5.x, and was withdrawn in 1.7.
38534         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38535         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38536         cygwin versions.
38537         * doc/posix-functions/perror.texi (perror): Likewise.
38538         * doc/posix-functions/printf.texi (printf): Likewise.
38539         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38540         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38541         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38542         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38543         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38544         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38545         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38546         Likewise.
38547         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38548         Likewise.
38549         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38550         this function.
38551         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38552         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38553         Likewise.
38554         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38555         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38556         * doc/posix-functions/confstr.texi (confstr): Likewise.
38557         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38558         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38559         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38560         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38561         * doc/posix-functions/fputws.texi (fputws): Likewise.
38562         * doc/posix-functions/fwide.texi (fwide): Likewise.
38563         * doc/posix-functions/getwc.texi (getwc): Likewise.
38564         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38565         * doc/posix-functions/putwc.texi (putwc): Likewise.
38566         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38567         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38568         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38569         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38570         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38571         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38572         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38573         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38574         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38575         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38576         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38577
38578 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38579
38580         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38581         * lib/ioctl.c: Include <sys/ioctl.h>.
38582
38583 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38584
38585         * modules/getdate-tests (Depends-on): Add progname.
38586         * tests/test-getdate.c: Use progname module, to avoid link errors
38587         on non-glibc systems.
38588
38589 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38590
38591         * modules/filenamecat-tests (Depends-on): Add progname.
38592         * modules/fstrcmp-tests (Depends-on): Likewise.
38593
38594         * tests/test-filenamecat.c: Use progname module, to avoid link
38595         errors on non-glibc systems.
38596         * tests/test-fstrcmp.c: Likewise.
38597
38598 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38599
38600         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38601         * lib/gettimeofday.c: Move extern declaration out of function.
38602
38603 2009-01-18  Bruno Haible  <bruno@clisp.org>
38604
38605         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38606         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38607         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38608
38609 2009-01-18  Bruno Haible  <bruno@clisp.org>
38610
38611         * lib/strftime.c (MEMPCPY): Remove unused macro.
38612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38613
38614 2009-01-18  Martin Lambers  <marlam@marlam.de>
38615
38616         New module 'link'.
38617         * lib/unistd.in.h (link): New declaration.
38618         * lib/link.c: New file.
38619         * m4/link.m4: New file.
38620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38621         HAVE_LINK.
38622         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38623         * modules/link: New file.
38624         * doc/posix-functions/link.texi: Mention the new module.
38625
38626 2009-01-18  Bruno Haible  <bruno@clisp.org>
38627
38628         * tests/test-avltree_list.c (main): Call set_program_name.
38629         * tests/test-avltree_oset.c (main): Likewise.
38630         * tests/test-obstack-printf.c: Include progname.h.
38631         (main): Call set_program_name.
38632         * tests/test-quotearg.c: Include progname.h.
38633         (main): Call set_program_name.
38634         * tests/test-xmemdup0.c: Include progname.h.
38635         (main): Call set_program_name.
38636
38637 2009-01-18  Bruno Haible  <bruno@clisp.org>
38638
38639         New module 'alphasort'.
38640         * lib/dirent.in.h (alphasort): New declaration.
38641         * lib/alphasort.c: New file, from glibc with modifications.
38642         * m4/alphasort.m4: New file.
38643         * modules/alphasort: New file.
38644         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38645         HAVE_ALPHASORT.
38646         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38647         HAVE_ALPHASORT.
38648         * doc/posix-functions/alphasort.texi: Mention the new module and the
38649         portability problems.
38650
38651 2009-01-18  Bruno Haible  <bruno@clisp.org>
38652
38653         New module 'scandir'.
38654         * lib/dirent.in.h (scandir): New declaration.
38655         * lib/scandir.c: New file, from glibc with modifications.
38656         * m4/scandir.m4: New file.
38657         * modules/scandir: New file.
38658         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38659         HAVE_SCANDIR.
38660         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38661         HAVE_SCANDIR.
38662         * doc/posix-functions/scandir.texi: Mention the new module and the
38663         portability problems.
38664
38665 2009-01-17  Bruno Haible  <bruno@clisp.org>
38666
38667         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38668         Update documentation.
38669         (func_remove_suffix): Escape all dots in the suffix. Update
38670         documentation.
38671         (func_filter_filelist): Update documentation.
38672         Reported by Ralf Wildenhues.
38673
38674 2009-01-17  Bruno Haible  <bruno@clisp.org>
38675
38676         * modules/dprintf-posix-tests: New file.
38677         * tests/test-dprintf-posix.sh: New file.
38678         * tests/test-dprintf-posix.c: New file.
38679
38680         New modules 'dprintf', 'dprintf-posix'.
38681         * lib/stdio.in.h (dprintf): New declaration.
38682         * lib/dprintf.c: New file.
38683         * m4/dprintf.m4: New file.
38684         * m4/dprintf-posix.m4: New file.
38685         * modules/dprintf: New file.
38686         * modules/dprintf-posix: New file.
38687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38688         HAVE_DPRINTF, REPLACE_DPRINTF.
38689         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38690         HAVE_DPRINTF, REPLACE_DPRINTF.
38691         * doc/posix-functions/dprintf.texi: Mention the new modules.
38692
38693 2009-01-17  Bruno Haible  <bruno@clisp.org>
38694
38695         * modules/vdprintf-posix-tests: New file.
38696         * tests/test-vdprintf-posix.sh: New file.
38697         * tests/test-vdprintf-posix.c: New file.
38698
38699         New modules 'vdprintf', 'vdprintf-posix'.
38700         * lib/stdio.in.h (vdprintf): New declaration.
38701         * lib/vdprintf.c: New file.
38702         * m4/vdprintf.m4: New file.
38703         * m4/vdprintf-posix.m4: New file.
38704         * modules/vdprintf: New file.
38705         * modules/vdprintf-posix: New file.
38706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38707         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38708         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38709         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38710         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38711
38712 2009-01-17  Bruno Haible  <bruno@clisp.org>
38713
38714         Fix replacement of fopen on mingw.
38715         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38716         mingw.
38717
38718 2009-01-17  Bruno Haible  <bruno@clisp.org>
38719
38720         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38721         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38722
38723 2009-01-17  Bruno Haible  <bruno@clisp.org>
38724
38725         Avoid test-fflush2.sh failure on mingw.
38726         * tests/test-fflush2.c: Include binary-io.h.
38727         (main): Put standard input into binary mode.
38728         * modules/fflush-tests (Depends-on): Add binary-io.
38729
38730 2009-01-17  Bruno Haible  <bruno@clisp.org>
38731
38732         * lib/wchar.in.h: In another particular situation, include only the
38733         system's <wchar.h> file.
38734         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38735         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38736         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38737
38738 2009-01-17  Bruno Haible  <bruno@clisp.org>
38739
38740         Support for stripping executables in --enable-relocatable.
38741         * build-aux/install-reloc: Expect one more argument, or an environment
38742         variable RELOC_STRIP_PROG. If set, strip the destination program and
38743         its wrapper.
38744         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38745         RELOC_STRIP_PROG.
38746         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38747         to set RELOCATABLE_STRIP.
38748         * NEWS: Mention the new Makefile requirement.
38749
38750 2009-01-17  Bruno Haible  <bruno@clisp.org>
38751
38752         * build-aux/install-reloc: Remove debugging information left over by
38753         C compiler on MacOS X.
38754
38755 2009-01-17  Bruno Haible  <bruno@clisp.org>
38756
38757         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38758         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38759         _NSGetExecutablePath.
38760
38761 2009-01-16  Jim Meyering  <meyering@redhat.com>
38762
38763         strerror: avoid warnings about discarding "const"
38764         * lib/strerror.c (rpl_strerror): Instead of returning a const
38765         string from each and every "case", use a variable, and add a single
38766         cast after the switch.
38767
38768 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38769
38770         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38771
38772 2009-01-16  Bruno Haible  <bruno@clisp.org>
38773
38774         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38775         array initializer syntax that also works in C++ mode.
38776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38777
38778 2009-01-16  Jim Meyering  <meyering@redhat.com>
38779
38780         poll: suppress a warning
38781         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38782         to ignore "...unsigned expression < 0 is always false" warnings.
38783
38784 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38785
38786         poll: remove declarations of unused variables
38787         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38788         sockbuf and optlen.
38789
38790 2009-01-15  Bruno Haible  <bruno@clisp.org>
38791
38792         Make fflush-after-ungetc POSIX compliant on BSD systems.
38793         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38794         (clear_ungetc_buffer): Implement also for other systems.
38795         (rpl_fflush): On glibc systems, invoke
38796         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38797         clear_ungetc_buffer after fetching the stream's position, not before.
38798
38799 2009-01-15  Bruno Haible  <bruno@clisp.org>
38800
38801         Make fflush-after-ungetc POSIX compliant on glibc systems.
38802         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38803         after ungetc.
38804         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38805         (rpl_fflush): On glibc systems, simply call the system's fflush
38806         function after clearing the ungetc buffer.
38807         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38808         Instead, lseek only to the end of file, then use the system's fseeko
38809         for the rest. On glibc systems, reset the EOF indicator bit.
38810
38811 2009-01-15  Jim Meyering  <meyering@redhat.com>
38812
38813         openmp.m4: revert quote-adding change, for portability to older autoconf
38814         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38815         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38816         Simon Josefsson noticed the problem when using autoconf-2.61.
38817
38818 2009-01-15  Bruno Haible  <bruno@clisp.org>
38819
38820         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38821         * tests/test-fflush2.c (ASSERT): Always fail.
38822         (main): Add two tests for fflush() after ungetc(), taking into account
38823         the Austin Group's clarification.
38824         Suggested by Eric Blake.
38825
38826 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38827
38828         mktime.m4: remove K&R-style function prototypes
38829         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38830         for the Sun C++ compiler.
38831
38832 2009-01-14  Bruno Haible  <bruno@clisp.org>
38833
38834         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38835         while including <wchar.h>.
38836         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38837         the system's <wchar.h> file.
38838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38839
38840 2009-01-14  Bruno Haible  <bruno@clisp.org>
38841
38842         * m4/csharp.m4: Don't mention gettext on the serial number line.
38843         * m4/csharpexec.m4: Likewise.
38844         * m4/eaccess.m4: Likewise.
38845         * m4/javaexec.m4: Likewise.
38846         * m4/sig_atomic_t.m4: Likewise.
38847         * m4/tmpdir.m4: Likewise.
38848         * m4/intldir.m4: Bump gettext version.
38849         * m4/lib-ld.m4: Likewise.
38850
38851 2009-01-14  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/progname.c (set_program_name): Add more comments.
38854         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38855
38856 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38857
38858         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38859         were sys/stat.h does not define it.
38860
38861 2009-01-14  Jim Meyering  <meyering@redhat.com>
38862
38863         many *.m4 files: improve m4 quoting
38864         99% of this change was performed by running the following commands:
38865         git ls-files | grep '\.m4$' | xargs perl -pi \
38866           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38867           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38868           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38869           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38870         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38871         The remainder were to add Copyright dates, increment serial numbers,
38872         undo some changes in comments, exclude m4/intl.m4, and add quotes
38873         around the "1" in ",1" where the unusual spacing prohibited the
38874         above regexps from doing the job.  For more details, see
38875         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38876         * m4/acl.m4: Modified.
38877         * m4/afs.m4: Likewise.
38878         * m4/alloca.m4: Likewise.
38879         * m4/argp.m4: Likewise.
38880         * m4/argz.m4: Likewise.
38881         * m4/atexit.m4: Likewise.
38882         * m4/bison-i18n.m4: Likewise.
38883         * m4/bison.m4: Likewise.
38884         * m4/byteswap.m4: Likewise.
38885         * m4/c-stack.m4: Likewise.
38886         * m4/c-strtod.m4: Likewise.
38887         * m4/calloc.m4: Likewise.
38888         * m4/canonicalize-lgpl.m4: Likewise.
38889         * m4/chown.m4: Likewise.
38890         * m4/clock_time.m4: Likewise.
38891         * m4/codeset.m4: Likewise.
38892         * m4/copy-file.m4: Likewise.
38893         * m4/csharp.m4: Likewise.
38894         * m4/csharpcomp.m4: Likewise.
38895         * m4/csharpexec.m4: Likewise.
38896         * m4/d-ino.m4: Likewise.
38897         * m4/d-type.m4: Likewise.
38898         * m4/dirfd.m4: Likewise.
38899         * m4/double-slash-root.m4: Likewise.
38900         * m4/eaccess.m4: Likewise.
38901         * m4/eealloc.m4: Likewise.
38902         * m4/environ.m4: Likewise.
38903         * m4/errno_h.m4: Likewise.
38904         * m4/euidaccess.m4: Likewise.
38905         * m4/execute.m4: Likewise.
38906         * m4/fatal-signal.m4: Likewise.
38907         * m4/fchdir.m4: Likewise.
38908         * m4/fcntl_h.m4: Likewise.
38909         * m4/fileblocks.m4: Likewise.
38910         * m4/filenamecat.m4: Likewise.
38911         * m4/findprog.m4: Likewise.
38912         * m4/flexmember.m4: Likewise.
38913         * m4/fnmatch.m4: Likewise.
38914         * m4/fopen.m4: Likewise.
38915         * m4/fpending.m4: Likewise.
38916         * m4/fprintf-posix.m4: Likewise.
38917         * m4/free.m4: Likewise.
38918         * m4/frexp.m4: Likewise.
38919         * m4/frexpl.m4: Likewise.
38920         * m4/fsusage.m4: Likewise.
38921         * m4/ftruncate.m4: Likewise.
38922         * m4/gc-camellia.m4: Likewise.
38923         * m4/gc-random.m4: Likewise.
38924         * m4/gc.m4: Likewise.
38925         * m4/getaddrinfo.m4: Likewise.
38926         * m4/getcwd-abort-bug.m4: Likewise.
38927         * m4/getcwd-path-max.m4: Likewise.
38928         * m4/getdate.m4: Likewise.
38929         * m4/getdomainname.m4: Likewise.
38930         * m4/getgroups.m4: Likewise.
38931         * m4/gethostname.m4: Likewise.
38932         * m4/gethrxtime.m4: Likewise.
38933         * m4/getline.m4: Likewise.
38934         * m4/getloadavg.m4: Likewise.
38935         * m4/getndelim2.m4: Likewise.
38936         * m4/getpass.m4: Likewise.
38937         * m4/gettext.m4: Likewise.
38938         * m4/gettime.m4: Likewise.
38939         * m4/gettimeofday.m4: Likewise.
38940         * m4/gnulib-common.m4: Likewise.
38941         * m4/group-member.m4: Likewise.
38942         * m4/host-os.m4: Likewise.
38943         * m4/iconv.m4: Likewise.
38944         * m4/iconv_open.m4: Likewise.
38945         * m4/inet_ntop.m4: Likewise.
38946         * m4/inet_pton.m4: Likewise.
38947         * m4/inline.m4: Likewise.
38948         * m4/intldir.m4: Likewise.
38949         * m4/intlmacosx.m4: Likewise.
38950         * m4/intmax.m4: Likewise.
38951         * m4/intmax_t.m4: Likewise.
38952         * m4/inttypes.m4: Likewise.
38953         * m4/inttypes_h.m4: Likewise.
38954         * m4/inttypes-pri.m4: Likewise.
38955         * m4/isapipe.m4: Likewise.
38956         * m4/isnand.m4: Likewise.
38957         * m4/isnanf.m4: Likewise.
38958         * m4/isnanl.m4: Likewise.
38959         * m4/javacomp.m4: Likewise.
38960         * m4/javaexec.m4: Likewise.
38961         * m4/jm-winsz1.m4: Likewise.
38962         * m4/jm-winsz2.m4: Likewise.
38963         * m4/lchown.m4: Likewise.
38964         * m4/lcmessage.m4: Likewise.
38965         * m4/ldexpl.m4: Likewise.
38966         * m4/lib-ld.m4: Likewise.
38967         * m4/lib-link.m4: Likewise.
38968         * m4/libsigsegv.m4: Likewise.
38969         * m4/link-follow.m4: Likewise.
38970         * m4/localcharset.m4: Likewise.
38971         * m4/locale-fr.m4: Likewise.
38972         * m4/locale-ja.m4: Likewise.
38973         * m4/locale-tr.m4: Likewise.
38974         * m4/locale-zh.m4: Likewise.
38975         * m4/lock.m4: Likewise.
38976         * m4/longlong.m4: Likewise.
38977         * m4/ls-mntd-fs.m4: Likewise.
38978         * m4/lstat.m4: Likewise.
38979         * m4/malloc.m4: Likewise.
38980         * m4/mathl.m4: Likewise.
38981         * m4/mbrtowc.m4: Likewise.
38982         * m4/mbstate_t.m4: Likewise.
38983         * m4/mbswidth.m4: Likewise.
38984         * m4/memchr.m4: Likewise.
38985         * m4/memcmp.m4: Likewise.
38986         * m4/memcpy.m4: Likewise.
38987         * m4/memmem.m4: Likewise.
38988         * m4/memmove.m4: Likewise.
38989         * m4/mempcpy.m4: Likewise.
38990         * m4/memrchr.m4: Likewise.
38991         * m4/memset.m4: Likewise.
38992         * m4/minmax.m4: Likewise.
38993         * m4/mkdir-slash.m4: Likewise.
38994         * m4/mkdtemp.m4: Likewise.
38995         * m4/mktime.m4: Likewise.
38996         * m4/mmap-anon.m4: Likewise.
38997         * m4/mountlist.m4: Likewise.
38998         * m4/nanosleep.m4: Likewise.
38999         * m4/nls.m4: Likewise.
39000         * m4/nocrash.m4: Likewise.
39001         * m4/open.m4: Likewise.
39002         * m4/openat.m4: Likewise.
39003         * m4/openmp.m4: Likewise.
39004         * m4/pathmax.m4: Likewise.
39005         * m4/perl.m4: Likewise.
39006         * m4/physmem.m4: Likewise.
39007         * m4/pipe.m4: Likewise.
39008         * m4/po.m4: Likewise.
39009         * m4/poll.m4: Likewise.
39010         * m4/posixtm.m4: Likewise.
39011         * m4/posixver.m4: Likewise.
39012         * m4/printf-frexp.m4: Likewise.
39013         * m4/printf-frexpl.m4: Likewise.
39014         * m4/printf-posix.m4: Likewise.
39015         * m4/printf-posix-rpl.m4: Likewise.
39016         * m4/printf.m4: Likewise.
39017         * m4/progtest.m4: Likewise.
39018         * m4/putenv.m4: Likewise.
39019         * m4/readline.m4: Likewise.
39020         * m4/readlink.m4: Likewise.
39021         * m4/readutmp.m4: Likewise.
39022         * m4/realloc.m4: Likewise.
39023         * m4/regex.m4: Likewise.
39024         * m4/relocatable.m4: Likewise.
39025         * m4/relocatable-lib.m4: Likewise.
39026         * m4/rename-dest-slash.m4: Likewise.
39027         * m4/rename.m4: Likewise.
39028         * m4/rmdir-errno.m4: Likewise.
39029         * m4/rmdir.m4: Likewise.
39030         * m4/roundf.m4: Likewise.
39031         * m4/roundl.m4: Likewise.
39032         * m4/rpmatch.m4: Likewise.
39033         * m4/save-cwd.m4: Likewise.
39034         * m4/selinux-selinux-h.m4: Likewise.
39035         * m4/setenv.m4: Likewise.
39036         * m4/settime.m4: Likewise.
39037         * m4/sig2str.m4: Likewise.
39038         * m4/sig_atomic_t.m4: Likewise.
39039         * m4/signalblocking.m4: Likewise.
39040         * m4/signbit.m4: Likewise.
39041         * m4/sigpipe.m4: Likewise.
39042         * m4/sockets.m4: Likewise.
39043         * m4/sockpfaf.m4: Likewise.
39044         * m4/st_dm_mode.m4: Likewise.
39045         * m4/stat-time.m4: Likewise.
39046         * m4/stdbool.m4: Likewise.
39047         * m4/stdint.m4: Likewise.
39048         * m4/stdint_h.m4: Likewise.
39049         * m4/stpcpy.m4: Likewise.
39050         * m4/stpncpy.m4: Likewise.
39051         * m4/strcase.m4: Likewise.
39052         * m4/strchrnul.m4: Likewise.
39053         * m4/strcspn.m4: Likewise.
39054         * m4/strdup.m4: Likewise.
39055         * m4/strftime.m4: Likewise.
39056         * m4/strndup.m4: Likewise.
39057         * m4/strnlen.m4: Likewise.
39058         * m4/strpbrk.m4: Likewise.
39059         * m4/strptime.m4: Likewise.
39060         * m4/strsep.m4: Likewise.
39061         * m4/strtod.m4: Likewise.
39062         * m4/strtoimax.m4: Likewise.
39063         * m4/strtok_r.m4: Likewise.
39064         * m4/strtol.m4: Likewise.
39065         * m4/strtoll.m4: Likewise.
39066         * m4/strtoul.m4: Likewise.
39067         * m4/strtoull.m4: Likewise.
39068         * m4/strtoumax.m4: Likewise.
39069         * m4/strverscmp.m4: Likewise.
39070         * m4/threadlib.m4: Likewise.
39071         * m4/timegm.m4: Likewise.
39072         * m4/tm_gmtoff.m4: Likewise.
39073         * m4/tmpdir.m4: Likewise.
39074         * m4/tmpfile.m4: Likewise.
39075         * m4/tzset.m4: Likewise.
39076         * m4/uintmax_t.m4: Likewise.
39077         * m4/unlinkdir.m4: Likewise.
39078         * m4/unlocked-io.m4: Likewise.
39079         * m4/uptime.m4: Likewise.
39080         * m4/userspec.m4: Likewise.
39081         * m4/utimbuf.m4: Likewise.
39082         * m4/utime.m4: Likewise.
39083         * m4/utimes-null.m4: Likewise.
39084         * m4/utimes.m4: Likewise.
39085         * m4/vararrays.m4: Likewise.
39086         * m4/vasnprintf.m4: Likewise.
39087         * m4/vfprintf-posix.m4: Likewise.
39088         * m4/vprintf-posix.m4: Likewise.
39089         * m4/wait-process.m4: Likewise.
39090         * m4/wchar_t.m4: Likewise.
39091         * m4/wint_t.m4: Likewise.
39092         * m4/write-any-file.m4: Likewise.
39093         * m4/yield.m4: Likewise.
39094
39095 2009-01-13  Bruno Haible  <bruno@clisp.org>
39096
39097         Avoid test-copy-file.sh failures when ACL support insufficient.
39098         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39099         TESTS_ENVIRONMENT.
39100         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39101         Reported by Jim Meyering.
39102
39103 2009-01-13  Bruno Haible  <bruno@clisp.org>
39104
39105         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39106         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39107         * modules/unistdio/u8-printf-parse (Files): Likewise.
39108         * modules/unistdio/u32-printf-parse (Files): Likewise.
39109         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39110
39111 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39112
39113         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39114         and m4/inttypes_h.m4 too.
39115
39116 2009-01-12  Eric Blake  <ebb9@byu.net>
39117
39118         tests: IRIX 6.2 cc can't compile -0.0 into .data
39119         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39120         rather than at compile-time.
39121         * tests/test-floorl.c (minus_zero): Likewise.
39122         * tests/test-frexpl.c (minus_zero): Likewise.
39123         * tests/test-isnan.c (minus_zerol): Likewise.
39124         * tests/test-isnanl.h (minus_zero): Likewise.
39125         * tests/test-ldexpl.c (minus_zero): Likewise.
39126         * tests/test-roundl.c (minus_zero): Likewise.
39127         * tests/test-signbit.c (minus_zerol): Likewise.
39128         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39129         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39130         * tests/test-truncl.c (minus_zero): Likewise.
39131         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39132         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39133         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39134
39135 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39136
39137         regex: fix glibc bug 9697
39138         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39139         handling.
39140
39141 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39142
39143         regex: fix glibc bug 697
39144         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39145         being NULL also if there are no backreferences.
39146
39147 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39148
39149         regex: merge glibc changes
39150         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39151         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39152         re_string_skip_chars, re_string_reconstruct): Likewise.
39153         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39154
39155 2009-01-07  Jim Meyering  <meyering@redhat.com>
39156
39157         poll: filter through cppi
39158         * lib/poll.c: Indent cpp directives to reflect nesting.
39159
39160 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39161
39162         poll: don't return uninitialized
39163         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39164
39165 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39166
39167         avoid compile failure on AIX 6.1
39168         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39169         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39170
39171 2009-01-04  Jim Meyering  <meyering@redhat.com>
39172
39173         remove duplicate inclusion of <stdio.h>
39174         * tests/test-fprintf-posix.c: Likewise.
39175         * tests/test-printf-posix.c: Likewise.
39176         * tests/test-snprintf-posix.c: Likewise.
39177         * tests/test-sprintf-posix.c: Likewise.
39178         * tests/test-vasprintf-posix.c: Likewise.
39179         * tests/test-vfprintf-posix.c: Likewise.
39180         * tests/test-vprintf-posix.c: Likewise.
39181         * tests/test-vsnprintf-posix.c: Likewise.
39182         * tests/test-vsprintf-posix.c: Likewise.
39183
39184 2009-01-03  Jim Meyering  <meyering@redhat.com>
39185
39186         gnulib-tool: fix sed-based filtering
39187         * gnulib-tool (func_filter_filelist): Remove extra backslash
39188         in sed_fff_filter definition.
39189
39190 2009-01-02  Jim Meyering  <meyering@redhat.com>
39191
39192         strftime: avoid compilation failure on Solaris 2.6
39193         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39194         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39195         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39196         be available.  Reported by Tom G. Christensen.  Details in
39197         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39198
39199 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39200             Bruno Haible  <bruno@clisp.org>
39201
39202         Speed up gnulib-tool by doing more string processing through shell
39203         built-ins.
39204         * gnulib-tool (fast_func_append): New variable.
39205         (func_remove_prefix, func_remove_suffix): New functions.
39206         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39207         (func_filter_filelist): New function.
39208         (func_get_dependencies): Use func_remove_suffix instead of sed.
39209         (func_get_automake_snippet): Use func_filter_filelist instead of a
39210         subshell and sed invocation.
39211
39212 2009-01-01  Bruno Haible  <bruno@clisp.org>
39213
39214         Fix a security bug.
39215         * gnulib-tool (func_import, import, update): Don't allow the characters
39216         '"', '$', '`', '\' in macro arguments that become part of commands that
39217         are evaluated.
39218
39219 2009-01-01  Bruno Haible  <bruno@clisp.org>
39220
39221         * gnulib-tool (func_reset_sigpipe): Add more comments.
39222
39223 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39224
39225         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39226         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39227         already know the answer.
39228
39229 2009-01-01  Jim Meyering  <meyering@redhat.com>
39230
39231         * lib/version-etc.c (version_etc_va): Update copyright year.
39232
39233 2008-12-30  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39236         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39237         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39238
39239 2008-12-29  Eric Blake  <ebb9@byu.net>
39240
39241         multiarch: avoid autoconf AC_REQUIRE bug
39242         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39243         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39244         2.63 and older.
39245         Reported by Bruno Haible, and analyzed in
39246         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39247
39248 2008-12-29  Bruno Haible  <bruno@clisp.org>
39249
39250         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39251         files in subdirectories correctly.
39252         Reported by Ralf Wildenhues.
39253
39254 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39255
39256         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39257         rather than 'join FILE -', for Solaris join.
39258
39259 2008-12-29  Bruno Haible  <bruno@clisp.org>
39260
39261         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39262         quoting.
39263         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39264         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39265         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39266         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39267         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39268         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39269         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39270         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39271         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39272         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39273         * m4/nls.m4 (AM_NLS): Likewise.
39274         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39275         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39276         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39277         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39278         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39279         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39280         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39281         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39282         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39283         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39284         * m4/xsize.m4 (gl_XSIZE): Likewise.
39285         Suggested by Jim Meyering.
39286
39287 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39288
39289         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39290         * lib/parse-duration.c: use a switch instead of cascading if's.
39291
39292 2008-12-29  Eric Blake  <ebb9@byu.net>
39293
39294         wchar.h: supply WEOF on Irix 5.3
39295         * lib/wchar.in.h (wint_t): Also supply WEOF.
39296         * lib/wctype.in.h (wint_t): Likewise.
39297         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39298         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39299         Reported by Tom G. Christensen.
39300
39301 2008-12-26  Bruno Haible  <bruno@clisp.org>
39302
39303         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39304         i486, i586, i686.
39305
39306 2008-12-26  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39309
39310 2008-12-26  Bruno Haible  <bruno@clisp.org>
39311
39312         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39313         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39314         not __STDC_CONSTANT_MACROS.
39315         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39316
39317 2008-12-25  Bruno Haible  <bruno@clisp.org>
39318
39319         Add support for universal builds to vasnprintf.
39320         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39321         universal builds, guess no.
39322         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39323         * modules/vasprintf-posix (Depends-on): Likewise.
39324         * modules/fprintf-posix (Depends-on): Likewise.
39325         * modules/vfprintf-posix (Depends-on): Likewise.
39326         * modules/snprintf-posix (Depends-on): Likewise.
39327         * modules/vsnprintf-posix (Depends-on): Likewise.
39328         * modules/sprintf-posix (Depends-on): Likewise.
39329         * modules/vsprintf-posix (Depends-on): Likewise.
39330         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39331         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39332         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39333         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39334         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39335         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39336         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39337
39338         Add support for universal builds to <inttypes.h>.
39339         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39340         _SCNu64_PREFIX): In Apple
39341         universal builds, define directly, using _LP64.
39342         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39343         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39344         * modules/inttypes (Depends-on): Add multiarch.
39345         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39346
39347         Add support for universal builds to <stdint.h>.
39348         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39349         universal builds, define directly, using _LP64.
39350         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39351         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39352         and size_t.
39353         * modules/stdint (Depends-on): Add multiarch.
39354         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39355
39356         New module 'multiarch'.
39357         * modules/multiarch: New file.
39358         * m4/multiarch.m4: New file.
39359
39360 2008-12-25  Bruno Haible  <bruno@clisp.org>
39361
39362         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39363
39364 2008-12-25  Bruno Haible  <bruno@clisp.org>
39365
39366         * modules/btowc (License): Relicense under LGPLv2+.
39367         * modules/mbsinit (License): Likewise.
39368         * modules/mbrtowc (License): Likewise.
39369         * modules/wcrtomb (License): Likewise.
39370         * modules/streq (License): Likewise.
39371         Reported by David Lutterkort <lutter@redhat.com>.
39372
39373 2008-12-23  Bruno Haible  <bruno@clisp.org>
39374
39375         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39376
39377 2008-12-23  Bruno Haible  <bruno@clisp.org>
39378
39379         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39381         GETADDRINFO_LIB, not in LIBS.
39382         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39383         * modules/canon-host (Link): Likewise.
39384         * NEWS: Mention the change.
39385         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39386         GETADDRINFO_LIB.
39387
39388 2008-12-22  Bruno Haible  <bruno@clisp.org>
39389
39390         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39391         * doc/posix-functions/iswalpha_l.texi: Likewise.
39392         * doc/posix-functions/iswblank_l.texi: Likewise.
39393         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39394         * doc/posix-functions/iswctype_l.texi: Likewise.
39395         * doc/posix-functions/iswdigit_l.texi: Likewise.
39396         * doc/posix-functions/iswgraph_l.texi: Likewise.
39397         * doc/posix-functions/iswlower_l.texi: Likewise.
39398         * doc/posix-functions/iswprint_l.texi: Likewise.
39399         * doc/posix-functions/iswpunct_l.texi: Likewise.
39400         * doc/posix-functions/iswspace_l.texi: Likewise.
39401         * doc/posix-functions/iswupper_l.texi: Likewise.
39402         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39403         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39404         * doc/posix-functions/open_wmemstream.texi: Likewise.
39405         * doc/posix-functions/swscanf.texi: Likewise.
39406         * doc/posix-functions/towctrans_l.texi: Likewise.
39407         * doc/posix-functions/towlower.texi: Likewise.
39408         * doc/posix-functions/towlower_l.texi: Likewise.
39409         * doc/posix-functions/towupper.texi: Likewise.
39410         * doc/posix-functions/towupper_l.texi: Likewise.
39411         * doc/posix-functions/vfwprintf.texi: Likewise.
39412         * doc/posix-functions/vfwscanf.texi: Likewise.
39413         * doc/posix-functions/vswscanf.texi: Likewise.
39414         * doc/posix-functions/vwprintf.texi: Likewise.
39415         * doc/posix-functions/vwscanf.texi: Likewise.
39416         * doc/posix-functions/wcpcpy.texi: Likewise.
39417         * doc/posix-functions/wcpncpy.texi: Likewise.
39418         * doc/posix-functions/wcscasecmp.texi: Likewise.
39419         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39420         * doc/posix-functions/wcscoll_l.texi: Likewise.
39421         * doc/posix-functions/wcsdup.texi: Likewise.
39422         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39423         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39424         * doc/posix-functions/wcsnlen.texi: Likewise.
39425         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39426         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39427         * doc/posix-functions/wctrans_l.texi: Likewise.
39428         * doc/posix-functions/wctype_l.texi: Likewise.
39429         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39430         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39431         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39432         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39433         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39434         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39435         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39436         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39437         * doc/glibc-functions/wcschrnul.texi: Likewise.
39438         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39439         * doc/glibc-functions/wcstod_l.texi: Likewise.
39440         * doc/glibc-functions/wcstof_l.texi: Likewise.
39441         * doc/glibc-functions/wcstol_l.texi: Likewise.
39442         * doc/glibc-functions/wcstold_l.texi: Likewise.
39443         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39444         * doc/glibc-functions/wcstoq.texi: Likewise.
39445         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39446         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39447         * doc/glibc-functions/wcstouq.texi: Likewise.
39448         * doc/glibc-functions/wmempcpy.texi: Likewise.
39449
39450 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39451             Eric Blake  <ebb9@byu.net>
39452             Paolo Bonzini  <bonzini@gnu.org>
39453             Bruno Haible  <bruno@clisp.org>
39454
39455         Make c-stack work on Haiku.
39456         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39457         (c_stack_action): Use SA_ONSTACK flag.
39458
39459 2008-12-22  Bruno Haible  <bruno@clisp.org>
39460
39461         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39462
39463 2008-12-22  Bruno Haible  <bruno@clisp.org>
39464
39465         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39466         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39467         being overridden.
39468         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39469         New macros.
39470         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39472         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39473         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39474
39475 2008-12-22  Bruno Haible  <bruno@clisp.org>
39476
39477         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39478         from test code.
39479
39480 2008-12-22  Eric Blake  <ebb9@byu.net>
39481
39482         Avoid gcc warnings on cygwin.
39483         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39484         Avoid unused variable.
39485         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39486         Likewise.
39487
39488 2008-12-22  Bruno Haible  <bruno@clisp.org>
39489
39490         Remove HAVE_MBRTOWC conditionals.
39491         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39492         (mbscasecmp): Assume mbrtowc function.
39493         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39494         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39495         * lib/mbschr.c: Include mbuiter.h unconditionally.
39496         (mbschr): Assume mbrtowc function.
39497         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39498         (mbscspn): Assume mbrtowc function.
39499         * lib/mbslen.c: Include mbuiter.h unconditionally.
39500         (mbslen): Assume mbrtowc function.
39501         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39502         (mbsncasecmp): Assume mbrtowc function.
39503         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39504         (mbsnlen): Assume mbrtowc function.
39505         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39506         (mbspbrk): Assume mbrtowc function.
39507         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39508         (mbspcasecmp): Assume mbrtowc function.
39509         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39510         (mbsrchr): Assume mbrtowc function.
39511         * lib/mbssep.c: Include mbuiter.h unconditionally.
39512         (mbssep): Assume mbrtowc function.
39513         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39514         (mbsspn): Assume mbrtowc function.
39515         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39516         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39517         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39518         (mbstok_r): Assume mbrtowc function.
39519         * lib/propername.c: Include mbuiter.h unconditionally.
39520         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39521         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39522         (trim2): Assume mbrtowc function.
39523         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39524         (mbsnwidth): Assume mbrtowc function.
39525         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39526         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39527         fallback definitions.
39528         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39529
39530 2008-12-22  Bruno Haible  <bruno@clisp.org>
39531
39532         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39533
39534 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39535
39536         * modules/regex: Request emulations for the mb*/wc* functions we need.
39537         * m4/regex.m4: Don't look for those functions here.
39538         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39539
39540 2008-12-22  Bruno Haible  <bruno@clisp.org>
39541
39542         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39543
39544 2008-12-21  Bruno Haible  <bruno@clisp.org>
39545
39546         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39547         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39548         (Include): Remove conditionalization.
39549         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39550         (Include): Remove conditionalization.
39551         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39552         (Include): Remove conditionalization.
39553         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39554         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39555         * NEWS: Mention the change.
39556         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39557         via Sergey Poznyakoff <gray@gnu.org.ua>.
39558
39559 2008-12-21  Bruno Haible  <bruno@clisp.org>
39560
39561         * MODULES.html.sh (Extended multibyte and wide character utilities
39562         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39563         wcrtomb, wcsrtombs.
39564         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39565         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39566         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39567         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39568
39569 2008-12-21  Bruno Haible  <bruno@clisp.org>
39570
39571         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39572
39573 2008-12-21  Bruno Haible  <bruno@clisp.org>
39574
39575         * modules/wcsnrtombs-tests: New file.
39576         * tests/test-wcsnrtombs1.sh: New file.
39577         * tests/test-wcsnrtombs2.sh: New file.
39578         * tests/test-wcsnrtombs3.sh: New file.
39579         * tests/test-wcsnrtombs4.sh: New file.
39580         * tests/test-wcsnrtombs.c: New file.
39581
39582         New module 'wcsnrtombs'.
39583         * lib/wchar.in.h (wcsnrtombs): New declaration.
39584         * lib/wcsnrtombs.c: New file.
39585         * lib/wcsrtombs-state.c: New file.
39586         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39587         (internal_state): Remove variable.
39588         * m4/wcsnrtombs.m4: New file.
39589         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39590         compilation units.
39591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39592         HAVE_WCSNRTOMBS.
39593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39594         HAVE_WCSNRTOMBS.
39595         * modules/wcsnrtombs: New file.
39596         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39597         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39598
39599 2008-12-21  Bruno Haible  <bruno@clisp.org>
39600
39601         * modules/wcsrtombs-tests: New file.
39602         * tests/test-wcsrtombs1.sh: New file.
39603         * tests/test-wcsrtombs2.sh: New file.
39604         * tests/test-wcsrtombs3.sh: New file.
39605         * tests/test-wcsrtombs4.sh: New file.
39606         * tests/test-wcsrtombs.c: New file.
39607
39608         New module 'wcsrtombs'.
39609         * lib/wchar.in.h (wcsrtombs): New declaration.
39610         * lib/wcsrtombs.c: New file.
39611         * m4/wcsrtombs.m4: New file.
39612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39613         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39615         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39616         * modules/wcsrtombs: New file.
39617         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39618         bugs.
39619
39620 2008-12-21  Bruno Haible  <bruno@clisp.org>
39621
39622         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39623         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39625         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39626         if not correct.
39627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39628         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39629         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39630         m4/locale-zh.m4, m4/codeset.m4.
39631         * doc/posix-functions/wcrtomb.texi: Document the bug.
39632
39633 2008-12-21  Bruno Haible  <bruno@clisp.org>
39634
39635         Work around a btowc() bug on IRIX 6.5.
39636         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39637         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39638         REPLACE_WTOBC if not.
39639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39640         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39641         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39642
39643 2008-12-21  Bruno Haible  <bruno@clisp.org>
39644
39645         * modules/wcrtomb-tests: New file.
39646         * tests/test-wcrtomb.sh: New file.
39647         * tests/test-wcrtomb.c: New file.
39648
39649         New module 'wcrtomb'.
39650         * lib/wchar.in.h (wcrtomb): New declaration.
39651         * lib/wcrtomb.c: New file.
39652         * m4/wcrtomb.m4: New file.
39653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39654         HAVE_WCRTOMB.
39655         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39656         HAVE_WCRTOMB.
39657         * modules/wcrtomb: New file.
39658         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39659
39660 2008-12-21  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39663         * modules/mbsrtowcs (Files): Likewise.
39664         * modules/wctob (Files): Likewise.
39665         * modules/c-strcase-tests (Files): Likewise.
39666         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39667         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39668         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39669         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39670         * modules/vasnprintf-posix-tests (Files): Likewise.
39671
39672 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39673
39674         gitlog-to-changelog: pass all command-line arguments to git-log
39675         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39676         it is sometimes convenient to filter the commits in various ways.
39677         gitlog-to-changelog only allows --since to specify a start date,
39678         but git-log itself supports many other filtering mechanisms.
39679         At the moment, I want to filter by branch name.  Rather than
39680         adding a --branch option to gitlog-to-changelog, it seems more
39681         flexible to simply pass all options directly to git-log and let
39682         git do the work.  Notice that this effectively makes --since a
39683         redundant option for gitlog-to-changelog, but removing it would
39684         require current usage to change since calls would then require
39685         an additional '--'.
39686
39687 2008-12-21  Bruno Haible  <bruno@clisp.org>
39688
39689         * modules/mbsnrtowcs-tests: New file.
39690         * tests/test-mbsnrtowcs1.sh: New file.
39691         * tests/test-mbsnrtowcs2.sh: New file.
39692         * tests/test-mbsnrtowcs3.sh: New file.
39693         * tests/test-mbsnrtowcs4.sh: New file.
39694         * tests/test-mbsnrtowcs.c: New file.
39695
39696         New module 'mbsnrtowcs'.
39697         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39698         * lib/mbsnrtowcs.c: New file.
39699         * lib/mbsrtowcs-state.c: New file.
39700         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39701         (internal_state): Remove variable.
39702         * m4/mbsnrtowcs.m4: New file.
39703         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39704         compilation units.
39705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39706         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39707         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39708         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39709         * modules/mbsnrtowcs: New file.
39710         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39711         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39712         portability problem.
39713
39714 2008-12-21  Bruno Haible  <bruno@clisp.org>
39715
39716         Work around mbsrtowcs bug.
39717         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39718         (gl_FUNC_MBSRTOWCS): Invoke it.
39719         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39720         m4/locale-zh.m4.
39721         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39722
39723 2008-12-21  Bruno Haible  <bruno@clisp.org>
39724
39725         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39726
39727 2008-12-21  Bruno Haible  <bruno@clisp.org>
39728
39729         Update doc for AIX.
39730         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39731         16-bit wchar_t type.
39732         * doc/posix-functions/btowc.texi: Likewise.
39733         * doc/posix-functions/fgetwc.texi: Likewise.
39734         * doc/posix-functions/fgetws.texi: Likewise.
39735         * doc/posix-functions/fputwc.texi: Likewise.
39736         * doc/posix-functions/fputws.texi: Likewise.
39737         * doc/posix-functions/fwide.texi: Likewise.
39738         * doc/posix-functions/fwprintf.texi: Likewise.
39739         * doc/posix-functions/fwscanf.texi: Likewise.
39740         * doc/posix-functions/getwchar.texi: Likewise.
39741         * doc/posix-functions/getwc.texi: Likewise.
39742         * doc/posix-functions/iswalnum.texi: Likewise.
39743         * doc/posix-functions/iswalpha.texi: Likewise.
39744         * doc/posix-functions/iswblank.texi: Likewise.
39745         * doc/posix-functions/iswcntrl.texi: Likewise.
39746         * doc/posix-functions/iswctype.texi: Likewise.
39747         * doc/posix-functions/iswdigit.texi: Likewise.
39748         * doc/posix-functions/iswgraph.texi: Likewise.
39749         * doc/posix-functions/iswlower.texi: Likewise.
39750         * doc/posix-functions/iswprint.texi: Likewise.
39751         * doc/posix-functions/iswpunct.texi: Likewise.
39752         * doc/posix-functions/iswspace.texi: Likewise.
39753         * doc/posix-functions/iswupper.texi: Likewise.
39754         * doc/posix-functions/iswxdigit.texi: Likewise.
39755         * doc/posix-functions/mbrtowc.texi: Likewise.
39756         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39757         * doc/posix-functions/mbstowcs.texi: Likewise.
39758         * doc/posix-functions/mbtowc.texi: Likewise.
39759         * doc/posix-functions/putwchar.texi: Likewise.
39760         * doc/posix-functions/putwc.texi: Likewise.
39761         * doc/posix-functions/swprintf.texi: Likewise.
39762         * doc/posix-functions/tolower.texi: Likewise.
39763         * doc/posix-functions/toupper.texi: Likewise.
39764         * doc/posix-functions/towctrans.texi: Likewise.
39765         * doc/posix-functions/ungetwc.texi: Likewise.
39766         * doc/posix-functions/vswprintf.texi: Likewise.
39767         * doc/posix-functions/wcrtomb.texi: Likewise.
39768         * doc/posix-functions/wcscat.texi: Likewise.
39769         * doc/posix-functions/wcschr.texi: Likewise.
39770         * doc/posix-functions/wcscmp.texi: Likewise.
39771         * doc/posix-functions/wcscoll.texi: Likewise.
39772         * doc/posix-functions/wcscpy.texi: Likewise.
39773         * doc/posix-functions/wcscspn.texi: Likewise.
39774         * doc/posix-functions/wcsftime.texi: Likewise.
39775         * doc/posix-functions/wcslen.texi: Likewise.
39776         * doc/posix-functions/wcsncat.texi: Likewise.
39777         * doc/posix-functions/wcsncmp.texi: Likewise.
39778         * doc/posix-functions/wcsncpy.texi: Likewise.
39779         * doc/posix-functions/wcspbrk.texi: Likewise.
39780         * doc/posix-functions/wcsrchr.texi: Likewise.
39781         * doc/posix-functions/wcsrtombs.texi: Likewise.
39782         * doc/posix-functions/wcsspn.texi: Likewise.
39783         * doc/posix-functions/wcsstr.texi: Likewise.
39784         * doc/posix-functions/wcstod.texi: Likewise.
39785         * doc/posix-functions/wcstof.texi: Likewise.
39786         * doc/posix-functions/wcstoimax.texi: Likewise.
39787         * doc/posix-functions/wcstok.texi: Likewise.
39788         * doc/posix-functions/wcstold.texi: Likewise.
39789         * doc/posix-functions/wcstoll.texi: Likewise.
39790         * doc/posix-functions/wcstol.texi: Likewise.
39791         * doc/posix-functions/wcstombs.texi: Likewise.
39792         * doc/posix-functions/wcstoull.texi: Likewise.
39793         * doc/posix-functions/wcstoul.texi: Likewise.
39794         * doc/posix-functions/wcstoumax.texi: Likewise.
39795         * doc/posix-functions/wcswidth.texi: Likewise.
39796         * doc/posix-functions/wcsxfrm.texi: Likewise.
39797         * doc/posix-functions/wctob.texi: Likewise.
39798         * doc/posix-functions/wctomb.texi: Likewise.
39799         * doc/posix-functions/wctrans.texi: Likewise.
39800         * doc/posix-functions/wctype.texi: Likewise.
39801         * doc/posix-functions/wcwidth.texi: Likewise.
39802         * doc/posix-functions/wmemchr.texi: Likewise.
39803         * doc/posix-functions/wmemcmp.texi: Likewise.
39804         * doc/posix-functions/wmemcpy.texi: Likewise.
39805         * doc/posix-functions/wmemmove.texi: Likewise.
39806         * doc/posix-functions/wmemset.texi: Likewise.
39807         * doc/posix-functions/wprintf.texi: Likewise.
39808         * doc/posix-functions/wscanf.texi: Likewise.
39809
39810 2008-12-21  Bruno Haible  <bruno@clisp.org>
39811
39812         Update doc for HP-UX 11.11.
39813         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39814         in HP-UX version 11.00, not in all versions of HP-UX 11.
39815         * doc/posix-functions/fwide.texi: Likewise.
39816         * doc/posix-functions/fwprintf.texi: Likewise.
39817         * doc/posix-functions/fwscanf.texi: Likewise.
39818         * doc/posix-functions/inet_ntop.texi: Likewise.
39819         * doc/posix-functions/inet_pton.texi: Likewise.
39820         * doc/posix-functions/mbrlen.texi: Likewise.
39821         * doc/posix-functions/mbrtowc.texi: Likewise.
39822         * doc/posix-functions/mbsinit.texi: Likewise.
39823         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39824         * doc/posix-functions/swprintf.texi: Likewise.
39825         * doc/posix-functions/swscanf.texi: Likewise.
39826         * doc/posix-functions/towctrans.texi: Likewise.
39827         * doc/posix-functions/vfwprintf.texi: Likewise.
39828         * doc/posix-functions/vswprintf.texi: Likewise.
39829         * doc/posix-functions/vwprintf.texi: Likewise.
39830         * doc/posix-functions/wcrtomb.texi: Likewise.
39831         * doc/posix-functions/wcsrtombs.texi: Likewise.
39832         * doc/posix-functions/wcsstr.texi: Likewise.
39833         * doc/posix-functions/wctob.texi: Likewise.
39834         * doc/posix-functions/wctrans.texi: Likewise.
39835         * doc/posix-functions/wmemchr.texi: Likewise.
39836         * doc/posix-functions/wmemcmp.texi: Likewise.
39837         * doc/posix-functions/wmemcpy.texi: Likewise.
39838         * doc/posix-functions/wmemmove.texi: Likewise.
39839         * doc/posix-functions/wmemset.texi: Likewise.
39840         * doc/posix-functions/wprintf.texi: Likewise.
39841         * doc/posix-functions/wscanf.texi: Likewise.
39842
39843 2008-12-21  Bruno Haible  <bruno@clisp.org>
39844
39845         Work around a portability problem.
39846         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39847         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39848
39849 2008-12-20  Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39852         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39853         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39855         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39856
39857         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39858         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39859         set.
39860         (GNULIB_defined_mbstate_t): New macro.
39861         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39862         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39863         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39864         reuses the system's mbrtowc function but works around the bugs.
39865         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39866         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39867         macros.
39868         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39869         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39870         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39871         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39872         REPLACE_MBSINIT if mbsinit needs to be overridden.
39873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39874         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39875         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39876         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39877         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39878         m4/locale-zh.m4.
39879         (Depends): Add mbsinit.
39880         * modules/mbsinit (Depends): Add mbrtowc.
39881         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39882
39883 2008-12-20  Bruno Haible  <bruno@clisp.org>
39884
39885         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39886         so that there are no conversion errors on AIX.
39887         * tests/test-mbsrtowcs.c (main): LIkewise.
39888
39889 2008-12-20  Bruno Haible  <bruno@clisp.org>
39890
39891         Work around wctob bug on Solaris <= 9.
39892         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39893         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39895         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39896         * modules/wctob (Files): Add m4/locale-fr.m4.
39897         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39898
39899 2008-12-20  Bruno Haible  <bruno@clisp.org>
39900
39901         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39902         /dev/null.
39903         * tests/test-select-in.sh: Likewise.
39904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39905
39906 2008-12-20  Bruno Haible  <bruno@clisp.org>
39907
39908         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39909         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39910         Cygwin 1.5.x.
39911
39912 2008-12-20  Bruno Haible  <bruno@clisp.org>
39913
39914         Ensure mbstate_t is defined on HP-UX 11.11.
39915         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39916         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39917         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39918         AC_USE_SYSTEM_EXTENSIONS.
39919         * modules/fnmatch (Depends-on): Add extensions.
39920         * modules/mbrlen (Depends-on): Likewise.
39921         * modules/mbrtowc (Depends-on): Likewise.
39922         * modules/mbsinit (Depends-on): Likewise.
39923         * modules/mbsrtowcs (Depends-on): Likewise.
39924         * modules/mbswidth (Depends-on): Likewise.
39925         * modules/quotearg (Depends-on): Likewise.
39926         * modules/strftime (Depends-on): Likewise.
39927
39928 2008-12-20  Bruno Haible  <bruno@clisp.org>
39929
39930         Ensure wctob is declared on IRIX 6.5.
39931         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39932         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39933         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39935         of HAVE_WCTOB.
39936         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39937         HAVE_WCTOB.
39938         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39939
39940 2008-12-19  Bruno Haible  <bruno@clisp.org>
39941
39942         * modules/mbsrtowcs-tests: New file.
39943         * tests/test-mbsrtowcs1.sh: New file.
39944         * tests/test-mbsrtowcs2.sh: New file.
39945         * tests/test-mbsrtowcs3.sh: New file.
39946         * tests/test-mbsrtowcs4.sh: New file.
39947         * tests/test-mbsrtowcs.c: New file.
39948
39949         New module 'mbsrtowcs'.
39950         * lib/wchar.in.h (mbsrtowcs): New declaration.
39951         * lib/mbsrtowcs.c: New file.
39952         * m4/mbsrtowcs.m4: New file.
39953         * modules/mbsrtowcs: New file.
39954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39955         HAVE_MBSRTOWCS.
39956         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39957         HAVE_MBSRTOWCS.
39958         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39959
39960 2008-12-19  Bruno Haible  <bruno@clisp.org>
39961
39962         New module 'mbrlen'.
39963         * lib/wchar.in.h (mbrlen): New declaration.
39964         * lib/mbrlen.c: New file.
39965         * m4/mbrlen.m4: New file.
39966         * modules/mbrlen: New file.
39967         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39968         HAVE_MBRLEN.
39969         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39970         HAVE_MBRLEN.
39971         * doc/posix-functions/mbrlen.texi: Document the new module.
39972
39973 2008-12-19  Bruno Haible  <bruno@clisp.org>
39974
39975         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39976         * modules/mbrtowc (Depends-on): Add verify.
39977         Suggested by Paul Eggert.
39978
39979 2008-12-18  Bruno Haible  <bruno@clisp.org>
39980
39981         * modules/mbsinit-tests: New file.
39982         * tests/test-mbsinit.sh: New file.
39983         * tests/test-mbsinit.c: New file.
39984
39985 2008-12-18  Bruno Haible  <bruno@clisp.org>
39986
39987         * modules/mbrtowc-tests: New file.
39988         * tests/test-mbrtowc1.sh: New file.
39989         * tests/test-mbrtowc2.sh: New file.
39990         * tests/test-mbrtowc3.sh: New file.
39991         * tests/test-mbrtowc4.sh: New file.
39992         * tests/test-mbrtowc.c: New file.
39993
39994         New module 'mbrtowc'.
39995         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39996         mbsinit and mbrtowc.
39997         (mbrtowc): New declaration.
39998         * lib/mbrtowc.c: New file.
39999         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40000         * modules/mbrtowc: New file.
40001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40002         HAVE_MBRTOWC.
40003         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40004         HAVE_MBRTOWC.
40005         * doc/posix-functions/mbrtowc.texi: Document the new module.
40006
40007 2008-12-18  Bruno Haible  <bruno@clisp.org>
40008
40009         New module 'wctob'.
40010         * lib/wchar.in.h (wctob): New declaration.
40011         * lib/wctob.c: New file.
40012         * m4/wctob.m4: New file.
40013         * modules/wctob: New file.
40014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40015         HAVE_WCTOB.
40016         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40017         * doc/posix-functions/wctob.texi: Document the new module.
40018
40019 2008-12-18  Bruno Haible  <bruno@clisp.org>
40020
40021         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40022         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40023
40024 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40025
40026         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40027         G. Christensen" <tgc@jupiterrise.com>.
40028
40029         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40030         G. Christensen" <tgc@jupiterrise.com>.
40031
40032         * lib/flock.c: Need to include string.h.  Reported by "Tom
40033         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40034         <ebb9@byu.net>.
40035
40036 2008-12-18  Bruno Haible  <bruno@clisp.org>
40037
40038         * m4/locale-ja.m4: New file, from GNU gettext.
40039
40040 2008-12-17  Bruno Haible  <bruno@clisp.org>
40041
40042         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40043         Suggested by Eric Blake.
40044
40045 2008-12-17  Bruno Haible  <bruno@clisp.org>
40046
40047         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40048
40049 2008-12-17  Bruno Haible  <bruno@clisp.org>
40050
40051         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40052         * modules/mbsinit (Depends-on): Add verify.
40053         Suggested by Paul Eggert.
40054
40055 2008-12-17  Bruno Haible  <bruno@clisp.org>
40056
40057         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40058         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40059         gl_FUNC_MBRTOWC.
40060         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40061         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40062         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40063         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40064         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40065         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40066         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40067         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40068         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40069         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40070         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40071         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40072         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40073         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40074         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40075         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40076         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40077         * modules/trim (configure.ac): Likewise.
40078
40079 2008-12-17  Bruno Haible  <bruno@clisp.org>
40080
40081         * modules/btowc-tests: New file.
40082         * tests/test-btowc1.sh: New file.
40083         * tests/test-btowc2.sh: New file.
40084         * tests/test-btowc.c: New file.
40085
40086         New module 'btowc'.
40087         * lib/wchar.in.h (btowc): New declaration.
40088         * lib/btowc.c: New file.
40089         * m4/btowc.m4: New file.
40090         * modules/btowc: New file.
40091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40092         HAVE_BTOWC.
40093         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40094         * doc/posix-functions/btowc.texi: Document the new module.
40095
40096 2008-12-17  Bruno Haible  <bruno@clisp.org>
40097
40098         New module 'mbsinit'.
40099         * lib/wchar.in.h (mbsinit): New declaration.
40100         * lib/mbsinit.c: New file.
40101         * m4/mbsinit.m4: New file.
40102         * modules/mbsinit: New file.
40103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40104         HAVE_MBSINIT.
40105         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40106         HAVE_MBSINIT.
40107         * doc/posix-functions/mbsinit.texi: Document the new module.
40108
40109 2008-12-16  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/unistd.in.h: Add comment.
40112         * tests/test-environ.c: Don't include <stdlib.h>.
40113
40114 2008-12-16  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/parse-duration.h (parse_duration): Document return value
40117         convention.
40118         * lib/parse-duration.c: Include specification header first. Add
40119         comments.
40120         (_): Remove macro.
40121         (parse_year_month_day, parse_hour_minute_second): Move side effects
40122         outside of strchr call.
40123         (parse_non_iso8601): Move side effects outside of isspace call.
40124         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40125         call.
40126
40127 2008-12-16  Bruno Haible  <bruno@clisp.org>
40128
40129         * tests/test-parse-duration.sh: Produce no output when the test
40130         succeeds.
40131
40132 2008-12-16  Bruno Haible  <bruno@clisp.org>
40133
40134         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40135         expressions.
40136
40137 2008-12-15  Bruno Haible  <bruno@clisp.org>
40138
40139         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40140         * doc/glibc-functions/flistxattr.texi: Likewise.
40141         * doc/glibc-functions/fopencookie.texi: Likewise.
40142         * doc/glibc-functions/fremovexattr.texi: Likewise.
40143         * doc/glibc-functions/fsetxattr.texi: Likewise.
40144         * doc/glibc-functions/getxattr.texi: Likewise.
40145         * doc/glibc-functions/lgetxattr.texi: Likewise.
40146         * doc/glibc-functions/listxattr.texi: Likewise.
40147         * doc/glibc-functions/llistxattr.texi: Likewise.
40148         * doc/glibc-functions/lremovexattr.texi: Likewise.
40149         * doc/glibc-functions/lsetxattr.texi: Likewise.
40150         * doc/glibc-functions/removexattr.texi: Likewise.
40151         * doc/glibc-functions/setxattr.texi: Likewise.
40152         * doc/posix-functions/open_memstream.texi: Likewise.
40153
40154 2008-12-15  Eric Blake  <ebb9@byu.net>
40155
40156         Update doc for cygwin 1.7.
40157         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40158         functions.
40159         * doc/posix-functions/fchmodat.texi: Likewise.
40160         * doc/posix-functions/fchownat.texi: Likewise.
40161         * doc/posix-functions/fdopendir.texi: Likewise.
40162         * doc/posix-functions/fmemopen.texi: Likewise.
40163         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40164         * doc/posix-functions/fstatat.texi: Likewise.
40165         * doc/posix-functions/futimens.texi: Likewise.
40166         * doc/posix-functions/gai_strerror.texi: Likewise.
40167         * doc/posix-functions/getaddrinfo.texi: Likewise.
40168         * doc/posix-functions/getnameinfo.texi: Likewise.
40169         * doc/posix-functions/if_freenameindex.texi: Likewise.
40170         * doc/posix-functions/if_indextoname.texi: Likewise.
40171         * doc/posix-functions/if_nameindex.texi: Likewise.
40172         * doc/posix-functions/if_nametoindex.texi: Likewise.
40173         * doc/posix-functions/insque.texi: Likewise.
40174         * doc/posix-functions/linkat.texi: Likewise.
40175         * doc/posix-functions/llrint.texi: Likewise.
40176         * doc/posix-functions/llrintf.texi: Likewise.
40177         * doc/posix-functions/llrintl.texi: Likewise.
40178         * doc/posix-functions/lockf.texi: Likewise.
40179         * doc/posix-functions/lrintl.texi: Likewise.
40180         * doc/posix-functions/mkdirat.texi: Likewise.
40181         * doc/posix-functions/mkfifoat.texi: Likewise.
40182         * doc/posix-functions/mknodat.texi: Likewise.
40183         * doc/posix-functions/mq_close.texi: Likewise.
40184         * doc/posix-functions/mq_getattr.texi: Likewise.
40185         * doc/posix-functions/mq_notify.texi: Likewise.
40186         * doc/posix-functions/mq_open.texi: Likewise.
40187         * doc/posix-functions/mq_receive.texi: Likewise.
40188         * doc/posix-functions/mq_send.texi: Likewise.
40189         * doc/posix-functions/mq_setattr.texi: Likewise.
40190         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40191         * doc/posix-functions/mq_timedsend.texi: Likewise.
40192         * doc/posix-functions/mq_unlink.texi: Likewise.
40193         * doc/posix-functions/open_memstream.texi: Likewise.
40194         * doc/posix-functions/openat.texi: Likewise.
40195         * doc/posix-functions/posix_fadvise.texi: Likewise.
40196         * doc/posix-functions/posix_fallocate.texi: Likewise.
40197         * doc/posix-functions/posix_madvise.texi: Likewise.
40198         * doc/posix-functions/posix_memalign.texi: Likewise.
40199         * doc/posix-functions/posix_openpt.texi: Likewise.
40200         * doc/posix-functions/readlinkat.texi: Likewise.
40201         * doc/posix-functions/remque.texi: Likewise.
40202         * doc/posix-functions/renameat.texi: Likewise.
40203         * doc/posix-functions/rintl.texi: Likewise.
40204         * doc/posix-functions/sem_unlink.texi: Likewise.
40205         * doc/posix-functions/shm_open.texi: Likewise.
40206         * doc/posix-functions/shm_unlink.texi: Likewise.
40207         * doc/posix-functions/signgam.texi: Likewise.
40208         * doc/posix-functions/sigset.texi: Likewise.
40209         * doc/posix-functions/stpcpy.texi: Likewise.
40210         * doc/posix-functions/stpncpy.texi: Likewise.
40211         * doc/posix-functions/strerror.texi: Likewise.
40212         * doc/posix-functions/strtod.texi: Likewise.
40213         * doc/posix-functions/symlinkat.texi: Likewise.
40214         * doc/posix-functions/unlinkat.texi: Likewise.
40215         * doc/posix-functions/utimensat.texi: Likewise.
40216         * doc/glibc-functions/bindresvport.texi: Likewise.
40217         * doc/glibc-functions/dn_expand.texi: Likewise.
40218         * doc/glibc-functions/exp10.texi: Likewise.
40219         * doc/glibc-functions/exp10f.texi: Likewise.
40220         * doc/glibc-functions/fgetxattr.texi: Likewise.
40221         * doc/glibc-functions/flistxattr.texi: Likewise.
40222         * doc/glibc-functions/fopencookie.texi: Likewise.
40223         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40224         * doc/glibc-functions/fremovexattr.texi: Likewise.
40225         * doc/glibc-functions/fsetxattr.texi: Likewise.
40226         * doc/glibc-functions/getifaddrs.texi: Likewise.
40227         * doc/glibc-functions/getxattr.texi: Likewise.
40228         * doc/glibc-functions/lgetxattr.texi: Likewise.
40229         * doc/glibc-functions/listxattr.texi: Likewise.
40230         * doc/glibc-functions/llistxattr.texi: Likewise.
40231         * doc/glibc-functions/lremovexattr.texi: Likewise.
40232         * doc/glibc-functions/lsetxattr.texi: Likewise.
40233         * doc/glibc-functions/pow10.texi: Likewise.
40234         * doc/glibc-functions/pow10f.texi: Likewise.
40235         * doc/glibc-functions/rcmd_af.texi: Likewise.
40236         * doc/glibc-functions/removexattr.texi: Likewise.
40237         * doc/glibc-functions/res_init.texi: Likewise.
40238         * doc/glibc-functions/res_mkquery.texi: Likewise.
40239         * doc/glibc-functions/res_query.texi: Likewise.
40240         * doc/glibc-functions/res_querydomain.texi: Likewise.
40241         * doc/glibc-functions/res_send.texi: Likewise.
40242         * doc/glibc-functions/rresvport_af.texi: Likewise.
40243         * doc/glibc-functions/setxattr.texi: Likewise.
40244         * doc/glibc-functions/strcasestr.texi: Likewise.
40245
40246 2008-12-15  Bruno Haible  <bruno@clisp.org>
40247
40248         Fix compilation error on OSF/1 4.0.
40249         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40250         <sys/time.h>, simply delegate to the system header.
40251         Reported by Daniel Richard G. <oss@teragram.com>.
40252
40253 2008-12-15  Bruno Haible  <bruno@clisp.org>
40254
40255         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40256         * doc/posix-functions/fchmodat.texi: Likewise.
40257         * doc/posix-functions/fchownat.texi: Likewise.
40258         * doc/posix-functions/fdopendir.texi: Likewise.
40259         * doc/posix-functions/fstatat.texi: Likewise.
40260         * doc/posix-functions/mkdirat.texi: Likewise.
40261         * doc/posix-functions/unlinkat.texi: Likewise.
40262
40263 2008-12-14  Bruno Haible  <bruno@clisp.org>
40264
40265         Update doc for POSIX:2008.
40266         * doc/posix-functions/faccessat.texi: New file.
40267         * doc/posix-functions/fchmodat.texi: New file.
40268         * doc/posix-functions/fchownat.texi: New file.
40269         * doc/posix-functions/fdopendir.texi: New file.
40270         * doc/posix-functions/fstatat.texi: New file.
40271         * doc/posix-functions/futimens.texi: New file.
40272         * doc/posix-functions/linkat.texi: New file.
40273         * doc/posix-functions/mkdirat.texi: New file.
40274         * doc/posix-functions/mkfifoat.texi: New file.
40275         * doc/posix-functions/mknodat.texi: New file.
40276         * doc/posix-functions/open_wmemstream.texi: New file.
40277         * doc/posix-functions/openat.texi: New file.
40278         * doc/posix-functions/psiginfo.texi: New file.
40279         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40280         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40281         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40282         * doc/posix-functions/readlinkat.texi: New file.
40283         * doc/posix-functions/renameat.texi: New file.
40284         * doc/posix-functions/strerror_l.texi: New file.
40285         * doc/posix-functions/symlinkat.texi: New file.
40286         * doc/posix-functions/unlinkat.texi: New file.
40287         * doc/posix-functions/utimensat.texi: New file.
40288         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40289
40290 2008-12-14  Bruno Haible  <bruno@clisp.org>
40291
40292         Update doc for POSIX:2008.
40293         * doc/posix-functions/alphasort.texi: Renamed from
40294         doc/glibc-functions/alphasort.texi.
40295         * doc/posix-functions/dirfd.texi: Renamed from
40296         doc/glibc-functions/dirfd.texi.
40297         * doc/posix-functions/dprintf.texi: Renamed from
40298         doc/glibc-functions/dprintf.texi.
40299         * doc/posix-functions/duplocale.texi: Renamed from
40300         doc/glibc-functions/duplocale.texi.
40301         * doc/posix-functions/fexecve.texi: Renamed from
40302         doc/glibc-functions/fexecve.texi.
40303         * doc/posix-functions/fmemopen.texi: Renamed from
40304         doc/glibc-functions/fmemopen.texi.
40305         * doc/posix-functions/freelocale.texi: Renamed from
40306         doc/glibc-functions/freelocale.texi.
40307         * doc/posix-functions/getdate_err.texi: Renamed from
40308         doc/glibc-functions/getdate_err.texi.
40309         * doc/posix-functions/isalnum_l.texi: Renamed from
40310         doc/glibc-functions/isalnum_l.texi.
40311         * doc/posix-functions/isalpha_l.texi: Renamed from
40312         doc/glibc-functions/isalpha_l.texi.
40313         * doc/posix-functions/isblank_l.texi: Renamed from
40314         doc/glibc-functions/isblank_l.texi.
40315         * doc/posix-functions/iscntrl_l.texi: Renamed from
40316         doc/glibc-functions/iscntrl_l.texi.
40317         * doc/posix-functions/isdigit_l.texi: Renamed from
40318         doc/glibc-functions/isdigit_l.texi.
40319         * doc/posix-functions/isgraph_l.texi: Renamed from
40320         doc/glibc-functions/isgraph_l.texi.
40321         * doc/posix-functions/islower_l.texi: Renamed from
40322         doc/glibc-functions/islower_l.texi.
40323         * doc/posix-functions/isprint_l.texi: Renamed from
40324         doc/glibc-functions/isprint_l.texi.
40325         * doc/posix-functions/ispunct_l.texi: Renamed from
40326         doc/glibc-functions/ispunct_l.texi.
40327         * doc/posix-functions/isspace_l.texi: Renamed from
40328         doc/glibc-functions/isspace_l.texi.
40329         * doc/posix-functions/isupper_l.texi: Renamed from
40330         doc/glibc-functions/isupper_l.texi.
40331         * doc/posix-functions/iswalnum_l.texi: Renamed from
40332         doc/glibc-functions/iswalnum_l.texi.
40333         * doc/posix-functions/iswalpha_l.texi: Renamed from
40334         doc/glibc-functions/iswalpha_l.texi.
40335         * doc/posix-functions/iswblank_l.texi: Renamed from
40336         doc/glibc-functions/iswblank_l.texi.
40337         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40338         doc/glibc-functions/iswcntrl_l.texi.
40339         * doc/posix-functions/iswctype_l.texi: Renamed from
40340         doc/glibc-functions/iswctype_l.texi.
40341         * doc/posix-functions/iswdigit_l.texi: Renamed from
40342         doc/glibc-functions/iswdigit_l.texi.
40343         * doc/posix-functions/iswgraph_l.texi: Renamed from
40344         doc/glibc-functions/iswgraph_l.texi.
40345         * doc/posix-functions/iswlower_l.texi: Renamed from
40346         doc/glibc-functions/iswlower_l.texi.
40347         * doc/posix-functions/iswprint_l.texi: Renamed from
40348         doc/glibc-functions/iswprint_l.texi.
40349         * doc/posix-functions/iswpunct_l.texi: Renamed from
40350         doc/glibc-functions/iswpunct_l.texi.
40351         * doc/posix-functions/iswspace_l.texi: Renamed from
40352         doc/glibc-functions/iswspace_l.texi.
40353         * doc/posix-functions/iswupper_l.texi: Renamed from
40354         doc/glibc-functions/iswupper_l.texi.
40355         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40356         doc/glibc-functions/iswxdigit_l.texi.
40357         * doc/posix-functions/isxdigit_l.texi: Renamed from
40358         doc/glibc-functions/isxdigit_l.texi.
40359         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40360         doc/glibc-functions/mbsnrtowcs.texi.
40361         * doc/posix-functions/mkdtemp.texi: Renamed from
40362         doc/glibc-functions/mkdtemp.texi.
40363         * doc/posix-functions/newlocale.texi: Renamed from
40364         doc/glibc-functions/newlocale.texi.
40365         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40366         doc/glibc-functions/nl_langinfo_l.texi.
40367         * doc/posix-functions/open_memstream.texi: Renamed from
40368         doc/glibc-functions/open_memstream.texi.
40369         * doc/posix-functions/opterr.texi: Renamed from
40370         doc/glibc-functions/opterr.texi.
40371         * doc/posix-functions/optind.texi: Renamed from
40372         doc/glibc-functions/optind.texi.
40373         * doc/posix-functions/optopt.texi: Renamed from
40374         doc/glibc-functions/optopt.texi.
40375         * doc/posix-functions/psignal.texi: Renamed from
40376         doc/glibc-functions/psignal.texi.
40377         * doc/posix-functions/scandir.texi: Renamed from
40378         doc/glibc-functions/scandir.texi.
40379         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40380         doc/glibc-functions/sched_get_priority_min.texi.
40381         * doc/posix-functions/signgam.texi: Renamed from
40382         doc/glibc-functions/signgam.texi.
40383         * doc/posix-functions/stpcpy.texi: Renamed from
40384         doc/glibc-functions/stpcpy.texi.
40385         * doc/posix-functions/stpncpy.texi: Renamed from
40386         doc/glibc-functions/stpncpy.texi.
40387         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40388         doc/glibc-functions/strcasecmp_l.texi.
40389         * doc/posix-functions/strcoll_l.texi: Renamed from
40390         doc/glibc-functions/strcoll_l.texi.
40391         * doc/posix-functions/strfmon_l.texi: Renamed from
40392         doc/glibc-functions/strfmon_l.texi.
40393         * doc/posix-functions/strftime_l.texi: Renamed from
40394         doc/glibc-functions/strftime_l.texi.
40395         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40396         doc/glibc-functions/strncasecmp_l.texi.
40397         * doc/posix-functions/strndup.texi: Renamed from
40398         doc/glibc-functions/strndup.texi.
40399         * doc/posix-functions/strnlen.texi: Renamed from
40400         doc/glibc-functions/strnlen.texi.
40401         * doc/posix-functions/strsignal.texi: Renamed from
40402         doc/glibc-functions/strsignal.texi.
40403         * doc/posix-functions/strxfrm_l.texi: Renamed from
40404         doc/glibc-functions/strxfrm_l.texi.
40405         * doc/posix-functions/timer_gettime.texi: Renamed from
40406         doc/glibc-functions/timer_gettime.texi.
40407         * doc/posix-functions/tolower_l.texi: Renamed from
40408         doc/glibc-functions/tolower_l.texi.
40409         * doc/posix-functions/toupper_l.texi: Renamed from
40410         doc/glibc-functions/toupper_l.texi.
40411         * doc/posix-functions/towctrans_l.texi: Renamed from
40412         doc/glibc-functions/towctrans_l.texi.
40413         * doc/posix-functions/towlower_l.texi: Renamed from
40414         doc/glibc-functions/towlower_l.texi.
40415         * doc/posix-functions/towupper_l.texi: Renamed from
40416         doc/glibc-functions/towupper_l.texi.
40417         * doc/posix-functions/uselocale.texi: Renamed from
40418         doc/glibc-functions/uselocale.texi.
40419         * doc/posix-functions/vdprintf.texi: Renamed from
40420         doc/glibc-functions/vdprintf.texi.
40421         * doc/posix-functions/wcpcpy.texi:
40422         Renamed from doc/glibc-functions/wcpcpy.texi.
40423         * doc/posix-functions/wcpncpy.texi: Renamed from
40424         doc/glibc-functions/wcpncpy.texi.
40425         * doc/posix-functions/wcscasecmp.texi: Renamed from
40426         doc/glibc-functions/wcscasecmp.texi.
40427         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40428         doc/glibc-functions/wcscasecmp_l.texi.
40429         * doc/posix-functions/wcscoll_l.texi: Renamed from
40430         doc/glibc-functions/wcscoll_l.texi.
40431         * doc/posix-functions/wcsdup.texi: Renamed from
40432         doc/glibc-functions/wcsdup.texi.
40433         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40434         doc/glibc-functions/wcsncasecmp.texi.
40435         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40436         doc/glibc-functions/wcsncasecmp_l.texi.
40437         * doc/posix-functions/wcsnlen.texi: Renamed from
40438         doc/glibc-functions/wcsnlen.texi.
40439         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40440         doc/glibc-functions/wcsnrtombs.texi.
40441         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40442         doc/glibc-functions/wcsxfrm_l.texi.
40443         * doc/posix-functions/wctrans_l.texi: Renamed from
40444         doc/glibc-functions/wctrans_l.texi.
40445         * doc/posix-functions/wctype_l.texi: Renamed from
40446         doc/glibc-functions/wctype_l.texi.
40447         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40448         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40449         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40450         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40451         these subsections.
40452         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40453         Remove sections.
40454
40455 2008-12-14  Bruno Haible  <bruno@clisp.org>
40456
40457         Update doc for POSIX:2008.
40458         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40459
40460 2008-12-14  Bruno Haible  <bruno@clisp.org>
40461
40462         Update doc for POSIX:2008.
40463         * doc/pastposix-functions/bcmp.texi: Renamed from
40464         doc/posix-functions/bcmp.texi.
40465         * doc/pastposix-functions/bcopy.texi: Renamed from
40466         doc/posix-functions/bcopy.texi.
40467         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40468         doc/posix-functions/bsd_signal.texi.
40469         * doc/pastposix-functions/bzero.texi: Renamed from
40470         doc/posix-functions/bzero.texi.
40471         * doc/pastposix-functions/ecvt.texi: Renamed from
40472         doc/posix-functions/ecvt.texi.
40473         * doc/pastposix-functions/fcvt.texi: Renamed from
40474         doc/posix-functions/fcvt.texi.
40475         * doc/pastposix-functions/ftime.texi: Renamed from
40476         doc/posix-functions/ftime.texi.
40477         * doc/pastposix-functions/gcvt.texi: Renamed from
40478         doc/posix-functions/gcvt.texi.
40479         * doc/pastposix-functions/getcontext.texi: Renamed from
40480         doc/posix-functions/getcontext.texi.
40481         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40482         doc/posix-functions/gethostbyaddr.texi.
40483         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40484         doc/posix-functions/gethostbyname.texi.
40485         * doc/pastposix-functions/getwd.texi: Renamed from
40486         doc/posix-functions/getwd.texi.
40487         * doc/pastposix-functions/h_errno.texi: Renamed from
40488         doc/posix-functions/h_errno.texi.
40489         * doc/pastposix-functions/index.texi: Renamed from
40490         doc/posix-functions/index.texi.
40491         * doc/pastposix-functions/makecontext.texi: Renamed from
40492         doc/posix-functions/makecontext.texi.
40493         * doc/pastposix-functions/mktemp.texi: Renamed from
40494         doc/posix-functions/mktemp.texi.
40495         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40496         doc/posix-functions/pthread_attr_getstackaddr.texi.
40497         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40498         doc/posix-functions/pthread_attr_setstackaddr.texi.
40499         * doc/pastposix-functions/rindex.texi: Renamed from
40500         doc/posix-functions/rindex.texi.
40501         * doc/pastposix-functions/scalb.texi: Renamed from
40502         doc/posix-functions/scalb.texi.
40503         * doc/pastposix-functions/setcontext.texi: Renamed from
40504         doc/posix-functions/setcontext.texi.
40505         * doc/pastposix-functions/swapcontext.texi: Renamed from
40506         doc/posix-functions/swapcontext.texi.
40507         * doc/pastposix-functions/ualarm.texi: Renamed from
40508         doc/posix-functions/ualarm.texi.
40509         * doc/pastposix-functions/usleep.texi: Renamed from
40510         doc/posix-functions/usleep.texi.
40511         * doc/pastposix-functions/vfork.texi: Renamed from
40512         doc/posix-functions/vfork.texi.
40513         * doc/pastposix-functions/wcswcs.texi: Renamed from
40514         doc/posix-functions/wcswcs.texi.
40515         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40516         (Function Substitutes): Update.
40517
40518 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40519
40520         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40521         m4/strerror.m4.
40522
40523 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40524             Bruno Haible  <bruno@clisp.org>
40525
40526         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40527
40528 2008-12-13  Bruno Haible  <bruno@clisp.org>
40529
40530         * modules/strtoull (Depends-on): Remove unistd.
40531
40532 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40533
40534         * modules/strtoull (Depends-on): Add stdlib.
40535
40536 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40537
40538         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40539
40540 2008-12-10  Jim Meyering  <meyering@redhat.com>
40541
40542         gl_ASSERT: don't say assertions are disabled when they're not
40543         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40544         "checking whether to enable assertions... no", when they are in
40545         fact enabled.  This is solely a bug in the output of configure.
40546         In spite of saying "no", NDEBUG was not defined in that case.
40547         Also, as noted by Eric Blake, leave assertions enabled upon
40548         --enable-assert=INVALID.
40549
40550 2008-12-10  Bruno Haible  <bruno@clisp.org>
40551
40552         Change MODULES.html to refer to POSIX:2008 where possible.
40553         * MODULES.html.sh (POSIX2008_URL): New variable.
40554         (posix_headers): Remove sys/timeb, ucontext.
40555         (posix2001_headers): New variable.
40556         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40557         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40558         index, makecontext, mktemp, pthread_attr_getstackaddr,
40559         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40560         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40561         (posix2001_functions): New variable.
40562         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40563         otherwise.
40564
40565 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40566
40567         add missing include to parse-duration.c
40568         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40569         * modules/parse-duration (Depends-on): Add xalloc.
40570
40571         fix sed script reading maint.mk
40572         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40573         (syntax-check-rules): Use it.
40574
40575 2008-12-09  Bruno Haible  <bruno@clisp.org>
40576
40577         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40578         MacOS X 10.4/PowerPC.
40579         Reported by Simon Josefsson.
40580
40581 2008-12-08  Jim Meyering  <meyering@redhat.com>
40582
40583         work around mingw's lack of some S_IF definitions
40584         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40585         Reported by Simon Josefsson.
40586
40587 2008-12-08  Bruno Haible  <bruno@clisp.org>
40588
40589         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40590         applied to variables. Needed on MacOS X 10.4/PowerPC.
40591         Reported by Simon Josefsson.
40592
40593 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40594         and Eric Blake  <ebb9@byu.net>
40595
40596         assert: honor --enable-assert
40597         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40598         order to honor --enable-assert, rather than treating it as a
40599         synonym for --disable-assert.
40600
40601 2008-12-08  Jim Meyering  <meyering@redhat.com>
40602
40603         * lib/posixtm.c: Remove now-useless declaration of mktime.
40604
40605         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40606
40607 2008-12-07  Bruno Haible  <bruno@clisp.org>
40608
40609         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40610         test_once): Mark functions as static.
40611         * tests/test-tls.c (test_tls): Likewise.
40612
40613 2008-12-07  Bruno Haible  <bruno@clisp.org>
40614
40615         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40616         iconv_register_autodetect.
40617
40618 2008-12-07  Jim Meyering  <meyering@redhat.com>
40619
40620         posixtm.c: avoid a warning
40621         * lib/posixtm.c (posixtime): Don't initialize tm0.
40622         It's no longer needed to placate gcc4's -Wuninitialized,
40623         and the attempt to placate would elicit a new warning.
40624
40625         unicodeio.c: mark unused parameters
40626         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40627         (fallback_failure_callback): Likewise.
40628
40629 2008-12-07  Bruno Haible  <bruno@clisp.org>
40630
40631         * gnulib-tool (func_create_testdir): When building the tests
40632         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40633         Reported by Simon Josefsson.
40634
40635 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40636
40637         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40638
40639 2008-12-06  Bruno Haible  <bruno@clisp.org>
40640
40641         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40642         Suggested by Eric Blake.
40643
40644 2008-12-06  Bruno Haible  <bruno@clisp.org>
40645
40646         Fix a c-stack test failure on MacOS X.
40647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40648         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40649         handler for SIGBUS as well.
40650         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40651         install a signal handler for SIGBUS as well.
40652         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40653
40654 2008-12-06  Bruno Haible  <bruno@clisp.org>
40655
40656         Advocacy documentation.
40657         * doc/gnulib-intro.texi (Benefits): New section.
40658         * doc/gnulib.texi: Update.
40659
40660 2008-12-06  Bruno Haible  <bruno@clisp.org>
40661
40662         Document the 'manywarnings' module.
40663         * doc/manywarnings.texi: New file.
40664         * doc/gnulib.texi: Include it.
40665
40666 2008-12-05  Eric Blake  <ebb9@byu.net>
40667
40668         tests: silence some gcc warnings
40669         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40670         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40671         type mismatches.
40672
40673 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40674             Bruno Haible  <bruno@clisp.org>
40675
40676         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40677
40678 2008-11-29  Jim Meyering  <meyering@redhat.com>
40679
40680         unicodeio.c: mark unused parameters
40681         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40682         (fallback_failure_callback): Likewise.
40683
40684         fts: fix a thinko
40685         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40686         (set_stat_type): Return S_IF*-valued "type" directly.
40687         Prompted by James Youngman's spotting a related bug.
40688         Confirmed by further testing through find.
40689
40690         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40691         * lib/fts.c (D_TYPE): Define.
40692         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40693         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40694         (s_ifmt_shift_bits): New function.
40695         (set_stat_type): New function.
40696         (fts_build): When not calling fts_stat, call set_stat_type
40697         to propagate dirent.d_type info to fts_read caller.
40698         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40699         fts_statp->st_mode type information may be valid.
40700
40701 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40702
40703         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40704         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40705         <sds@gnu.org>.
40706
40707 2008-11-20  Bruno Haible  <bruno@clisp.org>
40708
40709         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40710         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40711         INCLUDE_NEXT.
40712         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40713         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40714         * modules/math (Makefile.am): Substitute
40715         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40716         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40717
40718 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40719             Bruno Haible  <bruno@clisp.org>
40720
40721         * lib/stdint.in.h: Define all type macros so that their expansion is
40722         a single typedef'ed token. Fixes a compilation failure in Boost which
40723         does "using ::int8_t;".
40724
40725 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40726
40727         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40728         gl_MANYWARN_ALL_GCC.
40729         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40730         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40731         * modules/manywarnings: New file.
40732         * MODULES.html.sh: Mention manywarnings module.
40733
40734 2008-11-18  Bruno Haible  <bruno@clisp.org>
40735
40736         * doc/gnulib-tool.texi (Unit tests): New section.
40737
40738 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40739
40740         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40741         paths like 'lib/po/foo.po'.
40742
40743 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40744
40745         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40746         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40747
40748 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40749
40750         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40751         parameter works.
40752
40753 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40754
40755         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40756
40757 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40758
40759         * modules/parse-duration-tests: New file.
40760         * tests/test-parse-duration.sh: New file.
40761         * tests/test-parse-duration.c: New file.
40762
40763         New module 'parse-duration'.
40764         * lib/parse-duration.h: New file.
40765         * lib/parse-duration.c: New file.
40766         * modules/parse-duration: New file.
40767
40768 2008-11-17  Bruno Haible  <bruno@clisp.org>
40769
40770         * tests/test-select-out.sh: Comment out the first pipe test.
40771         Reported by Simon Josefsson.
40772
40773 2008-11-17  Bruno Haible  <bruno@clisp.org>
40774
40775         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40776         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40777         gl_HOSTENT.
40778
40779 2008-11-17  Bruno Haible  <bruno@clisp.org>
40780
40781         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40782         -lnetwork and -lnet. Needed for Haiku and BeOS.
40783
40784 2008-11-16  Bruno Haible  <bruno@clisp.org>
40785
40786         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40787
40788 2008-11-16  Bruno Haible  <bruno@clisp.org>
40789
40790         Avoid test failure on Haiku.
40791         * tests/test-fsync.c: Include <errno.h>.
40792         (main): Don't require that fsync (0) fails.
40793
40794 2008-11-15  Bruno Haible  <bruno@clisp.org>
40795
40796         New module 'hostent'.
40797         * modules/hostent: New file.
40798         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40799
40800 2008-11-15  Bruno Haible  <bruno@clisp.org>
40801
40802         New module 'servent'.
40803         * modules/servent: New file.
40804         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40805
40806 2008-11-15  Bruno Haible  <bruno@clisp.org>
40807
40808         Avoid generating same test program with two different rules.
40809         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40810         test-frexp to test-frexp-nolibm.
40811         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40812         test-frexpl to test-frexpl-nolibm.
40813
40814 2008-11-15  Bruno Haible  <bruno@clisp.org>
40815
40816         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40817         $(FREXPL_LIBM).
40818
40819 2008-11-15  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/netdb.in.h: Activate the definitions also when the system's
40822         <netdb.h> has 'struct addrinfo'.
40823         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40824         EAI_OVERFLOW or AI_NUMERICSERV.
40825         * doc/posix-headers/netdb.texi: Document the problem.
40826
40827 2008-11-15  Bruno Haible  <bruno@clisp.org>
40828
40829         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40830
40831         Make the 'sched' module work on platforms where <sched.h> exists but
40832         is incomplete (such as Haiku).
40833         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40834         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40835         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40836         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40837         HAVE_STRUCT_SCHED_PARAM.
40838         * modules/sched (Depends-on): Add include_next.
40839         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40840         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40841         * doc/posix-headers/sched.texi: Document the issue.
40842
40843 2008-11-13  Jim Meyering  <meyering@redhat.com>
40844
40845         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40846         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40847         test would fail due to the difference in the Report bugs to ...
40848         line.  The expected address is empty, "<>", while the actual
40849         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40850
40851 2008-11-12  Bruno Haible  <bruno@clisp.org>
40852
40853         lstat: don't compile lstat.c on systems lacking lstat
40854         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40855         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40856         Reported by Daniel P. Berrange via Jim Meyering.
40857
40858 2008-11-12  Jim Meyering  <meyering@redhat.com>
40859
40860         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40861
40862 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40863
40864         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40865         instead.
40866
40867 2008-11-12  Bruno Haible  <bruno@clisp.org>
40868
40869         * lib/unicodeio.c: Include unistr.h.
40870         (utf8_wctomb): Remove function.
40871         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40872
40873 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40874
40875         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40876         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40877         <bruno@clisp.org>.
40878         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40879
40880 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40881
40882         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40883         * doc/gnulib.texi: Add section for warnings.
40884
40885 2008-11-11  Bruno Haible  <bruno@clisp.org>
40886
40887         * lib/sockets.h: Add a comment.
40888
40889 2008-11-11  Karl Berry  <karl@gnu.org>
40890
40891         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40892
40893 2008-11-11  Eric Blake  <ebb9@byu.net>
40894
40895         fdl.texi: avoid git symlinks
40896         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40897
40898 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40899
40900         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40901
40902 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40903
40904         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40905         (gl_WARN_ADD): Substitute $2 if literal.
40906
40907 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40908
40909         * m4/warning.m4: Remove.
40910
40911 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40912
40913         * m4/warnings.m4: Almost complete rewrite. :-)
40914
40915 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40916
40917         * modules/warnings: New module.
40918         * m4/warnings.m4: New file.
40919         * MODULES.html.sh: Mention warnings module.
40920         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40921         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40922
40923 2008-11-10  Eric Blake  <ebb9@byu.net>
40924
40925         fdl.texi: make a symlink to the latest version
40926         * doc/standards.texi: Revert today's earlier change.
40927         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40928         * doc/fdl.texi: ...and replace this with a symlink to the newer
40929         fdl-1.3.texi.
40930
40931 2008-11-10  Bruno Haible  <bruno@clisp.org>
40932
40933         * tests/test-select-fd.c (main): Accept the result file name as fourth
40934         argument.
40935         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40936         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40937
40938 2008-11-10  Bruno Haible  <bruno@clisp.org>
40939
40940         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40941         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40942         as autoconf-substituted macros.
40943         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40945         gl_NETDB_H_DEFAULTS. Set these variables.
40946         * modules/netdb (Makefile.am): Substitute these variables.
40947
40948 2008-11-10  Eric Blake  <ebb9@byu.net>
40949
40950         standards.texi: include correct file for FDL 1.3
40951         * doc/standards.texi (GNU Free Documentation License): Change
40952         include file to pull in FDL 1.3, not 1.2.
40953
40954         fdl.texi: revert accidental change to license
40955         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40956
40957 2008-11-10  Bruno Haible  <bruno@clisp.org>
40958
40959         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40960         cross-compiling guesses also when the native compile gives no result.
40961
40962 2008-11-10  Bruno Haible  <bruno@clisp.org>
40963
40964         * lib/spawni.c (__spawni): Force variable into the stack.
40965
40966 2008-11-10  Bruno Haible  <bruno@clisp.org>
40967
40968         Add support for Haiku.
40969         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40970         glibc and BeOS, but also on Haiku.
40971         * lib/fpurge.c (fpurge): Likewise.
40972         * lib/freadable.c (freadable): Likewise.
40973         * lib/freadahead.c (freadahead): Likewise.
40974         * lib/freading.c (freading): Likewise.
40975         * lib/freadptr.c (freadptr): Likewise.
40976         * lib/freadseek.c (freadptrinc): Likewise.
40977         * lib/fseeko.c (rpl_fseeko): Likewise.
40978         * lib/fseterr.c (fseterr): Likewise.
40979         * lib/fwritable.c (fwritable): Likewise.
40980         * lib/fwriting.c (fwriting): Likewise.
40981         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40982
40983 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40984
40985         * lib/config.charset: Treat Haiku like BeOS.
40986
40987 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40988
40989         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40990         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40991
40992 2008-11-08  Bruno Haible  <bruno@clisp.org>
40993
40994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40995         AC_CACHE_CHECK.
40996
40997 2008-11-08  Bruno Haible  <bruno@clisp.org>
40998
40999         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41000
41001 2008-11-08  Bruno Haible  <bruno@clisp.org>
41002
41003         * tests/test-select-fd.c: New file.
41004         * tests/test-select-in.sh: New file.
41005         * tests/test-select-out.sh: New file.
41006         * tests/test-select-stdin.c: New file.
41007         * modules/select-tests (Files): Add the new files.
41008         (Depends-on): Add gettimeofday.
41009         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41010         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41011         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41012
41013 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41014             Bruno Haible  <bruno@clisp.org>
41015
41016         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41017
41018 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41019
41020         * build-aux/pmccabe2html: Added support for C++ source files.
41021
41022 2008-11-05  Ben Pfaff  <blp@gnu.org>
41023
41024         Fix lib/close.c build on Windows.
41025         * modules/close (Files): Add lib/w32sock.h.
41026
41027 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41028
41029         Accept Bison's NEWS format.
41030         * build-aux/announce-gen (print_news_deltas): Tweak
41031         $re_prefix.
41032
41033 2008-11-04  Bruno Haible  <bruno@clisp.org>
41034
41035         * modules/random_r (Maintainer): Add glibc.
41036
41037 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41038
41039         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41040         by karl@freefriends.org (Karl Berry).
41041         * doc/alloca.texi: Likewise.
41042         * doc/c-ctype.texi: Likewise.
41043         * doc/c-strcase.texi: Likewise.
41044         * doc/c-strcaseeq.texi: Likewise.
41045         * doc/c-strcasestr.texi: Likewise.
41046         * doc/c-strstr.texi: Likewise.
41047         * doc/c-strtod.texi: Likewise.
41048         * doc/c-strtold.texi: Likewise.
41049         * doc/ctime.texi: Likewise.
41050         * doc/error.texi: Likewise.
41051         * doc/fdl.texi: Likewise.
41052         * doc/gcd.texi: Likewise.
41053         * doc/getdate.texi: Likewise.
41054         * doc/gnulib-intro.texi: Likewise.
41055         * doc/gnulib-tool.texi: Likewise.
41056         * doc/gnulib.texi: Likewise.
41057         * doc/inet_ntoa.texi: Likewise.
41058         * doc/maintain.texi: Likewise.
41059         * doc/make-stds.texi: Likewise.
41060         * doc/quote.texi: Likewise.
41061         * doc/regexprops-generic.texi: Likewise.
41062         * doc/standards.texi: Likewise.
41063         * doc/verify.texi: Likewise.
41064         * doc/visibility.texi: Likewise.
41065         * doc/gnulib.texi (GNU Free Documentation License): Include
41066         fdl-1.3.texi instead of fdl.texi.
41067
41068 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41069
41070         * doc/fdl-1.3.texi: New file, from
41071         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41072         * modules/fdl-1.3: Add.
41073         * MODULES.html.sh: Add fdl-1.3.
41074
41075 2008-11-03  Bruno Haible  <bruno@clisp.org>
41076
41077         Make determination of absolute name of header file work with AIX xlc.
41078         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41079         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41080         preprocessing.
41081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41082         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41083
41084 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41085
41086         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41087         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41088         <ludo@gnu.org>.
41089
41090 2008-11-02  Bruno Haible  <bruno@clisp.org>
41091
41092         Mark 'strpbrk' obsolete.
41093         * modules/strpbrk (Status, Notice): New sections.
41094         * modules/strtok_r (Depends-on): Add strpbrk.
41095
41096 2008-11-02  Bruno Haible  <bruno@clisp.org>
41097
41098         Mark 'strdup' obsolete.
41099         * modules/strdup (Status, Notice): New sections.
41100         * modules/findprog (Depends-on): Add strdup.
41101         * modules/getaddrinfo (Depends-on): Likewise.
41102         * modules/localename (Depends-on): Likewise.
41103         * modules/relocatable-lib (Depends-on): Likewise.
41104         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41105         * modules/relocatable-prog (Depends-on): Likewise.
41106         * modules/trim (Depends-on): Likewise.
41107         * modules/unictype/gen-ctype (Depends-on): Likewise.
41108         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41109
41110 2008-11-02  Bruno Haible  <bruno@clisp.org>
41111
41112         Mark 'strcspn' obsolete.
41113         * modules/strcspn (Status, Notice): New sections.
41114
41115 2008-11-02  Bruno Haible  <bruno@clisp.org>
41116
41117         Mark 'rmdir' obsolete.
41118         * modules/rmdir (Status, Notice): New sections.
41119         * modules/clean-temp (Depends-on): Add rmdir.
41120         * modules/openat (Depends-on): Likewise.
41121
41122 2008-11-02  Bruno Haible  <bruno@clisp.org>
41123
41124         Mark 'raise' obsolete.
41125         * modules/raise (Status, Notice): New sections.
41126         (Include): Specify <signal.h>.
41127         * modules/stdio (Depends-on): Add raise.
41128         * modules/write (Depends-on): Likewise.
41129
41130 2008-11-02  Bruno Haible  <bruno@clisp.org>
41131
41132         Mark 'memset' obsolete.
41133         * modules/memset (Status, Notice): New sections.
41134
41135 2008-11-02  Bruno Haible  <bruno@clisp.org>
41136
41137         Mark 'memmove' obsolete.
41138         * modules/memmove (Status, Notice): New sections.
41139         * modules/argp (Depends-on): Add memmove.
41140         * modules/argz (Depends-on): Likewise.
41141         * modules/canonicalize (Depends-on): Likewise.
41142         * modules/canonicalize-lgpl (Depends-on): Likewise.
41143         * modules/fts (Depends-on): Likewise.
41144         * modules/getcwd (Depends-on): Likewise.
41145         * modules/human (Depends-on): Likewise.
41146         * modules/regex (Depends-on): Likewise.
41147         * modules/striconveh (Depends-on): Likewise.
41148         * modules/trim (Depends-on): Likewise.
41149         * modules/unistr/u8-move (Depends-on): Likewise.
41150         * modules/unistr/u16-move (Depends-on): Likewise.
41151         * modules/unistr/u32-move (Depends-on): Likewise.
41152
41153 2008-11-02  Bruno Haible  <bruno@clisp.org>
41154
41155         Mark 'memcpy' obsolete.
41156         * modules/memcpy (Status, Notice): New sections.
41157
41158 2008-11-02  Bruno Haible  <bruno@clisp.org>
41159
41160         Mark 'memcmp' obsolete.
41161         * modules/memcmp (Status, Notice): New sections.
41162         * modules/argmatch (Depends-on): Add memchr.
41163         * modules/backupfile (Depends-on): Likewise.
41164         * modules/c-strcasestr (Depends-on): Likewise.
41165         * modules/crypto/des (Depends-on): Likewise.
41166         * modules/csharpcomp (Depends-on): Likewise.
41167         * modules/fnmatch (Depends-on): Likewise.
41168         * modules/git-merge-changelog (Depends-on): Likewise.
41169         * modules/isnand (Depends-on): Likewise.
41170         * modules/isnand-nolibm (Depends-on): Likewise.
41171         * modules/isnanf (Depends-on): Likewise.
41172         * modules/isnanf-nolibm (Depends-on): Likewise.
41173         * modules/isnanl (Depends-on): Likewise.
41174         * modules/isnanl-nolibm (Depends-on): Likewise.
41175         * modules/mbchar (Depends-on): Likewise.
41176         * modules/memcoll (Depends-on): Likewise.
41177         * modules/quotearg (Depends-on): Likewise.
41178         * modules/regex (Depends-on): Likewise.
41179         * modules/relocatable-prog (Depends-on): Likewise.
41180         * modules/same (Depends-on): Likewise.
41181         * modules/signbit (Depends-on): Likewise.
41182         * modules/strcasestr-simple (Depends-on): Likewise.
41183         * modules/unictype/gen-ctype (Depends-on): Likewise.
41184         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41185         * modules/uniname/uniname (Depends-on): Likewise.
41186         * modules/unistr/u8-cmp (Depends-on): Likewise.
41187
41188 2008-11-02  Bruno Haible  <bruno@clisp.org>
41189
41190         Mark 'memchr' obsolete.
41191         * modules/memchr (Status, Notice): New sections.
41192         * modules/argp (Depends-on): Add memchr.
41193         * modules/base64 (Depends-on): Likewise.
41194         * modules/c-strcasestr (Depends-on): Likewise.
41195         * modules/chdir-long (Depends-on): Likewise.
41196         * modules/fnmatch (Depends-on): Likewise.
41197         * modules/getsubopt (Depends-on): Likewise.
41198         * modules/git-merge-changelog (Depends-on): Likewise.
41199         * modules/glob (Depends-on): Likewise.
41200         * modules/strcasestr-simple (Depends-on): Likewise.
41201         * modules/strnlen (Depends-on): Likewise.
41202
41203 2008-11-02  Bruno Haible  <bruno@clisp.org>
41204
41205         Mark 'atexit' obsolete.
41206         * modules/atexit (Status, Notice): New sections.
41207         * modules/chdir-long (Depends-on): Add atexit.
41208         * modules/wait-process (Depends-on): Likewise.
41209
41210 2008-11-02  Bruno Haible  <bruno@clisp.org>
41211
41212         * gnulib-tool: New option --with-obsolete.
41213         (func_usage): Document it.
41214         (func_modules_transitive_closure): Drop obsolete dependencies if
41215         incobsolete is not true.
41216         (func_import): Read and save the incobsolete variable to the cache.
41217
41218 2008-11-02  Bruno Haible  <bruno@clisp.org>
41219
41220         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41221         * gnulib-tool: New option --extract-status.
41222         (func_usage): Document it.
41223         (sed_extract_prog): Recognize it.
41224         (func_get_status): New function.
41225
41226 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41227
41228         * modules/sockets (License): Change from LGPL to LGPLv2+.
41229
41230 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41231
41232         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41233
41234 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41235
41236         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41237         Mention times and sys_times.
41238         * modules/sys_times, modules/sys_times-tests: New modules.
41239         * modules/times, modules/times-tests: Likewise
41240         * m4/sys_times_h.m4: New file.
41241         * lib/sys_times.in.h: Likewise
41242         * lib/times.c: Likewise.
41243         * tests/test-sys_times.c: Likewise.
41244         * tests/test-times.c: Likewise.
41245         * doc/posix-headers/sys_times.texi: Update.
41246         * doc/posix-functions/times.texi: Update.
41247
41248 2008-10-28  Jim Meyering  <meyering@redhat.com>
41249
41250         * modules/tempname (Depends-on): Add lstat.
41251
41252         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41253
41254 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41255
41256         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41257         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41258         using idiom used elsewhere in gnulib.
41259
41260 2008-10-27  Jim Meyering  <meyering@redhat.com>
41261
41262         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41263
41264 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41265
41266         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41267         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41268         programs.
41269         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41270
41271 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41272
41273         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41274
41275 2008-10-27  Bruno Haible  <bruno@clisp.org>
41276
41277         * tests/test-lstat.c: Include <stdio.h>.
41278
41279 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41280
41281         * modules/lstat-tests: New module.
41282         * tests/test-lstat.c: New file.
41283
41284 2008-10-26  Jim Meyering  <meyering@redhat.com>
41285
41286         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41287
41288 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41289             Bruno Haible  <bruno@clisp.org>
41290
41291         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41292         * modules/configmake (Include): Add a note that the include must come
41293         after all system headers.
41294         * lib/javaversion.c: Include configmake.h after all other includes.
41295
41296 2008-10-26  Bruno Haible  <bruno@clisp.org>
41297
41298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41299         HAVE_STRUCT_RANDOM_DATA to 1.
41300         (gl_STDLIB_H): Simplify.
41301
41302 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41303
41304         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41305         substitute HAVE_STRUCT_RANDOM_DATA.
41306         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41307         random_data.
41308         * modules/stdlib (Makefile.am): Substitute
41309         HAVE_STRUCT_RANDOM_DATA.
41310
41311 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41312
41313         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41314         * doc/gnulib-intro.texi (Copyright): Likewise.
41315
41316 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41317
41318         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41319         findings.
41320
41321 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41322             Bruno Haible  <bruno@clisp.org>
41323
41324         * lib/unistd.in.h: Include <winsock2.h>.
41325         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41326         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41327         Provide dummy declarations.
41328         (gethostname): Override.
41329         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41330         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41331         gl_PREREQ_SYS_H_WINSOCK2.
41332         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41333         * doc/posix-functions/gethostname.texi: More details.
41334
41335 2008-10-25  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41338         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41339         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41340
41341         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41342         here ...
41343         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41344         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41345         gl_UNISTD_H_DEFAULTS.
41346
41347 2008-10-25  Eric Blake  <ebb9@byu.net>
41348
41349         signbit: avoid spurious compiler failure
41350         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41351         declarations inside function.
41352
41353 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41354             Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41357         * modules/random_r (Depends-on): Add stdint.
41358
41359 2008-10-24  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41362         Eggert.
41363         * modules/strerror (License): Likewise.
41364
41365 2008-10-24  Jim Meyering  <meyering@redhat.com>
41366
41367         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41368         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41369
41370 2008-10-24  Eric Blake  <ebb9@byu.net>
41371
41372         getgroups: fix compilation when getgroups is available
41373         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41374         but with <config.h> override of getgroups disabled.
41375
41376 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41377
41378         * doc/gnulib.texi (Header files): Add note about C++ problems.
41379         Explained by Bruno Haible <bruno@clisp.org>.
41380
41381 2008-10-23  Bruno Haible  <bruno@clisp.org>
41382
41383         Define a dummy SA_NODEFER macro on Interix.
41384         * lib/signal.in.h (SA_NODEFER): Define fallback.
41385         Reported by Aleksey Cheusov <cheusov@tut.by> via
41386         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41387
41388 2008-10-23  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/freadahead (License): Change to LGPLv2+.
41391         Suggested by Simon Josefsson.
41392
41393 2008-10-23  Jim Meyering  <meyering@redhat.com>
41394
41395         random_r: new module
41396         * modules/random_r: New file.
41397         * m4/random_r.m4: New file.
41398         * lib/random_r.c: New file, from glibc.
41399         * modules/random_r-tests: New file.
41400         * tests/test-random_r.c: New file.
41401         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41402          Declare.
41403         (RAND_MAX): Define.
41404         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41405         * modules/stdlib: Substitute them, too.
41406         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41407         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41408         * doc/glibc-functions/random_r.texi: Likewise.
41409         * doc/glibc-functions/setstate_r.texi: Likewise.
41410         * doc/glibc-functions/srandom_r.texi: Likewise.
41411         * config/srclist.txt: Mention it.
41412
41413 2008-10-23  David Lutterkort  <lutter@redhat.com>
41414
41415         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41416         link requirement
41417
41418 2008-10-23  Jim Meyering  <meyering@redhat.com>
41419
41420         selinux-h: mark parameters of stub functions as intentionally unused
41421         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41422         * lib/se-context.in.h: Likewise.
41423
41424 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41425
41426         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41427
41428 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41429
41430         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41431
41432 2008-10-22  Eric Blake  <ebb9@byu.net>
41433
41434         glthread/thread: avoid compiler warning
41435         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41436         Add unreachable abort to silence compiler.
41437
41438 2008-10-22  Eric Blake  <ebb9@byu.net>
41439
41440         netdb: also supply struct addrinfo for cygwin 1.5.x
41441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41442         older cygwin.
41443         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41444         cygwin.
41445         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41446
41447 2008-10-22  Bruno Haible  <bruno@clisp.org>
41448
41449         * users.txt: Update entry about pspp.
41450
41451 2008-10-21  Bruno Haible  <bruno@clisp.org>
41452
41453         Simplification.
41454         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41455         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41456
41457         Simplification.
41458         * lib/ioctl.c (ioctl): Don't undefine.
41459         * lib/socket.c (socket): Don't undefine.
41460
41461         Remove unused module indicator macros.
41462         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41463         GNULIB_$1 as a C macro.
41464
41465         * doc/posix-functions/close.texi: Undo last change.
41466         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41467         Windows platforms.
41468
41469 2008-10-21  Bruno Haible  <bruno@clisp.org>
41470
41471         Add gethostname() declaration to <unistd.h>.
41472         * lib/unistd.in.h (gethostname): New declaration.
41473         * lib/gethostname.c: Include <unistd.h>.
41474         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41475         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41477         and HAVE_GETHOSTNAME.
41478         * modules/gethostname (Depends-on): Add unistd.
41479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41480         (Include): Specify <unistd.h>.
41481         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41482         HAVE_GETHOSTNAME.
41483         * tests/test-gethostname.c: Include <unistd.h> first.
41484
41485 2008-10-21  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41488         * modules/select-tests (Depends-on): Likewise.
41489         Reported by Simon Josefsson.
41490
41491 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41492
41493         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41494         * lib/accept.c: New file, based on winsock.c.
41495         * lib/bind.c: New file, based on winsock.c.
41496         * lib/connect.c: New file, based on winsock.c.
41497         * lib/getpeername.c: New file, based on winsock.c.
41498         * lib/getsockname.c: New file, based on winsock.c.
41499         * lib/getsockopt.c: New file, based on winsock.c.
41500         * lib/ioctl.c: New file, based on winsock.c.
41501         * lib/listen.c: New file, based on winsock.c.
41502         * lib/recv.c: New file, based on winsock.c.
41503         * lib/recvfrom.c: New file, based on winsock.c.
41504         * lib/send.c: New file, based on winsock.c.
41505         * lib/sendto.c: New file, based on winsock.c.
41506         * lib/setsockopt.c: New file, based on winsock.c.
41507         * lib/shutdown.c: New file, based on winsock.c.
41508         * lib/socket.c: New file, based on winsock.c.
41509         * lib/w32sock.h: New file, based on winsock.c.
41510         * lib/winsock.c: Remove file.
41511         * modules/accept: Likewise.
41512         * modules/bind: Likewise.
41513         * modules/connect: Likewise.
41514         * modules/getpeername: Likewise.
41515         * modules/getsockname: Likewise.
41516         * modules/getsockopt: Likewise.
41517         * modules/ioctl: Likewise.
41518         * modules/listen: Likewise.
41519         * modules/recv: Likewise.
41520         * modules/recvfrom: Likewise.
41521         * modules/send: Likewise.
41522         * modules/sendto: Likewise.
41523         * modules/setsockopt: Likewise.
41524         * modules/shutdown: Likewise.
41525         * modules/socket: Use socket.c instead of winsock.c.
41526         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41527         * doc/posix-functions/accept.texi: Doc fix.
41528         * doc/posix-functions/bind.texi: Doc fix.
41529         * doc/posix-functions/close.texi: Doc fix.
41530         * doc/posix-functions/connect.texi: Doc fix.
41531         * doc/posix-functions/getpeername.texi: Doc fix.
41532         * doc/posix-functions/getsockname.texi: Doc fix.
41533         * doc/posix-functions/getsockopt.texi: Doc fix.
41534         * doc/posix-functions/ioctl.texi: Doc fix.
41535         * doc/posix-functions/listen.texi: Doc fix.
41536         * doc/posix-functions/recv.texi: Doc fix.
41537         * doc/posix-functions/recvfrom.texi: Doc fix.
41538         * doc/posix-functions/send.texi: Doc fix.
41539         * doc/posix-functions/sendto.texi: Doc fix.
41540         * doc/posix-functions/setsockopt.texi: Doc fix.
41541         * doc/posix-functions/shutdown.texi: Doc fix.
41542         * doc/posix-functions/socket.texi: Doc fix.
41543
41544 2008-10-20  Bruno Haible  <bruno@clisp.org>
41545
41546         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41547         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41548         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41549         as an alias for SIGABRT.
41550         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41551         (sigaction): Map it to SIGABRT.
41552         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41553
41554 2008-10-20  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/fts.c: Don't include lstat.h.
41557         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41558
41559         Move the lstat() declaration to <sys/stat.h>.
41560         * lib/lstat.h: Remove file.
41561         * lib/sys_stat.in.h: Add special invocation convention.
41562         (lstat): New declaration.
41563         * lib/lstat.c (orig_lstat): New function.
41564         (rpl_lstat): Use orig_lstat instead of lstat.
41565         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41566         AC_C_INLINE. Set REPLACE_LSTAT.
41567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41568         and REPLACE_LSTAT.
41569         * modules/lstat (Files): Remove lib/lstat.h.
41570         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41571         (Include): Specify <sys/stat.h> instead of lstat.h.
41572         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41573         REPLACE_LSTAT.
41574         * NEWS: Mention the change.
41575
41576 2008-10-20  Bruno Haible  <bruno@clisp.org>
41577
41578         * modules/posix_spawn-tests: New file.
41579         * tests/test-posix_spawn3.c: New file.
41580
41581 2008-10-20  Bruno Haible  <bruno@clisp.org>
41582
41583         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41584         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41585         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41586         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41587         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41588
41589 2008-10-20  Bruno Haible  <bruno@clisp.org>
41590
41591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41592         of posix_spawn on AIX 5.3.
41593
41594 2008-10-20  Bruno Haible  <bruno@clisp.org>
41595
41596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41597
41598 2008-10-20  Bruno Haible  <bruno@clisp.org>
41599
41600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41601         of AC_LANG_PROGRAM.
41602
41603 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41604
41605         * lib/netdb.in.h: Don't define GNU specific constants until they
41606         are supported or needed.  Reported by Bruno Haible
41607         <bruno@clisp.org>.
41608
41609 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41610
41611         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41612
41613 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41614
41615         * lib/getaddrinfo.h: Remove file.
41616         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41617         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41618         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41619         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41620         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41621         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41622         * tests/test-getaddrinfo.c: Likewise.
41623         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41624         * NEWS: Mention change.
41625
41626 2008-10-19  Bruno Haible  <bruno@clisp.org>
41627
41628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41629
41630 2008-10-19  Bruno Haible  <bruno@clisp.org>
41631
41632         * lib/wait-process.c: Include simply <sys/wait.h>.
41633         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41634         WIFSTOPPED): Remove fallback definitions.
41635         * modules/wait-process (Depends-on): Add sys_wait.
41636
41637         New module 'sys_wait'.
41638         * modules/sys_wait: New file.
41639         * lib/sys_wait.in.h: New file, partially copied from
41640         lib/wait-process.c.
41641         * m4/sys_wait_h.m4: New file.
41642         * doc/posix-headers/sys_wait.texi: Mention the new module.
41643
41644 2008-10-19  Bruno Haible  <bruno@clisp.org>
41645
41646         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41647
41648 2008-10-19  Bruno Haible  <bruno@clisp.org>
41649
41650         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41651         * lib/wait-process.c (WAIT_T): Remove type.
41652         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41653         (wait_subprocess): Update.
41654
41655 2008-10-19  Bruno Haible  <bruno@clisp.org>
41656
41657         New module 'atoll'.
41658         * modules/atoll: New file.
41659         * lib/stdlib.in.h (atoll): New declaration.
41660         * lib/atoll.c: New file, from glibc with modifications.
41661         * m4/atoll.m4: New file.
41662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41663         HAVE_ATOLL.
41664         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41665         * doc/posix-functions/atoll.texi: Mention the new module.
41666
41667 2008-10-19  Bruno Haible  <bruno@clisp.org>
41668
41669         Add strtoull() declaration to <stdlib.h>.
41670         * lib/stdlib.in.h (strtoull): New declaration.
41671         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41672         Set HAVE_STRTOULL.
41673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41674         HAVE_STRTOULL.
41675         * modules/strtoull (Depends-on): Add stdlib.
41676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41677         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41678         HAVE_STRTOULL.
41679
41680 2008-10-19  Bruno Haible  <bruno@clisp.org>
41681
41682         Add strtoll() declaration to <stdlib.h>.
41683         * lib/stdlib.in.h (strtoll): New declaration.
41684         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41685         Set HAVE_STRTOLL.
41686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41687         HAVE_STRTOLL.
41688         * modules/strtoll (Depends-on): Add stdlib.
41689         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41690         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41691
41692 2008-10-19  Bruno Haible  <bruno@clisp.org>
41693
41694         * modules/bcopy (Depends-on): Add strings.
41695         (Include): Specify <strings.h>.
41696
41697 2008-10-19  Bruno Haible  <bruno@clisp.org>
41698
41699         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41700
41701 2008-10-19  Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41704         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41705         mingw.
41706
41707 2008-10-19  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/atanl.c: Don't include isnanl.h.
41710         * lib/cosl.c: Likewise.
41711         * lib/ldexpl.c: Likewise.
41712         * lib/logl.c: Likewise.
41713         * lib/sinl.c: Likewise.
41714         * lib/sqrtl.c: Likewise.
41715         * lib/tanl.c: Likewise.
41716
41717         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41718         * lib/isnanf.h: Remove file.
41719         * lib/isnand.h: Remove file.
41720         * lib/isnanl.h: Remove file.
41721         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41722         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41723         macros.
41724         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41725         HAVE_ISNANF, don't define it as a C macro.
41726         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41727         HAVE_ISNAND, don't define it as a C macro.
41728         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41729         HAVE_ISNANL, don't define it as a C macro.
41730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41731         HAVE_ISNAN[FDL].
41732         * modules/isnanf (Files): Remove lib/isnanf.h.
41733         (Depends-on): Add math.
41734         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41735         (Include): Specify <math.h> instead of isnanf.h.
41736         * modules/isnand (Files): Remove lib/isnand.h.
41737         (Depends-on): Add math.
41738         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41739         (Include): Specify <math.h> instead of isnand.h.
41740         * modules/isnanl (Files): Remove lib/isnanl.h.
41741         (Depends-on): Add math.
41742         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41743         (Include): Specify <math.h> instead of isnanl.h.
41744         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41745         HAVE_ISNAN[FDL].
41746         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41747         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41748         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41749         * NEWS: Mention the change.
41750
41751 2008-10-18  Bruno Haible  <bruno@clisp.org>
41752
41753         Add getusershell(), setusershell(), endusershell() declarations to
41754         <unistd.h>.
41755         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41756         declarations.
41757         * lib/getusershell.c: Include unistd.h.
41758         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41759         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41760         HAVE_GETUSERSHELL.
41761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41762         and HAVE_GETUSERSHELL.
41763         * modules/getusershell (Depends-on): Add unistd, extensions.
41764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41765         (Include): Specify <unistd.h>.
41766         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41767         HAVE_GETUSERSHELL.
41768
41769 2008-10-18  Bruno Haible  <bruno@clisp.org>
41770
41771         Add a getloadavg() declaration to <stdlib.h>.
41772         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41773         getloadavg declaration.
41774         (getloadavg): New declaration.
41775         * lib/getloadavg.c: Include <stdlib.h> first.
41776         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41777         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41778         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41780         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41781         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41783         (Include): Specify <stdlib.h>.
41784         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41785         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41786
41787 2008-10-18  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/dirchownmod.c: Don't include lchmod.h.
41790
41791         Move the lchmod() declaration to <sys/stat.h>.
41792         * lib/lchmod.h: Remove file.
41793         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41794         (lchmod): New declaration, moved here from lib/lchown.h.
41795         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41796         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41798         and HAVE_LCHMOD.
41799         * modules/lchmod (Files): Remove lib/lchmod.h.
41800         (Depends-on): Add sys_stat, extensions.
41801         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41802         (Include): Specify <sys/stat.h> instead of lchmod.h.
41803         * modules/sys_stat (Depends-on): Add link-warning.
41804         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41805         definition of GL_LINK_WARNING.
41806         * NEWS: Mention the change.
41807
41808 2008-10-18  Bruno Haible  <bruno@clisp.org>
41809
41810         * lib/fchdir.c: Don't include dirfd.h.
41811         * lib/fts.c: Likewise.
41812         * lib/getcwd.c: Likewise.
41813         * lib/glob.c: Likewise.
41814
41815         Move the dirfd() declaration to <dirent.h>.
41816         * lib/dirfd.h: Remove file.
41817         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41818         (dirfd): New declaration.
41819         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41820         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41821         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41822         HAVE_DECL_DIRFD.
41823         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41824         HAVE_DECL_DIRFD.
41825         * modules/dirfd (Files): Remove lib/dirfd.h.
41826         (Depends-on): Add dirent, extensions.
41827         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41828         (Include): Specify <dirent.h> instead of dirfd.h.
41829         * modules/dirent (Depends-on): Add link-warning.
41830         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41831         definition of GL_LINK_WARNING.
41832         * NEWS: Mention the change.
41833
41834 2008-10-18  Bruno Haible  <bruno@clisp.org>
41835
41836         Move the euidaccess() declaration to <unistd.h>.
41837         * lib/euidaccess.h: Remove file.
41838         * lib/unistd.in.h (euidaccess): New declaration.
41839         * lib/euidaccess.c: Don't include euidaccess.h.
41840         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41841         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41843         and HAVE_EUIDACCESS.
41844         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41845         (Depends-on): Add unistd.
41846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41847         (Include): Specify <unistd.h> instead of euidaccess.h.
41848         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41849         HAVE_EUIDACCESS.
41850         * NEWS: Mention the change.
41851
41852 2008-10-18  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41855
41856         Move the getdomainname() declaration to <unistd.h>.
41857         * lib/getdomainname.h: Remove file.
41858         * lib/unistd.in.h (getdomainname): New declaration.
41859         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41860         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41861         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41862         HAVE_GETDOMAINNAME.
41863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41864         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41865         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41866         (Depends-on): Add unistd, extensions.
41867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41868         (Includes): Specify <unistd.h> instead of getdomainname.h.
41869         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41870         HAVE_GETDOMAINNAME.
41871         * NEWS: Mention the change.
41872
41873 2008-10-18  Bruno Haible  <bruno@clisp.org>
41874
41875         * modules/dirent: New file.
41876         * m4/dirent_h.m4: New file.
41877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41878         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41879         * modules/fchdir (Files): Remove lib/dirent.in.h.
41880         (Depends-on): Add dirent.
41881         (Makefile.am): Move rules to modules/dirent.
41882         * doc/posix-headers/dirent.texi: Mention the new module.
41883
41884 2008-10-18  Bruno Haible  <bruno@clisp.org>
41885
41886         Avoid -Wunused-parameter warnings in public gnulib header files.
41887         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41888         macro.
41889         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41890
41891 2008-10-18  Bruno Haible  <bruno@clisp.org>
41892
41893         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41894         * doc/glibc-functions/error.texi: Mention the module 'error'.
41895         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41896         * doc/glibc-functions/getdomainname.texi: Mention the module
41897         'getdomainname'.
41898         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41899         * doc/glibc-functions/getpagesize.texi: Mention the module
41900         'getpagesize'.
41901         * doc/glibc-functions/getusershell.texi: Mention the module
41902         'getusershell'.
41903         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41904         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41905         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41906         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41907         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41908         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41909         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41910         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41911         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41912         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41913         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41914         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41915         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41916         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41917
41918 2008-10-17  Bruno Haible  <bruno@clisp.org>
41919
41920         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41921         HP-UX and IRIX, use -0.0L.
41922         * tests/test-ceill.c (minus_zero): Likewise.
41923         * tests/test-floorl.c (minus_zero): Likewise.
41924         * tests/test-frexpl.c (minus_zero): Likewise.
41925         * tests/test-isnan.c (minus_zerol): Likewise.
41926         * tests/test-isnanl.h (minus_zero): Likewise.
41927         * tests/test-ldexpl.c (minus_zero): Likewise.
41928         * tests/test-roundl.c (minus_zero): Likewise.
41929         * tests/test-signbit.c (minus_zerol): Likewise.
41930         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41931         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41932         * tests/test-truncl.c (minus_zero): Likewise.
41933         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41934         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41935         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41936         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41937
41938 2008-10-17  Bruno Haible  <bruno@clisp.org>
41939
41940         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41941         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41942         that it gets activated only for gcc >= 3.0.
41943         * lib/dirent.in.h: Likewise.
41944         * lib/errno.in.h: Likewise.
41945         * lib/fcntl.in.h: Likewise.
41946         * lib/float.in.h: Likewise.
41947         * lib/iconv.in.h: Likewise.
41948         * lib/inttypes.in.h: Likewise.
41949         * lib/locale.in.h: Likewise.
41950         * lib/math.in.h: Likewise.
41951         * lib/netdb.in.h: Likewise.
41952         * lib/netinet_in.in.h: Likewise.
41953         * lib/search.in.h: Likewise.
41954         * lib/signal.in.h: Likewise.
41955         * lib/spawn.in.h: Likewise.
41956         * lib/stdarg.in.h: Likewise.
41957         * lib/stdint.in.h: Likewise.
41958         * lib/stdio.in.h: Likewise.
41959         * lib/stdlib.in.h: Likewise.
41960         * lib/string.in.h: Likewise.
41961         * lib/strings.in.h: Likewise.
41962         * lib/sys_file.in.h: Likewise.
41963         * lib/sys_ioctl.in.h: Likewise.
41964         * lib/sys_select.in.h: Likewise.
41965         * lib/sys_socket.in.h: Likewise.
41966         * lib/sys_stat.in.h: Likewise.
41967         * lib/sys_time.in.h: Likewise.
41968         * lib/sysexits.in.h: Likewise.
41969         * lib/time.in.h: Likewise.
41970         * lib/unistd.in.h: Likewise.
41971         * lib/wchar.in.h: Likewise.
41972         * lib/wctype.in.h: Likewise.
41973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41974
41975 2008-10-17  Jim Meyering  <meyering@redhat.com>
41976
41977         ignore-value: don't depend on inline module
41978         * modules/ignore-value (Depends-on): Remove 'inline'.
41979         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41980         Suggestion from Bruno Haible.
41981
41982 2008-10-17  Bruno Haible  <bruno@clisp.org>
41983
41984         New implementation of condition variables for Win32.
41985         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41986         (gl_linked_waitqueue_t): New type.
41987         (gl_cond_t): Use it.
41988         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41989         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41990         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41991         (glthread_cond_init_func, glthread_cond_wait_func,
41992         glthread_cond_timedwait_func, glthread_cond_signal_func,
41993         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41994         Reimplemented on the basis of gl_linked_waitqueue_t.
41995         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41996         gl_waitqueue_t.
41997         (gl_rwlock_t): Update.
41998         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41999
42000 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42001
42002         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42003         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42004
42005 2008-10-17  Jim Meyering  <meyering@redhat.com>
42006
42007         ignore-value: new module
42008         * modules/ignore-value: New file.
42009         * lib/ignore-value.h: New file.
42010         * MODULES.html.sh (Compiler warning management): New section,
42011         just for this module.  More to come.
42012
42013 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42014
42015         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42016         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42017         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42018
42019 2008-10-16  Jim Meyering  <meyering@redhat.com>
42020
42021         openat-die.c: avoid 'no previous prototype' warning
42022         * lib/openat-die.c: Include "openat.h".
42023         Reported by Reuben Thomas <rrt@sc3d.org>.
42024
42025 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42026
42027         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42028         * lib/netdb.in.h: Fix typo.
42029         Reported by Bruno Haible  <bruno@clisp.org>
42030
42031         * lib/netdb.in.h: Include sys/socket.h for platforms without
42032         netdb.h, to get structures like hostent on MinGW.
42033         * modules/netdb (Depends-on): Add sys_socket.
42034
42035 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42036
42037         * modules/netdb, modules/netdb-tests: New file.
42038         * m4/netdb_h.m4: New file.
42039         * lib/netdb.in.h: Add, currently just an empty file pending
42040         definitions.
42041         * tests/test-netdb.c: New file.
42042         * doc/posix-headers/netdb.texi: Mention that we replace it if
42043         needed.
42044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42045         netdb.
42046
42047 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42048
42049         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42050         with code.
42051
42052 2008-10-13  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/glthread/cond.c (glthread_cond_wait_func,
42055         glthread_cond_timedwait_func): Add a comment.
42056
42057 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42058
42059         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42060         * tests/test-select.c: Likewise,
42061
42062 2008-10-13  Bruno Haible  <bruno@clisp.org>
42063
42064         * lib/glthread/cond.c (glthread_cond_wait_func,
42065         glthread_cond_timedwait_func): Fix variable name.
42066         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42067
42068 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42069
42070         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42071         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42072         struct sockaddr.sa_len.
42073         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42074
42075 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42076
42077         * build-aux/pmccabe2html: Add css and css_url parameters.
42078
42079 2008-10-12  Bruno Haible  <bruno@clisp.org>
42080
42081         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42082         calling aclx_get.
42083         Reported by Rainer Tammer <tammer@tammer.net>.
42084
42085 2008-10-12  Bruno Haible  <bruno@clisp.org>
42086
42087         Use msvcrt aware primitives for creation/termination of Win32 threads.
42088         * lib/glthread/thread.c: Include <process.h>.
42089         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42090         (wrapper_func): Update signature.
42091         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42092
42093 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42094             Bruno Haible  <bruno@clisp.org>
42095
42096         Provide a Win32 implementation of the 'cond' module.
42097         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42098         * lib/glthread/cond.c (glthread_cond_init_func,
42099         glthread_cond_wait_func, glthread_cond_timedwait_func,
42100         glthread_cond_signal_func, glthread_cond_broadcast_func,
42101         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42102         * modules/cond (Dependencies): Add gettimeofday.
42103
42104 2008-10-11  Bruno Haible  <bruno@clisp.org>
42105
42106         Make sleep work on older versions of mingw.
42107         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42108         only whether it exists.
42109         * doc/posix-functions/sleep.texi: Mention the problem with older
42110         versions of mingw.
42111
42112 2008-10-11  Bruno Haible  <bruno@clisp.org>
42113
42114         New module 'shutdown'.
42115         * modules/shutdown: New file.
42116         * lib/sys_socket.in.h (shutdown): New declaration.
42117         * lib/winsock.c (shutdown): New function.
42118         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42119         GNULIB_SHUTDOWN.
42120         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42121         * doc/posix-functions/shutdown.texi: Document the new module.
42122
42123 2008-10-11  Jim Meyering  <meyering@redhat.com>
42124
42125         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42126
42127 2008-10-11  Bruno Haible  <bruno@clisp.org>
42128
42129         New module 'fclose'.
42130         * modules/fclose: New file.
42131         * lib/stdio.in.h (fclose): New declaration.
42132         * lib/fclose.c: New file.
42133         * m4/fclose.m4: New file.
42134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42135         REPLACE_FCLOSE.
42136         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42137         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42138         REPLACE_FCLOSE.
42139         * modules/close (Depends-on): fclose.
42140         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42141
42142 2008-10-11  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42145         set errno and don't call _close.
42146
42147 2008-10-10  Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42150         ACL, not afterwards. Fixes test failure on Cygwin.
42151
42152 2008-10-09  Ben Pfaff  <blp@gnu.org>
42153
42154         * build-aux/announce-gen: Fix gnulib version related part of usage
42155         message.  Die with a useful error message if no tarballs are
42156         found.
42157
42158 2008-10-10  Jim Meyering  <meyering@redhat.com>
42159
42160         bootstrap: use git's --depth=N option only if it's supported
42161         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42162         recognize the --depth option.  Reported by Pádraig Brady.
42163
42164 2008-10-09  Bruno Haible  <bruno@clisp.org>
42165
42166         New module 'ioctl'.
42167         * modules/ioctl: New file.
42168         * lib/sys_socket.in.h (ioctl): Remove declaration.
42169         * lib/winsock.c: Include <sys/ioctl.h>.
42170         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42171         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42172         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42173         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42174         * doc/posix-functions/ioctl.texi: Mention the new module.
42175
42176 2008-10-09  Bruno Haible  <bruno@clisp.org>
42177
42178         New module 'sys_ioctl'.
42179         * lib/sys_ioctl.in.h: New file.
42180         * m4/sys_ioctl_h.m4: New file.
42181         * modules/sys_ioctl: New file.
42182         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42183
42184 2008-10-09  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42187         * lib/winsock.c: Include <stdarg.h>.
42188         (rpl_ioctl): Change to second argument 'int' and then varargs.
42189
42190 2008-10-09  Bruno Haible  <bruno@clisp.org>
42191
42192         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42193         when the sys_socket module is present and the system has <winsock2.h>.
42194
42195 2008-10-09  Bruno Haible  <bruno@clisp.org>
42196
42197         * doc/posix-functions/close.texi: Mention module 'close' instead of
42198         module 'sys_socket'.
42199
42200 2008-10-09  Bruno Haible  <bruno@clisp.org>
42201
42202         * doc/glibc-headers/sys_ioctl.texi: New file.
42203         * doc/gnulib.texi: Include it.
42204
42205 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42206             Bruno Haible  <bruno@clisp.org>
42207
42208         Combine the two replacements of 'close'.
42209         * lib/sys_socket.in.h (close): Define to a reminder to include
42210         <unistd.h>.
42211         (_gl_close_fd_maybe_socket): New declaration.
42212         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42213         * lib/winsock.c (close): Remove undefinition.
42214         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42215         needed for the gnulib module 'close'.
42216         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42217         define to an error symbol or to a warning, if suitable.
42218         * lib/close.c: Include <sys/socket.h>.
42219         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42220         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42221         UNISTD_H_HAVE_WINSOCK2_H.
42222         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42224         UNISTD_H_HAVE_WINSOCK2_H.
42225         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42226         (configure.ac): Set a module indicator.
42227         (Makefile.am): Substitute GNULIB_CLOSE.
42228         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42229         * modules/poll-tests (Depends-on): Add close.
42230         * modules/select-tests (Depends-on): Likewise.
42231
42232 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42233             Bruno Haible  <bruno@clisp.org>
42234
42235         New module 'close'.
42236         * modules/close: New file.
42237         * lib/unistd.in.h (close): Move declaration out of the
42238         FCHDIR_REPLACEMENT scope.
42239         (_gl_unregister_fd): New declaration.
42240         * lib/close.c: New file.
42241         * lib/fchdir.c (rpl_close): Remove function.
42242         * m4/close.m4: New file.
42243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42244         close.
42245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42246         REPLACE_CLOSE.
42247         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42248         REPLACE_CLOSE.
42249         * modules/fchdir (Depends-on): Add close.
42250
42251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42252             Bruno Haible  <bruno@clisp.org>
42253
42254         * lib/fcntl.in.h (open): Simplify conditionals.
42255         (_gl_register_fd): New declaration.
42256         * lib/fchdir.c (rpl_open): Remove function.
42257         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42258         also.
42259         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42261         open.
42262
42263 2008-10-09  Jim Meyering  <meyering@redhat.com>
42264
42265         GNUmakefile: use the more name-space-friendly "_version"
42266         * top/GNUmakefile (_dummy): Update.
42267         (_version): Rename from "version".
42268
42269 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42270             Bruno Haible  <bruno@clisp.org>
42271
42272         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42273         rpl_close.
42274         (_gl_register_fd): New function, extracted from rpl_open.
42275         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42276         (rpl_open, rpl_opendir): Use _gl_register_fd.
42277
42278 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42279
42280         Fix organization of 'open' replacement.
42281         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42282         (gl_FUNC_OPEN): Use it.
42283         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42284
42285 2008-10-08  Bruno Haible  <bruno@clisp.org>
42286
42287         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42288
42289 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42290
42291         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42292         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42293         listen).
42294
42295 2008-10-08  Eric Blake  <ebb9@byu.net>
42296
42297         GNUmakefile: add 'make version' target
42298         * top/GNUmakefile (_curr-ver): Split version update rules...
42299         (version): ...into a target.
42300
42301 2008-10-07  Bruno Haible  <bruno@clisp.org>
42302
42303         Use a more portable replacement expression for -0.0L.
42304         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42305         instead of -0.0L. Fix m4 quotation.
42306
42307         * tests/test-signbit.c: Include <float.h>.
42308         (minus_zero): New variable.
42309         (test_signbitl): Use minus_zero instead of -zero.
42310         * modules/signbit-tests (Depends-on): Add float.
42311
42312         * tests/test-ceill.c: Include <float.h>.
42313         (zero): Remove variable.
42314         (minus_zero): New variable.
42315         (main): Use minus_zero instead of -zero.
42316         * modules/ceill-tests (Depends-on): Add float.
42317
42318         * tests/test-floorl.c: Include <float.h>.
42319         (zero): Remove variable.
42320         (minus_zero): New variable.
42321         (main): Use minus_zero instead of -zero.
42322         * modules/floorl-tests (Depends-on): Add float.
42323
42324         * tests/test-roundl.c: Include <float.h>.
42325         (zero): Remove variable.
42326         (minus_zero): New variable.
42327         (main): Use minus_zero instead of -zero.
42328         * modules/roundl-tests (Depends-on): Add float.
42329
42330         * tests/test-truncl.c: Include <float.h>.
42331         (zero): Remove variable.
42332         (minus_zero): New variable.
42333         (main): Use minus_zero instead of -zero.
42334         * modules/truncl-tests (Depends-on): Add float.
42335
42336         * tests/test-frexpl.c (zero): Remove variable.
42337         (minus_zero): New variable.
42338         (main): Use minus_zero instead of -zero.
42339         * modules/frexpl-tests (Depends-on): Add float.
42340
42341         * tests/test-isnan.c (zerol): Remove variable.
42342         (minus_zerol): New variable.
42343         (test_long_double): Use minus_zerol instead of -zerol.
42344         * modules/isnan-tests (Depends-on): Add float.
42345
42346         * tests/test-isnanl.h (zero): Remove variable.
42347         (minus_zero): New variable.
42348         (main): Use minus_zero instead of -zero.
42349         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42350         * modules/isnanl-tests (Depends-on): Add float.
42351
42352         * tests/test-ldexpl.c (zero): Remove variable.
42353         (minus_zero): New variable.
42354         (main): Use minus_zero instead of -zero.
42355         * modules/ldexpl-tests (Depends-on): Add float.
42356
42357         * tests/test-snprintf-posix.h (zerol): Remove variable.
42358         (minus_zerol): New variable.
42359         (test_function): Use minus_zerol instead of -zerol.
42360         * modules/snprintf-posix-tests (Depends-on): Add float.
42361         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42362
42363         * tests/test-sprintf-posix.h (zerol): Remove variable.
42364         (minus_zerol): New variable.
42365         (test_function): Use minus_zerol instead of -zerol.
42366         * modules/sprintf-posix-tests (Depends-on): Add float.
42367         * modules/vsprintf-posix-tests (Depends-on): Add float.
42368
42369         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42370         (minus_zerol): New variable.
42371         (test_function): Use minus_zerol instead of -zerol.
42372         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42373
42374         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42375         (minus_zerol): New variable.
42376         (test_function): Use minus_zerol instead of -zerol.
42377         * modules/vasprintf-posix-tests (Depends-on): Add float.
42378
42379 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42380
42381         * MODULES.html.sh (Support for building documentation): Mention
42382         pmccabe2html.  Sort entries.
42383
42384         Add pmccabe2html module, from gnupdf.
42385         * build-aux/pmccabe.css: New file.
42386         * build-aux/pmccabe2html: New file.
42387         * m4/pmccabe2html.m4: New file.
42388         * modules/pmccabe2html: New file.
42389
42390 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42391
42392         flock: new module
42393         * MODULES.html.sh: Add to list of modules.
42394         * lib/flock.c: flock implementation for Windows and Unix systems
42395         which have fcntl.
42396         * doc/glibc-functions/flock.texi: Update documentation.
42397         * lib/sys_file.in.h: <sys/file.h> header file.
42398         * m4/flock.m4: M4 macros.
42399         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42400         * modules/flock: flock module.
42401         * modules/flock-tests: flock tests module.
42402         * modules/sys_file: sys/file.h module.
42403         * tests/test-flock.c: test suite for flock.
42404
42405 2008-10-06  Jim Meyering  <meyering@redhat.com>
42406
42407         bootstrap: check for LT_INIT more portably still ;-)
42408         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42409         Spotted by Bruno Haible.
42410
42411 2008-10-06  Eric Blake  <ebb9@byu.net>
42412
42413         test-signbit: avoid tripping Irix cc bug on -0.0L
42414         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42415         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42416         entire testsuite consistent and avoids an Irix 6.2 bug.
42417
42418 2008-10-05  Bruno Haible  <bruno@clisp.org>
42419             Jim Meyering  <jim@meyering.net>
42420
42421         Add an option for ignoring EPIPE during close_stdout.
42422         * lib/closeout.h: Include <stdbool.h>.
42423         (close_stdout_set_ignore_EPIPE): New declaration.
42424         * lib/closeout.c: Include <stdbool.h>.
42425         (ignore_EPIPE): New variable.
42426         (close_stdout_set_ignore_EPIPE): New function.
42427         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42428         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42429         failure.
42430         * modules/closeout (Depends-on): Add stdbool.
42431
42432 2008-10-05  Bruno Haible  <bruno@clisp.org>
42433
42434         * modules/accept: New file.
42435         * modules/bind: New file.
42436         * modules/connect: New file.
42437         * modules/getpeername: New file.
42438         * modules/getsockname: New file.
42439         * modules/getsockopt: New file.
42440         * modules/listen: New file.
42441         * modules/recv: New file.
42442         * modules/recvfrom: New file.
42443         * modules/send: New file.
42444         * modules/sendto: New file.
42445         * modules/setsockopt: New file.
42446         * modules/socket: New file.
42447         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42448         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42449         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42450         the particular module is requested. Add a link warning when the
42451         particular module is not requested.
42452         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42453         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42454         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42455         the particular module is requested.
42456         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42457         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42458         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42459         * modules/sys_socket (Depends-on): Add link-warning.
42460         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42461         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42462         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42463         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42464         GL_LINK_WARNING.
42465         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42466         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42467         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42468         * doc/posix-functions/getpeername.texi: Mention the new module
42469         'getpeername'.
42470         * doc/posix-functions/getsockname.texi: Mention the new module
42471         'getsockname'.
42472         * doc/posix-functions/getsockopt.texi: Mention the new module
42473         'getsockopt'.
42474         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42475         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42476         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42477         * doc/posix-functions/send.texi: Mention the new module 'send'.
42478         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42479         * doc/posix-functions/setsockopt.texi: Mention the new module
42480         'setsockopt'.
42481         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42482         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42483         listen, connect, accept.
42484         * modules/select-tests (Depends-on): Likewise.
42485
42486 2008-10-05  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/winsock.c (strerror): Remove unused #undef.
42489         (rpl_close): Remove unused local variable.
42490
42491         * modules/sys_socket (Depends-on); Add errno.
42492
42493 2008-10-05  Bruno Haible  <bruno@clisp.org>
42494
42495         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42496         (select): Add a link warning when the 'select' module is not used.
42497         * modules/sys_select (Depends-on): Add link-warning.
42498         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42499         Suggested by Paolo Bonzini.
42500
42501 2008-10-05  Jim Meyering  <meyering@redhat.com>
42502
42503         bootstrap: check for LT_INIT more portably
42504         * build-aux/bootstrap: Avoid using grep -E, since it's not
42505         portable enough.  Suggestion from Bruno Haible.
42506
42507 2008-10-05  Bruno Haible  <bruno@clisp.org>
42508
42509         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42510         as being fixed by gnulib.
42511
42512 2008-10-05  Bruno Haible  <bruno@clisp.org>
42513
42514         * modules/select-tests: New file, mostly copied from
42515         modules/sys_select-tests.
42516         * tests/test-select.c: New file, mostly copied from
42517         tests/test-sys_select.c.
42518         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42519         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42520         (Makefile.am): Remove test_sys_select_LDADD.
42521
42522         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42523         to an undefined symbol, for an error message.
42524         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42525         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42526         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42527         winsock-select.c here.
42528         * modules/sys_select (Files): Remove lib/winsock-select.c.
42529         (Depends-on): Remove alloca.
42530         (Makefile.am): Substitute GNULIB_SELECT.
42531         * modules/select: New file.
42532         * doc/posix-functions/select.texi: Update.
42533
42534 2008-10-05  Bruno Haible  <bruno@clisp.org>
42535
42536         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42537         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42538         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42539         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42540         getdtablesize.
42541         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42542         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42543
42544 2008-10-05  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/getdtablesize-tests: New file.
42547         * tests/test-getdtablesize.c: New file.
42548
42549         New module 'getdtablesize'.
42550         * lib/unistd.in.h (getdtablesize): New declaration.
42551         * lib/getdtablesize.c: New file.
42552         * m4/getdtablesize.m4: New file.
42553         * modules/getdtablesize: New file.
42554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42555         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42556         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42557         HAVE_GETDTABLESIZE.
42558         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42559
42560 2008-10-05  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/sched (Makefile.am): Fix typo.
42563         Reported by Simon Josefsson.
42564
42565 2008-10-05  Jim Meyering  <meyering@redhat.com>
42566
42567         bootstrap: check for LT_INIT, too
42568         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42569         are deprecated.  Suggestion from Ralf Wildenhues.
42570
42571 2008-10-05  Bruno Haible  <bruno@clisp.org>
42572
42573         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42574         overriding them by ours.
42575         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42576
42577 2008-10-05  Jim Meyering  <meyering@redhat.com>
42578
42579         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42580         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42581         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42582
42583 2008-10-04  Bruno Haible  <bruno@clisp.org>
42584
42585         * modules/dup2 (License): Change to LGPLv2+.
42586         * modules/sleep (License): Likewise.
42587         * modules/perror (License): Likewise.
42588         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42589         Blake.
42590         * modules/signal (License): Likewise.
42591         * modules/sigprocmask (License): Likewise.
42592         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42593         Meyering.
42594
42595 2008-10-04  Bruno Haible  <bruno@clisp.org>
42596
42597         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42598         Reported by Rainer Tammer <tammer@tammer.net>.
42599
42600 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42601             Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42604         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42605         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42606
42607 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42608
42609         filevercmp: new module
42610         * lib/filevercmp.h: New function filevercmp comparing version strings.
42611         * lib/filevercmp.c: Implementation of filevercmp function.
42612         * modules/filevercmp: Module metadata.
42613         * tests/test-filevercmp.c: Unit test for new module.
42614         * modules/filevercmp-tests: Unit test metadata.
42615         * MODULES.html.sh: Add filevercmp module.
42616
42617 2008-10-03  Bruno Haible  <bruno@clisp.org>
42618
42619         * lib/c-ctype.h: Add comment.
42620         Reported by Jim Meyering.
42621
42622 2008-10-02  Bruno Haible  <bruno@clisp.org>
42623
42624         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42625
42626 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42627
42628         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42629         name of bootstrap.conf accordingly.
42630
42631 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42632
42633         * build-aux/bootstrap: Install git-merge-changelog configuration
42634         items into .gitconfig if needed.
42635
42636 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42637
42638         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42639         git repository, and initialize/update it accordingly.
42640
42641 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42642
42643         * modules/fsync-tests: New file.
42644         * tests/test-fsync.c: New file.
42645
42646         New module 'fsync'.
42647         * lib/fsync.c: New file.
42648         * m4/fsync.m4: New file.
42649         * modules/fsync: New file.
42650         * lib/unistd.in.h (fsync): New declaration.
42651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42652         GNULIB_FSYNC and HAVE_FSYNC.
42653         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42654         * MODULES.html.sh (posix_functions): Add fsync.
42655         * doc/posix-functions/fsync.texi: Mention the new module.
42656
42657 2008-10-02  Jim Meyering  <meyering@redhat.com>
42658
42659         fts.c: sync with similar code from coreutils' remove.c
42660         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42661         Guard also with "#if defined __linux__", since for now at least,
42662         this code is Linux-kernel-specific.
42663
42664 2008-10-02  Jim Meyering  <meyering@redhat.com>
42665
42666         fts: bug fixes
42667         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42668         Include <sys/vfs.h>, not <sys/statfs.h>.
42669
42670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42671         Include <sys/vfs.h>, not <sys/statfs.h>.
42672
42673 2008-10-01  Bruno Haible  <bruno@clisp.org>
42674
42675         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42677         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42678         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42679         * doc/posix-functions/posix_spawnp.texi: Likewise.
42680         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42681         whether posix_spawn actually works.
42682         * m4/pipe.m4 (gl_PIPE): Likewise.
42683         * modules/execute (Files): Add m4/posix_spawn.m4.
42684         * modules/pipe (Files): Add m4/posix_spawn.m4.
42685         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42686
42687 2008-10-01  Jim Meyering  <meyering@redhat.com>
42688
42689         remove trailing spaces
42690         * NEWS: Likewise.
42691         * lib/poll.c (poll): Likewise.
42692         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42693         * lib/winsock.c (rpl_close): Likewise.
42694         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42695         * modules/yield: Likewise.
42696         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42697         * tests/test-sys_select.c (connect_to_socket): Likewise.
42698
42699         fts.c: adjust a new interface to be more generally useful
42700         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42701         (fts_build): Adjust caller.
42702
42703 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42704
42705         * modules/cond-tests: New file.
42706         * tests/test-cond.c: New file.
42707
42708 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42709             Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/cond (Dependencies): Add errno, time.
42712         * lib/glthread/cond.h: Include <time.h>.
42713         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42714         across platforms.
42715
42716 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42717             Bruno Haible  <bruno@clisp.org>
42718
42719         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42720
42721 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42722             Bruno Haible  <bruno@clisp.org>
42723
42724         * modules/tls-tests (Depends-on): Add thread, yield.
42725         (configure.ac): Remove all checks.
42726         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42727         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42728         gl_thread_self): Remove definitions. Include glthread/thread.h and
42729         glthread/yield.h instead.
42730         (test_tls): Pass an additional NULL argument to gl_thread_join.
42731
42732 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42733             Bruno Haible  <bruno@clisp.org>
42734
42735         * modules/lock-tests (Depends-on): Add thread, yield.
42736         (configure.ac): Remove all checks.
42737         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42738         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42739         gl_thread_self): Remove definitions. Include glthread/thread.h and
42740         glthread/yield.h instead.
42741         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42742         additional NULL argument to gl_thread_join.
42743
42744 2008-09-30  Bruno Haible  <bruno@clisp.org>
42745
42746         Fix the Win32 implementation of the 'thread' module.
42747         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42748         pointer type.
42749         (gl_thread_self): Invoke gl_thread_self_func.
42750         (gl_thread_self_func): New declaration.
42751         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42752         (do_init_self_key, init_self_key): New functions.
42753         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42754         Remove some fields.
42755         (running_threads, running_lock): Remove variables.
42756         (get_current_thread_handle): New function.
42757         (gl_thread_self_func, wrapper_func, glthread_create_func,
42758         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42759         simplified.
42760
42761 2008-09-30  Bruno Haible  <bruno@clisp.org>
42762
42763         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42764         files.
42765
42766 2008-09-30  Jim Meyering  <meyering@redhat.com>
42767
42768         fts.m4: correct the test for statfs.f_type
42769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42770         when checking for statfs.f_type.
42771
42772 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42773
42774         tests: avoid some compiler warnings
42775         * tests/test-memchr.c (main): Pass NULL indirectly.
42776         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42777
42778 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42779
42780         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42781         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42782         exactly specified dayshifts.
42783         (dayshift): New rule.
42784         (rel): Add dayshift.
42785         (relative_time_table) [tomorrow, yesterday, today, now]:
42786         Use tDAY_SHIFT in place of tDAY_UNIT.
42787         * tests/test-getdate.c: Add tests for now-disallowed countable
42788         dayshifts, e.g., "4 yesterday ago".
42789
42790 2008-09-29  Bruno Haible  <bruno@clisp.org>
42791
42792         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42793         * tests/test-posix_spawn1.in.sh: Renamed from
42794         tests/test-posix_spawn.in.sh.
42795         * tests/test-posix_spawn2.c: New file.
42796         * tests/test-posix_spawn2.in.sh: New file.
42797         * modules/posix_spawnp-tests (Files): Update.
42798         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42799
42800 2008-09-29  Bruno Haible  <bruno@clisp.org>
42801
42802         Propagate effects of putenv/setenv/unsetenv to child processes.
42803         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42804         * lib/pipe.c (create_pipe): Likewise.
42805
42806 2008-09-29  Bruno Haible  <bruno@clisp.org>
42807
42808         Enable use of shell scripts as executables in mingw.
42809         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42810         run the program as a shell script.
42811         * lib/pipe.c (create_pipe): Likewise.
42812         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42813         resulting array.
42814
42815 2008-09-29  Eric Blake  <ebb9@byu.net>
42816
42817         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42818
42819 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42820
42821         * doc/posix-functions/accept.texi: Update mingw problems.
42822         * doc/posix-functions/bind.texi: Update mingw problems.
42823         * doc/posix-functions/close.texi: Update mingw problems.
42824         * doc/posix-functions/connect.texi: Update mingw problems.
42825         * doc/posix-functions/getpeername.texi: Update mingw problems.
42826         * doc/posix-functions/getsockname.texi: Update mingw problems.
42827         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42828         * doc/posix-functions/ioctl.texi: Update mingw problems.
42829         * doc/posix-functions/listen.texi: Update mingw problems.
42830         * doc/posix-functions/recv.texi: Update mingw problems.
42831         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42832         * doc/posix-functions/select.texi: Update mingw problems.
42833         * doc/posix-functions/send.texi: Update mingw problems.
42834         * doc/posix-functions/sendto.texi: Update mingw problems.
42835         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42836         * doc/posix-functions/socket.texi: Update mingw problems.
42837
42838 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42839             Bruno Haible  <bruno@clisp.org>
42840
42841         * lib/sys_select.in.h: Include sys/time.h.
42842         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42843         * modules/sys_select: Depend on sys_time.
42844         * tests/test-sys_select.c: Test that sys/select.h defines struct
42845         timeval fully.
42846
42847 2008-09-29  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42850         * lib/sys_select.in.h: Likewise.
42851
42852 2008-09-29  Bruno Haible  <bruno@clisp.org>
42853
42854         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42855
42856 2008-09-29  Bruno Haible  <bruno@clisp.org>
42857
42858         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42859         Set LIBSOCKET instead of augmenting LIBS.
42860         * modules/sockets (Link): New section.
42861         * modules/sockets-tests (test_sockets_LDADD): New variable.
42862         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42863         * modules/poll-tests (test_poll_LDADD): New variable.
42864         * NEWS: Document the change.
42865
42866 2008-09-29  Bruno Haible  <bruno@clisp.org>
42867
42868         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42869         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42870         ARPA_INET_H directly.
42871         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42872
42873 2008-09-28  Bruno Haible  <bruno@clisp.org>
42874
42875         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42876         from gl_HEADER_SYS_SOCKET.
42877         (gl_HEADER_SYS_SOCKET): Invoke it.
42878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42879
42880 2008-09-28  Bruno Haible  <bruno@clisp.org>
42881
42882         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42883         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42884         Needed on OSF/1 4.0.
42885
42886 2008-09-28  Bruno Haible  <bruno@clisp.org>
42887
42888         Override open more carefully.
42889         * lib/open.c (orig_open): New function.
42890         (rpl_open): Use orig_open instead of open.
42891         * lib/fcntl.in.h: Add special invocation convention.
42892         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42893         (gl_FUNC_OPEN): Invoke it.
42894
42895         Override freopen more carefully.
42896         * lib/freopen.c (orig_freopen): New function.
42897         (rpl_freopen): Use orig_freopen instead of freopen.
42898         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42899         (gl_FUNC_FREOPEN): Invoke it.
42900
42901         Override fopen more carefully.
42902         * lib/fopen.c (orig_fopen): New function.
42903         (rpl_fopen): Use orig_fopen instead of fopen.
42904         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42905         (gl_FUNC_FOPEN): Invoke it.
42906         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42907
42908 2008-09-28  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42911         SIGPIPE.
42912
42913 2008-09-28  Bruno Haible  <bruno@clisp.org>
42914
42915         * tests/test-sigaction.c (handler, main): Disable the check whether
42916         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42917         glibc systems with LinuxThreads.
42918
42919 2008-09-28  Bruno Haible  <bruno@clisp.org>
42920
42921         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42922
42923         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42924         with AIX xlc.
42925         * lib/fcntl.in.h (open): Likewise.
42926         Reported by Rainer Tammer <tammer@tammer.net>.
42927
42928 2008-09-28  Bruno Haible  <bruno@clisp.org>
42929
42930         * modules/posix_spawnp-tests: New file.
42931         * tests/test-posix_spawn.c: New file.
42932         * tests/test-posix_spawn.in.sh: New file.
42933
42934         New module 'posix_spawnp'.
42935         * modules/posix_spawnp: New file.
42936         * lib/spawnp.c: New file, from GNU libc with modifications.
42937         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42938
42939         New module 'posix_spawn'.
42940         * modules/posix_spawn: New file.
42941         * lib/spawn.c: New file, from GNU libc with modifications.
42942         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42943
42944         New module 'posix_spawnattr_destroy'.
42945         * modules/posix_spawnattr_destroy: New file.
42946         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42947         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42948         module.
42949
42950         New module 'posix_spawnattr_setsigmask'.
42951         * modules/posix_spawnattr_setsigmask: New file.
42952         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42953         modifications.
42954         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42955         new module.
42956
42957         New module 'posix_spawnattr_getsigmask'.
42958         * modules/posix_spawnattr_getsigmask: New file.
42959         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42960         modifications.
42961         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42962         new module.
42963
42964         New module 'posix_spawnattr_setsigdefault'.
42965         * modules/posix_spawnattr_setsigdefault: New file.
42966         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42967         modifications.
42968         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42969         new module.
42970
42971         New module 'posix_spawnattr_getsigdefault'.
42972         * modules/posix_spawnattr_getsigdefault: New file.
42973         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42974         modifications.
42975         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42976         new module.
42977
42978         New module 'posix_spawnattr_setschedpolicy'.
42979         * modules/posix_spawnattr_setschedpolicy: New file.
42980         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42981         modifications.
42982         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42983         new module.
42984
42985         New module 'posix_spawnattr_getschedpolicy'.
42986         * modules/posix_spawnattr_getschedpolicy: New file.
42987         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42988         modifications.
42989         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42990         new module.
42991
42992         New module 'posix_spawnattr_setschedparam'.
42993         * modules/posix_spawnattr_setschedparam: New file.
42994         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42995         modifications.
42996         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42997         new module.
42998
42999         New module 'posix_spawnattr_getschedparam'.
43000         * modules/posix_spawnattr_getschedparam: New file.
43001         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43002         modifications.
43003         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43004         new module.
43005
43006         New module 'posix_spawnattr_setpgroup'.
43007         * modules/posix_spawnattr_setpgroup: New file.
43008         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43009         modifications.
43010         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43011         module.
43012
43013         New module 'posix_spawnattr_getpgroup'.
43014         * modules/posix_spawnattr_getpgroup: New file.
43015         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43016         modifications.
43017         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43018         module.
43019
43020         New module 'posix_spawnattr_setflags'.
43021         * modules/posix_spawnattr_setflags: New file.
43022         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43023         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43024         module.
43025
43026         New module 'posix_spawnattr_getflags'.
43027         * modules/posix_spawnattr_getflags: New file.
43028         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43029         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43030         module.
43031
43032         New module 'posix_spawnattr_init'.
43033         * modules/posix_spawnattr_init: New file.
43034         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43035         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43036         module.
43037
43038         New module 'posix_spawn_file_actions_destroy'.
43039         * modules/posix_spawn_file_actions_destroy: New file.
43040         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43041         modifications.
43042         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43043         the new module.
43044
43045         New module 'posix_spawn_file_actions_addopen'.
43046         * modules/posix_spawn_file_actions_addopen: New file.
43047         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43048         modifications.
43049         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43050         the new module.
43051
43052         New module 'posix_spawn_file_actions_adddup2'.
43053         * modules/posix_spawn_file_actions_adddup2: New file.
43054         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43055         modifications.
43056         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43057         the new module.
43058
43059         New module 'posix_spawn_file_actions_addclose'.
43060         * modules/posix_spawn_file_actions_addclose: New file.
43061         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43062         modifications.
43063         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43064         the new module.
43065
43066         New module 'posix_spawn_file_actions_init'.
43067         * modules/posix_spawn_file_actions_init: New file.
43068         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43069         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43070         new module.
43071
43072         New module 'posix_spawn-internal'.
43073         * modules/posix_spawn-internal: New file.
43074         * lib/spawn_int.h: New file, from GNU libc with modifications.
43075         * lib/spawni.c: New file, from GNU libc with modifications.
43076         * m4/posix_spawn.m4: New file.
43077
43078         New module 'spawn'.
43079         * modules/spawn: New file.
43080         * lib/spawn.in.h: New file, from GNU libc with modifications.
43081         * m4/spawn_h.m4: New file.
43082         * doc/posix-headers/spawn.texi: Mention the new module.
43083
43084 2008-09-28  Bruno Haible  <bruno@clisp.org>
43085
43086         * modules/sched-tests: New file.
43087         * tests/test-sched.c: New file.
43088
43089         New module 'sched'.
43090         * modules/sched: New file.
43091         * lib/sched.in.h: New file.
43092         * m4/sched_h.m4: New file.
43093         * doc/posix-headers/sched.texi: Mention the new module.
43094
43095 2008-09-27  Eric Blake  <ebb9@byu.net>
43096
43097         Fix previous patch, and tweak references to $0.
43098         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43099         (func_version, func_gnulib_dir): Don't call this program
43100         gnulib-tool.
43101         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43102         with using $0 in function.
43103         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43104         (func_fatal_error): Reuse the name the user invoked us with.
43105
43106 2008-09-27  Bruno Haible  <bruno@clisp.org>
43107
43108         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43109         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43110         (gl_ICONV_H): Not here.
43111         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43112         instead of assigning ICONV_H directly.
43113
43114         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43116         WCHAR_H directly.
43117
43118 2008-09-27  Bruno Haible  <bruno@clisp.org>
43119
43120         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43121         * modules/arpa_inet (Depends-on): Add link-warning.
43122         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43123         * modules/unistd (Makefile.am): Likewise.
43124
43125 2008-09-26  Bruno Haible  <bruno@clisp.org>
43126
43127         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43128         variables.
43129         (func_version): Essentially copied from gnulib-tool.
43130         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43131         func_readlink): Copied from gnulib-tool.
43132
43133 2008-09-26  Bruno Haible  <bruno@clisp.org>
43134
43135         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43136         invoking git-version-gen.
43137
43138 2008-09-26  Bruno Haible  <bruno@clisp.org>
43139
43140         * posix-modules: Update to directory names changed on 2008-01-19.
43141         Remove commas in output before splitting into words. No more need to
43142         avoid 'ftruncate' since 2007-02-19.
43143
43144 2008-09-26  Bruno Haible  <bruno@clisp.org>
43145
43146         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43147
43148 2008-09-26  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43151         * modules/fwriteerror (Depends-on): Add errno.
43152
43153 2008-09-26  Bruno Haible  <bruno@clisp.org>
43154
43155         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43156         * tests/test-vc-list-files-cvs.sh: Likewise.
43157
43158 2008-09-26  Bruno Haible  <bruno@clisp.org>
43159
43160         * doc/posix-headers/sys_resource.texi: Reorder items.
43161
43162 2008-09-26  Jim Meyering  <meyering@redhat.com>
43163
43164         fts: tweak inode comparison function
43165         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43166         inode numbers, as documented.
43167
43168         fts: sort dirent entries on inode number before traversing
43169         This avoids a quadratic, seek-related performance penalty when
43170         operating on a directory containing many entries (measurable at 10k;
43171         3.5 hours at 2 million entries with a cold cache) on certain types
43172         of file systems, including ext3 and ext4, but not tmpfs.
43173         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43174         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43175         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43176         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43177         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43178         (fts_build): Set the stat.st_ino member from D_INO.
43179         If it is likely to be useful, sort dirent entries on inode number.
43180
43181         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43182         and the struct statfs.f_type member.
43183         * modules/fts (Depends-on): Add d-ino.
43184
43185 2008-09-26  Bruno Haible  <bruno@clisp.org>
43186
43187         * modules/sigpipe-die (Depends-on): Add sigpipe.
43188
43189         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43190         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43191         and GNULIB_STDIO_H_SIGPIPE are set.
43192         * lib/stdio-write.c: New file.
43193         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43194         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43195         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43196         REPLACE_STDIO_WRITE_FUNCS.
43197         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43198         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43199         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43200         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43201         * modules/stdio (Files): Add lib/stdio-write.c.
43202         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43203         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43204         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43205         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43206         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43207         REPLACE_FPRINTF_POSIX.
43208         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43209         REPLACE_PRINTF_POSIX.
43210         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43211         REPLACE_VFPRINTF_POSIX.
43212         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43213         REPLACE_VPRINTF_POSIX.
43214         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43215         SIGPIPE issue.
43216         * doc/posix-functions/fputc.texi: Likewise.
43217         * doc/posix-functions/fputs.texi: Likewise.
43218         * doc/posix-functions/fwrite.texi: Likewise.
43219         * doc/posix-functions/printf.texi: Likewise.
43220         * doc/posix-functions/putc.texi: Likewise.
43221         * doc/posix-functions/putchar.texi: Likewise.
43222         * doc/posix-functions/puts.texi: Likewise.
43223         * doc/posix-functions/vfprintf.texi: Likewise.
43224         * doc/posix-functions/vprintf.texi: Likewise.
43225
43226         * modules/safe-write (Depends-on): Add write.
43227
43228         * modules/sigpipe-tests: New file.
43229         * tests/test-sigpipe.c: New file.
43230         * tests/test-sigpipe.sh: New file.
43231
43232         * modules/write: New file.
43233         * lib/unistd.in.h: Include <sys/types.h>.
43234         (write): New declaration.
43235         * lib/write.c: New file.
43236         * m4/write.m4: New file.
43237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43238         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43239         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43240         GNULIB_WRITE, REPLACE_WRITE.
43241         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43242         and the SIGPIPE issue.
43243
43244         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43245         (raise): New declaration.
43246         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43247         (ext_signal): New function.
43248         (rpl_raise): New function.
43249         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43250         GNULIB_SIGNAL_H_SIGPIPE.
43251         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43252         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43253
43254         * modules/sigpipe: New file.
43255         * m4/sigpipe.m4: New file.
43256
43257 2008-09-25  Derek Price  <derek@ximbiot.com>
43258             Bruno Haible  <bruno@clisp.org>
43259
43260         * gnulib-tool (func_import): Report all license incompatibilities, not
43261         just the first one.
43262
43263 2008-09-25  Bruno Haible  <bruno@clisp.org>
43264
43265         * gnulib-tool (func_import): When computing the edits, consider not
43266         only the Makefile.ams that exist but also those that will be generated.
43267
43268 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43269
43270         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43271         fixes gnulib-tool --test warning about duplicate dependency.
43272
43273 2008-09-25  Bruno Haible  <bruno@clisp.org>
43274
43275         * gnulib-tool: Don't ask the user to perform edits in the generated
43276         Makefile.ams.
43277         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43278         apply to the Makefile.am being generated.
43279         (func_emit_tests_Makefile_am): Execute edits that apply to the
43280         Makefile.am being generated.
43281         (func_import): Setup list of Makefile.am edits before emitting the
43282         Makefile.ams, not at the end.
43283         (func_create_testdir): Update.
43284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43285
43286 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43287
43288         * gnulib-tool (func_import): Store the --tests-base option in the
43289         comment in gnulib-cache.m4.
43290
43291 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43292
43293         * NEWS: Document increased portability that sys_select now provides.
43294
43295         * lib/sys_select.in.h: Install select wrapper.
43296         * lib/sys_socket.in.h: Use more descriptive name when there is no
43297         select wrapper.
43298         * lib/winsock-select.c: New.
43299         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43300         Require gl_HEADER_SYS_SOCKET.
43301         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43302         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43303         * tests/test-sys_select.c: Add functional tests.
43304
43305 2008-09-24  Eric Blake  <ebb9@byu.net>
43306
43307         open, fopen: close fd leak in last patch
43308         * lib/open.c (rpl_open): Close fd before returning error.
43309         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43310         * doc/posix-functions/open.texi (open): Document that Irix also
43311         has the bug.
43312         * doc/posix-functions/fopen.texi (fopen): Likewise.
43313         Reported by Paolo Bonzini.
43314
43315 2008-09-24  Bruno Haible  <bruno@clisp.org>
43316
43317         Ensure that a filename ending in a slash cannot be used to access a
43318         non-directory.
43319         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43320         to check whether it's really a directory.
43321         * lib/fopen.c: Include fcntl.h, unistd.h.
43322         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43323         and fdopen().
43324         * modules/fopen (Depends-on): Add unistd.
43325         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43326         * tests/test-fopen.c (main): Likewise.
43327         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43328         * doc/posix-functions/fopen.texi: Likewise.
43329         Reported by Eric Blake.
43330
43331 2008-09-23  Eric Blake  <ebb9@byu.net>
43332
43333         c-stack: avoid compiler optimizations when provoking overflow
43334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43335         recursion harder to optimize, to ensure a stack overflow occurs.
43336         * tests/test-c-stack.c (recurse): Likewise.
43337         Borrowed from libsigsegv.
43338
43339         c-stack: work around Irix sigaltstack bug
43340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43341         whether sigaltstack uses wrong end of stack_t (copied in part from
43342         libsigsegv).
43343         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43344         Irix bug, without requiring an over-allocation.
43345         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43346         bug.
43347
43348         fopen: document mingw bug on directories
43349         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43350         not allowing a stream visiting a directory, even though reading
43351         from such a stream is not portable.
43352
43353 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43354
43355         * lib/poll.c: Rewrite.
43356         * modules/poll: Depend on alloca.
43357
43358 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43359
43360         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43361         instead define prototypes for a full set of wrappers.  Ensure
43362         that Cygwin does not use the compatibility code, which is only
43363         for MinGW.
43364         * lib/winsock.c: New.
43365         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43366         * modules/sys_socket: Add lib/winsock.c.
43367
43368         * modules/poll-tests: Add errno and perror.
43369         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43370
43371 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43372
43373         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43374
43375 2008-09-23  Bruno Haible  <bruno@clisp.org>
43376
43377         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43378         * doc/glibc-functions/*: Likewise.
43379
43380 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43381
43382         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43383         success.
43384
43385 2008-09-22  Eric Blake  <ebb9@byu.net>
43386             Bruno Haible  <bruno@clisp.org>
43387
43388         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43389         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43390         supply %A but mishandle pseudo-NaN.
43391         Reported by Simon Josefsson.
43392
43393 2008-09-21  Bruno Haible  <bruno@clisp.org>
43394
43395         * tests/test-lock.c (main): Tweak skip message.
43396         * tests/test-tls.c (main): Likewise.
43397
43398 2008-09-21  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43401         whether 'struct sigaction' has sa_sigaction here...
43402         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43403         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43404
43405 2008-09-21  Bruno Haible  <bruno@clisp.org>
43406
43407         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43408         section.
43409         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43410         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43411         the new section.
43412         (Support for obsolete systems lacking POSIX:2001): New section.
43413         (String handling <string.h>): Move strdup to the new section.
43414         Suggested by Simon Josefsson and Paolo Bonzini.
43415
43416 2008-09-21  Bruno Haible  <bruno@clisp.org>
43417
43418         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43419         exponents in %e and %g results on 'long double'. Needed for mingw's
43420         improved *printf functions.
43421         * tests/test-vasprintf-posix.c (test_function): Likewise.
43422         * tests/test-snprintf-posix.h (test_function): Likewise.
43423         * tests/test-sprintf-posix.h (test_function): Likewise.
43424         Reported by Eric Blake.
43425
43426 2008-09-21  Bruno Haible  <bruno@clisp.org>
43427
43428         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43429         * tests/test-sprintf-posix.h (test_function): Likewise.
43430
43431 2008-09-21  Bruno Haible  <bruno@clisp.org>
43432
43433         * modules/getpass (Depends-on): Add strdup-posix.
43434
43435         New module 'strdup-posix'.
43436         * modules/strdup-posix: New file.
43437         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43438         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43440         REPLACE_STRDUP.
43441         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43442         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43444         strdup-posix.
43445
43446         * modules/strdup (Depends-on): Remove malloc-posix.
43447
43448 2008-09-20  Bruno Haible  <bruno@clisp.org>
43449
43450         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43451         Wildenhues.
43452
43453 2008-09-20  Bruno Haible  <bruno@clisp.org>
43454
43455         Ensure that wint_t gets defined on IRIX 5.3.
43456         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43457         * lib/wctype.in.h (wint_t): Likewise.
43458         (__wctype_wint_t): Remove type.
43459         (isw*): Use wint_t instead of __wctype_wint_t.
43460         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43461         * modules/wchar (Files): Add m4/wint_t.m4.
43462         (Makefile.am): Substitute HAVE_WINT_T.
43463         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43464         * tests/test-wctype.c: Check that wint_t is defined.
43465         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43466         * doc/posix-headers/wctype.texi: Likewise.
43467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43468
43469 2008-09-18  Bruno Haible  <bruno@clisp.org>
43470
43471         * gnulib-tool (func_exit): Update comment.
43472
43473 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43474
43475         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43476         assumes strdup exists and does not depend on strdup to return
43477         ENOMEM on out of memory conditions.
43478
43479 2008-09-18  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43482         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43483         digits for the exponent.
43484
43485 2008-09-18  Jim Meyering  <meyering@redhat.com>
43486             Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/vasnprintf.c (decimal_point_char): Define also if
43489         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43490
43491 2008-09-16  Bruno Haible  <bruno@clisp.org>
43492         and Eric Blake  <ebb9@byu.net>
43493
43494         vasnprintf: support Irix 5.3
43495         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43496         that mishandle long double infinity.
43497         Reported by Tom G. Christensen.
43498
43499 2008-09-16  Bruno Haible  <bruno@clisp.org>
43500
43501         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43502         Solaris 9.
43503         * doc/glibc-functions/alphasort.texi: Likewise.
43504         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43505
43506 2008-09-16  Jim Meyering  <meyering@redhat.com>
43507
43508         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43509         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43510         a umask modification leak out of a subshell.  Otherwise, the
43511         opensolaris /bin/sh would be accepted and thus cause unwarranted
43512         failures in the coreutils test suite.
43513
43514 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43515
43516         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43517         to succeed.
43518
43519 2008-09-16  Jim Meyering  <meyering@redhat.com>
43520
43521         avoid spurious test failure when library is built without ACL support
43522         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43523         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43524         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43525         * tests/test-copy-acl.sh: Likewise.
43526
43527 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43528
43529         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43530         based on character occurrence counts.
43531
43532 2008-09-15  Eric Blake  <ebb9@byu.net>
43533
43534         tests: avoid some compiler warnings
43535         * tests/test-memchr.c (main): Pass NULL indirectly.
43536         * tests/test-closein.c (main): Avoid unused variable.
43537
43538 2008-09-15  Bruno Haible  <bruno@clisp.org>
43539
43540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43541         are missing on OpenBSD 4.0 individually.
43542         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43543
43544 2008-09-15  Bruno Haible  <bruno@clisp.org>
43545
43546         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43547         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43548         * doc/posix-functions/perror.texi: Likewise.
43549         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43550         is missing.
43551         Reported by Eric Blake.
43552
43553         * lib/errno.in.h: Use replacement values >= 2000.
43554         Reported by Eric Blake.
43555
43556 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43557
43558         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43559         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43560         limit.
43561         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43562         compareseq was aborted.
43563
43564 2008-09-14  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43567         yvec_edit_count.
43568         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43569         (fstrcmp_bounded): Simplify result computation accordingly.
43570
43571 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43572
43573         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43574         (fstrcmp): Define in terms of fstrcmp_bounded.
43575         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43576         lower_bound argument.
43577         Return quickly if the result is certainly < lower_bound.
43578         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43579
43580 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43581
43582         * lib/diffseq.h (EARLY_ABORT): New macro.
43583         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43584         evaluates to true.
43585
43586 2008-09-14  Bruno Haible  <bruno@clisp.org>
43587
43588         * modules/perror-tests: New file.
43589         * tests/test-perror.sh: New file.
43590         * tests/test-perror.c: New file.
43591
43592         New module 'perror'.
43593         * lib/stdio.in.h (perror): New declaration.
43594         * lib/perror.c: New file.
43595         * m4/perror.m4: New file.
43596         * modules/perror: New file.
43597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43598         * doc/posix-functions/perror.texi: Mention the perror module.
43599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43600         REPLACE_PERROR.
43601         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43602         REPLACE_PERROR.
43603
43604 2008-09-14  Bruno Haible  <bruno@clisp.org>
43605
43606         * modules/stdio (Makefile.am): Reorder to match the order in
43607         lib/stdio.in.h.
43608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43609
43610 2008-09-13  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43613
43614 2008-09-13  Bruno Haible  <bruno@clisp.org>
43615
43616         Extend strerror to cover the added errno values.
43617         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43618         (rpl_strerror): Provide error messages for the added errno values and
43619         for the WSA* values.
43620         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43621         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43622         strerror.
43623         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43624         * modules/strerror (Depends-on): Add errno.
43625         * doc/posix-functions/strerror.texi: Document the change.
43626         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43627         and EOVERFLOW.
43628
43629 2008-09-13  Bruno Haible  <bruno@clisp.org>
43630
43631         * modules/EOVERFLOW: Remove file.
43632         * m4/eoverflow.m4: Remove file.
43633         * modules/EOVERFLOW-tests: Remove file.
43634         * tests/test-EOVERFLOW.c: Remove file.
43635         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43636         * modules/ftell (Depends-on): Likewise.
43637         * modules/getdelim (Depends-on): Likewise.
43638         * modules/getugroups (Depends-on): Likewise.
43639         * modules/poll (Depends-on): Likewise.
43640         * modules/snprintf (Depends-on): Likewise.
43641         * modules/sprintf-posix (Depends-on): Likewise.
43642         * modules/vasnprintf (Depends-on): Likewise.
43643         * modules/vasprintf (Depends-on): Likewise.
43644         * modules/vfprintf-posix (Depends-on): Likewise.
43645         * modules/vsnprintf (Depends-on): Likewise.
43646         * modules/vsprintf-posix (Depends-on): Likewise.
43647         * modules/xvasprintf (Depends-on): Likewise.
43648         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43649         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43650         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43651         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43652         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43653         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43654         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43655         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43656         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43657         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43658         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43659         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43660         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43661         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43662         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43663         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43664         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43665         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43666         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43667         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43668         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43669         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43670         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43671         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43672         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43673         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43674         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43675         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43676         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43677         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43678         * MODULES.html.sh: Remove EOVERFLOW.
43679         * NEWS: Mention the change.
43680
43681 2008-09-13  Bruno Haible  <bruno@clisp.org>
43682
43683         * modules/errno-tests: New file.
43684         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43685
43686         * lib/errno.in.h: New file.
43687         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43688         * modules/errno: New file.
43689         * doc/posix-headers/errno.texi: Update documentation.
43690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43691
43692 2008-09-13  Bruno Haible  <bruno@clisp.org>
43693
43694         * tests/test-poll.c: Use #if for native Windows, rather than testing
43695         __MSVCRT__.
43696
43697 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43698             Bruno Haible  <bruno@clisp.org>
43699
43700         * lib/glob.c: Don't include <pwd.h> on native Windows.
43701         (WINDOWS32): New macro.
43702         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43703
43704 2008-09-13  Bruno Haible  <bruno@clisp.org>
43705
43706         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43707         (ETIMEDOUT): Remove macro.
43708         (glthread_cond_timedwait_multithreaded): New declaration.
43709         (glthread_cond_timedwait): Use it.
43710         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43711         (glthread_cond_timedwait_multithreaded): New function.
43712
43713 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43714
43715         * modules/poll-tests: Do not check for io.h.
43716         * tests/test-poll.c: Check for __MSVCRT__ instead.
43717
43718 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43719
43720         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43721         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43722         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43723
43724 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43725
43726         * modules/poll-tests: New.
43727         * tests/test-poll.c: New.
43728
43729 2008-09-12  Eric Blake  <ebb9@byu.net>
43730
43731         frexp: test for NetBSD failure on -0.0
43732         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43733         not all, bugs from NetBSD 3.0 have been fixed.
43734         * doc/posix-functions/frexp.texi (frexp): Document bug.
43735         Reported by Thomas Klausner.
43736
43737         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43738         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43739         literal -0.0.
43740         Reported by Jonathan C. Patschke <jp@centtech.com>.
43741
43742 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43743
43744         * lib/glthread/cond.h: Use dummy implementation also if
43745         USE_WIN32_THREADS.
43746
43747 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43748
43749         * modules/fnmatch-posix (License): Change to LGPLv2+.
43750         * modules/fnmatch-gnu (License): Likewise.
43751
43752 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43753
43754         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43755
43756 2008-09-11  Jim Meyering  <meyering@redhat.com>
43757
43758         * users.txt: Add gtk-vnc.
43759
43760 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43761
43762         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43763         rotate amounts.
43764
43765         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43766         required for 16-bit and 8-bit rotates.
43767         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43768         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43769         UINT8_MAX instead of hard-coded constants.
43770         Suggested by Paul Eggert.
43771
43772 2008-09-07  Bruno Haible  <bruno@clisp.org>
43773
43774         * tests/test-striconveh.c (main): Check behaviour when converting from
43775         UTF-7.
43776
43777         Make striconveh work better with stateful encodings.
43778         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43779         that iconv does not increment the inptr when returning -1/EINVAL.
43780
43781 2008-09-07  Bruno Haible  <bruno@clisp.org>
43782
43783         * build-aux/config.rpath: Update according to libtool-2.2.6.
43784         * build-aux/config.libpath: Likewise.
43785
43786 2008-09-06  Bruno Haible  <bruno@clisp.org>
43787
43788         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43789         * lib/freadptr.c (freadptr): Likewise.
43790         * lib/freadseek.c (freadptrinc): Likewise.
43791         Reported by Simon Josefsson.
43792
43793 2008-09-06  Bruno Haible  <bruno@clisp.org>
43794
43795         * modules/freadptr (License): Change to LGPLv2+.
43796         * modules/freadseek (License): Likewise.
43797         Suggested by Eric Blake.
43798
43799         * modules/memchr2 (License): Change to LGPLv2+.
43800         Approved by Eric Blake.
43801
43802 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43803             Bruno Haible  <bruno@clisp.org>
43804
43805         Make gnulib-tool work with native 'sed' on AIX.
43806         * gnulib-tool (sed_noop): New variable.
43807         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43808         func_add_or_update, func_create_testdir): Use it to initialize sed
43809         script variables.
43810         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43811
43812 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43813             Bruno Haible  <bruno@clisp.org>
43814
43815         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43816         also works after #include directives.
43817
43818 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43819
43820         getdate.y: reject an out-of-range timezone value
43821         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43822         the range [-24...+24].  When specified with only one or two digits,
43823         * tests/test-getdate.c: Tests for the fix.
43824         * doc/getdate.texi: Document this change.
43825
43826 2008-09-03  Bruno Haible  <bruno@clisp.org>
43827
43828         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43829
43830 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43831
43832         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43833         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43834         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43835         Blake <ebb9@byu.net>.
43836
43837         * tests/test-bitrotate.c: Add more test vectors.
43838
43839 2008-09-02  Eric Blake  <ebb9@byu.net>
43840
43841         vasnprintf-posix: handle large precision via %.*d
43842         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43843         when handling it ourselves.
43844         * tests/test-vasnprintf-posix.c (test_function): Add test.
43845         * tests/test-snprintf-posix.h (test_function): Likewise.
43846         * tests/test-sprintf-posix.h (test_function): Likewise.
43847         * tests/test-vasprintf-posix.c (test_function): Likewise.
43848         Reported by Alain Guibert.
43849
43850 2008-09-01  Eric Blake  <ebb9@byu.net>
43851
43852         c-stack: make configure-time check more robust
43853         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43854         successful sigaction call.
43855         Reported by Tom G. Christensen.
43856
43857 2008-09-01  Bruno Haible  <bruno@clisp.org>
43858
43859         New module 'findprog-lgpl'.
43860         * modules/findprog-lgpl: New file.
43861         * lib/findprog-lgpl.c: New file.
43862         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43863         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43864         to decide whether to use strdup or xstrdup, concatenated_filename or
43865         xconcatenated_filename.
43866
43867 2008-09-01  Bruno Haible  <bruno@clisp.org>
43868
43869         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43870         'xconcat-filename' (GPL).
43871         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43872         (License): Change to LGPLv2+.
43873         * modules/xconcat-filename: New file.
43874         * lib/concat-filename.h (concatenated_filename): Change specification.
43875         (xconcatenated_filename): New declaration.
43876         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43877         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43878         memory situations.
43879         * lib/xconcat-filename.c: New file.
43880         * NEWS: Mention the change.
43881         * lib/findprog.c: Include concat-filename.h, not filename.h.
43882         (find_in_path): Use xconcatenated_filename instead of
43883         concatenated_filename.
43884         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43885         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43886         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43887         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43888         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43889         instead of concatenated_filename.
43890         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43891         (execute_java_class): Use xconcatenated_filename instead of
43892         concatenated_filename.
43893         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43894         * modules/javacomp (Depends-on): Likewise.
43895         * modules/javaexec (Depends-on): Likewise.
43896
43897 2008-09-01  Bruno Haible  <bruno@clisp.org>
43898
43899         Split module 'filename' into 'filename' and 'concat-filename'.
43900         * modules/filename: Keep only lib/filename.h.
43901         (License): Change to LGPLv2+.
43902         * modules/concat-filename: New file, extracted from modules/filename.
43903         * lib/filename.h (concatenated_filename): Remove declaration.
43904         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43905         * lib/concat-filename.c: Include concat-filename.h.
43906         * NEWS: Mention the change.
43907
43908 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43909
43910         * lib/bitrotate.h (rotl8, rotr8): Add.
43911
43912         * modules/bitrotate (configure.ac): Need
43913         AC_REQUIRE([AC_C_INLINE]).
43914         (Description): Mention stdint.h.  Reported by Bruno Haible
43915         <bruno@clisp.org>.
43916
43917         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43918         Paolo Bonzini <bonzini@gnu.org>.
43919
43920 2008-08-31  Bruno Haible  <bruno@clisp.org>
43921
43922         Assume Solaris specific bi-arch conventions on Solaris systems.
43923         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43924         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43926         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43927         like acl_libdirstem.
43928         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43929         acl_libdirstem.
43930         * NEWS: Mention the change.
43931         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43932
43933 2008-08-31  Jim Meyering  <meyering@redhat.com>
43934
43935         * lib/strftime.h: Add comments describing the two added arguments.
43936
43937         remove duplicate #include directives
43938         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43939         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43940
43941 2008-08-31  Bruno Haible  <bruno@clisp.org>
43942
43943         New module 'sigpipe-die'.
43944         * modules/sigpipe-die: New file.
43945         * lib/sigpipe-die.h: New file.
43946         * lib/sigpipe-die.c: New file.
43947         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43948
43949 2008-08-31  Bruno Haible  <bruno@clisp.org>
43950
43951         Don't override previously installed signal handlers.
43952         * lib/fatal-signal.c (saved_sigactions): New variable.
43953         (uninstall_handlers): Reset the signal to the saved handler, not
43954         to SIG_DFL (except when ignored).
43955         (install_handlers): Save the previous handlers.
43956
43957 2008-08-30  Bruno Haible  <bruno@clisp.org>
43958
43959         * gnulib-tool (func_reset_sigpipe): New function.
43960         (func_get_automake_snippet, func_modules_transitive_closure,
43961         func_import): Invoke it before a join command that reads from stdin,
43962         to avoid "echo: write error: Broken pipe" error messages on stderr.
43963         Reported by Sam Steingold <sds@gnu.org>.
43964
43965 2008-08-30  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43968         Code copied from m4/open.m4.
43969         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43970         access and the filename ends in a slash. Code copied from lib/open.c.
43971         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43972         * tests/test-fopen.c (main): Check against bug with trailing slash.
43973
43974 2008-08-29  Bruno Haible  <bruno@clisp.org>
43975
43976         Avoid some "gcc -pedantic" warnings.
43977         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43978         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43979         * lib/dirent.in.h: Likewise.
43980         * lib/fcntl.in.h: Likewise.
43981         * lib/float.in.h: Likewise.
43982         * lib/iconv.in.h: Likewise.
43983         * lib/inttypes.in.h: Likewise.
43984         * lib/locale.in.h: Likewise.
43985         * lib/math.in.h: Likewise.
43986         * lib/netinet_in.in.h: Likewise.
43987         * lib/search.in.h: Likewise.
43988         * lib/signal.in.h: Likewise.
43989         * lib/stdarg.in.h: Likewise.
43990         * lib/stdint.in.h: Likewise.
43991         * lib/stdio.in.h: Likewise.
43992         * lib/stdlib.in.h: Likewise.
43993         * lib/string.in.h: Likewise.
43994         * lib/strings.in.h: Likewise.
43995         * lib/sys_select.in.h: Likewise.
43996         * lib/sys_socket.in.h: Likewise.
43997         * lib/sys_stat.in.h: Likewise.
43998         * lib/sys_time.in.h: Likewise.
43999         * lib/sysexits.in.h: Likewise.
44000         * lib/time.in.h: Likewise.
44001         * lib/unistd.in.h: Likewise.
44002         * lib/wchar.in.h: Likewise.
44003         * lib/wctype.in.h: Likewise.
44004         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44005         * modules/fchdir (Makefile.am): Likewise.
44006         * modules/fcntl (Makefile.am): Likewise.
44007         * modules/float (Makefile.am): Likewise.
44008         * modules/iconv_open (Makefile.am): Likewise.
44009         * modules/inttypes (Makefile.am): Likewise.
44010         * modules/locale (Makefile.am): Likewise.
44011         * modules/math (Makefile.am): Likewise.
44012         * modules/netinet_in (Makefile.am): Likewise.
44013         * modules/search (Makefile.am): Likewise.
44014         * modules/signal (Makefile.am): Likewise.
44015         * modules/stdarg (Makefile.am): Likewise.
44016         * modules/stdint (Makefile.am): Likewise.
44017         * modules/stdio (Makefile.am): Likewise.
44018         * modules/stdlib (Makefile.am): Likewise.
44019         * modules/string (Makefile.am): Likewise.
44020         * modules/strings (Makefile.am): Likewise.
44021         * modules/sys_select (Makefile.am): Likewise.
44022         * modules/sys_socket (Makefile.am): Likewise.
44023         * modules/sys_stat (Makefile.am): Likewise.
44024         * modules/sys_time (Makefile.am): Likewise.
44025         * modules/sysexits (Makefile.am): Likewise.
44026         * modules/time (Makefile.am): Likewise.
44027         * modules/unistd (Makefile.am): Likewise.
44028         * modules/wchar (Makefile.am): Likewise.
44029         * modules/wctype (Makefile.am): Likewise.
44030         Reported by Reuben Thomas <rrt@sc3d.org>.
44031
44032 2008-08-29  Bruno Haible  <bruno@clisp.org>
44033
44034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44035         any more.
44036
44037 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44038
44039         * MODULES.html.sh (Misc): Add bitrotate.
44040
44041         * modules/bitrotate: New file.
44042
44043         * lib/bitrotate.h: New file.
44044
44045         * modules/bitrotate-tests: New file.
44046
44047         * tests/test-bitrotate.c: New file.
44048
44049         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44050         on the bitrotate module.
44051
44052         * lib/arctwo.c: Use new bitrotate module.
44053
44054 2008-08-29  Jim Meyering  <meyering@redhat.com>
44055
44056         bootstrap: merge changes from coreutils
44057         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44058         of copied files.  Remove a kludge, now that this is fixed.
44059         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44060         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44061         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44062
44063 2008-08-29  Bruno Haible  <bruno@clisp.org>
44064
44065         * MODULES.html.sh: Remove --cvs-urls option.
44066
44067 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44068
44069         maint.mk: adjust to file name change
44070         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44071
44072 2008-08-28  Jim Meyering  <meyering@redhat.com>
44073
44074         * modules/getndelim2 (License): Relicense to LGPLv2+.
44075         Approved by Richard Stallman for the version of 1995, and by
44076         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44077
44078 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44079
44080         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44081         dummy if one is not available.  Do not touch them if
44082         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44083         (getc_maybe_unlocked): New.
44084         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44085
44086 2008-08-26  Eric Blake  <ebb9@byu.net>
44087
44088         doc/INSTALL: resync from autoconf
44089         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44090         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44091         moving...
44092         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44093         * INSTALL: Regenerate.
44094         * INSTALL.ISO: New file.
44095         * INSTALL.UTF-8: Likewise.
44096
44097 2008-08-26  Jim Meyering  <meyering@redhat.com>
44098
44099         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44100         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44101         these definitions conditional, so that they may be overridden, too.
44102
44103 2008-08-26  Bruno Haible  <bruno@clisp.org>
44104
44105         Generate INSTALL file variants with prettier quotes.
44106         * doc/Makefile (INSTALL_PRELUDE): New macro.
44107         (INSTALL): Use it.
44108         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44109
44110 2008-08-26  Bruno Haible  <bruno@clisp.org>
44111
44112         Run makeinfo in an English locale.
44113         * doc/Makefile (MAKEINFO): New variable.
44114
44115 2008-08-26  Bruno Haible  <bruno@clisp.org>
44116
44117         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44118         Suggested by Eric Blake.
44119
44120 2008-08-25  Bruno Haible  <bruno@clisp.org>
44121
44122         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44123
44124 2008-08-25  Eric Blake  <ebb9@byu.net>
44125
44126         c-stack: test that stack overflow can be caught
44127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44128         that platform allows handling stack overflow; at least OS/2 EMX
44129         has sigaltstack, but crashes before transferring control to
44130         handler on stack overflow.
44131         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44132         check for HAVE_STACK_OVERFLOW_HANDLING.
44133         Reported by Elbert Pol.
44134
44135 2008-08-25  Bruno Haible  <bruno@clisp.org>
44136
44137         * doc/posix-functions/strftime.texi: Fix description of strftime
44138         module.
44139
44140 2008-08-24  Bruno Haible  <bruno@clisp.org>
44141
44142         * tests/uniwidth/test-uc_width2.c: New file.
44143         * tests/uniwidth/test-uc_width2.sh: New file.
44144         * modules/uniwidth/width-tests (Files): Add the new files.
44145         (TESTS): Add uniwidth/test-uc_width2.sh.
44146         (TESTS_ENVIRONMENT): New variable.
44147         (check_PROGRAMS): Add test-uc_width2.
44148         (test_uc_width2_SOURCES): New variable.
44149
44150         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44151         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44152         not 0x00AB.
44153         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44154
44155 2008-08-22  Eric Blake  <ebb9@byu.net>
44156
44157         test-lock, test-tls: mention why a test is skipped
44158         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44159         skipped.
44160         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44161
44162         count-one-bits: relax license
44163         * modules/count-one-bits (License): Relicense to LGPLv2+.
44164         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44165
44166 2008-08-22  Andreas Schwab  <schwab@suse.de>
44167
44168         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44169         Remove spurious space in assignment.
44170
44171 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44172
44173         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44174         Paul Eggert <eggert@CS.UCLA.EDU>.
44175
44176 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44177
44178         * modules/gettext: Add m4/threadlib.m4.
44179
44180 2008-08-19  Eric Blake  <ebb9@byu.net>
44181
44182         test-c-stack: fix compilation failure on FreeBSD 5.0
44183         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44184         headers before <sys/resource.h>.
44185         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44186         the bug.
44187         Reported by Nelson H. F. Beebe.
44188
44189         strverscmp: migrate from "strverscmp.h" to <string.h>
44190         * modules/string (Makefile.am): Add new hooks.
44191         * modules/strverscmp (Files): Remove strverscmp.h.
44192         (Depends-on): Add string.
44193         (configure.ac): Add indicator.
44194         (Include): Mention new header.
44195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44196         defaults.
44197         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44198         results.
44199         * lib/strverscmp.h: Delete.
44200         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44201         * tests/test-strverscmp.c (includes): Adjust client.
44202         * lib/check-version.c (includes): Likewise.
44203         * NEWS: Document the change.
44204
44205         strverscmp: add unit test
44206         * modules/strverscmp-tests: New file.
44207         * tests/test-strverscmp.c: Likewise.
44208
44209 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44210
44211         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44212         regarding Windows crypto stuff, from Mono.
44213
44214 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44215
44216         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44217         if present, for intel RND.  Return error on failures.
44218
44219 2008-08-18  Ben Pfaff  <blp@gnu.org>
44220
44221         gitlog-to-changelog: give better diagnostic for failed pipe-open
44222         * build-aux/gitlog-to-changelog: Improve error message: suggest
44223         that the version of Git may be too old.
44224
44225 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44226
44227         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44228         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44229
44230 2008-08-18  Bruno Haible  <bruno@clisp.org>
44231
44232         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44233         pthread_in_use().
44234
44235 2008-08-18  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/glthread/threadlib.c: Include <pthread.h>.
44238
44239 2008-08-18  Bruno Haible  <bruno@clisp.org>
44240
44241         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44242         glthread_recursive_lock_* macros.
44243         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44244         Fix syntax error.
44245
44246 2008-08-18  Bruno Haible  <bruno@clisp.org>
44247
44248         * lib/glthread/thread.c: Avoid forcing a context switch right after
44249         thread creation.
44250
44251 2008-08-17  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44254         * lib/glthread/thread.h: Provide Win32 specific implementation.
44255         * modules/thread (Files): Add lib/glthread/thread.c.
44256         (Depends-on): Add lock.
44257         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44258
44259 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44260
44261         New module 'yield'.
44262         * modules/yield: New file.
44263         * lib/glthread/yield.h: New file.
44264         * m4/yield.m4: New file.
44265         * MODULES.html.sh (Multithreading): Add yield.
44266
44267 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44268
44269         New module 'thread'.
44270         * modules/thread: New file.
44271         * lib/glthread/thread.h: New file.
44272         * m4/thread.m4: New file.
44273         * MODULES.html.sh (Multithreading): Add thread.
44274
44275 2008-08-17  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/glthread/lock.h: Include <stdlib.h> always.
44278         * lib/glthread/tls.h: Likewise.
44279         * lib/glthread/cond.h: Likewise.
44280
44281 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44282
44283         New module 'cond'.
44284         * modules/cond: New file.
44285         * lib/glthread/cond.h: New file.
44286         * lib/glthread/cond.c: New file.
44287         * m4/cond.m4: New file.
44288         * MODULES.html.sh (Multithreading): Add cond.
44289
44290 2008-08-16  Eric Blake  <ebb9@byu.net>
44291
44292         c-stack: fix regression on Irix 5.3 from 2008-06-21
44293         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44294         sa_sigaction...
44295         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44296         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44298         * modules/signal (Makefile.am): Use the value.
44299         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44300         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44301         * doc/posix-headers/signal.texi (signal.h): Document this
44302         portability issue.
44303         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44304         Reported by Tom G. Christensen.
44305
44306 2008-08-17  Bruno Haible  <bruno@clisp.org>
44307
44308         New module 'threadlib'.
44309         * modules/threadlib: New file.
44310         * lib/glthread/threadlib.c: New file, extracted from
44311         lib/glthread/lock.c.
44312         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44313         functions.
44314         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44315         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44316         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44317         macros.
44318         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44319         (gl_DISABLE_THREADS): Remove macro.
44320         * modules/lock (Files): Remove build-aux/config.rpath.
44321         (Depends-on): Remove havelib. Add threadlib.
44322         (configure.ac-early): Remove section.
44323         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44324         * modules/tls (Depends-on): Remove lock. Add threadlib.
44325         (Link): New section, copied from threadlib.
44326         * MODULES.html.sh (Multithreading): Add threadlib.
44327
44328 2008-08-14  Bruno Haible  <bruno@clisp.org>
44329
44330         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44331         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44332         glthread_rwlock_unlock, glthread_rwlock_destroy,
44333         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44334         glthread_recursive_lock_destroy): Define as macros always.
44335         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44336         glthread_lock_lock.
44337         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44338         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44339         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44340         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44341         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44342         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44343         (glthread_recursive_lock_lock_func): Renamed from
44344         glthread_recursive_lock_lock.
44345         (glthread_recursive_lock_unlock_func): Renamed from
44346         glthread_recursive_lock_unlock.
44347         (glthread_recursive_lock_destroy_func): Renamed from
44348         glthread_recursive_lock_destroy.
44349
44350 2008-08-14  Bruno Haible  <bruno@clisp.org>
44351
44352         * lib/glthread/lock.h: Renamed from lib/lock.h.
44353         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44354         * lib/glthread/tls.h: Renamed from lib/tls.h.
44355         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44356         * lib/fstrcmp.c: Update includes.
44357         * lib/strsignal.c: Update includes.
44358         * modules/lock (Files, Makefile.am): Update.
44359         (Include): Change to "glthread/lock.h".
44360         * modules/tls (Files, Makefile.am): Update.
44361         (Include): Change to "glthread/tls.h".
44362         * tests/test-lock.c: Update includes.
44363         * tests/test-tls.c: Update includes.
44364         * NEWS: Mention the renamed header files.
44365
44366 2008-08-11  Jim Meyering  <meyering@redhat.com>
44367
44368         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44369
44370 2008-08-11  Eric Blake  <ebb9@byu.net>
44371
44372         test-c-stack: avoid C99-ism
44373         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44374         before statement.
44375         Reported by Alain Guibert.
44376
44377 2008-08-10  Jim Meyering  <meyering@redhat.com>
44378
44379         ensure that return value of uinttostr et al are not ignored
44380         * lib/inttostr.h (__GNUC_PREREQ): Define.
44381         (__attribute_warn_unused_result__): Define.
44382         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44383
44384 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44385
44386         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44387         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44388
44389 2008-08-07  Jim Meyering  <meyering@redhat.com>
44390
44391         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44392
44393         * modules/mkstemp (License): Relicense under LGPLv2+.
44394         * modules/tempname (License): Likewise.
44395
44396 2008-08-06  Bruno Haible  <bruno@clisp.org>
44397
44398         * lib/poll.c (poll): Further micro-optimization.
44399
44400 2008-08-06  Jim Meyering  <meyering@redhat.com>
44401
44402         inet_pton.c: use locale-independent tolower
44403         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44404         (inet_pton6): Use c_tolower rather than tolower.
44405         * modules/inet_pton (Depends-on): Add c-ctype.
44406
44407 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44408
44409         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44410         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44411
44412 2008-08-06  Jim Meyering  <meyering@redhat.com>
44413
44414         * modules/inet_pton (License): Relicense under LGPLv2+.
44415
44416 2008-08-03  Bruno Haible  <bruno@clisp.org>
44417
44418         Additional non-aborting API for lock and tls.
44419         * lib/lock.h: Include <errno.h>.
44420         (glthread_lock_init): New macro/function.
44421         (gl_lock_init): Define as wrapper around glthread_lock_init.
44422         (glthread_lock_lock): New macro/function.
44423         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44424         (glthread_lock_unlock): New macro/function.
44425         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44426         (glthread_lock_destroy): New macro/function.
44427         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44428         (glthread_rwlock_init): New macro/function.
44429         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44430         (glthread_rwlock_rdlock): New macro/function.
44431         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44432         (glthread_rwlock_wrlock): New macro/function.
44433         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44434         (glthread_rwlock_unlock): New macro/function.
44435         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44436         (glthread_rwlock_destroy): New macro/function.
44437         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44438         (glthread_recursive_lock_init): New macro/function.
44439         (gl_recursive_lock_init): Define as wrapper around
44440         glthread_recursive_lock_init.
44441         (glthread_recursive_lock_lock): New macro/function.
44442         (gl_recursive_lock_lock): Define as wrapper around
44443         glthread_recursive_lock_lock.
44444         (glthread_recursive_lock_unlock): New macro/function.
44445         (gl_recursive_lock_unlock): Define as wrapper around
44446         glthread_recursive_lock_unlock.
44447         (glthread_recursive_lock_destroy): New macro/function.
44448         (gl_recursive_lock_destroy): Define as wrapper around
44449         glthread_recursive_lock_destroy.
44450         (glthread_once): New macro/function.
44451         (gl_once): Define as wrapper around glthread_once.
44452         Update function declarations.
44453         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44454         glthread_rwlock_init. Return error code.
44455         (glthread_rwlock_rdlock_multithreaded): Renamed from
44456         glthread_rwlock_rdlock. Return error code.
44457         (glthread_rwlock_wrlock_multithreaded): Renamed from
44458         glthread_rwlock_wrlock. Return error code.
44459         (glthread_rwlock_unlock_multithreaded): Renamed from
44460         glthread_rwlock_unlock. Return error code.
44461         (glthread_rwlock_destroy_multithreaded): Renamed from
44462         glthread_rwlock_destroy. Return error code.
44463         (glthread_recursive_lock_init_multithreaded): Renamed from
44464         glthread_recursive_lock_init. Return error code.
44465         (glthread_recursive_lock_lock_multithreaded): Renamed from
44466         glthread_recursive_lock_lock. Return error code.
44467         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44468         glthread_recursive_lock_unlock. Return error code.
44469         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44470         glthread_recursive_lock_destroy. Return error code.
44471         (glthread_once_call): Make static.
44472         (glthread_once_multithreaded): Renamed from glthread_once.
44473         * lib/tls.h: Include <errno.h>.
44474         (glthread_tls_key_init): New macro/function.
44475         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44476         (glthread_tls_set): New macro/function.
44477         (gl_tls_set): Define as wrapper around glthread_tls_set.
44478         (glthread_tls_key_destroy): New macro/function.
44479         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44480         Update function declarations.
44481         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44482         glthread_tls_get.
44483         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44484
44485 2008-08-04  Eric Blake  <ebb9@byu.net>
44486
44487         gnumakefile: use space, not TAB, outside of targets
44488         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44489
44490 2008-08-02  Jim Meyering  <meyering@redhat.com>
44491
44492         getdate.y: avoid locale-dependent date parsing failure
44493         In Turkish locales, getdate would fail to recognize keywords
44494         containing a lowercase "i".  The solution is not to rely on
44495         locale-sensitive case-conversion.
44496         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44497         (lookup_word): Use c_toupper in place of toupper.
44498         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44499         Reported by Vefa Bicakci <bicave@superonline.com> in
44500         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44501         * modules/getdate (Depends-on): Add c-ctype.
44502
44503 2008-08-02  Bruno Haible  <bruno@clisp.org>
44504
44505         * gnulib-tool (func_import): When updating or creating a .gitignore
44506         file, prepend each added line with a slash, and ignore leading slashes
44507         from the existing lines.
44508         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44509
44510 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44511
44512         Portability fix for GNU make 3.79.1.
44513         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44514         versions do not understand.
44515
44516 2008-08-01  Bruno Haible  <bruno@clisp.org>
44517
44518         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44519         * tests/test-isnanf.h (zero): New variable.
44520         (main): Avoid literal -0.0f.
44521         * tests/test-isnand.h (zero): New variable.
44522         (main): Avoid literal -0.0.
44523         * tests/test-isnanl.h (zero): New variable.
44524         (main): Avoid literal -0.0L.
44525         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44526         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44527         -0.0, -0.0L.
44528         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44529         (test_signbitd): Avoid literal -0.0.
44530         (test_signbitl): Avoid literal -0.0L.
44531         * tests/test-ceilf1.c (zero): New variable.
44532         (main): Avoid literal -0.0f.
44533         * tests/test-ceill.c (zero): New variable.
44534         (main): Avoid literal -0.0L.
44535         * tests/test-floorf1.c (zero): New variable.
44536         (main): Avoid literal -0.0f.
44537         * tests/test-floorl.c (zero): New variable.
44538         (main): Avoid literal -0.0L.
44539         * tests/test-roundf1.c (zero): New variable.
44540         (main): Avoid literal -0.0f.
44541         * tests/test-round1.c (zero): New variable.
44542         (main): Avoid literal -0.0.
44543         * tests/test-roundl.c (zero): New variable.
44544         (main): Avoid literal -0.0L.
44545         * tests/test-truncf1.c (zero): New variable.
44546         (main): Avoid literal -0.0f.
44547         * tests/test-trunc1.c (zero): New variable.
44548         (main): Avoid literal -0.0.
44549         * tests/test-truncl.c (zero): New variable.
44550         (main): Avoid literal -0.0L.
44551         * tests/test-frexp.c (zero): New variable.
44552         (main): Avoid literal -0.0.
44553         * tests/test-frexpl.c (zero): New variable.
44554         (main): Avoid literal -0.0L.
44555         * tests/test-ldexpl.c (zero): New variable.
44556         (main): Avoid literal -0.0L.
44557         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44558         (zerod, zerol): New variables.
44559         (test_function): Avoid literals -0.0, -0.0L.
44560         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44561         (zerod, zerol): New variables.
44562         (test_function): Avoid literals -0.0, -0.0L.
44563         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44564         (zerod, zerol): New variables.
44565         (test_function): Avoid literals -0.0, -0.0L.
44566         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44567         (zerod, zerol): New variables.
44568         (test_function): Avoid literals -0.0, -0.0L.
44569         * tests/test-strtod.c (zero): New variable.
44570         (main): Avoid literal -0.0.
44571         Reported by Jonathan C. Patschke <jp@centtech.com>.
44572
44573 2008-07-31  Jim Meyering  <meyering@redhat.com>
44574
44575         sha256.h: correct definition of SHA224_DIGEST_SIZE
44576         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44577         Reported by Paulie Pena IV <paulie4@gmail.com>.
44578         Define as 224 / 8, rather than as a literal.
44579         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44580         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44581         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44582
44583 2008-07-31  Bruno Haible  <bruno@clisp.org>
44584
44585         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44586         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44587         Reported by Jonathan Patschke <jp@centtech.com>.
44588
44589 2008-07-31  Bruno Haible  <bruno@clisp.org>
44590
44591         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44592         Reported by Paolo Bonzini <bonzini@gnu.org>.
44593
44594 2008-07-30  Eric Blake  <ebb9@byu.net>
44595
44596         test-strtod: allow compilation without -lm
44597         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44598         Reported by Dennis Clarke <blastwave@gmail.com>.
44599
44600 2008-07-28  Jim Meyering  <meyering@redhat.com>
44601
44602         bootstrap: work also when there are no .po files in po/
44603         * build-aux/bootstrap (update_po_files): Complete the change
44604         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44605
44606 2008-07-27  Jim Meyering  <meyering@redhat.com>
44607
44608         * users.txt: Add zile.
44609
44610 2008-07-26  Ben Pfaff  <blp@gnu.org>
44611
44612         Add missing dependencies on new m4/exponent[fdl].m4 files.
44613         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44614         * modules/isnand-nolibm: Add m4/exponentd.m4.
44615         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44616         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44617         m4/isnan[fdl].m4, because the macros actually used moved.
44618         Reported by Jim Meyering.
44619
44620 2008-07-14  Ben Pfaff  <blp@gnu.org>
44621
44622         Add isinf module.
44623         * lib/isinf.c: New file.
44624         * lib/math.in.h: Define isinf macro if we have decided to replace
44625         it.
44626         * m4/isinf.m4: New file.
44627         * m4/math_h.m4: Initialize and substitute variables for isinf
44628         module.
44629         * modules/isinf: New file.
44630         * modules/isinf-tests: New file.
44631         * modules/math: Add substitutions for new module.
44632         * tests/test-isinf.c: New file.
44633         * doc/posix-functions/isinf.texi: Mention new module.
44634         * MODULES.html.sh: Mention new module.
44635
44636 2008-07-14  Ben Pfaff  <blp@gnu.org>
44637
44638         Factor out some macros for use by additional modules.
44639         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44640         exponentf.m4.
44641         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44642         exponentd.m4.
44643         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44644         file exponentl.m4.
44645         * m4/exponentf.m4: New file.
44646         * m4/exponentd.m4: New file.
44647         * m4/exponentl.m4: New file.
44648         * modules/isnanf: Use new file m4/exponentf.m4.
44649         * modules/isnand: Use new file m4/exponentd.m4.
44650         * modules/isnanl: Use new file m4/exponentl.m4.
44651
44652 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44653
44654         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44655         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44656         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44657         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44658
44659         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44660         readlink on platforms without PATH_MAX.
44661
44662 2008-07-21  Eric Blake  <ebb9@byu.net>
44663
44664         Warn, not fail, on stale version.
44665         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44666
44667         Don't allow installation with stale devel version number.
44668         * top/GNUmakefile (_is-install-target): New macro.
44669         (_curr-ver): Forbid installation with stale version number.
44670
44671 2008-07-20  Bruno Haible  <bruno@clisp.org>
44672
44673         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44674         TESTS_ENVIRONMENT.
44675         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44676
44677 2008-07-20  Bruno Haible  <bruno@clisp.org>
44678
44679         * lib/c-stack.h (c_stack_action): Add documentation.
44680         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44681
44682 2008-07-20  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44685         * modules/readlink (License): Likewise.
44686
44687 2008-07-17  Eric Blake  <ebb9@byu.net>
44688
44689         * modules/c-stack (Link): Fix typo.
44690
44691         Make c-stack use libsigsegv, when available.
44692         * modules/c-stack (Depends-on): Add libsigsegv.
44693         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44694         needed.
44695         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44696         (segv_handler, overflow_handler, c_stack_action)
44697         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44698         implementation when libsigsegv is available, but only when using
44699         the library is necessary.
44700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44701         comment, explaining why XSI check fails on Linux.
44702         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44703         * tests/test-c-stack2.sh: Tweak skip message.
44704         * NEWS: Document new link-time requirements.
44705
44706 2008-07-16  Eric Blake  <ebb9@byu.net>
44707
44708         c-stack: Expose false positives when not using libsigsegv.
44709         * modules/c-stack-tests (Files): Expand test.
44710         * tests/test-c-stack.c (main): Add means to conditionally trigger
44711         non-overflow SIGSEGV.
44712         * tests/test-c-stack2.sh: New file.
44713
44714 2008-07-14  Bruno Haible  <bruno@clisp.org>
44715
44716         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44717         Reported by Eric Blake.
44718
44719 2008-07-14  Sam Steingold  <sds@gnu.org>
44720             Bruno Haible  <bruno@clisp.org>
44721
44722         New module libsigsegv.
44723         * modules/libsigsegv: New file.
44724         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44725         modifications.
44726         * MODULES.html.sh (Signal handling): New section.
44727
44728 2008-07-14  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/unictype/ctype-* (Description): Add the word "function".
44731         Improves the resulting doc in MODULES.html.
44732
44733 2008-07-12  Ben Pfaff  <blp@gnu.org>
44734
44735         Add longlong module.
44736         * modules/longlong: New file.
44737
44738 2008-07-12  Bruno Haible  <bruno@clisp.org>
44739
44740         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44741         to empty.
44742
44743 2008-07-10  Ben Pfaff  <blp@gnu.org>
44744
44745         Add isnan module.
44746         * doc/posix-functions/isnan.texi: Mention new module.
44747         * lib/math.in.h: Define isnan macro if we have decided to replace
44748         it.
44749         * m4/isnan.m4: New file.
44750         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44751         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44752         also.
44753         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44754         redundancy.
44755         * m4/math_h.m4: Initialize and substitute variables for isnan
44756         module.
44757         * modules/isnan: New file.
44758         * modules/isnan-tests: New file.
44759         * modules/math: Add substitutions for new module.
44760         * tests/test-isnan.c: New file.
44761         * MODULES.html.sh: Mention new module.
44762
44763 2008-07-10  Ben Pfaff  <blp@gnu.org>
44764
44765         Add isnanf module.
44766         * lib/isnanf.m4: New file.
44767         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44768         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44769         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44770         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44771         * modules/isnanf: New file.
44772         * modules/isnanf-tests: New file.
44773         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44774         files.
44775         * tests/test-isnanf-nolibm.c: factored most of its contents into
44776         new file tests/test-isnanf.h.
44777         * tests/test-isnanf.h: New file.
44778         * tests/test-isnanf.c: New file.
44779         * MODULES.html.sh: Mention new module.
44780         * doc/glibc-functions/isnanf.texi: Mention new module.
44781
44782 2008-07-10  Ben Pfaff  <blp@gnu.org>
44783
44784         Add isnand module.
44785         * lib/isnand.h: New file.
44786         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44787         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44788         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44789         functionality also.
44790         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44791         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44792         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44793         * modules/isnand: New file.
44794         * modules/isnand-tests: New file.
44795         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44796         files.
44797         * tests/test-isnand-nolibm.c: factored most of its contents into
44798         new file tests/test-isnand.h.
44799         * tests/test-isnand.h: New file.
44800         * tests/test-isnand.c: New file.
44801         * MODULES.html.sh: Mention new module.
44802
44803 2008-07-10  Ben Pfaff  <blp@gnu.org>
44804
44805         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44806         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44807         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44808         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44809         * modules/isnanf-nolibm: Update references to renamed files.
44810         * modules/isnand-nolibm: Likewise.
44811         * modules/isnanf-nolibm-tests: Likewise.
44812         * modules/isnand-nolibm-tests: Likewise.
44813         * lib/frexp.c: Likewise.
44814         * lib/isfinite.c: Likewise.
44815         * lib/signbitd.c: Likewise.
44816         * lib/signbitf.c: Likewise.
44817         * lib/vasnprintf.c: Likewise.
44818         * tests/test-ceilf1.c: Likewise.
44819         * tests/test-ceilf2.c: Likewise.
44820         * tests/test-floorf1.c: Likewise.
44821         * tests/test-floorf2.c: Likewise.
44822         * tests/test-frexp.c: Likewise.
44823         * tests/test-round1.c: Likewise.
44824         * tests/test-round2.c: Likewise.
44825         * tests/test-roundf1.c: Likewise.
44826         * tests/test-strtod.c: Likewise.
44827         * tests/test-trunc1.c: Likewise.
44828         * tests/test-trunc2.c: Likewise.
44829         * tests/test-truncf1.c: Likewise.
44830         * tests/test-truncf2.c: Likewise.
44831         * NEWS: Mention the renamed header files.
44832
44833 2008-07-11  Jim Meyering  <meyering@redhat.com>
44834
44835         vc-list-files: make the last-resort awk code more portable
44836         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44837         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44838         does not support it.
44839
44840 2008-07-10  Eric Blake  <ebb9@byu.net>
44841
44842         Work with tar's bootstrap.
44843         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44844         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44845         an m4 comment.
44846
44847 2008-07-09  Jim Meyering  <meyering@redhat.com>
44848
44849         posix-shell.m4: fix typo that made this test malfunction
44850         * m4/posix-shell.m4: Remove capitalization in variable name.
44851
44852 2008-07-08  Bruno Haible  <bruno@clisp.org>
44853
44854         * m4/onceonly.m4: Update comments.
44855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44856
44857 2008-07-04  Jim Meyering  <meyering@redhat.com>
44858
44859         * users.txt: Add vc-dwim.
44860         (bison, coreutils): Use the gitweb URL.
44861
44862 2008-07-03  Jim Meyering  <meyering@redhat.com>
44863
44864         * users.txt: Add libffcall.  From Sam Steingold.
44865
44866 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44867
44868         getdate.y: do not ignore TZ with relative day, month or year offset
44869         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44870         relative-date-handling, since otherwise, the latter would clobber the
44871         sole output (an updated Start value) of the tz-handling block.
44872         * tests/test-getdate.c: Tests for the fix
44873
44874 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44875
44876         Recognize 'foo_LIBRARIES += libgnu.a'.
44877         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44878         makefile snippet has already specified an installation location,
44879         also using '+='.
44880
44881 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44882
44883         getdate.y: factor out common actions
44884         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44885         Use them in place of open-coded actions.
44886
44887 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44888
44889         Add self-test for getdate module.
44890         * modules/getdate-tests: New file.
44891         * tests/test-getdate.c: New file.
44892
44893 2008-06-29  Bruno Haible  <bruno@clisp.org>
44894
44895         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44896         .gitignore.
44897         Reported by Sylvain Beucler <beuc@beuc.net>.
44898
44899 2008-06-29  Bruno Haible  <bruno@clisp.org>
44900
44901         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44902         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44903
44904 2008-06-29  Bruno Haible  <bruno@clisp.org>
44905
44906         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44907         EXTRA_DIST.
44908         Reported by Sylvain Beucler <beuc@beuc.net>.
44909
44910 2008-06-26  Jim Meyering  <meyering@redhat.com>
44911
44912         make several modules depend on the "open" module
44913         This provides slightly increased consistency when opening-for-write
44914         the name of a non-directory spelled with a trailing slash.
44915         * modules/chdir-safer: Likewise.
44916         * modules/chown: Likewise.
44917         * modules/clean-temp: Likewise.
44918         * modules/copy-file: Likewise.
44919         * modules/fchdir: Likewise.
44920         * modules/fcntl-safer: Likewise.
44921         * modules/pipe: Likewise.
44922         * modules/utime: Likewise.
44923         Prompted by Eric Blake and Bruno Haible.
44924
44925 2008-06-24  Andreas Schwab  <schwab@suse.de>
44926
44927         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44928         literals can be used as initializers for global variables.
44929
44930 2008-06-23  Eric Blake  <ebb9@byu.net>
44931
44932         Make gnulib-cache.m4 easier to diff.
44933         * gnulib-tool (func_import): Allow newlines when reading cached
44934         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44935
44936 2008-06-23  Bruno Haible  <bruno@clisp.org>
44937
44938         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44939         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44940         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44941         m4/signalblocking.m4.
44942         (gl_PREREQ_SIGACTION): Don't invoke it.
44943         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44944         gl_PREREQ_SIG_HANDLER_H.
44945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44946         Don't check for sigaction here.
44947
44948 2008-06-23  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44951         (install_handlers): Don't set the SA_RESETHAND flag.
44952
44953 2008-06-23  Bruno Haible  <bruno@clisp.org>
44954
44955         * m4/sigaction.m4: Comment fixes.
44956         * lib/signal.in.h: Likewise.
44957
44958 2008-06-23  Eric Blake  <ebb9@byu.net>
44959
44960         Fix typo.
44961         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44962
44963         Avoid SA_ namespace.
44964         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44965         Reported by Ralf Wildenhues.
44966
44967         Avoid test failure due to SA_RESTORER.
44968         * tests/test-sigaction.c (SA_MASK): New macro.
44969         (main): Avoid failing due to extension flags being set.
44970         Reported by Jim Meyering.
44971
44972         Revert use of sig-handler.h in sigprocmask.c.
44973         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44974         it requires the existence of struct sigaction.
44975         * lib/sigprocmask.c (handler_t): Restore typedef.
44976         (rpl_signal, old_handlers): Use local type.
44977
44978 2008-06-22  Bruno Haible  <bruno@clisp.org>
44979
44980         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44981         conditionally.
44982         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44983
44984 2008-06-22  Bruno Haible  <bruno@clisp.org>
44985
44986         * doc/posix-functions/siginterrupt.texi: Move note.
44987
44988         * lib/signal.in.h (SA_RESTART): New macro.
44989         * lib/sigaction.c: Update comment.
44990
44991         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44992
44993         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44994         (gl_PREREQ_SIGPROCMASK): Invoke it.
44995         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44996
44997         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44998
44999         * lib/sigprocmask.c: Update a comment.
45000
45001 2008-06-21  Eric Blake  <ebb9@byu.net>
45002
45003         Use sigaction module rather than signal().
45004         * modules/c-stack (Depends-on): Add sigaction.
45005         * modules/fatal-signal (Depends-on): Likewise.
45006         * modules/nanosleep (Depends-on): Likewise.
45007         * modules/sigprocmask (Files): Add sig-handler.h.
45008         * modules/sigaction (Files): Likewise.
45009         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45010         Eggert.
45011         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45012         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45013         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45014         (init_fatal_signals): Likewise.
45015         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45016         (siginterrupt): Delete fallback.
45017         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45018         instead.
45019         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45020         siginterrupt.
45021
45022         New module sigaction, for mingw.
45023         * modules/sigaction: New module...
45024         * modules/sigaction-tests: ...and its test.
45025         * m4/sigaction.m4: New file.
45026         * lib/sigaction.c: Likewise.
45027         * tests/test-sigaction.c: Likewise.
45028         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45029         * modules/signal (Makefile.am): Likewise.
45030         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45031         needed.
45032         * doc/posix-headers/signal.texi (signal.h): Mention provided
45033         types.
45034         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45035         that sigaction is preferable.
45036         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45037         module.
45038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45039         sigaction.
45040
45041         Improve robustness of sigprocmask by overriding signal.
45042         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45043         is in use.
45044         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45045         (SIGKILL, SIGSTOP): Provide fallbacks.
45046         (rpl_signal): Implement.
45047         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45048         signal can be called inside handlers.
45049
45050         Fix nanosleep module on mingw.
45051         * modules/nanosleep (Depends-on): Add sys_select.
45052         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45053
45054         Fix licensing of sigprocmask.
45055         * modules/raise (License): Relicense as LGPL.
45056
45057 2008-06-21  Bruno Haible  <bruno@clisp.org>
45058
45059         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45060         result if it contains question marks.
45061         Reported by Michael Geng <linux@michaelgeng.de>.
45062
45063 2008-06-19  Bruno Haible  <bruno@clisp.org>
45064
45065         Fix CVS-ism.
45066         * doc/gnulib.texi: Include updated-stamp.texi.
45067         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45068         (updated-stamp.texi): New rule.
45069         (gnulib.info): Depend on it.
45070         * doc/.gitignore: Add updated-stamp.texi.
45071         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45072
45073 2008-06-19  Bruno Haible  <bruno@clisp.org>
45074
45075         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45076         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45077
45078 2008-06-19  Eric Blake  <ebb9@byu.net>
45079
45080         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45081         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45082         Reported by Stepan Kasal.
45083
45084 2008-06-18  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45087         Reported by Eric Blake.
45088
45089 2008-06-18  Eric Blake  <ebb9@byu.net>
45090
45091         Work around cygwin 1.5.25 strsignal bug.
45092         * tests/test-strsignal.c: Allow for const char *.
45093         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45094
45095 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45096
45097         * users.txt: Update URL to article and add author/date
45098         information.
45099
45100 2008-06-17  Bruno Haible  <bruno@clisp.org>
45101
45102         New macro gl_DISABLE_THREADS.
45103         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45104         if the user did not pass --enable-threads or --disable-threads option.
45105         (gl_DISABLE_THREADS): New macro.
45106         Reported by Eric Blake <ebb9@byu.net>.
45107
45108 2008-06-17  Bruno Haible  <bruno@clisp.org>
45109
45110         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45111         when the macro ignores it.
45112         Based on a patch by Eric Blake <ebb9@byu.net>.
45113
45114 2008-06-17  Bruno Haible  <bruno@clisp.org>
45115
45116         * modules/tls (License): Change to LGPLv2+.
45117         Reported by Eric Blake.
45118
45119 2008-06-17  Eric Blake  <ebb9@byu.net>
45120
45121         Simplify c-stack prerequisites.
45122         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45124         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45125         check.
45126         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45127         <sys/resource.h>.
45128
45129         Move c-stack test into testsuite.
45130         * modules/c-stack-tests: New file.
45131         * lib/c-stack.c [DEBUG]: Move test program...
45132         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45133         fail test if sigaltstack is lacking.
45134         * tests/test-c-stack.sh: New driver file.
45135
45136 2008-06-16  Eric Blake  <ebb9@byu.net>
45137
45138         Use raise module consistently.
45139         * modules/fatal-signal (Depends-on): Add raise.
45140         * modules/sigprocmask (Depends-on): Likewise.
45141         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45142         * lib/sigprocmask.c (sigprocmask): Likewise.
45143         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45144         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45145
45146         Fix compliance bug in sigpending.
45147         * lib/sigprocmask.c (sigpending): Return pending array via
45148         parameter, not return value.
45149
45150 2008-06-14  Eric Blake  <ebb9@byu.net>
45151
45152         Improve obstack-printf test code.
45153         * tests/test-obstack-printf.c (test_function): Fix comment, and
45154         simplify usage of obstack_* in macros.  Add a test for coverage.
45155         Reported by Bruno Haible.
45156
45157 2008-06-14  Bruno Haible  <bruno@clisp.org>
45158
45159         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45160         array size as a constant, not as a const variable.
45161         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45162         AC_USE_SYSTEM_EXTENSIONS.
45163         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45164         Test whether the obstack_printf function actually exists.
45165         * modules/obstack-printf (Depends-on): Add extensions.
45166         (Include): Remove obstack.h.
45167         * modules/obstack-printf-posix (Depends-on): Add extensions.
45168         (Include): Remove obstack.h.
45169
45170 2008-06-13  Eric Blake  <ebb9@byu.net>
45171
45172         Add obstack-printf and obstack-printf-posix modules.
45173         * modules/obstack-printf: New file.
45174         * modules/obstack-printf-posix: Likewise.
45175         * MODULES.html.sh (Misc): Mention them.
45176         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45177         Likewise.
45178         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45179         Likewise.
45180         * modules/stdio (Makefile.am): Accomodate new modules.
45181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45182         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45183         Declare.
45184         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45185         functions.
45186         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45187         (gl_REPLACE_OBSTACK_PRINTF): New macros
45188         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45189         * tests/test-obstack-printf.c: New file.
45190         * modules/obstack-printf-tests: Likewise.
45191         * modules/obstack-printf-posix-tests: Likewise.
45192
45193 2008-06-11  Bruno Haible  <bruno@clisp.org>
45194
45195         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45196         * lib/open.c: Include errno.h.
45197         (open): Fail when attempting to write to a file that has a trailing
45198         slash.
45199         * tests/test-open.c (main): Test against trailing slash bug.
45200         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45201
45202 2008-06-10  Bruno Haible  <bruno@clisp.org>
45203
45204         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45205         for $? to work inside the trap command, with various /bin/sh-s.
45206         * tests/test-vc-list-files-cvs.sh: Likewise.
45207
45208 2008-06-10  Bruno Haible  <bruno@clisp.org>
45209
45210         * lib/acl-internal.h: Don't include gettext.h here.
45211         * lib/set-mode-acl.c: Include gettext.h here.
45212         * lib/copy-acl.c: Likewise.
45213
45214 2008-06-10  Bruno Haible  <bruno@clisp.org>
45215
45216         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45217         * lib/wait-process.c (wait_subprocess): Likewise.
45218         * lib/execute.h (execute): Add termsigp argument.
45219         * lib/execute.c (execute): Likewise.
45220         * lib/csharpcomp.c (compile_csharp_using_pnet,
45221         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45222         * lib/csharpexec.c (execute_csharp_using_pnet,
45223         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45224         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45225         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45226         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45227         is_jikes_present): Update.
45228         * lib/javaexec.c (execute_java_class): Update.
45229         * lib/javaversion.c (execute_and_read_line): Update.
45230         * NEWS: Document the changes.
45231         Reported by Eric Blake.
45232
45233 2008-06-10  Eric Blake  <ebb9@byu.net>
45234
45235         Add missing include.
45236         * tests/test-strstr.c (includes): Add <signal.h>.
45237         * tests/test-strcasestr.c (includes): Likewise.
45238         * tests/test-memmem.c (includes): Likewise.
45239
45240 2008-06-10  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/wait-process.c (wait_subprocess): Add an assertion.
45243
45244 2008-06-10  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45247
45248 2008-06-10  Bruno Haible  <bruno@clisp.org>
45249
45250         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45251         using alarm().
45252         * tests/test-strcasestr.c (main): Likewise.
45253         * tests/test-strstr.c (main): Likewise.
45254
45255 2008-06-09  Bruno Haible  <bruno@clisp.org>
45256
45257         Work around the Solaris 10 ACE ACLs ABI change.
45258         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45259         declare if ACL_NO_TRIVIAL is present.
45260         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45261         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45262         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45263         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45264         define if ACL_NO_TRIVIAL is present.
45265         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45266         and use the current ABI.
45267         (file_has_acl): Use same #if condition as elsewhere.
45268         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45269         in use, and use the current ABI.
45270         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45271         Reported by Jim Meyering.
45272
45273 2008-06-09  Eric Blake  <ebb9@byu.net>
45274
45275         Work around environments that (stupidly) ignore SIGALRM.
45276         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45277         before using alarm().
45278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45280         Reported by Ian Beckwith <ianb@erislabs.net>.
45281
45282         Produce autobuild blurb earlier in log.
45283         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45284
45285 2008-06-09  Jim Meyering  <meyering@redhat.com>
45286         and OndÅ™ej Vašík  <ovasik@redhat.com>
45287
45288         utimens.c: correct kernel bug work-around
45289         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45290         failure, not success, and the kernel bug we're trying to work
45291         around affects not just the utimensat call, but also the fallback
45292         futimens call.
45293         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45294         not success.
45295         [HAVE_FUTIMENS]: Use the same work-around, here.
45296
45297 2008-06-09  Jim Meyering  <meyering@redhat.com>
45298
45299         add more guards around definition of ACE_-related code
45300         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45301         ALLOW and ACE_OWNER are also defined.
45302
45303 2008-06-08  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/acl-internal.h: Add me as co-author.
45306         * lib/file-has-acl.c: Likewise.
45307         * lib/set-mode-acl.c: Likewise.
45308         * lib/copy-acl.c: Likewise.
45309
45310 2008-06-08  Bruno Haible  <bruno@clisp.org>
45311
45312         Add support for AIX ACLs.
45313         * lib/acl-internal.h (acl_nontrivial): New declaration.
45314         * lib/file-has-acl.c (acl_nontrivial): New function.
45315         (file_has_acl): Add implementation using AIX 4 ACL API.
45316         * lib/set-mode-acl.c (qset_acl): Likewise.
45317         * lib/copy-acl.c (qcopy_acl): Likewise.
45318
45319 2008-06-08  Bruno Haible  <bruno@clisp.org>
45320
45321         Add support for HP-UX ACLs.
45322         * lib/acl-internal.h (acl_nontrivial): New declaration.
45323         * lib/file-has-acl.c (acl_nontrivial): New function.
45324         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45325         * lib/set-mode-acl.c (qset_acl): Likewise.
45326         * lib/copy-acl.c (qcopy_acl): Likewise.
45327
45328 2008-06-08  Bruno Haible  <bruno@clisp.org>
45329
45330         Add support for Cygwin ACLs.
45331         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45332         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45333         the chmod_or_fchmod call.
45334         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45335
45336 2008-06-08  Bruno Haible  <bruno@clisp.org>
45337
45338         Fix bug with setuid modes in Solaris 10+ code.
45339         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45340         succeeded, when the mode contains some special bits.
45341
45342 2008-06-08  Bruno Haible  <bruno@clisp.org>
45343
45344         Add support for Solaris 7..10 ACLs.
45345         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45346         declarations.
45347         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45348         functions.
45349         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45350         * lib/set-mode-acl.c (qset_acl): Likewise.
45351         * lib/copy-acl.c (qcopy_acl): Likewise.
45352
45353 2008-06-08  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45356         declaration.
45357         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45358         (acl_access_nontrivial): Remove MacOS X case.
45359         (file_has_acl): Use acl_extended_nontrivial.
45360         * lib/copy-acl.c (qcopy_acl): Likewise.
45361
45362 2008-06-08  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45365
45366 2008-06-08  Jim Meyering  <meyering@redhat.com>
45367
45368         * modules/acl (Maintainer): Add Bruno Haible.
45369
45370 2008-06-07  Bruno Haible  <bruno@clisp.org>
45371
45372         Improve support for Tru64 ACLs.
45373         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45374         ACL on OSF/1.
45375
45376 2008-06-07  Bruno Haible  <bruno@clisp.org>
45377
45378         Add support for MacOS X ACLs.
45379         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45380         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45381         * lib/set-mode-acl.c (qset_acl): Likewise.
45382         * lib/copy-acl.c (qcopy_acl): Likewise.
45383
45384 2008-06-07  Bruno Haible  <bruno@clisp.org>
45385
45386         Fix memory leak introduced on 2008-05-22.
45387         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45388         use.
45389
45390 2008-06-07  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45393         to construct an empty ACL.
45394
45395 2008-06-07  Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45398         precisely.
45399         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45400
45401 2008-06-07  Bruno Haible  <bruno@clisp.org>
45402
45403         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45404         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45405
45406 2008-06-07  Bruno Haible  <bruno@clisp.org>
45407
45408         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45409         regardless of POSIX.
45410         * doc/posix-functions/_longjmp.texi: Likewise.
45411         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45412         SystemV platform in this case.
45413
45414 2008-06-06  Eric Blake  <ebb9@byu.net>
45415
45416         Document abort() bugs.
45417         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45418
45419         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45420         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45421         sigsetjmp.
45422         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45423         siglongjmp, but only as a macro.
45424         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45425         is obsolete.
45426         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45427
45428         Tweak documentation to cover cygwin argz bugs.
45429         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45430         argz bug fix; no code change needed since no cygwin releases
45431         occurred between the last fix and the bug being tested.
45432         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45433         module and recently fixed cygwin bugs.
45434         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45435         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45436         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45437         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45438         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45439         Likewise.
45440         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45441         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45442         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45443         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45444         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45445         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45446         Likewise.
45447
45448         Avoid gcc warning on cygwin.
45449         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45450         !ACL_NO_TRIVIAL]: Avoid unused variable.
45451
45452 2008-06-05  Eric Blake  <ebb9@byu.net>
45453
45454         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45455         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45456         git-version-gen fails to come up with a version.
45457         Reported by Simon Josefsson.
45458
45459 2008-06-05  Jim Meyering  <meyering@redhat.com>
45460             Paul Eggert  <eggert@cs.ucla.edu>
45461
45462         utimens.c: work around a probable Linux kernel bug
45463         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45464         appears to be a kernel bug that causes utimensat to return 280
45465         instead of 0, indicating success.
45466
45467 2008-06-04  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45470         2008-06-01 commit.
45471
45472 2008-06-04  Bruno Haible  <bruno@clisp.org>
45473
45474         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45475         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45476         (file_has_acl): Use it. Save errno afterwards.
45477         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45478
45479 2008-06-03  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45482         draft code. Simplify #ifs.
45483         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45484         Put Solaris code after POSIX-draft code. Fix comments regarding
45485         Solaris 10, HP-UX. Mention Cygwin.
45486         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45487
45488 2008-06-03  Eric Blake  <ebb9@byu.net>
45489
45490         Provide fallback for older kernels.
45491         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45492         Provide runtime fallback if kernel lacks support.
45493         Reported by Mike Frysinger.
45494
45495 2008-06-02  Bruno Haible  <bruno@clisp.org>
45496
45497         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45498         it exists.
45499
45500 2008-06-02  Bruno Haible  <bruno@clisp.org>
45501
45502         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45503         * lib/copy-acl.c (qcopy_acl): Update comment.
45504
45505 2008-06-02  Bruno Haible  <bruno@clisp.org>
45506
45507         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45508         like ACL APIs.
45509
45510 2008-06-02  Bruno Haible  <bruno@clisp.org>
45511
45512         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45513         * tests/test-set-mode-acl.sh: Likewise.
45514         * tests/test-copy-acl.sh: Likewise.
45515         * tests/test-copy-file.sh: Likewise.
45516
45517 2008-06-02  Bruno Haible  <bruno@clisp.org>
45518
45519         * tests/test-file-has-acl.sh: Remove unused code.
45520
45521 2008-06-01  Bruno Haible  <bruno@clisp.org>
45522
45523         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45524         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45525         messages.
45526         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45527
45528 2008-06-01  Bruno Haible  <bruno@clisp.org>
45529
45530         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45531         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45532         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45533         APIs.
45534         * modules/acl-tests (configure.ac): Remove tests now contained in
45535         m4/acl.m4.
45536
45537 2008-06-02  Jim Meyering  <meyering@redhat.com>
45538
45539         announce-gen: use a better key-server host name
45540         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45541         it may be more consistently reliable.  Suggested by Werner Koch
45542         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45543
45544 2008-06-01  Bruno Haible  <bruno@clisp.org>
45545
45546         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45547         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45548
45549 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45550
45551         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45552
45553 2008-06-01  Bruno Haible  <bruno@clisp.org>
45554
45555         New ACL tests.
45556         * tests/test-file-has-acl.sh: New file.
45557         * tests/test-file-has-acl.c: New file.
45558         * tests/test-set-mode-acl.sh: New file.
45559         * tests/test-set-mode-acl.c: New file.
45560         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45561         * tests/test-copy-acl.c: New file.
45562         * modules/acl-tests: New file, based on modules/copy-file-tests.
45563         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45564         (Depends-on): Add acl-tests.
45565         (configure.ac): Remove checks.
45566         (Makefile.am): Don't create test-sameacls program here any more.
45567
45568 2008-06-01  Bruno Haible  <bruno@clisp.org>
45569
45570         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45571         * tests/test-sameacls.c: Include progname.h.
45572         (main): Invoke set_program_name. Portability fixes for MacOS X,
45573         Solaris, HP-UX.
45574
45575 2008-06-01  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45578         function.
45579         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45580
45581 2008-06-01  Bruno Haible  <bruno@clisp.org>
45582
45583         * modules/rpmatch (Depends-on): Add strdup.
45584
45585 2008-06-01  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/pipe.c: Include unistd-safer.h.
45588         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45589         * modules/pipe (Depends-on): Add unistd-safer.
45590
45591 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45592
45593         * modules/autobuild (configure.ac): Call AB_INIT.
45594
45595 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45596
45597         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45598         Suggested by Bruno Haible <bruno@clisp.org>.
45599
45600 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45601
45602         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45603         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45604         <bruno@clisp.org>.
45605
45606 2008-05-29  Eric Blake  <ebb9@byu.net>
45607
45608         Prefer new POSIX 200x interfaces over futimesat.
45609         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45610         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45611         when available.
45612         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45613
45614 2008-05-28  Bruno Haible  <bruno@clisp.org>
45615
45616         * modules/stpcpy (License): Change to LGPLv2+.
45617         Requested by David Lutterkort <dlutter@redhat.com>.
45618
45619 2008-05-27  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45622         current mingw.
45623         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45624
45625 2008-05-27  Bruno Haible  <bruno@clisp.org>
45626
45627         * modules/iconv_open (Link): New section, from module 'iconv'.
45628         * modules/striconv (Link): Likewise.
45629         * modules/striconveh (Link): Likewise.
45630         * modules/xstriconv (Link): Likewise.
45631         * modules/unicodeio (Link): Likewise.
45632         * modules/propername (Link): Likewise.
45633         Reported by Jim Meyering.
45634
45635 2008-05-26  Jim Meyering  <meyering@redhat.com>
45636
45637         sha256: do not artificially restrict buffer length to be < 2^32
45638         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45639         uint32_t to size_t.
45640         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45641         to match.
45642
45643         avoid unaligned access errors, e.g., on sparc
45644         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45645         direct access through a possibly-unaligned uint64* pointer.
45646         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45647         direct access through a possibly-unaligned uint32* pointer.
45648         Prompted by this patch from Tom "spot" Callaway:
45649         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45650
45651         sha512.c: fix typo in comment
45652         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45653
45654 2008-05-25  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45657         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45658         (Makefile.am): Update lib_SOURCES.
45659
45660 2008-05-25  Bruno Haible  <bruno@clisp.org>
45661
45662         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45663
45664 2008-05-25  Jim Meyering  <meyering@redhat.com>
45665
45666         useless-if-before-free: freed expr may have white-space differences
45667         * build-aux/useless-if-before-free: Recognize cases in which the
45668         freed expression differs from the tested one in embedded white
45669         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45670         $1 was used, so we can't make any regexp shy.  Improved tests now
45671         detect this.
45672
45673         useless-if-before-free: accept white space in the expression.
45674         * build-aux/useless-if-before-free: For now, any white space
45675         in the expression must be identical in the free argument.
45676
45677         useless-if-before-free: efficiency tweak
45678         * build-aux/useless-if-before-free: Make the expression-matching
45679         regexp "shy".
45680         Make the *outer* regexp shy, not the expr-matching one.
45681
45682         update code-in-comment to accept cast of free arg
45683         * build-aux/useless-if-before-free: Update regexp.
45684
45685 2008-05-25  Bruno Haible  <bruno@clisp.org>
45686
45687         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45688         * modules/copy-file-tests (Files, Makefile.am): Update.
45689         * tests/test-copy-file.c (func_test_copy): Update.
45690
45691 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45692
45693         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45694
45695 2008-05-23  Bruno Haible  <bruno@clisp.org>
45696
45697         Improve support for ACLs on OSF/1.
45698         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45699         Remove fallback for unknown flavors of ACLs.
45700
45701 2008-05-22  Bruno Haible  <bruno@clisp.org>
45702
45703         Add support for ACLs on OSF/1.
45704         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45705         replacements.
45706         (acl_free_text): New macro fallback.
45707         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45708         acl_free.
45709         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45710         acl_free_text function. Require AC_C_INLINE.
45711
45712 2008-05-22  Bruno Haible  <bruno@clisp.org>
45713
45714         Make copy_acl work on MacOS X 10.5.
45715         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45716         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45717         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45718         If MODE_INSIDE_ACL, don't assume that every system has the same text
45719         representation for ACLs as FreeBSD.
45720         * lib/copy-acl.c (copy_acl): Add support for platforms with
45721         !MODE_INSIDE_ACL.
45722         * lib/file-has-acl.c (file_has_acl): Likewise.
45723         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45724         FreeBSD, MacOS X, or IRIX, respectively.
45725
45726 2008-05-22  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/acl.h: Don't include <sys/acl.h>.
45729         (GETACLCNT): Move fallback to lib/acl-internal.h.
45730         * lib/acl-internal.h: Include <sys/acl.h> here.
45731         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45732
45733 2008-05-22  Bruno Haible  <bruno@clisp.org>
45734
45735         Split off copy_acl function to separate file.
45736         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45737         * lib/acl.c (copy_acl): Moved function to separate file.
45738         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45739         * modules/acl (Files): Add lib/copy-acl.c.
45740         (Makefiles.am): Augment lib_SOURCES.
45741
45742 2008-05-22  Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/copy-file-tests: New file.
45745         * tests/test-copy-file.sh: New file.
45746         * tests/test-copy-file.c: New file.
45747         * tests/test-copy-file-sameacls.c: New file.
45748
45749 2008-05-22  Eric Blake  <ebb9@byu.net>
45750
45751         Avoid gcc warning.
45752         * tests/test-memcmp.c (main): Pass NULL indirectly.
45753
45754 2008-05-21  Bruno Haible  <bruno@clisp.org>
45755
45756         Add reference doc about ACLs.
45757         * doc/acl-resources.txt: New file.
45758         * doc/acl-cygwin.txt: New file.
45759
45760 2008-05-21  Bruno Haible  <bruno@clisp.org>
45761
45762         Avoid one more warning from gcc.
45763         * lib/vasnprintf.c (IF_LINT): Update comments.
45764         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45765
45766 2008-05-21  Jim Meyering  <meyering@redhat.com>
45767
45768         avoid a warning from gcc
45769         * lib/vasnprintf.c (IF_LINT): Define.
45770         (scale10_round_decimal_long_double):
45771         Use it to avoid a "may be used uninitialized" warning.
45772         (scale10_round_decimal_double): Likewise.
45773
45774 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45775
45776         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45777         declared.
45778
45779 2008-05-20  Bruno Haible  <bruno@clisp.org>
45780
45781         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45782         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45783
45784 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45785
45786         * modules/memcmp-tests: New file.
45787         * tests/test-memcmp.c: New file.
45788
45789 2008-05-19  Bruno Haible  <bruno@clisp.org>
45790
45791         * modules/propername (Notice, configure.ac): Put quoted "..." into
45792         --keyword option.
45793         * lib/propername.h: Update comments accordingly.
45794         Reported by Eric Blake.
45795
45796 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45797
45798         * modules/getpass-gnu (Depends-on): Add fseeko.
45799
45800 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45801
45802         * modules/base64-tests: New file.
45803
45804 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45805
45806         * lib/base64.c (base64_decode_ctx): If a decode context structure
45807         was passed in use it to ignore newlines.  If a context structure
45808         was _not_ passed in, continue to treat newlines as garbage (this
45809         is the historical behavior).  Formerly base64_decode.
45810         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45811         takes a decode context structure.
45812         * lib/base64.h (base64_decode): Macro for four-argument calls.
45813         (base64_decode_alloc): Likewise.
45814         * lib/base64.c (base64_decode_ctx): If a decode context structure
45815         was passed in use it to ignore newlines.  If a context structure
45816         was _not_ passed in, continue to treat newlines as garbage (this
45817         is the historical behavior).  Formerly base64_decode.
45818         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45819         takes a decode context structure.
45820         * lib/base64.h (base64_decode): Macro for four-argument calls.
45821         (base64_decode_alloc): Likewise.
45822
45823 2008-05-19  Jim Meyering  <meyering@redhat.com>
45824
45825         avoid a warning from gcc
45826         * lib/trim.c (IF_LINT): Define.
45827         (trim2): Use it to avoid a "may be used uninitialized" warning.
45828
45829         Fix doc typo.
45830         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45831
45832 2008-05-19  Bruno Haible  <bruno@clisp.org>
45833
45834         * doc/glibc-functions/getpass.texi: Document limits of other
45835         implementations.
45836
45837 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45838             Bruno Haible <bruno@clisp.org>
45839
45840         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45841
45842 2008-05-18  Bruno Haible  <bruno@clisp.org>
45843
45844         * modules/propername: New file, from GNU gettext.
45845         * lib/propername.h: New file, from GNU gettext.
45846         * lib/propername.c: New file, from GNU gettext.
45847         * MODULES.html.sh (Internationalization functions): Add propername.
45848
45849 2008-05-16  Jim Meyering  <meyering@redhat.com>
45850             Bruno Haible  <bruno@clisp.org>
45851
45852         Avoid some warnings from "gcc -Wshadow".
45853         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45854
45855 2008-05-15  Eric Blake  <ebb9@byu.net>
45856
45857         Extend previous patch to cygwin 1.7.0.
45858         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45859         fast implementation in cygwin >= 1.7.0.
45860         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45862
45863 2008-05-15  Bruno Haible  <bruno@clisp.org>
45864
45865         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45866         implementation in glibc >= 2.9.
45867         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45869
45870 2008-05-15  Bruno Haible  <bruno@clisp.org>
45871
45872         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45873         (Unicode string functions): Add unilbrk/*.
45874         Reported by Karl Berry.
45875
45876 2008-05-15  Eric Blake  <ebb9@byu.net>
45877
45878         Fix violation of <stdbool.h> replacement in regex.
45879         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45880         * lib/regexec.c (re_search_internal): Likewise.
45881         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45882
45883 2008-05-15  Jim Meyering  <meyering@redhat.com>
45884
45885         avoid distracting test output when git or cvs is not found
45886         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45887         * tests/test-vc-list-files-git.sh: Likewise.
45888
45889 2008-05-15  Eric Blake  <ebb9@byu.net>
45890
45891         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45892         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45893         glibc version.
45894         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45895         * doc/posix-functions/strstr.texi (strstr): Likewise.
45896         * lib/str-two-way.h (MAX): Sychronize with glibc.
45897
45898 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45899
45900         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45901         opr.ctx_type.
45902         (calc_first): Initialize constraint field.
45903         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45904         Fix grammar.
45905         (duplicate_node): Merge constraint field for all node types.
45906         (calc_eclosure_iter): Look at constraint field for all node types.
45907         * lib/regex_internal.c (create_cd_newstate): Don't look at
45908         opr.ctx_type.
45909
45910 2008-05-14  Bruno Haible  <bruno@clisp.org>
45911
45912         Help GCC to do better code generation.
45913         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45914         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45915         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45916         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45917         Declare with attribute 'malloc' if supported.
45918
45919 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45920
45921         use "echo STR|wc -c" rather than unportable "expr length STR"
45922         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45923         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45924
45925 2008-05-14  Jim Meyering  <meyering@redhat.com>
45926
45927         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45928         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45929         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45930         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45931         via Collin Lasse.
45932
45933 2008-05-14  Eric Blake  <ebb9@byu.net>
45934
45935         Avoid quadratic growth in gl_LIBSOURCES.
45936         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45937         Suggested by Bruno Haible.
45938
45939         Test xmemdup0.
45940         * modules/xmemdup0-tests: New file.
45941         * tests/test-xmemdup0.c: Likewise.
45942
45943 2008-05-13  Eric Blake  <ebb9@byu.net>
45944
45945         Split xmemdup0 into its own module.
45946         * modules/xmemdup0: New file.
45947         * lib/xmemdup0.h: Likewise.
45948         * lib/xmemdup0.c: Likewise.
45949         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45950         * lib/xalloc.h (xmemdup0): Remove.
45951         * lib/xmalloc.c (xmemdup0): Likewise.
45952
45953 2008-05-13  Eric Blake  <ebb9@byu.net>
45954             Bruno Haible  <bruno@clisp.org>
45955
45956         Reduce number of forks required during autoconf.
45957         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45958         and gl_LIBSOURCES_DIR.
45959         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45960         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45961         m4_syscmd per file.
45962         <m4_foreach_w>: Move...
45963         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45964
45965 2008-05-13  Eric Blake  <ebb9@byu.net>
45966
45967         * gnulib-tool: Fix various comment typos.
45968
45969 2008-05-12  Bruno Haible  <bruno@clisp.org>
45970
45971         Tailor the linebreaking algorithm.
45972         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45973
45974 2008-05-12  Bruno Haible  <bruno@clisp.org>
45975
45976         Update to Unicode 5.0.0.
45977         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45978         LBP_JV, LBP_JT. Redistribute values.
45979         (unilbrk_table): Change size.
45980         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45981         Unicode TR#14 rev. 22.
45982         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45983         LBP_JV, LBP_JT. Redistribute values.
45984         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45985         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45986         Update.
45987         * lib/unilbrk/lbrkprop1.h: Regenerated.
45988         * lib/unilbrk/lbrkprop2.h: Regenerated.
45989         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45990         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45991         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45992         Likewise.
45993         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45994         Likewise.
45995         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45996         result.
45997         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45998         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45999         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46000         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46001         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46002         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46003
46004 2008-05-11  Bruno Haible  <bruno@clisp.org>
46005
46006         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46007
46008 2008-05-11  Bruno Haible  <bruno@clisp.org>
46009
46010         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46011         * modules/unilbrk/gen-lbrk: New file.
46012
46013 2008-05-11  Bruno Haible  <bruno@clisp.org>
46014
46015         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46016         * m4/sha512.m4 (gl_SHA512): Likewise.
46017
46018 2008-05-11  Jim Meyering  <meyering@redhat.com>
46019
46020         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46021         * modules/crypto/sha256: New file.
46022         * modules/crypto/sha512: Likewise.
46023         * lib/sha256.c: Likewise.
46024         * lib/sha256.h: Likewise.
46025         * lib/sha512.c: Likewise.
46026         * lib/sha512.h: Likewise.
46027         * lib/u64.h: Likewise.
46028         * m4/sha256.m4: Likewise.
46029         * m4/sha512.m4: Likewise.
46030         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46031
46032 2008-05-10  Bruno Haible  <bruno@clisp.org>
46033
46034         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46035         (Input/Output <stdio.h>): Add xprintf.
46036         (Signal handling <signal.h>): Add strsignal.
46037         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46038         (Core language properties): Add func.
46039         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46040         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46041         strings.
46042         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46043         (Input/output): New section.
46044         (File system functions): Add openat-die, stat-macros.
46045         (Networking functions): Add sockets.
46046         (Unicode string functions): Add unictype/*.
46047         (Support for building libraries and executables): Add gperf.
46048         (Support for building documentation): Add agpl-3.0.
46049         (Misc): Add nocrash.
46050
46051 2008-05-10  Bruno Haible  <bruno@clisp.org>
46052
46053         * modules/unictype/gen-ctype: New file.
46054
46055 2008-05-10  Jim Meyering  <meyering@redhat.com>
46056
46057         Make chdir-safer.c more efficient on a system with no symlinks.
46058         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46059         also if ELOOP is zero.  Suggested by Bruno Haible.
46060
46061         Make chdir-safer.c slightly safer.
46062         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46063         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46064
46065         Avoid compile failure on systems without ELOOP (like mingw).
46066         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46067         Reported by Bruno Haible.
46068
46069 2008-05-10  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46072         (is_utf8_encoding): Use a case-insensitive comparison.
46073         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46074         streq.
46075
46076 2008-05-10  Bruno Haible  <bruno@clisp.org>
46077
46078         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46079         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46080         * lib/unilbrk/ulc-common.h (iconv_string_length,
46081         iconv_string_keeping_offsets): Remove declarations.
46082         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46083         Don't include <iconv.h>, streq.h, xsize.h.
46084         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46085         conversion.
46086         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46087         <iconv.h>, streq.h, xsize.h.
46088         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46089         conversion.
46090         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46091         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46092         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46093         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46094
46095 2008-05-10  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46098         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46099
46100         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46101         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46102
46103         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46104         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46105
46106         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46107         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46108
46109         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46110         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46111
46112         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46113         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46114
46115         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46116         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46117
46118         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46119         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46120
46121 2008-05-10  Bruno Haible  <bruno@clisp.org>
46122
46123         Split up 'linebreak' module.
46124         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46125         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46126         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46127         modifications.
46128         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46129         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46130         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46131         lib/linebreak.c.
46132         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46133         lib/linebreak.c.
46134         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46135         lib/linebreak.c.
46136         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46137         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46138         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46139         lib/linebreak.c.
46140         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46141         lib/linebreak.c.
46142         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46143         lib/linebreak.c.
46144         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46145         lib/linebreak.c.
46146         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46147         lib/linebreak.c.
46148         * modules/unilbrk/base: New file.
46149         * modules/unilbrk/tables: New file.
46150         * modules/unilbrk/u8-possible-linebreaks: New file.
46151         * modules/unilbrk/u16-possible-linebreaks: New file.
46152         * modules/unilbrk/u32-possible-linebreaks: New file.
46153         * modules/unilbrk/ulc-common: New file.
46154         * modules/unilbrk/ulc-possible-linebreaks: New file.
46155         * modules/unilbrk/u8-width-linebreaks: New file.
46156         * modules/unilbrk/u16-width-linebreaks: New file.
46157         * modules/unilbrk/u32-width-linebreaks: New file.
46158         * modules/unilbrk/ulc-width-linebreaks: New file.
46159         * lib/linebreak.h: Remove file.
46160         * lib/linebreak.c: Remove file.
46161         * m4/linebreak.m4: Remove file.
46162         * modules/linebreak: Remove file.
46163         * NEWS: Mention the changes.
46164
46165 2008-05-09  Eric Blake  <ebb9@byu.net>
46166
46167         Add xmemdup0.
46168         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46169         implementation.
46170         * lib/xmalloc.c (xmemdup0): New C implementation.
46171
46172 2008-05-08  Bruno Haible  <bruno@clisp.org>
46173
46174         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46175
46176 2008-05-07  Eric Blake  <ebb9@byu.net>
46177
46178         Support cross-compilation of <wctype.h>.
46179         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46180         AC_CACHE_CHECK.
46181
46182 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46183
46184         * build-aux/vc-list-files: Add support for bzr.
46185
46186 2008-05-03  Jim Meyering  <meyering@redhat.com>
46187
46188         avoid failed assertion with tight malloc
46189         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46190
46191 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46192
46193         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46194         are needed from arpa/inet.h.
46195         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46196         Reported by Bruno Haible.
46197
46198 2008-05-02  Jim Meyering  <meyering@redhat.com>
46199
46200         avoid compilation error on FreeBSD 6
46201         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46202
46203 2008-05-01  Jim Meyering  <meyering@redhat.com>
46204
46205         useless-if-before-free: correct --help's exit status description
46206         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46207         for one or more matches, etc.  Reported by Bruno Haible.
46208
46209         vc-list-files: make the stand-alone gnulib test work
46210         * modules/vc-list-files-tests (configure.ac):
46211         Define and AC_SUBST abs_aux_dir.
46212         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46213         $(abs_top_srcdir) to each script and having each of them
46214         duplicate the work of setting PATH, set PATH here, using
46215         the new variable, abs_aux_dir instead.
46216         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46217         * tests/test-vc-list-files-git.sh: Likewise.
46218         Reported by Bruno Haible.
46219
46220 2008-05-01  Bruno Haible  <bruno@clisp.org>
46221
46222         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46223         reallocation. Rename 'done' to 'found_delimiter'.
46224
46225 2008-05-01  Jim Meyering  <meyering@redhat.com>
46226
46227         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46228         * build-aux/vc-list-files: Use `...`, not $(...).
46229
46230 2008-04-30  Jim Meyering  <meyering@redhat.com>
46231
46232         add tests for vc-list-files
46233         * modules/vc-list-files-tests: New module.
46234         * tests/test-vc-list-files-cvs.sh: New file.
46235         * tests/test-vc-list-files-git.sh: New file.
46236
46237         avoid a warning from gcc
46238         * lib/getndelim2.c (IF_LINT): Define.
46239         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46240
46241         vc-list-files: work properly with build-aux/cvsu, too
46242         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46243         to all cvs-based clauses.
46244
46245         vc-list-files: work properly in the CVS+awk case, too
46246         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46247
46248         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46249         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46250         take more than one file argument, so .  Add quotes, just in case $dir
46251         ever contains a shell meta-character.  Prompted by Soren Hansen in
46252         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46253
46254 2008-04-29  Eric Blake  <ebb9@byu.net>
46255
46256         Optimize getndelim2 to use block operations when possible.
46257         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46258         freadseek, and memchr2.
46259         * lib/getndelim2.c (getndelim2): Use them for block reads.
46260
46261 2008-04-29  Bruno Haible  <bruno@clisp.org>
46262
46263         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46264         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46265         * modules/inet_ntop (Depends-on): Add extensions.
46266         * modules/inet_pton (Depends-on): Likewise.
46267         Reported by Simon Josefsson.
46268
46269 2008-04-29  Jim Meyering  <meyering@redhat.com>
46270
46271         When the is more than one match in a block, match all of them.
46272         * build-aux/useless-if-before-free: Iterate through each block
46273         until there are no more matches.
46274
46275         Fix broken useless-if-before-free script.
46276         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46277         the expression to match cast of argument to free-like function.
46278
46279 2008-04-29  Eric Blake  <ebb9@byu.net>
46280
46281         Use new header.
46282         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46283
46284 2008-04-29  Jim Meyering  <meyering@redhat.com>
46285
46286         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46287         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46288         by gnulib to exist and to declare e.g., inet_ntop.
46289         Don't include "inet_ntop.h", now removed.
46290
46291         * m4/arpa_inet_h.m4: Remove trailing blanks.
46292
46293 2008-04-29  Eric Blake  <ebb9@byu.net>
46294
46295         Silence valgrind on safe reads beyond potential array bounds.
46296         * lib/rawmemchr.valgrind: New file.
46297         * lib/strchrnul.valgrind: Likewise.
46298         * modules/rawmemchr (Files): Distribute new file.
46299         * modules/strchrnul (Files): Likewise.
46300         Suggested by Bruno Haible.
46301
46302 2008-04-29  Bruno Haible  <bruno@clisp.org>
46303
46304         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46305         (inet_ntop, inet_pton): Change portability warning's wording.
46306         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46307         Invoke gl_CHECK_NEXT_HEADERS.
46308         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46309         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46310         set ARPA_INET_H.
46311         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46312         * modules/arpa_inet (Description): No longer only for systems that
46313         lack it.
46314         (Depends-on): Add include_next.
46315         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46316         HAVE_ARPA_INET_H.
46317
46318 2008-04-29  Jim Meyering  <meyering@redhat.com>
46319
46320         * modules/mkdir (License): Re-license as LGPLv2+.
46321
46322 2008-04-29  Bruno Haible  <bruno@clisp.org>
46323
46324         * modules/rawmemchr (Maintainer): Set to Eric.
46325         * modules/strchrnul (Maintainer): Likewise.
46326
46327 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46328
46329         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46330         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46331
46332         * modules/arpa_inet (arpa/inet.h): Use them.
46333
46334 2008-04-28  Eric Blake  <ebb9@byu.net>
46335
46336         Test getndelim2.
46337         * modules/getndelim2-tests: New file.
46338         * tests/test-getndelim2.c: Likewise.
46339         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46340         stream.
46341         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46342
46343         * MODULES.html.sh: Document new module.
46344
46345 2008-04-20  Bruno Haible  <bruno@clisp.org>
46346
46347         * lib/c-stack.c (die): Use raise.
46348         * modules/c-stack (Depends-on): Add raise.
46349
46350 2008-04-28  Bruno Haible  <bruno@clisp.org>
46351
46352         Expect rpmatch to be declared.
46353         * lib/yesno.c (rpmatch): Remove declaration.
46354
46355         Declare rpmatch.
46356         * lib/stdlib.in.h (rpmatch): New declaration.
46357         * lib/rpmatch.c: Include <stdlib.h> first.
46358         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46359         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46361         HAVE_RPMATCH.
46362         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46364         (Include): Set to <stdlib.h>.
46365         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46366         HAVE_RPMATCH.
46367         * NEWS: Document the change.
46368
46369 2008-04-28  Bruno Haible  <bruno@clisp.org>
46370
46371         Change rpmatch to use nl_langinfo when appropriate.
46372         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46373         (N_): New macro.
46374         (localized_pattern): New function/macro.
46375         (try): Remove match, nomatch arguments. Copy the pattern into safe
46376         memory before caching it.
46377         (rpmatch): Use localized_pattern. Add translator comments.
46378         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46379         Suggested by Eric Blake.
46380         * modules/rpmatch (Depends-on): Add stdbool.
46381
46382 2008-04-28  Eric Blake  <ebb9@byu.net>
46383
46384         Add rawmemchr module, matching glibc.
46385         * modules/string (Makefile.am): New indicator.
46386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46387         * lib/string.in.h (rawmemchr): Declare when appropriate.
46388         * modules/rawmemchr: New file.
46389         * m4/rawmemchr.m4: Likewise.
46390         * lib/rawmemchr.c: Likewise.
46391         * modules/rawmemchr-tests: Likewise.
46392         * tests/test-rawmemchr.c: Likewise.
46393         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46394         module.
46395         * modules/strchrnul (Depends-on): Add rawmemchr.
46396         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46397
46398         Whitespace cleanup.
46399         * tests/test-strchrnul.c: Reindent.
46400         * lib/strchrnul.c: Likewise.
46401
46402         Optimize and test strchrnul.
46403         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46404         * modules/strchrnul-tests: New file.
46405         * tests/test-strchrnul.c: Likewise.
46406
46407         Remove intprops dependency.
46408         * modules/memchr (Depends-on): Remove intprops.
46409         * modules/memrchr (Depends-on): Likewise.
46410         * modules/memchr2 (Depends-on): Likewise.
46411         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46412         * lib/memrchr.c (__memrchr): Likewise.
46413         * lib/memrchr2.c (memchr2): Likewise.
46414         Reported by Simon Josefsson.
46415
46416 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46417
46418         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46420
46421 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46422
46423         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46424
46425         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46426
46427         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46428
46429         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46430         declarations.
46431         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46432
46433         * m4/inet_pton.m4: Don't check for header files.
46434
46435         * m4/inet_ntop.m4: Don't check for header files.
46436
46437 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46438
46439         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46440         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46441         trigger for cygwin).
46442         Reported by Bruno Haible  <bruno@clisp.org>.
46443
46444 2008-04-28  Bruno Haible  <bruno@clisp.org>
46445
46446         * doc/posix-functions/strdup.texi: Mention mingw problem.
46447
46448 2008-04-27  Bruno Haible  <bruno@clisp.org>
46449
46450         * modules/stat-time-tests (Depends-on): Add sleep.
46451         * tests/test-stat-time.c (force_unlink): New function.
46452         (cleanup): Use it.
46453         (test_mtime): Remove the ctime related tests.
46454         (test_ctime): New function, containing the ctime related tests.
46455         (main): Call test_ctime, except on native Windows platforms.
46456
46457 2008-04-27  Bruno Haible  <bruno@clisp.org>
46458
46459         * lib/rpmatch.c (rpmatch): Add some comments.
46460         Reported by James Youngman <jay@gnu.org>.
46461
46462 2008-04-27  Bruno Haible  <bruno@clisp.org>
46463
46464         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46465         quiet NaNs.
46466
46467 2008-04-27  Bruno Haible  <bruno@clisp.org>
46468
46469         Make test-yesno.sh work on mingw.
46470         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46471         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46472         (main): Set stdin to binary mode.
46473         * modules/yesno-tests (Depends-on): Add binary-io.
46474
46475 2008-04-27  Bruno Haible  <bruno@clisp.org>
46476
46477         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46478         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46479         argument that lie outside the IEEE 854 domain.
46480         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46481         (gl_ISFINITE): Use it.
46482         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46483
46484 2008-04-27  Bruno Haible  <bruno@clisp.org>
46485
46486         Allow local renaming in config.h.
46487         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46488
46489 2008-04-27  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/memchr.c (__memchr): Change type of 'i'.
46492         * lib/memchr2.c (memchr2): Likewise.
46493
46494 2008-04-26  Eric Blake  <ebb9@byu.net>
46495         and Bruno Haible  <bruno@clisp.org>
46496
46497         Optimize and test memrchr.
46498         * modules/memrchr (Depends-on): Add intprops.
46499         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46500         * modules/memrchr-tests: New file.
46501         * tests/test-memrchr.c: New file.
46502
46503 2008-04-26  Bruno Haible  <bruno@clisp.org>
46504
46505         Add tentative support for DragonFly BSD.
46506         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46507         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46508         fp.
46509         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46510         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46511         * lib/fpurge.c (fpurge): Likewise.
46512         * lib/freadable.c (freaadable): Likewise.
46513         * lib/freadahead.c (freadahead): Likewise.
46514         * lib/freading.c (freading): Likewise.
46515         * lib/freadptr.c (freadptr): Likewise.
46516         * lib/freadseek.c (freadptrinc): Likewise.
46517         * lib/fseeko.c (fseeko): Likewise.
46518         * lib/fseterr.c (fseterr): Likewise.
46519         * lib/fwritable.c (fwritable): Likewise.
46520         * lib/fwriting.c (fwriting): Likewise.
46521
46522 2008-04-26  Bruno Haible  <bruno@clisp.org>
46523
46524         * lib/stdio-impl.h: New file.
46525         * lib/fbufmode.c: Include stdio-impl.h.
46526         (fbufmode): Use fp_, remove redundant #defines.
46527         * lib/fflush.c: Include stdio-impl.h.
46528         (clear_ungetc_buffer): Remove redundant #defines.
46529         * lib/fpurge.c: Include stdio-impl.h.
46530         (fpurge): Remove redundant #defines.
46531         * lib/freadable.c: Include stdio-impl.h.
46532         (freadable): Remove redundant #defines.
46533         * lib/freadahead.c: Include stdio-impl.h.
46534         (freadahead): Remove redundant #defines.
46535         * lib/freading.c: Include stdio-impl.h.
46536         (freading): Remove redundant #defines.
46537         * lib/freadptr.c: Include stdio-impl.h.
46538         (freadptr): Remove redundant #defines.
46539         * lib/freadseek.c: Include stdio-impl.h.
46540         (freadptrinc): Remove redundant #defines.
46541         * lib/fseeko.c: Include stdio-impl.h.
46542         (rpl_fseeko): Remove redundant #defines.
46543         * lib/fseterr.c: Include stdio-impl.h.
46544         (fseterr): Remove redundant #defines.
46545         * lib/fwritable.c: Include stdio-impl.h.
46546         (fwritable: Remove redundant #defines.
46547         * lib/fwriting.c: Include stdio-impl.h.
46548         (fwriting): Remove redundant #defines.
46549         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46550         * modules/fflush (Files): Likewise.
46551         * modules/fpurge (Files): Likewise.
46552         * modules/freadable (Files): Likewise.
46553         * modules/freadahead (Files): Likewise.
46554         * modules/freading (Files): Likewise.
46555         * modules/freadptr (Files): Likewise.
46556         * modules/freadseek (Files): Likewise.
46557         * modules/fseeko (Files): Likewise.
46558         * modules/fseterr (Files): Likewise.
46559         * modules/fwritable (Files): Likewise.
46560         * modules/fwriting (Files): Likewise.
46561
46562 2008-04-26  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46565         restore_seek_optimization, update_fpos_cache): New functions, extracted
46566         from rpl_fflush.
46567         (rpl_fflush): Use them.
46568         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46569         (gl_REPLACE_FFLUSH): Use it.
46570
46571 2008-04-26  Bruno Haible  <bruno@clisp.org>
46572
46573         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46574         on Solaris.
46575         * tests/test-xstrtoimax.sh: Likewise.
46576         * tests/test-xstrtoumax.sh: Likewise.
46577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46578
46579 2008-04-26  Bruno Haible  <bruno@clisp.org>
46580
46581         * modules/memchr-tests: New file.
46582         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46583
46584 2008-04-26  Eric Blake  <ebb9@byu.net>
46585             Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/memchr.c: Include intprops.h.
46588         (__memchr): Optimize parallel detection of matching bytes. Rename local
46589         variables. Add explanatory comments.
46590
46591 2008-04-26  Bruno Haible  <bruno@clisp.org>
46592
46593         Fix module 'memchr', broken since 2000-10-28.
46594         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46595
46596 2008-04-26  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46599         comments.
46600
46601 2008-04-25  Eric Blake  <ebb9@byu.net>
46602
46603         Use native fstatat on cygwin 1.7.0.
46604         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46605         first.
46606
46607 2008-04-23  Eric Blake  <ebb9@byu.net>
46608
46609         Improve memchr2 performance.
46610         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46611         NUL bytes.
46612         * modules/memchr2 (Depends-on): Use intprops.h.
46613
46614 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46615
46616         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46617         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46618         <blp@cs.stanford.edu>.
46619
46620 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46621
46622         * lib/arpa_inet.in.h: New file.
46623
46624         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46625         (Makefile.am): Sed in substitute header file.
46626
46627         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46628         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46629
46630         * modules/inet_ntop (configure.ac): Use
46631         gl_ARPA_INET_MODULE_INDICATOR.
46632
46633         * modules/inet_pton (configure.ac): Use
46634         gl_ARPA_INET_MODULE_INDICATOR.
46635
46636 2008-04-22  Jim Meyering  <meyering@redhat.com>
46637
46638         * modules/verify (License): Re-license as LGPLv2+.
46639
46640 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46641
46642         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46643         parameter to void* as per POSIX standard (MinGW uses char*).
46644
46645 2008-04-21  Bruno Haible  <bruno@clisp.org>
46646
46647         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46648         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46649         Define to replacements if REPLACE_ISWCNTRL is 1.
46650         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46651         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46652         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46653         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46654         what it fixes.
46655         * doc/posix-functions/iswalpha.texi: Likewise.
46656         * doc/posix-functions/iswblank.texi: Likewise.
46657         * doc/posix-functions/iswcntrl.texi: Likewise.
46658         * doc/posix-functions/iswdigit.texi: Likewise.
46659         * doc/posix-functions/iswgraph.texi: Likewise.
46660         * doc/posix-functions/iswlower.texi: Likewise.
46661         * doc/posix-functions/iswprint.texi: Likewise.
46662         * doc/posix-functions/iswpunct.texi: Likewise.
46663         * doc/posix-functions/iswspace.texi: Likewise.
46664         * doc/posix-functions/iswupper.texi: Likewise.
46665         * doc/posix-functions/iswxdigit.texi: Likewise.
46666         Reported by Alain Guibert.
46667
46668 2008-04-21  Bruno Haible  <bruno@clisp.org>
46669
46670         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46671         Patch by Alain Guibert.
46672
46673 2008-04-21  Bruno Haible  <bruno@clisp.org>
46674
46675         Fix test failures on mingw.
46676         * tests/test-xstrtol.c (print_no_progname): New function.
46677         (main): Install it in error_print_progname hook.
46678         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46679         * tests/test-xstrtoimax.sh: Likewise.
46680         * tests/test-xstrtoumax.sh: Likewise.
46681
46682 2008-04-21  Bruno Haible  <bruno@clisp.org>
46683
46684         Fix test failure on mingw.
46685         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46686
46687 2008-04-21  Bruno Haible  <bruno@clisp.org>
46688
46689         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46690         Actually assign a value.
46691
46692 2008-04-20  Bruno Haible  <bruno@clisp.org>
46693
46694         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46695         take 2.
46696         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46697         'canonicalize-lgpl' module is also used.
46698         * lib/canonicalize-lgpl.c: Undo last change.
46699         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46700
46701 2008-04-20  Bruno Haible  <bruno@clisp.org>
46702
46703         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46704         config.h. Provide _mkdir based fallback for mingw.
46705         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46706         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46707         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46708         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46709         rather than defining mkdir in config.h.
46710         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46711         (gl_SYS_STAT_H_DEFAULTS): New macro.
46712         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46713         HAVE_IO_H any more.
46714         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46715         HAVE_DECL_MKDIR and HAVE_IO_H.
46716
46717 2008-04-20  Bruno Haible  <bruno@clisp.org>
46718
46719         * lib/isapipe.c: Port to native Windows platforms.
46720
46721 2008-04-20  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46724
46725 2008-04-21  Eric Blake  <ebb9@byu.net>
46726
46727         Work around preprocessors that don't handle UINTMAX_MAX.
46728         * lib/memchr2.c (memchr2): Avoid embedded #if.
46729         Reported by Alain Guibert, fix suggested by Bruno Haible.
46730
46731 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46732
46733         * doc/posix-functions/strftime.texi (strftime): Explain better
46734         Windows incompatibility.  Suggested by Micah Cowan
46735         <micah@cowan.name>.
46736
46737 2008-04-20  Bruno Haible  <bruno@clisp.org>
46738
46739         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46740         unistr/u8-mblen.
46741
46742 2008-04-20  Bruno Haible  <bruno@clisp.org>
46743
46744         Fix test failure on platforms with non-GNU iconv.
46745         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46746         (U_TO_U8): Use it, rather than u16_to_u8.
46747         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46748         units at the end of the input string.
46749         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46750
46751 2008-04-20  Bruno Haible  <bruno@clisp.org>
46752
46753         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46754         when the resulting length is 0.
46755         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46756
46757 2008-04-20  Bruno Haible  <bruno@clisp.org>
46758
46759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46760         works.
46761         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46762
46763 2008-04-20  Bruno Haible  <bruno@clisp.org>
46764
46765         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46766         * modules/tsearch-tests (configure.ac): Test for initstate function.
46767
46768 2008-04-20  Bruno Haible  <bruno@clisp.org>
46769
46770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46771         for nlink_t if missing.
46772         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46773
46774 2008-04-19  Bruno Haible  <bruno@clisp.org>
46775
46776         Work around snprintf bug on Linux libc5.
46777         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46779         gl_SNPRINTF_SIZE1.
46780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46781         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46782         that test failed.
46783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46784         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46785         * modules/snprintf (Files): Add m4/printf.m4.
46786         * modules/vsnprintf (Files): Likewise.
46787         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46788         * doc/posix-functions/vsnprintf.texi: Likewise.
46789
46790 2008-04-19  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46793         from 0.0058 to less than 10^-7.
46794
46795 2008-04-19  Bruno Haible  <bruno@clisp.org>
46796
46797         Fix rounding when a precision is given.
46798         * lib/vasnprintf.c (is_borderline): New function.
46799         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46800         9...9x.
46801         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46802         %e, %g.
46803         * tests/test-vasprintf-posix.c (test_function): Likewise.
46804         * tests/test-snprintf-posix.h (test_function): Likewise.
46805         * tests/test-sprintf-posix.h (test_function): Likewise.
46806         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46807         * tests/test-printf-posix.h (test_function): Likewise.
46808         * tests/test-printf-posix.output: Update.
46809         Reported by John Darrington <john@darrington.wattle.id.au> via
46810         Ben Pfaff <blp@cs.stanford.edu>.
46811
46812 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46813
46814         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46815         Suggested by Bruno Haible <bruno@clisp.org>.
46816
46817 2008-04-17  Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46820         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46821         implementation.
46822         Patch by Bruce Merry <bmerry@gmail.com>.
46823
46824 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46825
46826         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46827         doesn't work under Windows.
46828
46829 2008-04-16  Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46832         New macros.
46833         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46834         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46835         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46836         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46837         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46838         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46839         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46840         macros.
46841         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46842         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46843         Northern Sotho, Uighur.
46844
46845 2008-04-16  Bruno Haible  <bruno@clisp.org>
46846
46847         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46848         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46849         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46850         Reported by Daniel Bergström <daniel@octocode.com>.
46851
46852 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46853             Bruno Haible  <bruno@clisp.org>
46854
46855         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46856         function.
46857         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46858         New functions, mostly extracted from gl_locale_name_default.
46859         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46860
46861 2008-04-16  Eric Blake  <ebb9@byu.net>
46862
46863         Adjust strtod detection to catch glibc 2.7 bug.
46864         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46865         Reported by John Gatewood Ham.
46866
46867 2008-04-16  Bruno Haible  <bruno@clisp.org>
46868
46869         Add tentative support for Linux libc5.
46870         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46871         * lib/fpurge.c (fpurge): Likewise.
46872         * lib/freadable.c (freadable): Likewise.
46873         * lib/freadahead.c (freadahead): Likewise.
46874         * lib/freading.c (freading): Likewise.
46875         * lib/freadptr.c (freadptr): Likewise.
46876         * lib/freadseek.c (freadptrinc): Likewise.
46877         * lib/fseeko.c (rpl_fseeko): Likewise.
46878         * lib/fseterr.c (fseterr): Likewise.
46879         * lib/fwritable.c (fwritable): Likewise.
46880         * lib/fwriting.c (fwriting): Likewise.
46881         Reported by Alain Guibert <alguibert+bts@free.fr>.
46882
46883 2008-04-15  Bruno Haible  <bruno@clisp.org>
46884
46885         * modules/mathl (configure.ac): Define module indicator.
46886
46887 2008-04-15  Bruno Haible  <bruno@clisp.org>
46888
46889         * lib/logl.c (logl): Remove unused variables.
46890
46891 2008-04-15  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46894         fails.
46895
46896 2008-04-15  Bruno Haible  <bruno@clisp.org>
46897
46898         * lib/trim.c (trim2): Fix argument of isspace() macro.
46899
46900 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46901
46902         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46903         to 0.
46904         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46905
46906 2008-04-14  Bruno Haible  <bruno@clisp.org>
46907
46908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46909         AC_LANG_PROGRAM argument.
46910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46911         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46913         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46914         * m4/math_h.m4 (gl_MATH_H): Likewise.
46915         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46917         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46918         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46919         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46920         * m4/regex.m4 (gl_REGEX): Likewise.
46921         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46922         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46924         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46925         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46926         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46927         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46929
46930 2008-04-14  Jim Meyering  <meyering@redhat.com>
46931
46932         test-strtod: fix typos: s/abs/fabs/
46933         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46934
46935 2008-04-13  Bruno Haible  <bruno@clisp.org>
46936
46937         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46938         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46939         module is also used and while not building the reloc-wrapper.
46940
46941 2008-04-13  Bruno Haible  <bruno@clisp.org>
46942
46943         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46944
46945 2008-04-13  Bruno Haible  <bruno@clisp.org>
46946
46947         Fix AIX compilation failure introduced on 2008-04-02.
46948         * tests/test-frexp.c (exp): Undefine before redefining.
46949         * tests/test-frexpl.c (exp): Likewise.
46950
46951 2008-04-13  Bruno Haible  <bruno@clisp.org>
46952
46953         Work around a HP-UX stdio bug.
46954         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46955         * tests/test-ftello.c (main): Likewise.
46956         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46957         * doc/posix-functions/ftello.texi: Likewise.
46958
46959 2008-04-13  Bruno Haible  <bruno@clisp.org>
46960
46961         Make test-signbit pass on HP-UX/hppa.
46962         * tests/test-signbit.c (minus_zerol): New variable.
46963         (test_signbitl): Use it.
46964
46965 2008-04-13  Bruno Haible  <bruno@clisp.org>
46966
46967         Make truncl work on OSF/1 4.0.
46968         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46969         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46970         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46972         HAVE_DECL_TRUNCL.
46973         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46974         HAVE_DECL_TRUNCL.
46975         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46976
46977 2008-04-13  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46980
46981 2008-04-13  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46984         expression, so as to avoid HP-UX 11 cc compiler bug.
46985
46986 2008-04-13  Bruno Haible  <bruno@clisp.org>
46987
46988         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46989
46990 2008-04-13  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/git-merge-changelog.c: Remove empty declaration outside of
46993         functions.
46994
46995 2008-04-13  Bruno Haible  <bruno@clisp.org>
46996
46997         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46998
46999 2008-04-13  Bruno Haible  <bruno@clisp.org>
47000
47001         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47002         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47004         also if it exists but lacks definitions of the SHUT_* macros.
47005         * modules/sys_socket (Description): Update.
47006         Reported by Elbert Pol <e.pol@chello.nl>.
47007
47008 2008-04-13  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/localcharset.c (OS2): Don't redefine if already defined.
47011         Reported by Elbert Pol <e.pol@chello.nl>.
47012
47013 2008-04-13  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/binary-io.h [__EMX__]: Include <io.h>.
47016         Reported by Elbert Pol <e.pol@chello.nl>.
47017
47018 2008-04-12  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/fpucw.h: Enable the definitions also for x86_64.
47021         Needed for NetBSD/x86_64.
47022         Reported by Thomas Klausner <tk@giga.or.at>.
47023
47024 2008-04-12  Bruno Haible  <bruno@clisp.org>
47025
47026         * tests/test-strtod.c: Include isnand.h.
47027         (main): Use isnand instead of isnan.
47028         Reported by Jim Meyering.
47029
47030 2008-04-12  Bruno Haible  <bruno@clisp.org>
47031
47032         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47033         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47034
47035 2008-04-12  Jim Meyering  <meyering@redhat.com>
47036
47037         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47038
47039 2008-04-12  Bruno Haible  <bruno@clisp.org>
47040
47041         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47042         Reported by Elbert Pol <e.pol@chello.nl>.
47043
47044 2008-04-12  Eric Blake  <ebb9@byu.net>
47045
47046         Work around Solaris 10 math.h bug.
47047         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47048         (gl_MATH_H_DEFAULTS): Set up default.
47049         * modules/math (Makefile.am): Replace new indicators.
47050         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47051         * tests/test-math.c (main): Test this.
47052         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47053         * doc/posix-headers/math.texi (math.h): Mention bug.
47054         Reported by Nelson H. F. Beebe and Jim Meyering.
47055
47056 2008-04-11  Bruno Haible  <bruno@clisp.org>
47057
47058         Adapt to future versions of Apple GCC.
47059         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47060         Reported by Peter O'Gorman <peter@pogma.com>.
47061
47062 2008-04-11  Bruno Haible  <bruno@clisp.org>
47063
47064         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47065
47066 2008-04-11  Bruno Haible  <bruno@clisp.org>
47067
47068         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47069
47070         * modules/getaddrinfo-tests (Makefile.am): Define
47071         test_getaddrinfo_LDADD.
47072
47073 2008-04-11  Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47076         (init): Fix syntax error.
47077         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47078         is declared.
47079
47080 2008-04-11  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47083         * modules/glob (Depends-on): Add stdbool.
47084
47085 2008-04-11  Bruno Haible  <bruno@clisp.org>
47086
47087         * lib/trim.c: Include <string.h>.
47088
47089 2008-04-11  Eric Blake  <ebb9@byu.net>
47090
47091         Avoid compile failure on OS/2.
47092         * lib/regex_internal.h (internal_function): Disable optimization
47093         on OS/2 (__EMX__), where it caused compiler error.
47094         Reported by Elbert Pol.
47095
47096 2008-04-11  Bruno Haible  <bruno@clisp.org>
47097
47098         Flush the standard error stream before aborting. Needed on mingw.
47099         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47100         * tests/test-array_list.c (ASSERT): Likewise.
47101         * tests/test-array_oset.c (ASSERT): Likewise.
47102         * tests/test-avltree_list.c (ASSERT): Likewise.
47103         * tests/test-avltree_oset.c (ASSERT): Likewise.
47104         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47105         * tests/test-binary-io.c (ASSERT): Likewise.
47106         * tests/test-byteswap.c (ASSERT): Likewise.
47107         * tests/test-c-ctype.c (ASSERT): Likewise.
47108         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47109         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47110         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47111         * tests/test-c-strstr.c (ASSERT): Likewise.
47112         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47113         * tests/test-canonicalize.c (ASSERT): Likewise.
47114         * tests/test-carray_list.c (ASSERT): Likewise.
47115         * tests/test-ceilf1.c (ASSERT): Likewise.
47116         * tests/test-ceilf2.c (ASSERT): Likewise.
47117         * tests/test-ceill.c (ASSERT): Likewise.
47118         * tests/test-count-one-bits.c (ASSERT): Likewise.
47119         * tests/test-fbufmode.c (ASSERT): Likewise.
47120         * tests/test-fflush2.c (ASSERT): Likewise.
47121         * tests/test-floorf1.c (ASSERT): Likewise.
47122         * tests/test-floorf2.c (ASSERT): Likewise.
47123         * tests/test-floorl.c (ASSERT): Likewise.
47124         * tests/test-fopen.c (ASSERT): Likewise.
47125         * tests/test-fpending.c (ASSERT): Likewise.
47126         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47127         * tests/test-fpurge.c (ASSERT): Likewise.
47128         * tests/test-freadable.c (ASSERT): Likewise.
47129         * tests/test-freadahead.c (ASSERT): Likewise.
47130         * tests/test-freading.c (ASSERT): Likewise.
47131         * tests/test-freadptr.c (ASSERT): Likewise.
47132         * tests/test-freadptr2.c (ASSERT): Likewise.
47133         * tests/test-freadseek.c (ASSERT): Likewise.
47134         * tests/test-freopen.c (ASSERT): Likewise.
47135         * tests/test-frexp.c (ASSERT): Likewise.
47136         * tests/test-frexpl.c (ASSERT): Likewise.
47137         * tests/test-fseek.c (ASSERT): Likewise.
47138         * tests/test-fseeko.c (ASSERT): Likewise.
47139         * tests/test-fstrcmp.c (ASSERT): Likewise.
47140         * tests/test-ftell.c (ASSERT): Likewise.
47141         * tests/test-ftello.c (ASSERT): Likewise.
47142         * tests/test-func.c (ASSERT): Likewise.
47143         * tests/test-fwritable.c (ASSERT): Likewise.
47144         * tests/test-fwriting.c (ASSERT): Likewise.
47145         * tests/test-getdelim.c (ASSERT): Likewise.
47146         * tests/test-getline.c (ASSERT): Likewise.
47147         * tests/test-i-ring.c (ASSERT): Likewise.
47148         * tests/test-iconv-utf.c (ASSERT): Likewise.
47149         * tests/test-iconv.c (ASSERT): Likewise.
47150         * tests/test-isfinite.c (ASSERT): Likewise.
47151         * tests/test-isnand.c (ASSERT): Likewise.
47152         * tests/test-isnanf.c (ASSERT): Likewise.
47153         * tests/test-isnanl.h (ASSERT): Likewise.
47154         * tests/test-ldexpl.c (ASSERT): Likewise.
47155         * tests/test-linked_list.c (ASSERT): Likewise.
47156         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47157         * tests/test-localename.c (ASSERT): Likewise.
47158         * tests/test-lseek.c (ASSERT): Likewise.
47159         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47160         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47161         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47162         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47163         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47164         * tests/test-mbschr.c (ASSERT): Likewise.
47165         * tests/test-mbscspn.c (ASSERT): Likewise.
47166         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47167         * tests/test-mbspbrk.c (ASSERT): Likewise.
47168         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47169         * tests/test-mbsrchr.c (ASSERT): Likewise.
47170         * tests/test-mbsspn.c (ASSERT): Likewise.
47171         * tests/test-mbsstr1.c (ASSERT): Likewise.
47172         * tests/test-mbsstr2.c (ASSERT): Likewise.
47173         * tests/test-mbsstr3.c (ASSERT): Likewise.
47174         * tests/test-memchr2.c (ASSERT): Likewise.
47175         * tests/test-memmem.c (ASSERT): Likewise.
47176         * tests/test-open.c (ASSERT): Likewise.
47177         * tests/test-printf-frexp.c (ASSERT): Likewise.
47178         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47179         * tests/test-printf-posix.c (ASSERT): Likewise.
47180         * tests/test-quotearg.c (ASSERT): Likewise.
47181         * tests/test-rbtree_list.c (ASSERT): Likewise.
47182         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47183         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47184         * tests/test-round1.c (ASSERT): Likewise.
47185         * tests/test-roundf1.c (ASSERT): Likewise.
47186         * tests/test-roundl.c (ASSERT): Likewise.
47187         * tests/test-signbit.c (ASSERT): Likewise.
47188         * tests/test-sleep.c (ASSERT): Likewise.
47189         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47190         * tests/test-snprintf.c (ASSERT): Likewise.
47191         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47192         * tests/test-stat-time.c (ASSERT): Likewise.
47193         * tests/test-strcasestr.c (ASSERT): Likewise.
47194         * tests/test-strerror.c (ASSERT): Likewise.
47195         * tests/test-striconv.c (ASSERT): Likewise.
47196         * tests/test-striconveh.c (ASSERT): Likewise.
47197         * tests/test-striconveha.c (ASSERT): Likewise.
47198         * tests/test-strsignal.c (ASSERT): Likewise.
47199         * tests/test-strstr.c (ASSERT): Likewise.
47200         * tests/test-strtod.c (ASSERT): Likewise.
47201         * tests/test-trunc1.c (ASSERT): Likewise.
47202         * tests/test-trunc2.c (ASSERT): Likewise.
47203         * tests/test-truncf1.c (ASSERT): Likewise.
47204         * tests/test-truncf2.c (ASSERT): Likewise.
47205         * tests/test-truncl.c (ASSERT): Likewise.
47206         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47207         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47208         * tests/test-vasnprintf.c (ASSERT): Likewise.
47209         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47210         * tests/test-vasprintf.c (ASSERT): Likewise.
47211         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47212         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47213         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47214         * tests/test-vsnprintf.c (ASSERT): Likewise.
47215         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47216         * tests/test-wcwidth.c (ASSERT): Likewise.
47217         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47218         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47219         * tests/test-xvasprintf.c (ASSERT): Likewise.
47220         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47221         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47222         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47223         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47224         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47225         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47226         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47227         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47228         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47229         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47230         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47231         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47232         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47233         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47234         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47235         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47236         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47237         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47238         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47239         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47240         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47241         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47242         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47243         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47244         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47245         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47246         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47247         * tests/unictype/test-combining.c (ASSERT): Likewise.
47248         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47249         * tests/unictype/test-digit.c (ASSERT): Likewise.
47250         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47251         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47252         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47253         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47254         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47255         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47256         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47257         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47258         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47259         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47260         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47261         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47262         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47263         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47264         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47265         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47266         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47267         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47268         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47269         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47270         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47271         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47272         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47273         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47274         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47275         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47276         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47277         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47278         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47279         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47280         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47281         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47282         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47283         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47284         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47285         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47286         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47287         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47288         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47289         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47290         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47291         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47292         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47293         Reported by Eric Blake.
47294
47295 2008-04-11  Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/wchar.in.h: Tweak comment.
47298
47299 2008-04-11  Bruno Haible  <bruno@clisp.org>
47300
47301         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47302         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47303         gl_COMMON.
47304         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47305
47306 2008-04-11  Bruno Haible  <bruno@clisp.org>
47307
47308         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47309
47310 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47311
47312         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47313         of attempting to use non-existing /dev/*random.  Based on patch
47314         from Adam Strzelecki <ono@java.pl> in
47315         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47316
47317 2008-04-08  Bruno Haible  <bruno@clisp.org>
47318
47319         Add tentative support for emx+gcc.
47320         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47321         * lib/fpurge.c (fpurge): Likewise.
47322         * lib/freadable.c (freadable): Likewise.
47323         * lib/freadahead.c (freadahead): Likewise.
47324         * lib/freading.c (freading): Likewise.
47325         * lib/freadptr.c (freadptr): Likewise.
47326         * lib/freadseek.c (freadptrinc): Likewise.
47327         * lib/fseeko.c (rpl_fseeko): Likewise.
47328         * lib/fseterr.c (fseterr): Likewise.
47329         * lib/fwritable.c (fwritable): Likewise.
47330         * lib/fwriting.c (fwriting): Likewise.
47331         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47332
47333 2008-04-09  Eric Blake  <ebb9@byu.net>
47334
47335         Avoid some autoconf warnings.
47336         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47337         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47338         * m4/afs.m4 (gl_AFS): Likewise.
47339         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47340         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47341         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47342         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47343         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47344         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47345         (AC_CHECK_DECLS_ONCE): Likewise.
47346         Rename file...
47347         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47348         gnulib-tool requires autoconf 2.59 or better.
47349         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47350
47351 2008-04-08  Eric Blake  <ebb9@byu.net>
47352
47353         Use 'git describe --match' if present (added in git 1.5.5).
47354         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47355         if possible.
47356
47357 2008-04-08  Bruno Haible  <bruno@clisp.org>
47358
47359         Add tentative support for OpenServer.
47360         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47361         _ptr, _cnt.
47362         * lib/fpurge.c (fpurge): Likewise.
47363         * lib/freadable.c (freadable): Likewise.
47364         * lib/freadahead.c (freadahead): Likewise.
47365         * lib/freading.c (freading): Likewise.
47366         * lib/freadptr.c (freadptr): Likewise.
47367         * lib/freadseek.c (freadptrinc): Likewise.
47368         * lib/fseeko.c (rpl_fseeko): Likewise.
47369         * lib/fseterr.c (fseterr): Likewise.
47370         * lib/fwritable.c (fwritable): Likewise.
47371         * lib/fwriting.c (fwriting): Likewise.
47372         Reported by Roger Cornelius <rac@tenzing.org> and
47373         Brian K. White <brian@aljex.com>.
47374
47375 2008-04-06  Jim Meyering  <meyering@redhat.com>
47376
47377         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47378
47379 2008-04-06  Bruno Haible  <bruno@clisp.org>
47380
47381         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47382         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47383         * tests/test-printf-posix.sh: Likewise.
47384         * tests/test-vfprintf-posix.sh: Likewise.
47385         * tests/test-vprintf-posix.sh: Likewise.
47386         * tests/test-xprintf-posix.sh: Likewise.
47387
47388 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47389
47390         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47391         hide error from 'ls', needed on OS/2.
47392         Report by Elbert Pol <elbert.pol@gmail.com>.
47393
47394 2008-04-04  Eric Blake  <ebb9@byu.net>
47395
47396         Make test-fseeko.c failures meaningful.
47397         * tests/test-fseeko.c: Print line number on failure.
47398         * tests/test-fseek.c: Likewise.
47399         Reported by Nelson H. F. Beebe.
47400
47401         Improve strtod bug detection check.
47402         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47403         required for Solaris 10.
47404         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47405
47406 2008-04-04  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47409         by m4/setenv.m4.
47410
47411 2008-04-03  Eric Blake  <ebb9@byu.net>
47412
47413         Ensure sane .version contents.
47414         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47415         version string.
47416         * build-aux/git-version-gen: Improve documentation.
47417
47418         Make GNU make output nicer.
47419         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47420         MAKECMDGOALS to enforce message for all command line targets.  Set
47421         srcdir for use in maint.mk.
47422
47423         Another maintainer tweak.
47424         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47425         a target that regenerates version.
47426
47427 2008-04-03  Jim Meyering  <meyering@redhat.com>
47428
47429         vc-list-files: don't cause coreutils "make po-check" failure
47430         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47431
47432 2008-04-03  Eric Blake  <ebb9@byu.net>
47433
47434         Allow VPATH usage of vc-list-files.
47435         * build-aux/vc-list-files (scriptversion): Add timestamp.
47436         (options): Add --help, --version, -C.
47437         (CVS): Support installed cvsu.
47438
47439 2008-04-02  Bruno Haible  <bruno@clisp.org>
47440
47441         Avoid some "statement with no effect" warnings from gcc.
47442         * tests/test-wctype.c (main): Explicitly ignore unused values.
47443         Reported by Jim Meyering.
47444
47445 2008-04-02  Jim Meyering  <meyering@redhat.com>
47446
47447         Avoid some warnings from "gcc -Wshadow".
47448         * tests/test-frexp.c (exp): Define to a different identifier.
47449         * tests/test-frexpl.c (exp): Likewise.
47450
47451 2008-04-03  Jim Meyering  <meyering@redhat.com>
47452
47453         bootstrap: remove dangling *.[ch] symlinks from lib
47454         * build-aux/bootstrap [dangling symlink removal]: Move find's
47455         -depth option to precede all others, to avoid a warning.
47456         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47457
47458 2008-04-02  Bruno Haible  <bruno@clisp.org>
47459
47460         Avoid some warnings from "gcc -Wshadow".
47461         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47462         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47463         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47464         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47465         Reported by Jim Meyering.
47466
47467 2008-04-01  Bruno Haible  <bruno@clisp.org>
47468
47469         Fix test to work on IRIX 6.5 with cc.
47470         * tests/test-math.c (numeric_equal): New function.
47471         (main): Use it.
47472
47473 2008-04-01  Bruno Haible  <bruno@clisp.org>
47474
47475         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47476
47477 2008-04-01  Bruno Haible  <bruno@clisp.org>
47478
47479         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47480         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47481         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47482         (Depends-on): Remove math.
47483
47484         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47485         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47486         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47487         (Depends-on): Remove math.
47488
47489         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47490         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47491         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47492         (Depends-on): Remove math.
47493         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47494         (Depends-on): Remove math.
47495
47496         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47497         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47498         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47499         (Depends-on): Remove math.
47500         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47501         (Depends-on): Remove math.
47502
47503         * tests/test-round1.c: Include nan.h.
47504         (main): Use NaNd instead of NAN.
47505         * modules/round-tests (Files): Add tests/nan.h.
47506
47507         * tests/test-trunc1.c: Include nan.h.
47508         (main): Use NaNd instead of NAN.
47509         * modules/trunc-tests (Files): Add tests/nan.h.
47510
47511         * tests/test-roundf1.c: Include nan.h.
47512         (main): Use NaNf instead of NAN.
47513         * modules/roundf-tests (Files): Add tests/nan.h.
47514
47515         * tests/test-truncf1.c: Include nan.h.
47516         (main): Use NaNf instead of NAN.
47517         * modules/truncf-tests (Files): Add tests/nan.h.
47518
47519         * tests/test-ceilf1.c: Include nan.h.
47520         (main): Use NaNf instead of NAN.
47521         * modules/ceilf-tests (Files): Add tests/nan.h.
47522
47523         * tests/test-floorf1.c: Include nan.h.
47524         (main): Use NaNf instead of NAN.
47525         * modules/floorf-tests (Files): Add tests/nan.h.
47526
47527         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47528         (main): Use NaNf instead of NAN.
47529         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47530
47531         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47532         (main): Use NaNd instead of NAN.
47533         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47534
47535         * tests/test-frexp.c: Include nan.h.
47536         (main): Use NaNd instead of NAN.
47537         * modules/frexp-tests (Files): Add tests/nan.h.
47538
47539         * lib/isnan.c: Don't include <math.h>.
47540         (FUNC): Don't use NAN macro.
47541         * modules/isnand-nolibm (Depends-on): Remove math.
47542         * modules/isnanf-nolibm (Depends-on): Remove math.
47543         * modules/isnanl (Depends-on): Remove math.
47544         * modules/isnanl-nolibm (Depends-on): Remove math.
47545
47546         * tests/nan.h: New file.
47547
47548 2008-04-01  Eric Blake  <ebb9@byu.net>
47549
47550         Fix typos.
47551         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47552         values to be the right type.
47553
47554         For now, cater to gnulib strtod inaccuracies.
47555         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47556         fractional results.  While not as nice from a QoI perspective, it
47557         is a quicker patch than correctly implementing decimal to binary
47558         rounding.
47559
47560 2008-03-31  Eric Blake  <ebb9@byu.net>
47561
47562         Guarantee a definition of NAN.
47563         * lib/math.in.h (NAN): Define if missing.
47564         * tests/test-math.c (main): Test it.
47565         * doc/posix-headers/math.texi (math.h): Document this.
47566         * lib/isnan.c (rpl_isnand): Use it.
47567         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47568         * tests/test-floorf1.c (NaN): Likewise.
47569         * tests/test-frexp.c (NaN): Likewise.
47570         * tests/test-isnand.c (NaN): Likewise.
47571         * tests/test-isnanf.c (NaN): Likewise.
47572         * tests/test-round1.c (NaN): Likewise.
47573         * tests/test-roundf1.c (NaN): Likewise.
47574         * tests/test-snprintf-posix.h (NaN): Likewise.
47575         * tests/test-sprintf-posix.h (NaN): Likewise.
47576         * tests/test-trunc1.c (NaN): Likewise.
47577         * tests/test-truncf1.c (NaN): Likewise.
47578         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47579         * tests/test-vasprintf-posix.c (NaN): Likewise.
47580         * modules/isnand-nolibm (Depends-on): Add math.
47581         * modules/isnanf-nolibm (Depends-on): Likewise.
47582         * modules/isnanl (Depends-on): Likewise.
47583         * modules/isnanl-nolibm (Depends-on): Likewise.
47584         * modules/snprintf-posix-tests (Depends-on): Likewise.
47585         * modules/sprintf-posix-tests (Depends-on): Likewise.
47586         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47587         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47588         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47589         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47590
47591 2008-03-31  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47594         * doc/posix-functions/strtod.texi: Likewise.
47595
47596 2008-03-31  Bruno Haible  <bruno@clisp.org>
47597
47598         * tests/test-strtod.c (main): Don't use C99 syntax.
47599
47600 2008-03-31  Bruno Haible  <bruno@clisp.org>
47601
47602         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47603         Reported by Eric Blake.
47604
47605 2008-03-31  Jim Meyering  <meyering@redhat.com>
47606
47607         Don't compare actual signbit return values.
47608         * tests/test-strtod.c (main): Rather, compare only their
47609         zero/non-zero nature.
47610
47611 2008-03-31  Eric Blake  <ebb9@byu.net>
47612
47613         More strtod documentation.
47614         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47615         failures as distinct bugs.
47616
47617 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47618
47619         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47620         Problem reported by Erik Benada in
47621         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47622
47623 2008-03-30  Bruno Haible  <bruno@clisp.org>
47624
47625         * tests/test-strtod.c: Add comments about which assertion fails on which
47626         platform.
47627         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47628
47629 2008-03-30  Eric Blake  <ebb9@byu.net>
47630
47631         Test signbit behavior on zeros.
47632         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47633         (test_signbitd, test_signbitl): Likewise.
47634
47635         More strtod touchups.
47636         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47637         sign of negative underflow, for now.  Use .5, not .1.
47638         * doc/posix-functions/strtod.texi (strtod): Mention these
47639         limitations.
47640         Reported by Jim Meyering.
47641
47642 2008-03-30  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47645         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47646
47647 2008-03-30  Bruno Haible  <bruno@clisp.org>
47648
47649         Avoid failure when attempting to return empty iconv results on some
47650         platforms.
47651         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47652         allocation, don't report ENOMEM when the resulting string is empty.
47653
47654 2008-03-30  Bruno Haible  <bruno@clisp.org>
47655
47656         Fix buffer overrun.
47657         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47658         Don't consider the width for tmp_length. Check count against tmp_length
47659         before doing the padding. Ensure enough allocation during padding.
47660
47661 2008-03-30  Eric Blake  <ebb9@byu.net>
47662
47663         strtod touchups.
47664         * lib/strtod.c (strtod): Avoid compiler warnings.
47665         Reported by Jim Meyering.
47666
47667 2008-03-30  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47670         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47671         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47672         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47673         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47674         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47675         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47676         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47677
47678         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47679         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47680         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47681         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47682         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47683         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47684         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47685         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47686
47687         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47688         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47689         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47690         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47691         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47692         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47693         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47694         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47695
47696         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47697         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47698
47699         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47700         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47701
47702         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47703         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47704
47705         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47707         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47708
47709         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47711         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47712
47713         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47715         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47716
47717         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47719         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47720
47721         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47722         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47723         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47724         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47725         (Depends-on): Add EOVERFLOW.
47726         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47727         (Depends-on): Add EOVERFLOW.
47728         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47729         (Depends-on): Add EOVERFLOW.
47730         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47731         (Depends-on): Add EOVERFLOW.
47732         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47733         (Depends-on): Add EOVERFLOW.
47734         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47735         (Depends-on): Add EOVERFLOW.
47736         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47737         (Depends-on): Add EOVERFLOW.
47738         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47739         (Depends-on): Add EOVERFLOW.
47740
47741         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47743         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47744
47745         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47747         * modules/snprintf (Depends-on): Add EOVERFLOW.
47748
47749         * lib/poll.c (EOVERFLOW): Remove fallback.
47750         * modules/poll (Depends-on): Add EOVERFLOW.
47751
47752         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47753         * modules/getugroups (Depends-on): Add EOVERFLOW.
47754
47755         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47756         * modules/getdelim (Depends-on): Add EOVERFLOW.
47757
47758         * lib/ftell.c (EOVERFLOW): Remove fallback.
47759         * modules/ftell (Depends-on): Add EOVERFLOW.
47760
47761         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47763         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47764
47765         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47766
47767         * modules/EOVERFLOW-tests: New file.
47768         * tests/test-EOVERFLOW.c: New file.
47769
47770         * modules/EOVERFLOW: New file.
47771         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47772
47773 2008-03-30  Bruno Haible  <bruno@clisp.org>
47774
47775         Fix bug introduced on 2007-06-10.
47776         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47777         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47778
47779 2008-03-30  Bruno Haible  <bruno@clisp.org>
47780
47781         Improve freadseek's efficiency after ungetc.
47782         * lib/freadseek.c: Include freadahead.h.
47783         (freadptrinc): New function, extracted from freadseek.
47784         (freadseek): Use it in a loop. Use freadahead to determine the number
47785         of loop iterations.
47786         * modules/freadseek (Depends-on): Add freadahead.
47787         (configure.ac): Require AC_C_INLINE.
47788
47789 2008-03-30  Bruno Haible  <bruno@clisp.org>
47790
47791         * lib/freadseek.c (freadseek): Don't ignore the return value of
47792         freadptr.
47793
47794 2008-03-29  Eric Blake  <ebb9@byu.net>
47795
47796         Add hex float support.
47797         * modules/strtod (Depends-on): Add c-ctype.
47798         (Link): Mention POW_LIB.
47799         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47800         whitespace between 'e' and exponent.
47801         * tests/test-strtod.c (main): Enable hex float tests.
47802         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47803         now provides.
47804
47805         Document various strtod bugs, with some fixes.
47806         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47807         "-0x", "inf", "nan", and hex constants.
47808         * doc/posix-functions/atof.texi (atof): Likewise.
47809         * modules/stdlib (Makefile.am): Support strtod.
47810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47811         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47812         detect additional strtod bugs.
47813         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47814         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47815         bool where appropriate.  Parse 'inf' and 'nan'.
47816         * tests/test-strtod.c: New file.
47817         * modules/strtod (Depends-on): Add stdbool, stdlib.
47818         (configure.ac): Turn on module indicator.
47819         * modules/strtod-tests: New module.
47820
47821 2008-03-29  Eric Blake  <ebb9@byu.net>
47822
47823         Fix ftell on mingw.
47824         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47825         * modules/ftell-tests (Depends-on): Add binary-io.
47826         * modules/ftello-tests (Depends-on): Likewise.
47827         * tests/test-ftell.c (main): Enhance test to cover behavior after
47828         ungetc.  Enforce binary mode.
47829         * tests/test-ftello.c (main): Likewise.
47830
47831         Pass test-freadseek on cygwin.
47832         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47833         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47834         ungetc buffer.
47835
47836         * tests/test-fflush2.c (main): Fix typo.
47837
47838 2008-03-29  Bruno Haible  <bruno@clisp.org>
47839
47840         * tests/test-fflush2.c (main): Temporarily disable the contents of
47841         this test.
47842         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47843         Reported by Eric Blake.
47844
47845 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47846
47847         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47848         (GC_SHA224_DIGEST_SIZE): Add.
47849
47850         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47851         (gc_hash_digest_length): Likewise.
47852         (gc_hash_buffer): Likewise.
47853
47854 2008-03-25  Bruno Haible  <bruno@clisp.org>
47855
47856         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47857         detail which gettext release to use.
47858         Reported by Simon Josefsson.
47859
47860 2008-03-26  Jim Meyering  <meyering@redhat.com>
47861
47862         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47863         * modules/gnumakefile (clean-GNUmakefile): Also, use
47864         test ... && ... || : syntax rather than if-then ... fi.
47865
47866         gnumakefile: Don't double-quote-expand $(VPATH) value.
47867         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47868
47869 2008-03-24  Eric Blake  <ebb9@byu.net>
47870
47871         Alter GNUmakefile to install into top directory.
47872         * modules/maintainer-makefile: Split, and add dependency...
47873         * modules/gnumakefile: to this new module.
47874         * build-aux/GNUmakefile: Move...
47875         * top/GNUmakefile: ...here.
47876         * build-aux/maint.mk: Move...
47877         * top/maint.mk: ...here.
47878         * MODULES.html.sh (Support for maintaining...): Document new
47879         module.
47880
47881 2008-03-23  Bruno Haible  <bruno@clisp.org>
47882
47883         * gnulib-tool: New options --vc-files, --no-vc-files.
47884         (func_usage): Document them.
47885         (vc_files): New variable.
47886         (func_import): Consider vc_files.
47887         (func_create_testdir): Set vc_files to empty.
47888         Suggested by Jim Meyering and Karl Berry.
47889
47890 2008-03-23  Bruno Haible  <bruno@clisp.org>
47891
47892         Fix regex compilation error on HP-UX 11.
47893         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47894         * modules/regex (Files): Add m4/mbstate_t.m4.
47895         Reported by Ton Voon <ton.voon@altinity.com>.
47896
47897 2008-03-23  Bruno Haible  <bruno@clisp.org>
47898
47899         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47900
47901 2008-03-23  Eric Blake  <ebb9@byu.net>
47902             Bruno Haible  <bruno@clisp.org>
47903
47904         Install files from top/ in the destination directory.
47905         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47906         augmentation also for the files from top/.
47907         (func_import, func_create_testdir): Rewrite file names:
47908         top/filename -> filename.
47909
47910 2008-03-23  Bruno Haible  <bruno@clisp.org>
47911
47912         Tweak "gnulib --version" output.
47913         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47914
47915 2008-03-23  Bruno Haible  <bruno@clisp.org>
47916
47917         Tweak "gnulib --version" output.
47918         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47919         rather than contents of ChangeLog, when possible.
47920
47921 2008-03-21  Eric Blake  <ebb9@byu.net>
47922
47923         More --version tweaks.
47924         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47925         date of last ChangeLog entry.
47926
47927 2008-03-21  Jim Meyering  <meyering@redhat.com>
47928
47929         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47930
47931 2008-03-20  Eric Blake  <ebb9@byu.net>
47932
47933         VPATH fix.
47934         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47935
47936 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47937
47938         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47939         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47940
47941 2008-03-20  Eric Blake  <ebb9@byu.net>
47942
47943         Sync GNUmakefile with coreutils.
47944         * build-aux/GNUmakefile (have-Makefile): Rename...
47945         (_have-Makefile): ...to this, for namespace consideration.
47946         (GNUmakefile.cfg): Include, if present.
47947         (_autoreconf): Define a default.
47948         (_is-dist-target): New rule for rebuilds to pick up intra-release
47949         version.
47950         (maint-cfg.mk): Rename...
47951         (cfg.mk): ...to this.
47952
47953 2008-03-18  Jim Meyering  <meyering@redhat.com>
47954
47955         New script and module: mktempd
47956         * MODULES.html.sh (maint+release support): Add mktempd.
47957         * build-aux/mktempd: New file.
47958         * modules/mktempd: New file.
47959
47960 2008-03-15  Jim Meyering  <meyering@redhat.com>
47961
47962         Undo last change.
47963         * lib/sha1.c, lib/md5.c: 63 != ~63.
47964         Reported by Andreas Schwab.
47965
47966         sha1.c, md5.c: Hoist a redundant expression.
47967         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47968         "ctx->buflen" only once, before calling *_process_block.
47969         * lib/md5.c (md5_process_bytes): Likewise.
47970
47971 2008-03-14  Eric Blake  <ebb9@byu.net>
47972
47973         Bump copyright year in files generated by gnulib-tool.
47974         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47975         gnulib-tool, rather than hard-coding it.
47976
47977         Fix 'gnulib-tool --version' output to work with git.
47978         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47979         (startup): ...here.
47980         (func_version): Use it to invoke git-version-gen, rather than
47981         relying on CVS keyword expansion.  Modernize wording.
47982         (cvsdatestamp, last_checkin_date, version): Kill unused
47983         variables.
47984
47985 2008-03-12  Jim Meyering  <meyering@redhat.com>
47986
47987         Recognize optional cast of the argument to free.
47988         * build-aux/useless-if-before-free: Update regexps.
47989
47990         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47991
47992 2008-03-11  Bruno Haible  <bruno@clisp.org>
47993
47994         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47995         by a single package.
47996         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47997         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47998         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47999         Reported by Sam Steingold <sds@gnu.org>.
48000
48001 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48002
48003         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48004         repositories.
48005
48006 2008-03-11  Bruno Haible  <bruno@clisp.org>
48007
48008         Avoid conflicts between local macro definitions.
48009         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48010         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48011
48012 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48013             Bruno Haible  <bruno@clisp.org>
48014
48015         Make va_copy work with some version of xlc on AIX 5.1.
48016         * lib/stdarg.in.h: New file.
48017         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48018         On AIX, use a <stdarg.h> file substitute.
48019         * modules/stdarg (Files): Add lib/stdarg.in.h.
48020         (Depends-on): Add include_next.
48021         (Makefile.am): Build a stdarg.h substitute if requested.
48022         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48023
48024 2008-03-10  Bruno Haible  <bruno@clisp.org>
48025
48026         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48027         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48028         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48029
48030 2008-03-10  Bruno Haible  <bruno@clisp.org>
48031
48032         * modules/stdlib (Depends-on): Add include_next, remove
48033         absolute-header.
48034
48035 2008-03-09  Bruno Haible  <bruno@clisp.org>
48036
48037         * lib/freadahead.h (freadahead): Document more precisely.
48038         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48039         the sum of both buffer sizes.
48040         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48041         * NEWS: Document the change.
48042
48043 2008-03-09  Bruno Haible  <bruno@clisp.org>
48044
48045         Extend freadptr to return also the buffer size.
48046         * lib/freadptr.h (freadptr): Add sizep argument.
48047         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48048         (freadptr): Add sizep argument. Determine buffer size like freadahead
48049         does.
48050         * tests/test-freadptr.c: Don't include freadahead.h.
48051         (main): Adapt for new calling convention of freadptr.
48052         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48053         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48054         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48055         tests/test-freadptr2.sh.
48056         (Depends): Remove freadahead.
48057         (TESTS): Add test-freadptr2.sh.
48058         (check_PROGRAMS): Add test-freadptr2.
48059
48060 2008-03-09  Bruno Haible  <bruno@clisp.org>
48061
48062         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48063         Report and solution by Simon Josefsson.
48064
48065 2008-03-06  Bruno Haible  <bruno@clisp.org>
48066
48067         Make fflush after ungetc work on BSD platforms.
48068         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48069         * tests/test-fflush2.c: New file.
48070         * tests/test-fflush2.sh: New file.
48071         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48072         tests/test-fflush2.c.
48073         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48074         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48075
48076 2008-03-06  Eric Blake  <ebb9@byu.net>
48077
48078         Likewise for ftello.
48079         * modules/ftello (Dependencies): Add extensions.
48080         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48081
48082 2008-03-06  Bruno Haible  <bruno@clisp.org>
48083
48084         * modules/fseeko (Dependencies): Add extensions.
48085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48086         Needed on glibc systems.
48087
48088 2008-03-06  Bruno Haible  <bruno@clisp.org>
48089
48090         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48091         email address.
48092         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48093
48094 2008-03-06  Bruno Haible  <bruno@clisp.org>
48095
48096         * users.txt: Add libgnupdf.
48097
48098 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48099
48100         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48101         (Header File Substitutes, Function Substitutes,
48102         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48103         (Build robot for gnulib): Fix typo.
48104
48105 2008-03-06  Bruno Haible  <bruno@clisp.org>
48106
48107         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48108         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48109
48110 2008-03-06  Bruno Haible  <bruno@clisp.org>
48111
48112         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48113         * doc/gnulib.texi: Include it.
48114
48115 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48116
48117         * modules/func (License): Change license to unlimited; there was
48118         no LGPL parts in the module anyway.
48119
48120 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48121
48122         * modules/__func__: Renamed to modules/func.
48123         * modules/__func__-tests: Renamed to modules/func-tests.
48124         * tests/test-__func__.c: Renamed to tests/test-func.c.
48125         * m4/__func__.m4: Renamed to m4/func.m4.
48126         * doc/gnulib.texi (__func__): Section renamed to func.
48127         Suggested by Eric Blake <ebb9@byu.net>.
48128
48129 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48130
48131         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48132         about __func__.  Make example self-contained.  Suggested by Eric
48133         Blake <ebb9@byu.net>.
48134
48135         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48136         Suggested by Eric Blake <ebb9@byu.net>.
48137
48138 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48139
48140         * modules/__func__: New file.
48141         * modules/__func__-tests: New file.
48142         * tests/test-__func__.c: New file.
48143         * m4/__func__.m4: New file.
48144         * doc/gnulib.texi (__func__): Document __func__ module.
48145
48146 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48147
48148         * modules/byteswap (License): Re-license as LGPLv2+.
48149
48150 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48151
48152         * doc/Makefile: Add pdf target.
48153
48154 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48155
48156         * modules/inline (License): Use 'unlimited', since there are only
48157         *.m4 files in this module.
48158
48159 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48160             Bruno Haible  <bruno@clisp.org>
48161
48162         Add support for HP C 7.1 on OpenVMS 8.3.
48163         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48164
48165 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48166
48167         Update VMS specifics.
48168         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48169
48170 2008-03-02  Jim Meyering  <meyering@redhat.com>
48171
48172         Remove the last dependency on the "free" module.
48173         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48174         Reported by Bob Proulx.
48175
48176         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48177
48178         Remove useless "if" tests before free.  Deprecate "free" module.
48179         * doc/posix-functions/free.texi: Mention that this
48180         module is no longer useful.
48181         * modules/free (Notice): Say this module is obsolete.
48182         * modules/readutmp (Depends-on): Remove free.
48183         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48184         * lib/putenv.c (putenv): Likewise.
48185         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48186         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48187         * tests/test-c-strcasestr.c (main): Likewise.
48188         * tests/test-c-strstr.c (main): Likewise.
48189         * tests/test-mbscasestr1.c (main): Likewise.
48190         * tests/test-mbscasestr2.c (main): Likewise.
48191         * tests/test-mbsstr1.c (main): Likewise.
48192         * tests/test-mbsstr2.c (main): Likewise.
48193         * tests/test-memmem.c (main): Likewise.
48194         * tests/test-strcasestr.c (main): Likewise.
48195         * tests/test-striconv.c (main): Likewise.
48196         * tests/test-striconveh.c (main): Likewise.
48197         * tests/test-striconveha.c (main): Likewise.
48198         * tests/test-strstr.c (main): Likewise.
48199
48200         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48201
48202         bootstrap: sync from coreutils again
48203         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48204
48205 2008-03-01  Jim Meyering  <meyering@redhat.com>
48206
48207         bootstrap: sync from coreutils
48208         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48209         also when the target doesn't exist.
48210
48211 2008-03-01  Eric Blake  <ebb9@byu.net>
48212
48213         Fix bugs in last patch.
48214         * lib/memchr2.c (memchr2): Fix typo.
48215         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48216         extension.
48217         Reported by Bruce Korb.
48218
48219         New module 'memchr2'.
48220         * modules/memchr2: New file.
48221         * modules/memchr2-tests: Likewise.
48222         * lib/memchr2.h: Likewise.
48223         * lib/memchr2.c: Likewise, based on memchr.c.
48224         * tests/test-memchr2.c: New test.
48225         * MODULES.html.sh (String handling): Add memchr2.
48226
48227 2008-02-29  Bruno Haible  <bruno@clisp.org>
48228
48229         * modules/freadseek-tests: New file.
48230         * tests/test-freadseek.sh: New file.
48231         * tests/test-freadseek.c: New file.
48232
48233         New module 'freadseek'.
48234         * modules/freadseek: New file.
48235         * lib/freadseek.h: New file.
48236         * lib/freadseek.c: New file.
48237         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48238
48239 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48240
48241         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48242         wydawca.
48243
48244         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48245         program_invocation_name and program_invocation_short_name are
48246         present.
48247
48248 2008-02-28  Bruno Haible  <bruno@clisp.org>
48249
48250         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48251         * tests/test-freadptr.sh: Also test non-seekable stdin.
48252
48253 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48254
48255         * build-aux/bootstrap (source_base, m4_base)
48256         (doc_base, tests_base): New variables.
48257         (gnulib_tool_options): Do not hardcode base directories, use
48258         the above variables instead.
48259
48260 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48261
48262         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48263
48264 2008-02-28  Bruno Haible  <bruno@clisp.org>
48265
48266         * modules/freadptr-tests: New file.
48267         * tests/test-freadptr.sh: New file.
48268         * tests/test-freadptr.c: New file.
48269
48270         New module 'freadptr'.
48271         * modules/freadptr: New file.
48272         * lib/freadptr.h: New file.
48273         * lib/freadptr.c: New file.
48274         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48275
48276 2008-02-26  Karl Berry  <karl@freefriends.org>
48277
48278         Sync from Libtool:
48279         * libltdl/argz.c (argz_add, argz_count): New functions.
48280         * libltdl/argz.in.h: Declare them.
48281         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48282
48283 2008-02-22  Bruno Haible  <bruno@clisp.org>
48284
48285         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48286         is a pointer type.  Needed for HP-UX 10.
48287         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48288         * doc/posix-functions/gmtime_r.texi: Likewise.
48289         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48290
48291 2008-02-24  Bruno Haible  <bruno@clisp.org>
48292
48293         * modules/environ-tests: New file.
48294         * tests/test-environ.c: New file.
48295
48296         New module 'environ'.
48297         * modules/environ: New file.
48298         * lib/unistd.in.h (environ): New declaration.
48299         * m4/environ.m4: New file.
48300         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48301         after use.
48302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48303         HAVE_DECL_ENVIRON.
48304         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48305         HAVE_DECL_ENVIRON.
48306         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48307         wrong claim that 'environ' is missing on some systems.
48308         * modules/execute (Depends-on): Add environ.
48309         * lib/execute.c (environ): Remove fallback declaration.
48310         * modules/pipe (Depends-on): Add environ.
48311         * lib/pipe.c (environ): Remove fallback declaration.
48312         * modules/setenv (Depends-on): Add environ.
48313         * lib/setenv.c (environ): Remove fallback declaration.
48314         * modules/unsetenv (Depends-on): Add environ.
48315         * lib/unsetenv.c (environ): Remove fallback declaration.
48316         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48317         m4/environ.m4.
48318         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48319         (gl_PREREQ_UNSETENV): Likewise.
48320
48321 2008-02-24  Bruno Haible  <bruno@clisp.org>
48322
48323         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48324
48325 2008-02-20  Bob Proulx  <bob@proulx.com>
48326
48327         Enable use of older two part flavor 'git describe'.
48328         * build-aux/git-version-gen: If using the older two part flavor of
48329         git version then recreate the third part now present in the
48330         newer three part flavor of git describe.
48331
48332 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48333
48334         * lib/fts.c (fts_build): Typo correction to comment.
48335
48336 2008-02-17  Bruno Haible  <bruno@clisp.org>
48337
48338         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48339         generating no-op conflicts.
48340
48341 2008-02-17  Bruno Haible  <bruno@clisp.org>
48342
48343         Speed up by 10%.
48344         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48345         result_entries, rather than an index-based loop.
48346
48347 2008-02-17  Bruno Haible  <bruno@clisp.org>
48348
48349         Speed up by 25%.
48350         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48351         'hashcode_cached'.
48352         (entry_create): New function.
48353         (entry_hashcode): Use the cached hashcode if possible.
48354         (read_changelog_file, try_split_merged_entry): Use entry_create.
48355
48356 2008-02-17  Bruno Haible  <bruno@clisp.org>
48357
48358         Speed up from O(n^2) to O(n) for long ChangeLog files.
48359         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48360         (read_changelog_file): Change implementation of entries_reversed list
48361         to rbtreehash.
48362         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48363
48364 2008-02-17  Bruno Haible  <bruno@clisp.org>
48365
48366         New option --split-merged-entry.
48367         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48368         (find_paragraph_end, try_split_merged_entry): New functions.
48369         (long_options): Add option --split-merged-entry.
48370         (usage): Document option --split-merged-entry.
48371         (main): Implement option --split-merged-entry.
48372         Reported by Eric Blake.
48373
48374 2008-02-17  Bruno Haible  <bruno@clisp.org>
48375
48376         * lib/git-merge-changelog.c: Include c-strstr.h.
48377         (main): Support the "git pull --rebase" situation.
48378         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48379         Reported by Eric Blake.
48380
48381 2008-02-16  Eric Blake  <ebb9@byu.net>
48382
48383         Avoid doubling \ in common case of "c-maybe" quoting style.
48384         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48385         eliding outer quotes.
48386         * lib/quotearg.h: Document this.
48387         * tests/test-quotearg.c (result_strings, inputs, results_g)
48388         (flag_results, locale_results): Test it by adding a new string to
48389         each test group.
48390         (compare_strings): Test new string.
48391
48392 2008-02-13  Eric Blake  <ebb9@byu.net>
48393
48394         Avoid trigraph quoting in default output.
48395         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48396         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48397         unless explicitly requested.
48398         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48399
48400 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48401
48402         Don't rely on signed integer overflowing to negative value.
48403         * lib/getugroups.c (getugroups): Include <limits.h>.
48404         Instead, compare against INT_MAX, and increment only if the test passes.
48405
48406 2008-02-13  Jim Meyering  <meyering@redhat.com>
48407         and Eric Blake  <ebb9@byu.net>
48408
48409         Avoid shadowing warning and compile errors on Linux.
48410         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48411         forwarding macros on Linux.
48412         (dcgettext): Define a stub, for Linux.
48413         (results_g, main): Avoid warnings.
48414
48415 2008-02-12  Eric Blake  <ebb9@byu.net>
48416
48417         Silence warning in last patch.
48418         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48419
48420         Quotearg part 4: add tests, fix c-maybe colon quoting.
48421         * lib/quotearg.h: Improve documentation.
48422         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48423         escapes when adding outer quotes.  When quoting trigraphs, use
48424         valid C notation.  When quoting NUL, omit extra characters if next
48425         character is not digit.  Alter prototype.
48426         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48427         callers.
48428         * modules/quotearg-tests: New module.
48429         * tests/test-quotearg.c: New test.
48430
48431 2008-02-07  Eric Blake  <ebb9@byu.net>
48432
48433         Quotearg part 3: add flag to control outer quote elision.
48434         * lib/quotearg.h (c_maybe_quoting_style): New style.
48435         (enum quoting_flags): Better documentation of flags.
48436         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48437         c-maybe style.
48438         (quotearg_buffer_restyled): Handle new flag to elide outer
48439         quotes.
48440
48441         Quotearg part 2: add flag that can control NUL elision.
48442         * lib/quotearg.h (set_quoting_flags): New prototype.
48443         * lib/quotearg.c (struct quoting_options): Add flag field.
48444         (set_quoting_flags): New function.
48445         (quotearg_buffer_restyled): Add flags parameter.
48446         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48447         (quotearg_n_options): Set the flag, since length cannot be
48448         returned.
48449         (quoting_options_from_style): Default flags correctly.
48450
48451         Quotearg part 1: more wrappers, restore quotearg_char state.
48452         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48453         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48454         (quotearg_colon_mem): New wrappers.
48455         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48456         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48457         functions.
48458         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48459         (quotearg_colon_mem): New functions.
48460
48461 2008-02-11  Bruno Haible  <bruno@clisp.org>
48462
48463         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48464         library in the current directory: it does not work with parallel make.
48465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48466
48467 2008-02-11  Bruno Haible  <bruno@clisp.org>
48468
48469         * .gitattributes: New file.
48470
48471 2008-02-11  Jim Meyering  <meyering@redhat.com>
48472
48473         useless-if-before-free: Fix reversed exit values.
48474         * build-aux/useless-if-before-free: Use correct values
48475         for EXIT_MATCH and EXIT_NO_MATCH.
48476
48477         * build-aux/useless-if-before-free: Close stdout carefully.
48478
48479 2008-02-10  Bruno Haible  <bruno@clisp.org>
48480
48481         New module 'git-merge-changelog'.
48482         * modules/git-merge-changelog: New file.
48483         * lib/git-merge-changelog.c: New file.
48484
48485 2008-02-10  Jim Meyering  <meyering@redhat.com>
48486
48487         useless-if-before-free: New option: --list (-l).
48488
48489         useless-if-before-free: Don't exit immediately upon open failure.
48490         * build-aux/useless-if-before-free: Exit 2 for errors.
48491         Upon failure to open a file, don't exit immediately.
48492         Rather, just warn and continue with any remaining files.
48493
48494 2008-02-10  Bruno Haible  <bruno@clisp.org>
48495
48496         New abstract list operation 'node_set_value'.
48497         * lib/gl_list.h (gl_list_node_set_value): New function.
48498         (struct gl_list_implementation): New field node_set_value.
48499         * lib/gl_list.c (gl_list_node_set_value): New function.
48500         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48501         (gl_array_list_implementation): Update.
48502         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48503         (gl_carray_list_implementation): Update.
48504         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48505         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48506         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48507         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48508         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48509         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48510         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48511         Update.
48512         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48513         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48514         (gl_sublist_list_implementation): Update.
48515
48516 2008-02-10  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48519         Needed when ELEMENT is #defined to 'some_type *'.
48520
48521 2008-02-10  Jim Meyering  <meyering@redhat.com>
48522
48523         New script and module: useless-if-before-free
48524         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48525         * build-aux/useless-if-before-free: New file.
48526         * modules/useless-if-before-free: New file.
48527
48528         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48529
48530         xstrtol_error: Fix typo.
48531         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48532         s/exit_failure/exit_status/.
48533
48534 2008-02-09  Jim Meyering  <meyering@redhat.com>
48535
48536         New script and module: gitlog-to-changelog
48537         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48538         * modules/gitlog-to-changelog: New file.
48539         * build-aux/gitlog-to-changelog: New file.
48540
48541 2008-02-08  Jim Meyering  <meyering@redhat.com>
48542
48543         Avoid two "parameter unused" warnings.
48544         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48545         Mark "st" as used.
48546
48547         Use "git COMMAND", not "git-COMMAND".
48548         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48549         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48550         * build-aux/git-version-gen: Use "git status", not "git-status".
48551
48552 2008-02-07  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48555         Avoids a crash on Windows Vista.
48556         Reported by Adam Strzelecki <ono@java.pl> via
48557         Simon Josefsson <simon@josefsson.org>.
48558
48559 2008-02-06  Bruno Haible  <bruno@clisp.org>
48560
48561         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48562         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48563         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48565         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48567         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48568         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48575         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48576         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48577         left-adjust flag.
48578         * tests/test-snprintf-posix.h (test_function): Likewise.
48579         * tests/test-sprintf-posix.h (test_function): Likewise.
48580         * tests/test-vasprintf-posix.c (test_function): Likewise.
48581         * doc/posix-functions/fprintf.texi: Update.
48582         * doc/posix-functions/printf.texi: Update.
48583         * doc/posix-functions/snprintf.texi: Update.
48584         * doc/posix-functions/sprintf.texi: Update.
48585         * doc/posix-functions/vfprintf.texi: Update.
48586         * doc/posix-functions/vprintf.texi: Update.
48587         * doc/posix-functions/vsnprintf.texi: Update.
48588         * doc/posix-functions/vsprintf.texi: Update.
48589         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48590
48591 2008-02-06  Bruno Haible  <bruno@clisp.org>
48592
48593         Fix bug introduced on 2008-01-26.
48594         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48595
48596 2008-02-06  Bruno Haible  <bruno@clisp.org>
48597
48598         Fix bug introduced on 2007-06-10.
48599         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48600         !NEED_PRINTF_FLAG_ZERO.
48601
48602 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48603
48604         getloadavg: use libperfstat on AIX5
48605         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48606
48607 2008-02-03  Bruno Haible  <bruno@clisp.org>
48608
48609         * lib/diffseq.h: Add comments about required #includes.
48610         Reported by Michael Biggs <gnulib@doubleplum.net>.
48611
48612 2008-02-01  Bruno Haible  <bruno@clisp.org>
48613
48614         * users.txt: Add gnuit.
48615
48616 2008-01-31  Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/md4.c (set_uint32): Mark as inline.
48619         * lib/md5.c (set_uint32): Likewise.
48620         * lib/sha1.c (set_uint32): Likewise.
48621         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48622         * m4/md5.m4 (gl_MD5): Likewise.
48623         * m4/sha1.m4 (gl_SHA1): Likewise.
48624
48625 2008-01-31  Jim Meyering  <meyering@redhat.com>
48626
48627         Use "sizeof VAR", rather than a literal "4".
48628         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48629         * lib/md4.c (md4_read_ctx): Likewise.
48630         * lib/sha1.c (sha1_read_ctx): Likewise.
48631
48632 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48633
48634         * tests/test-sha1.c: New file, based on test-md5.c.
48635
48636         * modules/crypto/sha1-tests: New file.
48637
48638 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48639
48640         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48641
48642 2008-01-31  Jim Meyering  <meyering@redhat.com>
48643
48644         Prefer "sizeof v" over the equivalent "4".
48645         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48646         * lib/md5.c (set_uint32): Likewise.
48647         * lib/sha1.c (set_uint32): Likewise.
48648
48649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48650
48651         * lib/sha1.c (set_uint32): Mark function as static.
48652
48653 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48654
48655         md2: clarify comments to say that alignment is not required.
48656         * lib/md2.h: Remove warning about alignment in comment.
48657         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48658         never been required.
48659
48660 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48661
48662         md4: adapt alignment constraint fix from sha1.
48663         * lib/md4.c (set_uint32): New function, from sha1.c
48664         (md4_read_ctx): Use it.
48665         (md4_finish_ctx): Doc fix.
48666         * lib/md4.h: Doc fix.
48667
48668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48669
48670         md5: adapt alignment constraint fix from sha1.
48671         * lib/md5.c (set_uint32): New function, from sha1.c
48672         (md5_read_ctx): Use it.
48673         (md5_finish_ctx): Doc fix.
48674         * lib/md5.h: Doc fix.
48675
48676 2008-01-30  Peter Palfrader  <weasel@debian.org>
48677
48678         sha1: remove the result buffer alignment constraint
48679         * lib/sha1.c (set_uint32): New function.
48680         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48681         constraint.
48682         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48683         * lib/sha1.h: Likewise.
48684
48685 2008-01-30  Andreas Schwab  <schwab@suse.de>
48686             Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48689         correct definition of LDBL_MIN_EXP.
48690
48691 2008-01-30  Karl Berry  <karl@gnu.org>
48692
48693         * config/srclist-update: try to preserve x bit on updates.
48694         * config/srclistvars.sh: update for karl.
48695
48696 2008-01-29  Jim Meyering  <meyering@redhat.com>
48697
48698         vasnprintf.c: Avoid warning about unused label
48699         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48700         "overflow" label definition and associated code with the
48701         same cpp condition that guards the sole use of that label.
48702
48703 2008-01-26  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48706         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48707         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48708         * lib/isnanl-nolibm.h (isnanl): Likewise.
48709         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48710
48711 2008-01-26  Bruno Haible  <bruno@clisp.org>
48712
48713         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48714         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48715
48716 2008-01-26  Bruno Haible  <bruno@clisp.org>
48717
48718         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48719         GCC >= 4.0 built-in.
48720         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48721
48722 2008-01-26  Bruno Haible  <bruno@clisp.org>
48723
48724         Rename isnan, applicable to 'double' only, to isnand.
48725         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48726         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48727         (configure.ac): Update.
48728         (Include): Replace "isnan.h" with "isnand.h".
48729         * m4/isnand.m4: Renamed from m4/isnan.m4.
48730         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48731         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48732         instead of isnan.c.
48733         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48734         instead of HAVE_ISNAN_IN_LIBC.
48735         (isnand): Renamed from isnan.
48736         * lib/isnand.c: New file.
48737         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48738         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48739         (Makefile.am): Update.
48740         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48741         Include isnand.h instead of isnan.h.
48742         (main): Test isnand instead of isnan.
48743         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48744         isnan-nolibm.
48745         * modules/frexp (Depends-on): Likewise.
48746         * modules/frexp-tests (Depends-on): Likewise.
48747         * modules/frexp-nolibm (Depends-on): Likewise.
48748         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48749         * modules/isfinite (Depends-on): Likewise.
48750         * modules/round-tests (Depends-on): Likewise.
48751         * modules/signbit (Depends-on): Likewise.
48752         * modules/signbit-tests (Depends-on): Likewise.
48753         * modules/snprintf-posix (Depends-on): Likewise.
48754         * modules/sprintf-posix (Depends-on): Likewise.
48755         * modules/trunc-tests (Depends-on): Likewise.
48756         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48757         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48758         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48759         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48760         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48761         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48762         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48763         * modules/vasnprintf-posix (Depends-on): Likewise.
48764         * modules/vasprintf-posix (Depends-on): Likewise.
48765         * modules/vfprintf-posix (Depends-on): Likewise.
48766         * modules/vsnprintf-posix (Depends-on): Likewise.
48767         * modules/vsprintf-posix (Depends-on): Likewise.
48768         * lib/frexp.c: Include isnand.h instead of isnan.h.
48769         (ISNAN): Set to isnand instead of isnan.
48770         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48771         (gl_isfinited): Use isnand instead of isnan.
48772         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48773         (gl_signbitd): Use isnand instead of isnan.
48774         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48775         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48776         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48777         (main): Use isnand instead of isnan.
48778         * tests/test-round1.c: Include isnand.h.
48779         (main): Use isnand instead of isnan.
48780         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48781         (ISNAN): Set to isnand instead of isnan.
48782         * tests/test-trunc1.c: Include isnand.h.
48783         (main): Use isnand instead of isnan.
48784         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48785         (equal): Use isnand instead of isnan.
48786         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48787         isnand-nolibm.
48788         * NEWS: Mention the change.
48789
48790 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48791             Bruno Haible  <bruno@clisp.org>
48792
48793         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48794         the GCC builtins for signbits are present and set
48795         REPLACE_SIGNBIT_USING_GCC if so.
48796         * lib/math.in.h (signbit): Define using GCC builtins if
48797         REPLACE_SIGNBIT_USING_GCC is set.
48798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48799         REPLACE_SIGNBIT_USING_GCC.
48800         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48801
48802 2008-01-25  Jim Meyering  <meyering@redhat.com>
48803
48804         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48805         * lib/poll.c: Include <config.h>, not "config.h".
48806         * tests/test-getaddrinfo.c: Likewise.
48807
48808 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48809
48810         * modules/sockets-tests: New file.
48811
48812 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48813
48814         * modules/sockets: New module, can be used to call WSA_Startup and
48815         WSA_Cleanup when needed.
48816
48817         * lib/sockets.h, lib/sockets.c: New files.
48818
48819         * m4/sockets.m4: New file.
48820
48821         * tests/test-sockets.c: New file.
48822
48823 2008-01-19  Bruno Haible  <bruno@clisp.org>
48824
48825         * doc/posix-headers: Renamed from doc/headers.
48826         * doc/posix-functions: Renamed from doc/functions.
48827         * doc/gnulib.texi: Update.
48828
48829 2008-01-19  Bruno Haible  <bruno@clisp.org>
48830
48831         * doc/glibc-functions/strcasestr.texi: Include contents of
48832         doc/functions/strcasestr.texi, fixing the list of platforms.
48833         * doc/functions/strcasestr.texi: Remove file.
48834
48835 2008-01-19  Bruno Haible  <bruno@clisp.org>
48836
48837         * doc/glibc-functions/memmem.texi: Include contents of
48838         doc/functions/memmem.texi.
48839         * doc/functions/memmem.texi: Remove file.
48840
48841 2008-01-18  Bruno Haible  <bruno@clisp.org>
48842
48843         * doc/glibc-functions/*.texi: New files.
48844         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48845         to use the new files.
48846
48847 2008-01-17  Bruno Haible  <bruno@clisp.org>
48848
48849         * tests/test-gethostname.c (main): Fix printf statement.
48850
48851 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48852
48853         * modules/gethostname-tests: New file.
48854
48855         * tests/test-gethostname.c: New file.
48856
48857 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48858
48859         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48860         used by the UNAME case.  Reported by Bruno Haible
48861         <bruno@clisp.org>.
48862
48863 2008-01-17  Eric Blake  <ebb9@byu.net>
48864
48865         Convert c-strcasestr to be more efficient.
48866         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48867         (Depends-on): Add c-strcase, remove malloca, strnlen.
48868         * tests/test-c-strcasestr.c (main): Enhance test.
48869         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48870
48871 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48872
48873         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48874         Use it in creating po/Makevars.
48875
48876 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48877
48878         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48879         Applications that requires it should initialize libgcrypt
48880         manually.
48881
48882 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48883
48884         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48885
48886 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48887
48888         Fix problem with getdate on mingw32 reported by Simon Josefsson
48889         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48890         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48891         tzname", when deciding whether to declare tzname.
48892         * lib/strftime.c (tzname): Likewise.
48893
48894 2008-01-15  Bruno Haible  <bruno@clisp.org>
48895
48896         Work around a MacOS X 10.5 bug in frexpl().
48897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48898         * doc/functions/frexpl.texi: Document the bug.
48899         Reported by Elias Pipping <pipping@gentoo.org>.
48900
48901 2008-01-14  Eric Blake  <ebb9@byu.net>
48902
48903         Touch up previous patch.
48904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48905         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48906
48907         Convert strcasestr module to use Two-Way algorithm.
48908         * modules/strcasestr-simple: New module, based on the old
48909         strcasestr, but with Two-Way rather than KMP.
48910         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48911         * lib/string.in.h (rpl_strcasestr): Declare.
48912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48913         performance.
48914         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48915         * modules/string (Makefile.am): Support strcasestr.
48916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48917         * modules/strcasestr-tests (Depends-on): Check for alarm.
48918         * tests/test-strcasestr.c: Augment test.
48919         * lib/str-two-way.h: Clean up stray macro.
48920         * NEWS: Document new module.
48921         * MODULES.html.sh (string handling): Likewise.
48922         * doc/functions/strcasestr.texi: New file.
48923         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48924         here, since it is not a POSIX function.
48925
48926 2008-01-14  Colin Watson  <cjwatson@debian.org>
48927             Bruno Haible  <bruno@clisp.org>
48928
48929         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48930         works fine; if not, set REPLACE_STRSIGNAL.
48931         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48933         REPLACE_STRSIGNAL.
48934         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48935         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48936         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48937
48938 2008-01-14  Bruno Haible  <bruno@clisp.org>
48939
48940         * modules/strsignal (Include): Change to <string.h>.
48941
48942 2008-01-14  Colin Watson  <cjwatson@debian.org>
48943
48944         * modules/argp (Notice): Add a notice recommending to change
48945         XGETTEXT_OPTIONS.
48946         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48947
48948 2008-01-13  Colin Watson  <cjwatson@debian.org>
48949
48950         * modules/strsignal-tests: New file.
48951         * tests/test-strsignal.c: New file.
48952
48953         * lib/strsignal.c: New file, from glibc with modifications.
48954         * lib/siglist.h: New file, from glibc with modifications.
48955         * lib/string.in.h (strsignal): New declaration.
48956         * m4/strsignal.m4: New file.
48957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48958         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48959         * modules/strsignal: New file.
48960         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48961         HAVE_DECL_STRSIGNAL.
48962
48963 2008-01-13  Bruno Haible  <bruno@clisp.org>
48964
48965         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48966         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48967         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48968         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48969
48970 2008-01-13  Bruno Haible  <bruno@clisp.org>
48971
48972         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48973         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48974         * lib/argp.h (__attribute__): Likewise.
48975         * lib/c-stack.c (__attribute__): Likewise.
48976         * lib/error.h (__attribute__): Likewise.
48977         * lib/fts.c (__attribute__): Likewise.
48978         * lib/openat.h (__attribute__): Likewise.
48979         * lib/stdio.in.h (__attribute__): Likewise.
48980         * lib/string.in.h (__attribute__): Likewise.
48981         * lib/utimens.c (__attribute__): Likewise.
48982         * lib/vasnprintf.h (__attribute__): Likewise.
48983         * lib/xalloc.h (__attribute__): Likewise.
48984         * lib/xprintf.h (__attribute__): Likewise.
48985         * lib/xstrtol.h (__attribute__): Likewise.
48986         * lib/xvasprintf.h (__attribute__): Likewise.
48987
48988 2008-01-12  Bruno Haible  <bruno@clisp.org>
48989
48990         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48991         * doc/glibc-headers/a.out.texi: New file.
48992         * doc/glibc-headers/aliases.texi: New file.
48993         * doc/glibc-headers/alloca.texi: New file.
48994         * doc/glibc-headers/ar.texi: New file.
48995         * doc/glibc-headers/argp.texi: New file.
48996         * doc/glibc-headers/argz.texi: New file.
48997         * doc/glibc-headers/byteswap.texi: New file.
48998         * doc/glibc-headers/crypt.texi: New file.
48999         * doc/glibc-headers/endian.texi: New file.
49000         * doc/glibc-headers/envz.texi: New file.
49001         * doc/glibc-headers/err.texi: New file.
49002         * doc/glibc-headers/error.texi: New file.
49003         * doc/glibc-headers/execinfo.texi: New file.
49004         * doc/glibc-headers/fpu_control.texi: New file.
49005         * doc/glibc-headers/fstab.texi: New file.
49006         * doc/glibc-headers/fts.texi: New file.
49007         * doc/glibc-headers/getopt.texi: New file.
49008         * doc/glibc-headers/ieee754.texi: New file.
49009         * doc/glibc-headers/ifaddrs.texi: New file.
49010         * doc/glibc-headers/libintl.texi: New file.
49011         * doc/glibc-headers/mcheck.texi: New file.
49012         * doc/glibc-headers/mntent.texi: New file.
49013         * doc/glibc-headers/obstack.texi: New file.
49014         * doc/glibc-headers/paths.texi: New file.
49015         * doc/glibc-headers/printf.texi: New file.
49016         * doc/glibc-headers/pty.texi: New file.
49017         * doc/glibc-headers/resolv.texi: New file.
49018         * doc/glibc-headers/shadow.texi: New file.
49019         * doc/glibc-headers/sysexits.texi: New file.
49020         * doc/glibc-headers/ttyent.texi: New file.
49021
49022 2008-01-12  Jim Meyering  <meyering@redhat.com>
49023
49024         announce-gen: emit Gnulib's git-based version string.
49025         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49026         New option --gnulib-version=V, where V is expected to be
49027         the output of running git describe in the gnulib directory.
49028         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49029         not useful, and plan to stop publishing an xdelta file with each
49030         coreutils release.
49031
49032         * build-aux/announce-gen: Also check for lzma-compressed files.
49033
49034 2008-01-11  Bruno Haible  <bruno@clisp.org>
49035
49036         * tests/test-memmem.c (main): Increase maximum allowed time.
49037         * tests/test-strstr.c (main): Likewise.
49038
49039 2008-01-11  Bruno Haible  <bruno@clisp.org>
49040
49041         * doc/functions/memmem.texi: Add more precisions about platforms.
49042         * doc/functions/strstr.texi: Likewise.
49043
49044 2008-01-10  Eric Blake  <ebb9@byu.net>
49045
49046         * m4/strstr.m4: Delete cruft from copy-n-paste.
49047         Reported by Bruno Haible.
49048
49049 2008-01-10  Bruno Haible  <bruno@clisp.org>
49050
49051         Make c-strstr rely on strstr.
49052         * lib/c-strstr.c: Don't include str-kmp.h.
49053         (c_strstr): Define in terms of strstr.
49054         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49055         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49056
49057 2008-01-10  Bruno Haible  <bruno@clisp.org>
49058
49059         * doc/gnulib.texi (String Functions in C Locale): New section.
49060         * doc/c-ctype.texi: New file.
49061         * doc/c-strcase.texi: New file.
49062         * doc/c-strcaseeq.texi: New file.
49063         * doc/c-strcasestr.texi: New file.
49064         * doc/c-strstr.texi: New file.
49065         * doc/c-strtod.texi: New file.
49066         * doc/c-strtold.texi: New file.
49067
49068 2008-01-10  Eric Blake  <ebb9@byu.net>
49069
49070         * lib/relocatable.h: Fix a comment.
49071
49072 2008-01-10  Eric Blake  <ebb9@byu.net>
49073
49074         Share two-way algorithm.
49075         * lib/str-two-way.h: New file, merged from...
49076         * lib/memmem.c: ...here...
49077         * lib/strstr.c: ...and here.
49078         * modules/memmem (Files): Use it.
49079         * modules/strstr (Files): Likewise.
49080
49081         Avoid quadratic strstr implementations.
49082         * lib/strstr.c: New file.
49083         * m4/strstr.m4: Likewise.
49084         * modules/strstr: Likewise.
49085         * modules/strstr-tests: Likewise.
49086         * tests/test-strstr.c: Likewise.
49087         * lib/string.in.h (rpl_strstr): Declare.
49088         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49090         * modules/string (Makefile.am): Likewise.
49091         * MODULES.html.sh (string handling): Mention new module.
49092         * doc/functions/strstr.texi (strstr): Document the bug.
49093
49094 2008-01-10  Bruno Haible  <bruno@clisp.org>
49095
49096         * lib/relocatable.h (relocate): State whether result is freshly
49097         allocated or not.
49098         * lib/relocatable.c (relocate): Return a freshly allocated string
49099         instead of a pointer to a privately held string.
49100         Reported by Sylvain Beucler <beuc@gnu.org>.
49101
49102 2008-01-10  Colin Watson  <cjwatson@debian.org>
49103
49104         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49105         s/S_ISNLK/S_ISLNK/.
49106
49107 2008-01-09  Bruno Haible  <bruno@clisp.org>
49108
49109         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49110         and other files.
49111         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49112         if it's only a guess.
49113         * modules/memmem: Simplify by depending on memmem-simple.
49114
49115 2008-01-09  Bruno Haible  <bruno@clisp.org>
49116
49117         Work around OpenBSD 4.0 tdelete() bug.
49118         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49119         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49120         macros and don't redefine the enum values.
49121         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49122         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49123         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49124
49125 2008-01-09  Bruno Haible  <bruno@clisp.org>
49126
49127         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49128         (main): Don't perform the tests if setlocale did not install a UTF-8
49129         locale. Needed on OpenBSD 4.0.
49130         * modules/wcwidth-tests (Depends-on): Add localcharset.
49131
49132 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49133
49134         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49135         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49136         * NEWS: announce this.
49137         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49138
49139 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49140         and Eric Blake  <ebb9@byu.net>
49141
49142         Add memmem-simple module.
49143         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49144         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49145         * modules/memmem-simple: New file.
49146         * modules/memmem (Description): Tweak.
49147         * MODULES.html.sh (string handling): Mention new module.
49148         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49149         addressed by memmem-simple.
49150         * NEWS: Document the difference.
49151
49152 2008-01-09  Eric Blake  <ebb9@byu.net>
49153
49154         Give gcc some memmem optimization hints.
49155         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49156         (strcasestr): Declare as pure.
49157         * modules/memmem (Maintainer): Claim my implementation.
49158
49159 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49160
49161         Support AIX 6.1 and higher.
49162         * build-aux/config.libpath: Likewise.
49163         * build-aux/config.rpath: Likewise.
49164
49165 2008-01-08  Jim Meyering  <meyering@redhat.com>
49166             Bruno Haible  <bruno@clisp.org>
49167
49168         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49169         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49170         Reported by Peter Fales in
49171         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49172
49173 2008-01-08  Bruno Haible  <bruno@clisp.org>
49174
49175         * modules/unictype/category-of (Depends-on): Add
49176         unictype/category-none.
49177         * modules/unictype/category-and-tests (Depends-on): Add
49178         unictype/category-{L,N,Lu,Nd}.
49179         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49180         * modules/unictype/category-or-tests (Depends-on): Add
49181         unictype/category-{L,N}.
49182         * modules/unictype/category-name-tests (Depends-on): Add
49183         unictype/category-{Z,Nl}.
49184         Reported by Simon Josefsson.
49185
49186 2008-01-08  Bruno Haible  <bruno@clisp.org>
49187
49188         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49189         convention better.
49190         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49191         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49192         Reported by Peter Miller <millerp@canb.auug.org.au>.
49193
49194 2008-01-08  Eric Blake  <ebb9@byu.net>
49195
49196         Rewrite memmem to guarantee linear complexity without malloc.
49197         * lib/memmem.c (memmem): Use Two-Way rather than
49198         Knuth-Morris-Pratt, to allow O(1) space usage.
49199         (critical_factorization, two_way_short_needle)
49200         (two_way_long_needle): New functions.
49201         (knuth_morris_pratt): Delete.
49202         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49203         Add stdint.
49204         * tests/test-memmem.c (main): Add tests for periodic needle and
49205         sublinear performance.
49206         * doc/functions/memmem.texi (memmem): Document other deficiencies
49207         in cygwin and older glibc.
49208
49209 2008-01-08  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49212         augmentation.
49213
49214 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49215
49216         Add a configure time option: --disable-acl.
49217         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49218         AC_ARG_ENABLE(acl).
49219
49220 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49221
49222         * tests/test-localename.c: Don't include obsolete "setenv.h".
49223
49224         * modules/localename-tests (Depends-on): Need unsetenv.
49225
49226 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49227
49228         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49229
49230 2008-01-06  Colin Watson  <cjwatson@debian.org>
49231
49232         * users.txt: Add man-db.
49233
49234 2008-01-07  Bruno Haible  <bruno@clisp.org>
49235
49236         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49237         previous section name.
49238
49239 2008-01-07  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/progname.c (set_program_name): Don't strip off a leading
49242         "lt-" prefix outside a .libs directory.
49243         Suggested by Paul Eggert.
49244
49245 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49246             Bruno Haible  <bruno@clisp.org>
49247
49248         Improve memory cleanup in 'relocatable' module.
49249         * lib/relocatable.h (compute_curr_prefix): Change return type to
49250         'char *'.
49251         * lib/relocatable.c (compute_curr_prefix): Change return type to
49252         'char *'. Free curr_installdir after use.
49253         (relocate): Free curr_prefix_better after use.
49254         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49255
49256 2008-01-01  Bruno Haible  <bruno@clisp.org>
49257
49258         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49259         failure on older glibc systems.
49260         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49261
49262 2008-01-05  Eric Blake  <ebb9@byu.net>
49263
49264         Avoid quadratic system memmem.
49265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49266         Reported by Ralf Wildenhues.
49267
49268         Fix memmem test for mingw.
49269         * modules/memmem-tests (configure.ac): Check for alarm.
49270         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49271         it.
49272         * doc/functions/memmem.texi: New file.
49273         * doc/gnulib.texi (Function Substitutes): Add memmem.
49274         Reported by Bruno Haible.
49275
49276 2008-01-04  Bruno Haible  <bruno@clisp.org>
49277
49278         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49279         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49280         gl_HEADER_STRING_H_DEFAULTS.
49281
49282 2008-01-04  Eric Blake  <ebb9@byu.net>
49283
49284         Shorten duration of memmem test.
49285         * tests/test-memmem.c (main): Use alarm to declare failure if test
49286         is taking too long.
49287         Reported by Ralf Wildenhues.
49288
49289 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49290
49291         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49292         string, needed by strerror.
49293
49294 2008-01-03  Colin Watson  <cjwatson@debian.org>
49295             Bruno Haible  <bruno@clisp.org>
49296
49297         * doc/gnulib-tool.texi (Localization): New section.
49298
49299 2008-01-02  Bruno Haible  <bruno@clisp.org>
49300
49301         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49302         variables to 'unsigned char *' type.
49303         Reported by Paul Eggert.
49304
49305 2008-01-02  Jim Meyering  <jim@meyering.net>
49306
49307         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49308
49309 2007-12-31  Jim Meyering  <jim@meyering.net>
49310
49311         Avoid use of private FTS type name.
49312         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49313
49314 2007-12-30  Karl Berry  <karl@gnu.org>
49315
49316         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49317         work around defect in Texinfo and/or the standalone Info browser.
49318
49319 2007-12-30  Bruno Haible  <bruno@clisp.org>
49320
49321         Unify 5 copies of the KMP code.
49322         * lib/str-kmp.h: New file.
49323         * lib/c-strcasestr.c: Include str-kmp.h.
49324         (knuth_morris_pratt): Remove function.
49325         (c_strcasestr): Update.
49326         * lib/c-strstr.c: Include str-kmp.h.
49327         (knuth_morris_pratt): Remove function.
49328         (c_strcasestr): Update.
49329         * lib/mbscasestr.c: Include str-kmp.h.
49330         (knuth_morris_pratt_unibyte): Remove function.
49331         * lib/mbsstr.c: Include str-kmp.h.
49332         (knuth_morris_pratt_unibyte): Remove function.
49333         * lib/strcasestr.c: Include str-kmp.h.
49334         (knuth_morris_pratt): Remove function.
49335         (strcasestr): Update.
49336         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49337         * modules/c-strstr (Files): Likewise.
49338         * modules/mbscasestr (Files): Likewise.
49339         * modules/mbsstr (Files): Likewise.
49340         * modules/strcasestr (Files): Likewise.
49341         Suggested by Paul Eggert.
49342
49343 2007-12-30  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49346         defined.
49347
49348 2007-12-30  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/xmalloca.h: Include xalloc.h.
49351         (xnmalloca): New macro.
49352
49353 2007-12-30  Bruno Haible  <bruno@clisp.org>
49354
49355         * lib/malloca.h (nmalloca): New macro.
49356         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49357         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49358         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49359         knuth_morris_pratt_multibyte): Likewise.
49360         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49361         knuth_morris_pratt_multibyte): Likewise.
49362         * lib/memmem.c (knuth_morris_pratt): Likewise.
49363         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49364
49365 2007-12-25  Bruno Haible  <bruno@clisp.org>
49366
49367         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49368         * lib/glob.c: Don't include openat.h.
49369         (link_exists2_p): Add back the code that deals with the
49370         !GLOB_ALTDIRFUNC case.
49371         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49372         let it do the filename concatenation.
49373         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49374         * modules/glob (Depends-on): Remove openat.
49375
49376 2007-12-31  Bruno Haible  <bruno@clisp.org>
49377
49378         * modules/dirfd (License): Change to LGPLv2+.
49379         Approved by Jim Meyering.
49380
49381 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49382
49383         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49384         when multiplying M by sizeof (size_t).
49385
49386 2007-12-10  Martin Lambers  <marlam@marlam.de>
49387
49388         Override getpagesize on mingw.
49389         * lib/getpagesize.c: New file.
49390         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49391         * modules/getpagesize (Files): Add lib/getpagesize.c.
49392         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49394         REPLACE_GETPAGESIZE.
49395         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49396
49397 2007-12-25  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/localcharset (Notice): New field.
49400         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49401         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49402
49403 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49404             Bruno Haible  <bruno@clisp.org>
49405
49406         Avoid using the syntax symbol() in formatted documentation.
49407         * MODULES.html.sh (func_module): When replacing symbol() with a
49408         hyperlink, remove the parentheses. Show an error if some remain.
49409         Recognize and render the '...' syntax.
49410         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49411         Rework. Add paragraph about GCC's inlining.
49412         * doc/alloca.texi: Likewise.
49413         * doc/error.texi: Remove parentheses from symbol reference.
49414         * doc/gnulib-intro.texi: Likewise.
49415         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49416         * modules/fnmatch (Description): Reword to say "the ... function".
49417         * modules/full-read (Description): Likewise.
49418         * modules/full-write (Description): Likewise.
49419         * modules/safe-read (Description): Likewise.
49420         * modules/safe-write (Description): Likewise.
49421         * modules/strchrnul (Description): Likewise.
49422         * modules/trim (Description): Likewise.
49423         * modules/error (Description): Remove parentheses from symbol
49424         references.
49425         * modules/verror (Description): Likewise.
49426         Reported by Karl Berry.
49427
49428 2007-12-25  Bruno Haible  <bruno@clisp.org>
49429
49430         Fixup after 2007-10-16 commit.
49431         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49432
49433 2007-12-24  Bruno Haible  <bruno@clisp.org>
49434
49435         Make --enable-relocatable work with DESTDIR.
49436         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49437         to compute installdir from destprog.
49438         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49439         also set the RELOC_DESTDIR variable.
49440         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49441
49442 2007-12-24  Bruno Haible  <bruno@clisp.org>
49443
49444         Fix link error due to xalloc_die().
49445         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49446         of xreadlink.
49447         * lib/relocwrapper.c: Update comments.
49448         * build-aux/install-reloc: Remove xreadlink.c from file list.
49449         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49450         xreadlink.c.
49451         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49452
49453 2007-12-24  Bruno Haible  <bruno@clisp.org>
49454
49455         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49456         * lib/setenv.h: Remove file.
49457         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49458         lib/setenv.h.
49459         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49460         (Depends-on): Add stdlib.
49461         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49462         gl_FUNC_UNSETENV.
49463         (Include): Replace setenv.h with <stdlib.h>.
49464         * modules/unsetenv: New file.
49465         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49466         * lib/unsetenv.c: Include <stdlib.h> first.
49467         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49468         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49469         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49470         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49471         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49472         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49474         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49475         * doc/functions/unsetenv.texi: Update.
49476         * modules/xsetenv (Depends-on): Add unsetenv.
49477         * modules/getdate (Depends-on): Likewise.
49478         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49479         * lib/xsetenv.c: Don't include setenv.h.
49480         * lib/getdate.y: Likewise.
49481         * lib/relocwrapper.c: Likewise.
49482         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49483         (Depends-on): Add stdlib.
49484         * NEWS: Mention the changes.
49485         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49486
49487 2007-12-23  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49490         indentation.
49491
49492 2007-12-23  Bruno Haible  <bruno@clisp.org>
49493
49494         * lib/c-strcasestr.c: Add more comments.
49495         * lib/c-strstr.c: Likewise.
49496         * lib/mbscasestr.c: Likewise.
49497         * lib/mbsstr.c: Likewise.
49498         * lib/strcasestr.c: Likewise.
49499         * lib/memmem.c: Likewise.
49500
49501 2007-12-23  Bruno Haible  <bruno@clisp.org>
49502
49503         * tests/test-memmem.c: Include <string.h> first.
49504
49505 2007-12-22  Bruno Haible  <bruno@clisp.org>
49506
49507         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49508         the contents of $testsbase.
49509         Reported by Ralf Wildenhues.
49510
49511 2007-12-22  Bruno Haible  <bruno@clisp.org>
49512
49513         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49514         two variables local_ldadd_before, local_ldadd_last.
49515
49516 2007-12-20  Eric Blake  <ebb9@byu.net>
49517
49518         Work around circular library issue when cross-compiling.
49519         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49520         that progname.o does not need to pull in rpl_memcmp.
49521
49522 2007-12-19  Eric Blake  <ebb9@byu.net>
49523
49524         Fix memmem to avoid O(n^2) worst-case complexity.
49525         * lib/memmem.c (knuth_morris_pratt): New function.
49526         (memmem): Use it if first few naive iterations fail.
49527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49528         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49529         * modules/memchr (License): Likewise.
49530         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49531         malloca.
49532         * tests/test-memmem.c: Rewrite, borrowing ideas from
49533         test-mbsstr1.c; the old version wouldn't even compile!
49534         * modules/memmem-tests: New file.
49535         * lib/string.in.h (rpl_memmem): Add declaration.
49536         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49538         REPLACE_MEMMEM.
49539
49540 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49541
49542         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49543         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49544         before any system include files, and undef after them all.  This
49545         should fix a problem on VMS reported by John E. Malmberg in
49546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49547
49548 2007-12-17  Eric Blake  <ebb9@byu.net>
49549
49550         Revert addition of verify, for BSD/OS.
49551         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49552         can't handle large files, for the sake of obsolete platforms.
49553         * modules/fseeko (Depends-on): Remove verify.
49554         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49555         * doc/functions/ftello.texi (ftello): Likewise.
49556         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49557         Reported by Larry Jones.
49558
49559 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49560
49561         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49562         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49563
49564 2007-12-17  Jim Meyering  <meyering@redhat.com>
49565
49566         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49567         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49568         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49569         * modules/getcwd (Depends-on): Add openat.
49570         Reported by Petr Salinger.
49571
49572 2007-12-17  Bruno Haible  <bruno@clisp.org>
49573
49574         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49575         avoid a segmentation fault of the configure test on x86_64 systems.
49576
49577 2007-12-15  Jim Meyering  <meyering@redhat.com>
49578
49579         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49580
49581 2007-12-13  Eric Blake  <ebb9@byu.net>
49582
49583         Another fseek test.
49584         * tests/test-fseek.c (main): Also test ungetc handling.
49585         * tests/test-fseeko.c (main): Likewise.
49586         * modules/fseeko (Depends-on): Add verify.
49587         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49588         large.
49589         Reported by Larry Jones.
49590
49591         Fix fseeko on mingw.
49592         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49593         seek.
49594
49595         Beef up fseek tests.
49596         * tests/test-fseek.c (main): Also test eof handling.
49597         * tests/test-fseeko.c (main): Likewise.
49598         Reported by Larry Jones.
49599
49600 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49601
49602         Fix fseeko on BSD-based platforms.
49603         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49604         successful seek.
49605
49606 2007-12-12  Eric Blake  <ebb9@byu.net>
49607
49608         Allow circular dependency of separate libtests.a
49609         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49610         when use_libtests.
49611
49612 2007-12-11  Eric Blake  <ebb9@byu.net>
49613
49614         Fix bug with -0.0L in previous patch.
49615         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49616         * tests/test-isnan.c (main): Also test on zeroes.
49617         * tests/test-isnanf.c (main): Likewise.
49618         * tests/test-isnanl.h (main): Likewise.
49619
49620         Detect pseudo-denormals on x86 even when cross-compiling.
49621         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49622         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49623         invalid bit patterns that happen to satisfy ==.
49624
49625         Avoid link failures with separate libtests.a.
49626         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49627         last, to satisfy circular dependencies.
49628
49629 2007-12-11  Eric Blake  <ebb9@byu.net>
49630         and Bruno Haible  <bruno@clisp.org>
49631
49632         Fix OpenBSD 4.0 <float.h> handling of long double.
49633         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49634         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49635         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49636
49637 2007-12-11  Jim Meyering  <meyering@redhat.com>
49638
49639         * users.txt: Add libvirt.
49640
49641         Support versions of autoconf prior to 2.59c.
49642         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49643         if it is not already defined.
49644
49645 2007-12-09  Bruno Haible  <bruno@clisp.org>
49646
49647         Let 'gnulib-tool --import' collect sources needed for the tests in
49648         tests/ rather than in lib/.
49649         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49650         argument. If true, add rules to generate libtests.a, and put libtests.a
49651         into $(LDADD). Consider source files in subdirectories and set
49652         uses_subdirs.
49653         (func_emit_initmacro_start, func_emit_initmacro_end,
49654         func_emit_initmacro_done): Pass all arguments explicitly.
49655         (func_import): Determine two module lists main_modules,
49656         testsrelated_modules. Determine use_libtests. Determine two variables
49657         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49658         instead of just sed_transform_lib_file. Determine two variables
49659         main_files and testsrelated_files. Compute 'files' as the union of
49660         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49661         func_add_or_update. In the generated gnulib-comp.m4, collect the
49662         object files for tests/ in different variables than those for lib/.
49663         Substitute LIBTESTS_LIBDEPS.
49664         (func_create_testdir): Combine the uses_subdirs results from
49665         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49666
49667 2007-12-09  Bruno Haible  <bruno@clisp.org>
49668
49669         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49670         the build-aux directory.
49671
49672 2007-12-09  Bruno Haible  <bruno@clisp.org>
49673
49674         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49675         introduced on 2006-09-09.
49676
49677 2007-12-07  Jim Meyering  <meyering@redhat.com>
49678
49679         Let these macros work also with autoconf-2.59.
49680         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49681         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49683
49684 2007-12-06  Jim Meyering  <meyering@redhat.com>
49685
49686         Avoid a configure-time syntax error in gl_FUNC_ACL.
49687         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49688         function in each branch, before testing the cache variable.
49689
49690 2007-12-04  Eric Blake  <ebb9@byu.net>
49691
49692         Make scripts executable.
49693         * build-aux/config.guess: Add execute permissions.
49694         * build-aux/config.sub: Likewise.
49695         * build-aux/gendocs.sh: Likewise.
49696
49697         Fix frexp on mingw.
49698         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49699         cross-compiling.
49700         * doc/functions/frexp.texi (frexp): Document the bug.
49701
49702         Make cygwin fseeko check more reliable.
49703         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49704         version numbers, rather than unrelated feature check.
49705         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49706         * doc/functions/ftello.texi (ftello): Likewise.
49707         Reported by Bruno Haible.
49708
49709         * m4/strerror.m4: Bump version number.
49710
49711 2007-12-03  Bruno Haible  <bruno@clisp.org>
49712
49713         * doc/functions/mprotect.texi: Mention the mingw problem.
49714
49715 2007-12-03  Eric Blake  <ebb9@byu.net>
49716
49717         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49718         REPLACE_STRERROR is initialized before this macro.
49719
49720 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49721
49722         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49723         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49724         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49725         put -lsec in even for programs other than 'ls'.  This fixes a problem
49726         for gettext reported by Bruno Haible in
49727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49728         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49729         Add support for Solaris 10.  This isn't efficient, but should get the
49730         job done for now.
49731
49732 2007-12-03  James Youngman  <jay@gnu.org>
49733
49734         * doc/regexprops-generic.texi: change "an close-group" to "a
49735         close-group" and "illegal" to "not allowed".
49736
49737 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49738
49739         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49740         pr_byname.h. Needed for the rare case when the maintainer has done
49741         "make maintainer-clean" in the source directory and then attempts a
49742         build outside the source directory.
49743         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49744         scripts_byname.h.
49745
49746 2007-12-02  Martin Lambers <marlam@marlam.de>
49747             Bruno Haible  <bruno@clisp.org>
49748
49749         * lib/getpagesize.h: Remove file.
49750         * lib/unistd.in.h: Include declaration of getpagesize here.
49751         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49752         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49753         HAVE_SYS_PARAM_H.
49754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49755         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49756         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49757         (Depends-on): Add unistd.
49758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49759         (Include): Use <unistd.h> instead of getpagesize.h.
49760         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49761         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49762         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49763         gl_GETPAGESIZE invocation, already handled by module dependency.
49764         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49765
49766 2007-12-02  Bruno Haible  <bruno@clisp.org>
49767
49768         * modules/strings-tests: New file.
49769         * tests/test-strings.c: New file.
49770
49771         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49772         * lib/strings.in.h: New file.
49773         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49774         * m4/strings_h.m4: New file.
49775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49776         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49777         * modules/strings: New file.
49778         * modules/string (Makefile.am): Update.
49779         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49780         Reported by Karl Berry.
49781
49782 2007-12-01  Eric Blake  <ebb9@byu.net>
49783
49784         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49785         accomodate fix in cygwin 1.5.25.
49786
49787 2007-12-01  Jim Meyering  <meyering@redhat.com>
49788
49789         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49790         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49791         that would inhibit utf8-optimization of a regexp containing line-
49792         or buffer-anchors, e.g., `^', `$'.
49793
49794 2007-11-30  Bruno Haible  <bruno@clisp.org>
49795
49796         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49797         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49798         glthread_recursive_lock_init.
49799         * lib/lock.c (glthread_recursive_lock_init)
49800         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49801         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49802
49803 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         New function qset_acl, like set_acl but with syscall semantics.
49806         * lib/acl.h (qset_acl): New decl.
49807         * lib/acl.c (qset_acl): New function.
49808         (set_acl): Use new function.  Use more-consistent diagnostics.
49809
49810 2007-11-28  Jim Meyering  <meyering@redhat.com>
49811
49812         * modules/physmem (License): Change from GPL to LGPLv2+.
49813
49814 2007-11-26  Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49817         'long double' type has excess precision.
49818         Reported by Jim Meyering in
49819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49820
49821 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49822
49823         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49824         Sync from <http://gnu.org/licenses>.
49825         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49826         with license text from same location.
49827         * doc/maintain.texi, doc/standards.texi:  Sync from
49828         <http://savannah.gnu.org/projects/gnustandards>.
49829
49830 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49831         and Jim Meyering  <meyering@redhat.com>
49832
49833         Adjust getdate' grammar to accept a slightly more regular language.
49834         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49835         Before, the former was rejected.
49836         * lib/getdate.y (digits_to_date_time): New function, factored
49837         out of ...
49838         (number): ...here.  Just call digits_to_date_time.
49839         (hybrid): New non-terminal to handle an <unsigned number,
49840         signed relative offset> sequence consistently.
49841
49842 2007-11-18  Jim Meyering  <meyering@redhat.com>
49843
49844         Pull my changes from coreutils:
49845         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49846         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49847         use of $gnulib_tool_option_extras, so that it's separated from the
49848         preceding argument.
49849
49850         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49851         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49852         parent destination directories before copying a file into place.
49853
49854 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49855
49856         bootstrap: work also with 4-argument variant of AC_INIT
49857         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49858
49859 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49860
49861         Port test-getaddrinfo to Solaris.
49862         Problem reported by Bruno Haible in
49863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49864         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49865         explanation of setting 'hints'.
49866         Don't reject an implementation merely because it returns EAI_SERVICE.
49867         (EAI_SERVICE): Define to 0 if not defined.
49868
49869 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49870
49871         The license of gnu-make and posix-shell is now "GPLed build tool".
49872         * modules/gnu-make (License): Likewise.
49873         * modules/posix-shell (License): Likewise.
49874
49875         New module posix-shell, for determining a POSIX shell
49876         or perhaps something that is close enough to a POSIX shell.
49877         * m4/posix-shell.m4: New file.
49878         * modules/posix-shell: New file.
49879
49880         * MODULES.html.sh: Mention new module.
49881
49882         New module gnu-make, for determining whether we're using GNU Make.
49883         * m4/gnu-make.m4: New file.
49884         * modules/gnu-make: New file.
49885         * MODULES.html.sh: Mention new module.
49886
49887 2007-11-14  Jim Meyering  <meyering@redhat.com>
49888
49889         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49890         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49891         use this macro to create a function _definition_.
49892         Remove useless "#undef ARGMATCH_DIE".
49893
49894 2007-11-14  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/config.charset: Update for OpenBSD 4.1.
49897         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49898
49899 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49900
49901         Document 64-bit #if problems in stdint.texi.
49902         * doc/headers/stdint.texi (stdint.h): Mention problems with
49903         64-bit-#if, and how to work around them.
49904
49905         Don't insist on 'long long int' support in the preprocessor.  It
49906         breaks too many things.  For example, PRIdMAX still uses a 'long
49907         long int' format with the latest Sun compiler, even though
49908         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49909         preprocessor problem.  This causes the latest coreutils to dump
49910         core on Solaris 10 sparc with the Sun C compiler.
49911         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49912         the troublesome expressions at configure-time, not at #if-time.
49913         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49914         preprocessor.
49915         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49916         compile-time C checks, done at 'configure'-time.
49917         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49918         * modules/inttypes (Makefile): Substitute the new symbols that
49919         gl_INTTYPES_H now generates.
49920         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49921
49922 2007-11-12  Bruno Haible  <bruno@clisp.org>
49923
49924         Tests for Unicode character classification functions.
49925
49926         * modules/unictype/bidicategory-byname-tests: New file.
49927         * modules/unictype/bidicategory-name-tests: New file.
49928         * modules/unictype/bidicategory-of-tests: New file.
49929         * modules/unictype/bidicategory-test-tests: New file.
49930         * modules/unictype/block-list-tests: New file.
49931         * modules/unictype/block-of-tests: New file.
49932         * modules/unictype/block-test-tests: New file.
49933         * modules/unictype/category-C-tests: New file.
49934         * modules/unictype/category-Cc-tests: New file.
49935         * modules/unictype/category-Cf-tests: New file.
49936         * modules/unictype/category-Cn-tests: New file.
49937         * modules/unictype/category-Co-tests: New file.
49938         * modules/unictype/category-Cs-tests: New file.
49939         * modules/unictype/category-L-tests: New file.
49940         * modules/unictype/category-Ll-tests: New file.
49941         * modules/unictype/category-Lm-tests: New file.
49942         * modules/unictype/category-Lo-tests: New file.
49943         * modules/unictype/category-Lt-tests: New file.
49944         * modules/unictype/category-Lu-tests: New file.
49945         * modules/unictype/category-M-tests: New file.
49946         * modules/unictype/category-Mc-tests: New file.
49947         * modules/unictype/category-Me-tests: New file.
49948         * modules/unictype/category-Mn-tests: New file.
49949         * modules/unictype/category-N-tests: New file.
49950         * modules/unictype/category-Nd-tests: New file.
49951         * modules/unictype/category-Nl-tests: New file.
49952         * modules/unictype/category-No-tests: New file.
49953         * modules/unictype/category-P-tests: New file.
49954         * modules/unictype/category-Pc-tests: New file.
49955         * modules/unictype/category-Pd-tests: New file.
49956         * modules/unictype/category-Pe-tests: New file.
49957         * modules/unictype/category-Pf-tests: New file.
49958         * modules/unictype/category-Pi-tests: New file.
49959         * modules/unictype/category-Po-tests: New file.
49960         * modules/unictype/category-Ps-tests: New file.
49961         * modules/unictype/category-S-tests: New file.
49962         * modules/unictype/category-Sc-tests: New file.
49963         * modules/unictype/category-Sk-tests: New file.
49964         * modules/unictype/category-Sm-tests: New file.
49965         * modules/unictype/category-So-tests: New file.
49966         * modules/unictype/category-Z-tests: New file.
49967         * modules/unictype/category-Zl-tests: New file.
49968         * modules/unictype/category-Zp-tests: New file.
49969         * modules/unictype/category-Zs-tests: New file.
49970         * modules/unictype/category-and-not-tests: New file.
49971         * modules/unictype/category-and-tests: New file.
49972         * modules/unictype/category-byname-tests: New file.
49973         * modules/unictype/category-name-tests: New file.
49974         * modules/unictype/category-none-tests: New file.
49975         * modules/unictype/category-of-tests: New file.
49976         * modules/unictype/category-or-tests: New file.
49977         * modules/unictype/category-test-withtable-tests: New file.
49978         * modules/unictype/combining-class-tests: New file.
49979         * modules/unictype/ctype-alnum-tests: New file.
49980         * modules/unictype/ctype-alpha-tests: New file.
49981         * modules/unictype/ctype-blank-tests: New file.
49982         * modules/unictype/ctype-cntrl-tests: New file.
49983         * modules/unictype/ctype-digit-tests: New file.
49984         * modules/unictype/ctype-graph-tests: New file.
49985         * modules/unictype/ctype-lower-tests: New file.
49986         * modules/unictype/ctype-print-tests: New file.
49987         * modules/unictype/ctype-punct-tests: New file.
49988         * modules/unictype/ctype-space-tests: New file.
49989         * modules/unictype/ctype-upper-tests: New file.
49990         * modules/unictype/ctype-xdigit-tests: New file.
49991         * modules/unictype/decimal-digit-tests: New file.
49992         * modules/unictype/digit-tests: New file.
49993         * modules/unictype/mirror-tests: New file.
49994         * modules/unictype/numeric-tests: New file.
49995         * modules/unictype/property-alphabetic-tests: New file.
49996         * modules/unictype/property-ascii-hex-digit-tests: New file.
49997         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49998         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49999         * modules/unictype/property-bidi-block-separator-tests: New file.
50000         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50001         * modules/unictype/property-bidi-common-separator-tests: New file.
50002         * modules/unictype/property-bidi-control-tests: New file.
50003         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50004         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50005         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50006         * modules/unictype/property-bidi-european-digit-tests: New file.
50007         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50008         * modules/unictype/property-bidi-left-to-right-tests: New file.
50009         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50010         * modules/unictype/property-bidi-other-neutral-tests: New file.
50011         * modules/unictype/property-bidi-pdf-tests: New file.
50012         * modules/unictype/property-bidi-segment-separator-tests: New file.
50013         * modules/unictype/property-bidi-whitespace-tests: New file.
50014         * modules/unictype/property-byname-tests: New file.
50015         * modules/unictype/property-combining-tests: New file.
50016         * modules/unictype/property-composite-tests: New file.
50017         * modules/unictype/property-currency-symbol-tests: New file.
50018         * modules/unictype/property-dash-tests: New file.
50019         * modules/unictype/property-decimal-digit-tests: New file.
50020         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50021         * modules/unictype/property-deprecated-tests: New file.
50022         * modules/unictype/property-diacritic-tests: New file.
50023         * modules/unictype/property-extender-tests: New file.
50024         * modules/unictype/property-format-control-tests: New file.
50025         * modules/unictype/property-grapheme-base-tests: New file.
50026         * modules/unictype/property-grapheme-extend-tests: New file.
50027         * modules/unictype/property-grapheme-link-tests: New file.
50028         * modules/unictype/property-hex-digit-tests: New file.
50029         * modules/unictype/property-hyphen-tests: New file.
50030         * modules/unictype/property-id-continue-tests: New file.
50031         * modules/unictype/property-id-start-tests: New file.
50032         * modules/unictype/property-ideographic-tests: New file.
50033         * modules/unictype/property-ids-binary-operator-tests: New file.
50034         * modules/unictype/property-ids-trinary-operator-tests: New file.
50035         * modules/unictype/property-ignorable-control-tests: New file.
50036         * modules/unictype/property-iso-control-tests: New file.
50037         * modules/unictype/property-join-control-tests: New file.
50038         * modules/unictype/property-left-of-pair-tests: New file.
50039         * modules/unictype/property-line-separator-tests: New file.
50040         * modules/unictype/property-logical-order-exception-tests: New file.
50041         * modules/unictype/property-lowercase-tests: New file.
50042         * modules/unictype/property-math-tests: New file.
50043         * modules/unictype/property-non-break-tests: New file.
50044         * modules/unictype/property-not-a-character-tests: New file.
50045         * modules/unictype/property-numeric-tests: New file.
50046         * modules/unictype/property-other-alphabetic-tests: New file.
50047         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50048         * modules/unictype/property-other-grapheme-extend-tests: New file.
50049         * modules/unictype/property-other-id-continue-tests: New file.
50050         * modules/unictype/property-other-id-start-tests: New file.
50051         * modules/unictype/property-other-lowercase-tests: New file.
50052         * modules/unictype/property-other-math-tests: New file.
50053         * modules/unictype/property-other-uppercase-tests: New file.
50054         * modules/unictype/property-paired-punctuation-tests: New file.
50055         * modules/unictype/property-paragraph-separator-tests: New file.
50056         * modules/unictype/property-pattern-syntax-tests: New file.
50057         * modules/unictype/property-pattern-white-space-tests: New file.
50058         * modules/unictype/property-private-use-tests: New file.
50059         * modules/unictype/property-punctuation-tests: New file.
50060         * modules/unictype/property-quotation-mark-tests: New file.
50061         * modules/unictype/property-radical-tests: New file.
50062         * modules/unictype/property-sentence-terminal-tests: New file.
50063         * modules/unictype/property-soft-dotted-tests: New file.
50064         * modules/unictype/property-space-tests: New file.
50065         * modules/unictype/property-terminal-punctuation-tests: New file.
50066         * modules/unictype/property-test-tests: New file.
50067         * modules/unictype/property-titlecase-tests: New file.
50068         * modules/unictype/property-unassigned-code-value-tests: New file.
50069         * modules/unictype/property-unified-ideograph-tests: New file.
50070         * modules/unictype/property-uppercase-tests: New file.
50071         * modules/unictype/property-variation-selector-tests: New file.
50072         * modules/unictype/property-white-space-tests: New file.
50073         * modules/unictype/property-xid-continue-tests: New file.
50074         * modules/unictype/property-xid-start-tests: New file.
50075         * modules/unictype/property-zero-width-tests: New file.
50076         * modules/unictype/scripts-tests: New file.
50077         * modules/unictype/syntax-c-ident-tests: New file.
50078         * modules/unictype/syntax-c-whitespace-tests: New file.
50079         * modules/unictype/syntax-java-ident-tests: New file.
50080         * modules/unictype/syntax-java-whitespace-tests: New file.
50081         * tests/unictype/test-bidi_byname.c: New file.
50082         * tests/unictype/test-bidi_name.c: New file.
50083         * tests/unictype/test-bidi_of.c: New file.
50084         * tests/unictype/test-bidi_test.c: New file.
50085         * tests/unictype/test-block_list.c: New file.
50086         * tests/unictype/test-block_of.c: New file.
50087         * tests/unictype/test-block_test.c: New file.
50088         * tests/unictype/test-categ_and.c: New file.
50089         * tests/unictype/test-categ_and_not.c: New file.
50090         * tests/unictype/test-categ_byname.c: New file.
50091         * tests/unictype/test-categ_name.c: New file.
50092         * tests/unictype/test-categ_none.c: New file.
50093         * tests/unictype/test-categ_of.c: New file.
50094         * tests/unictype/test-categ_or.c: New file.
50095         * tests/unictype/test-categ_test_withtable.c: New file.
50096         * tests/unictype/test-combining.c: New file.
50097         * tests/unictype/test-decdigit.c: New file.
50098         * tests/unictype/test-digit.c: New file.
50099         * tests/unictype/test-mirror.c: New file.
50100         * tests/unictype/test-numeric.c: New file.
50101         * tests/unictype/test-pr_byname.c: New file.
50102         * tests/unictype/test-pr_test.c: New file.
50103         * tests/unictype/test-predicate-part1.h: New file.
50104         * tests/unictype/test-predicate-part2.h: New file.
50105         * tests/unictype/test-scripts.c: New file.
50106         * tests/unictype/test-sy_c_ident.c: New file.
50107         * tests/unictype/test-sy_java_ident.c: New file.
50108
50109         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50110         for Unicode 5.0.0.
50111         * tests/unictype/test-categ_Cc.c: Likewise.
50112         * tests/unictype/test-categ_Cf.c: Likewise.
50113         * tests/unictype/test-categ_Cn.c: Likewise.
50114         * tests/unictype/test-categ_Co.c: Likewise.
50115         * tests/unictype/test-categ_Cs.c: Likewise.
50116         * tests/unictype/test-categ_L.c: Likewise.
50117         * tests/unictype/test-categ_Ll.c: Likewise.
50118         * tests/unictype/test-categ_Lm.c: Likewise.
50119         * tests/unictype/test-categ_Lo.c: Likewise.
50120         * tests/unictype/test-categ_Lt.c: Likewise.
50121         * tests/unictype/test-categ_Lu.c: Likewise.
50122         * tests/unictype/test-categ_M.c: Likewise.
50123         * tests/unictype/test-categ_Mc.c: Likewise.
50124         * tests/unictype/test-categ_Me.c: Likewise.
50125         * tests/unictype/test-categ_Mn.c: Likewise.
50126         * tests/unictype/test-categ_N.c: Likewise.
50127         * tests/unictype/test-categ_Nd.c: Likewise.
50128         * tests/unictype/test-categ_Nl.c: Likewise.
50129         * tests/unictype/test-categ_No.c: Likewise.
50130         * tests/unictype/test-categ_P.c: Likewise.
50131         * tests/unictype/test-categ_Pc.c: Likewise.
50132         * tests/unictype/test-categ_Pd.c: Likewise.
50133         * tests/unictype/test-categ_Pe.c: Likewise.
50134         * tests/unictype/test-categ_Pf.c: Likewise.
50135         * tests/unictype/test-categ_Pi.c: Likewise.
50136         * tests/unictype/test-categ_Po.c: Likewise.
50137         * tests/unictype/test-categ_Ps.c: Likewise.
50138         * tests/unictype/test-categ_S.c: Likewise.
50139         * tests/unictype/test-categ_Sc.c: Likewise.
50140         * tests/unictype/test-categ_Sk.c: Likewise.
50141         * tests/unictype/test-categ_Sm.c: Likewise.
50142         * tests/unictype/test-categ_So.c: Likewise.
50143         * tests/unictype/test-categ_Z.c: Likewise.
50144         * tests/unictype/test-categ_Zl.c: Likewise.
50145         * tests/unictype/test-categ_Zp.c: Likewise.
50146         * tests/unictype/test-categ_Zs.c: Likewise.
50147         * tests/unictype/test-ctype_alnum.c: Likewise.
50148         * tests/unictype/test-ctype_alpha.c: Likewise.
50149         * tests/unictype/test-ctype_blank.c: Likewise.
50150         * tests/unictype/test-ctype_cntrl.c: Likewise.
50151         * tests/unictype/test-ctype_digit.c: Likewise.
50152         * tests/unictype/test-ctype_graph.c: Likewise.
50153         * tests/unictype/test-ctype_lower.c: Likewise.
50154         * tests/unictype/test-ctype_print.c: Likewise.
50155         * tests/unictype/test-ctype_punct.c: Likewise.
50156         * tests/unictype/test-ctype_space.c: Likewise.
50157         * tests/unictype/test-ctype_upper.c: Likewise.
50158         * tests/unictype/test-ctype_xdigit.c: Likewise.
50159         * tests/unictype/test-decdigit.h: Likewise.
50160         * tests/unictype/test-digit.h: Likewise.
50161         * tests/unictype/test-numeric.h: Likewise.
50162         * tests/unictype/test-pr_alphabetic.c: Likewise.
50163         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50164         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50165         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50166         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50167         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50168         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50169         * tests/unictype/test-pr_bidi_control.c: Likewise.
50170         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50171         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50172         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50173         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50174         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50175         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50176         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50177         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50178         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50179         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50180         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50181         * tests/unictype/test-pr_combining.c: Likewise.
50182         * tests/unictype/test-pr_composite.c: Likewise.
50183         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50184         * tests/unictype/test-pr_dash.c: Likewise.
50185         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50186         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50187         * tests/unictype/test-pr_deprecated.c: Likewise.
50188         * tests/unictype/test-pr_diacritic.c: Likewise.
50189         * tests/unictype/test-pr_extender.c: Likewise.
50190         * tests/unictype/test-pr_format_control.c: Likewise.
50191         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50192         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50193         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50194         * tests/unictype/test-pr_hex_digit.c: Likewise.
50195         * tests/unictype/test-pr_hyphen.c: Likewise.
50196         * tests/unictype/test-pr_id_continue.c: Likewise.
50197         * tests/unictype/test-pr_id_start.c: Likewise.
50198         * tests/unictype/test-pr_ideographic.c: Likewise.
50199         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50200         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50201         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50202         * tests/unictype/test-pr_iso_control.c: Likewise.
50203         * tests/unictype/test-pr_join_control.c: Likewise.
50204         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50205         * tests/unictype/test-pr_line_separator.c: Likewise.
50206         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50207         * tests/unictype/test-pr_lowercase.c: Likewise.
50208         * tests/unictype/test-pr_math.c: Likewise.
50209         * tests/unictype/test-pr_non_break.c: Likewise.
50210         * tests/unictype/test-pr_not_a_character.c: Likewise.
50211         * tests/unictype/test-pr_numeric.c: Likewise.
50212         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50213         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50214         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50215         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50216         * tests/unictype/test-pr_other_id_start.c: Likewise.
50217         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50218         * tests/unictype/test-pr_other_math.c: Likewise.
50219         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50220         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50221         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50222         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50223         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50224         * tests/unictype/test-pr_private_use.c: Likewise.
50225         * tests/unictype/test-pr_punctuation.c: Likewise.
50226         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50227         * tests/unictype/test-pr_radical.c: Likewise.
50228         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50229         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50230         * tests/unictype/test-pr_space.c: Likewise.
50231         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50232         * tests/unictype/test-pr_titlecase.c: Likewise.
50233         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50234         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50235         * tests/unictype/test-pr_uppercase.c: Likewise.
50236         * tests/unictype/test-pr_variation_selector.c: Likewise.
50237         * tests/unictype/test-pr_white_space.c: Likewise.
50238         * tests/unictype/test-pr_xid_continue.c: Likewise.
50239         * tests/unictype/test-pr_xid_start.c: Likewise.
50240         * tests/unictype/test-pr_zero_width.c: Likewise.
50241         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50242         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50243
50244 2007-11-12  Bruno Haible  <bruno@clisp.org>
50245
50246         Unicode character classification functions.
50247         * lib/unictype.h: New file.
50248         * modules/unictype/base: New file.
50249         * modules/unictype/category-L: New file.
50250         * modules/unictype/category-Lu: New file.
50251         * modules/unictype/category-Ll: New file.
50252         * modules/unictype/category-Lt: New file.
50253         * modules/unictype/category-Lm: New file.
50254         * modules/unictype/category-Lo: New file.
50255         * modules/unictype/category-M: New file.
50256         * modules/unictype/category-Mn: New file.
50257         * modules/unictype/category-Mc: New file.
50258         * modules/unictype/category-Me: New file.
50259         * modules/unictype/category-N: New file.
50260         * modules/unictype/category-Nd: New file.
50261         * modules/unictype/category-Nl: New file.
50262         * modules/unictype/category-No: New file.
50263         * modules/unictype/category-P: New file.
50264         * modules/unictype/category-Pc: New file.
50265         * modules/unictype/category-Pd: New file.
50266         * modules/unictype/category-Ps: New file.
50267         * modules/unictype/category-Pe: New file.
50268         * modules/unictype/category-Pi: New file.
50269         * modules/unictype/category-Pf: New file.
50270         * modules/unictype/category-Po: New file.
50271         * modules/unictype/category-S: New file.
50272         * modules/unictype/category-Sm: New file.
50273         * modules/unictype/category-Sc: New file.
50274         * modules/unictype/category-Sk: New file.
50275         * modules/unictype/category-So: New file.
50276         * modules/unictype/category-Z: New file.
50277         * modules/unictype/category-Zs: New file.
50278         * modules/unictype/category-Zl: New file.
50279         * modules/unictype/category-Zp: New file.
50280         * modules/unictype/category-C: New file.
50281         * modules/unictype/category-Cc: New file.
50282         * modules/unictype/category-Cf: New file.
50283         * modules/unictype/category-Cs: New file.
50284         * modules/unictype/category-Co: New file.
50285         * modules/unictype/category-Cn: New file.
50286         * modules/unictype/category-or: New file.
50287         * modules/unictype/category-of: New file.
50288         * modules/unictype/category-test: New file.
50289         * modules/unictype/category-test-withtable: New file.
50290         * modules/unictype/category-byname: New file.
50291         * modules/unictype/category-none: New file.
50292         * modules/unictype/category-and: New file.
50293         * modules/unictype/category-and-not: New file.
50294         * modules/unictype/category-name: New file.
50295         * modules/unictype/combining-class: New file.
50296         * modules/unictype/category-all: New file.
50297         * modules/unictype/bidicategory-all: New file.
50298         * modules/unictype/bidicategory-byname: New file.
50299         * modules/unictype/bidicategory-name: New file.
50300         * modules/unictype/bidicategory-of: New file.
50301         * modules/unictype/bidicategory-test: New file.
50302         * modules/unictype/decimal-digit: New file.
50303         * modules/unictype/digit: New file.
50304         * modules/unictype/numeric: New file.
50305         * modules/unictype/mirror: New file.
50306         * modules/unictype/property-white-space: New file.
50307         * modules/unictype/property-alphabetic: New file.
50308         * modules/unictype/property-other-alphabetic: New file.
50309         * modules/unictype/property-not-a-character: New file.
50310         * modules/unictype/property-default-ignorable-code-point: New file.
50311         * modules/unictype/property-other-default-ignorable-code-point: New
50312         file.
50313         * modules/unictype/property-deprecated: New file.
50314         * modules/unictype/property-logical-order-exception: New file.
50315         * modules/unictype/property-variation-selector: New file.
50316         * modules/unictype/property-private-use: New file.
50317         * modules/unictype/property-unassigned-code-value: New file.
50318         * modules/unictype/property-uppercase: New file.
50319         * modules/unictype/property-other-uppercase: New file.
50320         * modules/unictype/property-lowercase: New file.
50321         * modules/unictype/property-other-lowercase: New file.
50322         * modules/unictype/property-titlecase: New file.
50323         * modules/unictype/property-soft-dotted: New file.
50324         * modules/unictype/property-id-start: New file.
50325         * modules/unictype/property-other-id-start: New file.
50326         * modules/unictype/property-id-continue: New file.
50327         * modules/unictype/property-other-id-continue: New file.
50328         * modules/unictype/property-xid-start: New file.
50329         * modules/unictype/property-xid-continue: New file.
50330         * modules/unictype/property-pattern-white-space: New file.
50331         * modules/unictype/property-pattern-syntax: New file.
50332         * modules/unictype/property-join-control: New file.
50333         * modules/unictype/property-grapheme-base: New file.
50334         * modules/unictype/property-grapheme-extend: New file.
50335         * modules/unictype/property-other-grapheme-extend: New file.
50336         * modules/unictype/property-grapheme-link: New file.
50337         * modules/unictype/property-bidi-control: New file.
50338         * modules/unictype/property-bidi-left-to-right: New file.
50339         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50340         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50341         * modules/unictype/property-bidi-european-digit: New file.
50342         * modules/unictype/property-bidi-eur-num-separator: New file.
50343         * modules/unictype/property-bidi-eur-num-terminator: New file.
50344         * modules/unictype/property-bidi-arabic-digit: New file.
50345         * modules/unictype/property-bidi-common-separator: New file.
50346         * modules/unictype/property-bidi-block-separator: New file.
50347         * modules/unictype/property-bidi-segment-separator: New file.
50348         * modules/unictype/property-bidi-whitespace: New file.
50349         * modules/unictype/property-bidi-non-spacing-mark: New file.
50350         * modules/unictype/property-bidi-boundary-neutral: New file.
50351         * modules/unictype/property-bidi-pdf: New file.
50352         * modules/unictype/property-bidi-embedding-or-override: New file.
50353         * modules/unictype/property-bidi-other-neutral: New file.
50354         * modules/unictype/property-hex-digit: New file.
50355         * modules/unictype/property-ascii-hex-digit: New file.
50356         * modules/unictype/property-ideographic: New file.
50357         * modules/unictype/property-unified-ideograph: New file.
50358         * modules/unictype/property-radical: New file.
50359         * modules/unictype/property-ids-binary-operator: New file.
50360         * modules/unictype/property-ids-trinary-operator: New file.
50361         * modules/unictype/property-zero-width: New file.
50362         * modules/unictype/property-space: New file.
50363         * modules/unictype/property-non-break: New file.
50364         * modules/unictype/property-iso-control: New file.
50365         * modules/unictype/property-format-control: New file.
50366         * modules/unictype/property-dash: New file.
50367         * modules/unictype/property-hyphen: New file.
50368         * modules/unictype/property-punctuation: New file.
50369         * modules/unictype/property-line-separator: New file.
50370         * modules/unictype/property-paragraph-separator: New file.
50371         * modules/unictype/property-quotation-mark: New file.
50372         * modules/unictype/property-sentence-terminal: New file.
50373         * modules/unictype/property-terminal-punctuation: New file.
50374         * modules/unictype/property-currency-symbol: New file.
50375         * modules/unictype/property-math: New file.
50376         * modules/unictype/property-other-math: New file.
50377         * modules/unictype/property-paired-punctuation: New file.
50378         * modules/unictype/property-left-of-pair: New file.
50379         * modules/unictype/property-combining: New file.
50380         * modules/unictype/property-composite: New file.
50381         * modules/unictype/property-decimal-digit: New file.
50382         * modules/unictype/property-numeric: New file.
50383         * modules/unictype/property-diacritic: New file.
50384         * modules/unictype/property-extender: New file.
50385         * modules/unictype/property-ignorable-control: New file.
50386         * modules/unictype/property-test: New file.
50387         * modules/unictype/property-byname: New file.
50388         * modules/unictype/property-all: New file.
50389         * modules/unictype/scripts: New file.
50390         * modules/unictype/scripts-all: New file.
50391         * modules/unictype/block-of: New file.
50392         * modules/unictype/block-test: New file.
50393         * modules/unictype/block-list: New file.
50394         * modules/unictype/block-all: New file.
50395         * modules/unictype/syntax-c-whitespace: New file.
50396         * modules/unictype/syntax-java-whitespace: New file.
50397         * modules/unictype/syntax-c-ident: New file.
50398         * modules/unictype/syntax-java-ident: New file.
50399         * modules/unictype/ctype-alnum: New file.
50400         * modules/unictype/ctype-alpha: New file.
50401         * modules/unictype/ctype-cntrl: New file.
50402         * modules/unictype/ctype-digit: New file.
50403         * modules/unictype/ctype-graph: New file.
50404         * modules/unictype/ctype-lower: New file.
50405         * modules/unictype/ctype-print: New file.
50406         * modules/unictype/ctype-punct: New file.
50407         * modules/unictype/ctype-space: New file.
50408         * modules/unictype/ctype-upper: New file.
50409         * modules/unictype/ctype-xdigit: New file.
50410         * modules/unictype/ctype-blank: New file.
50411         * lib/unictype/bidi_byname.c: New file.
50412         * lib/unictype/bidi_name.c: New file.
50413         * lib/unictype/bidi_of.c: New file.
50414         * lib/unictype/bidi_test.c: New file.
50415         * lib/unictype/bitmap.h: New file.
50416         * lib/unictype/block_test.c: New file.
50417         * lib/unictype/blocks.c: New file.
50418         * lib/unictype/categ_C.c: New file.
50419         * lib/unictype/categ_Cc.c: New file.
50420         * lib/unictype/categ_Cf.c: New file.
50421         * lib/unictype/categ_Cn.c: New file.
50422         * lib/unictype/categ_Co.c: New file.
50423         * lib/unictype/categ_Cs.c: New file.
50424         * lib/unictype/categ_L.c: New file.
50425         * lib/unictype/categ_Ll.c: New file.
50426         * lib/unictype/categ_Lm.c: New file.
50427         * lib/unictype/categ_Lo.c: New file.
50428         * lib/unictype/categ_Lt.c: New file.
50429         * lib/unictype/categ_Lu.c: New file.
50430         * lib/unictype/categ_M.c: New file.
50431         * lib/unictype/categ_Mc.c: New file.
50432         * lib/unictype/categ_Me.c: New file.
50433         * lib/unictype/categ_Mn.c: New file.
50434         * lib/unictype/categ_N.c: New file.
50435         * lib/unictype/categ_Nd.c: New file.
50436         * lib/unictype/categ_Nl.c: New file.
50437         * lib/unictype/categ_No.c: New file.
50438         * lib/unictype/categ_P.c: New file.
50439         * lib/unictype/categ_Pc.c: New file.
50440         * lib/unictype/categ_Pd.c: New file.
50441         * lib/unictype/categ_Pe.c: New file.
50442         * lib/unictype/categ_Pf.c: New file.
50443         * lib/unictype/categ_Pi.c: New file.
50444         * lib/unictype/categ_Po.c: New file.
50445         * lib/unictype/categ_Ps.c: New file.
50446         * lib/unictype/categ_S.c: New file.
50447         * lib/unictype/categ_Sc.c: New file.
50448         * lib/unictype/categ_Sk.c: New file.
50449         * lib/unictype/categ_Sm.c: New file.
50450         * lib/unictype/categ_So.c: New file.
50451         * lib/unictype/categ_Z.c: New file.
50452         * lib/unictype/categ_Zl.c: New file.
50453         * lib/unictype/categ_Zp.c: New file.
50454         * lib/unictype/categ_Zs.c: New file.
50455         * lib/unictype/categ_and.c: New file.
50456         * lib/unictype/categ_and_not.c: New file.
50457         * lib/unictype/categ_byname.c: New file.
50458         * lib/unictype/categ_name.c: New file.
50459         * lib/unictype/categ_none.c: New file.
50460         * lib/unictype/categ_of.c: New file.
50461         * lib/unictype/categ_or.c: New file.
50462         * lib/unictype/categ_test.c: New file.
50463         * lib/unictype/combining.c: New file.
50464         * lib/unictype/ctype_alnum.c: New file.
50465         * lib/unictype/ctype_alpha.c: New file.
50466         * lib/unictype/ctype_blank.c: New file.
50467         * lib/unictype/ctype_cntrl.c: New file.
50468         * lib/unictype/ctype_digit.c: New file.
50469         * lib/unictype/ctype_graph.c: New file.
50470         * lib/unictype/ctype_lower.c: New file.
50471         * lib/unictype/ctype_print.c: New file.
50472         * lib/unictype/ctype_punct.c: New file.
50473         * lib/unictype/ctype_space.c: New file.
50474         * lib/unictype/ctype_upper.c: New file.
50475         * lib/unictype/ctype_xdigit.c: New file.
50476         * lib/unictype/decdigit.c: New file.
50477         * lib/unictype/digit.c: New file.
50478         * lib/unictype/identsyntaxmap.h: New file.
50479         * lib/unictype/mirror.c: New file.
50480         * lib/unictype/numeric.c: New file.
50481         * lib/unictype/pr_alphabetic.c: New file.
50482         * lib/unictype/pr_ascii_hex_digit.c: New file.
50483         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50484         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50485         * lib/unictype/pr_bidi_block_separator.c: New file.
50486         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50487         * lib/unictype/pr_bidi_common_separator.c: New file.
50488         * lib/unictype/pr_bidi_control.c: New file.
50489         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50490         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50491         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50492         * lib/unictype/pr_bidi_european_digit.c: New file.
50493         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50494         * lib/unictype/pr_bidi_left_to_right.c: New file.
50495         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50496         * lib/unictype/pr_bidi_other_neutral.c: New file.
50497         * lib/unictype/pr_bidi_pdf.c: New file.
50498         * lib/unictype/pr_bidi_segment_separator.c: New file.
50499         * lib/unictype/pr_bidi_whitespace.c: New file.
50500         * lib/unictype/pr_byname.c: New file.
50501         * lib/unictype/pr_byname.gperf: New file.
50502         * lib/unictype/pr_combining.c: New file.
50503         * lib/unictype/pr_composite.c: New file.
50504         * lib/unictype/pr_currency_symbol.c: New file.
50505         * lib/unictype/pr_dash.c: New file.
50506         * lib/unictype/pr_decimal_digit.c: New file.
50507         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50508         * lib/unictype/pr_deprecated.c: New file.
50509         * lib/unictype/pr_diacritic.c: New file.
50510         * lib/unictype/pr_extender.c: New file.
50511         * lib/unictype/pr_format_control.c: New file.
50512         * lib/unictype/pr_grapheme_base.c: New file.
50513         * lib/unictype/pr_grapheme_extend.c: New file.
50514         * lib/unictype/pr_grapheme_link.c: New file.
50515         * lib/unictype/pr_hex_digit.c: New file.
50516         * lib/unictype/pr_hyphen.c: New file.
50517         * lib/unictype/pr_id_continue.c: New file.
50518         * lib/unictype/pr_id_start.c: New file.
50519         * lib/unictype/pr_ideographic.c: New file.
50520         * lib/unictype/pr_ids_binary_operator.c: New file.
50521         * lib/unictype/pr_ids_trinary_operator.c: New file.
50522         * lib/unictype/pr_ignorable_control.c: New file.
50523         * lib/unictype/pr_iso_control.c: New file.
50524         * lib/unictype/pr_join_control.c: New file.
50525         * lib/unictype/pr_left_of_pair.c: New file.
50526         * lib/unictype/pr_line_separator.c: New file.
50527         * lib/unictype/pr_logical_order_exception.c: New file.
50528         * lib/unictype/pr_lowercase.c: New file.
50529         * lib/unictype/pr_math.c: New file.
50530         * lib/unictype/pr_non_break.c: New file.
50531         * lib/unictype/pr_not_a_character.c: New file.
50532         * lib/unictype/pr_numeric.c: New file.
50533         * lib/unictype/pr_other_alphabetic.c: New file.
50534         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50535         * lib/unictype/pr_other_grapheme_extend.c: New file.
50536         * lib/unictype/pr_other_id_continue.c: New file.
50537         * lib/unictype/pr_other_id_start.c: New file.
50538         * lib/unictype/pr_other_lowercase.c: New file.
50539         * lib/unictype/pr_other_math.c: New file.
50540         * lib/unictype/pr_other_uppercase.c: New file.
50541         * lib/unictype/pr_paired_punctuation.c: New file.
50542         * lib/unictype/pr_paragraph_separator.c: New file.
50543         * lib/unictype/pr_pattern_syntax.c: New file.
50544         * lib/unictype/pr_pattern_white_space.c: New file.
50545         * lib/unictype/pr_private_use.c: New file.
50546         * lib/unictype/pr_punctuation.c: New file.
50547         * lib/unictype/pr_quotation_mark.c: New file.
50548         * lib/unictype/pr_radical.c: New file.
50549         * lib/unictype/pr_sentence_terminal.c: New file.
50550         * lib/unictype/pr_soft_dotted.c: New file.
50551         * lib/unictype/pr_space.c: New file.
50552         * lib/unictype/pr_terminal_punctuation.c: New file.
50553         * lib/unictype/pr_test.c: New file.
50554         * lib/unictype/pr_titlecase.c: New file.
50555         * lib/unictype/pr_unassigned_code_value.c: New file.
50556         * lib/unictype/pr_unified_ideograph.c: New file.
50557         * lib/unictype/pr_uppercase.c: New file.
50558         * lib/unictype/pr_variation_selector.c: New file.
50559         * lib/unictype/pr_white_space.c: New file.
50560         * lib/unictype/pr_xid_continue.c: New file.
50561         * lib/unictype/pr_xid_start.c: New file.
50562         * lib/unictype/pr_zero_width.c: New file.
50563         * lib/unictype/scripts.c: New file.
50564         * lib/unictype/sy_c_ident.c: New file.
50565         * lib/unictype/sy_c_whitespace.c: New file.
50566         * lib/unictype/sy_java_ident.c: New file.
50567         * lib/unictype/sy_java_whitespace.c: New file.
50568
50569         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50570         Unicode 5.0.0.
50571         * lib/unictype/blocks.h: Likewise.
50572         * lib/unictype/categ_C.h: Likewise.
50573         * lib/unictype/categ_Cc.h: Likewise.
50574         * lib/unictype/categ_Cf.h: Likewise.
50575         * lib/unictype/categ_Cn.h: Likewise.
50576         * lib/unictype/categ_Co.h: Likewise.
50577         * lib/unictype/categ_Cs.h: Likewise.
50578         * lib/unictype/categ_L.h: Likewise.
50579         * lib/unictype/categ_Ll.h: Likewise.
50580         * lib/unictype/categ_Lm.h: Likewise.
50581         * lib/unictype/categ_Lo.h: Likewise.
50582         * lib/unictype/categ_Lt.h: Likewise.
50583         * lib/unictype/categ_Lu.h: Likewise.
50584         * lib/unictype/categ_M.h: Likewise.
50585         * lib/unictype/categ_Mc.h: Likewise.
50586         * lib/unictype/categ_Me.h: Likewise.
50587         * lib/unictype/categ_Mn.h: Likewise.
50588         * lib/unictype/categ_N.h: Likewise.
50589         * lib/unictype/categ_Nd.h: Likewise.
50590         * lib/unictype/categ_Nl.h: Likewise.
50591         * lib/unictype/categ_No.h: Likewise.
50592         * lib/unictype/categ_P.h: Likewise.
50593         * lib/unictype/categ_Pc.h: Likewise.
50594         * lib/unictype/categ_Pd.h: Likewise.
50595         * lib/unictype/categ_Pe.h: Likewise.
50596         * lib/unictype/categ_Pf.h: Likewise.
50597         * lib/unictype/categ_Pi.h: Likewise.
50598         * lib/unictype/categ_Po.h: Likewise.
50599         * lib/unictype/categ_Ps.h: Likewise.
50600         * lib/unictype/categ_S.h: Likewise.
50601         * lib/unictype/categ_Sc.h: Likewise.
50602         * lib/unictype/categ_Sk.h: Likewise.
50603         * lib/unictype/categ_Sm.h: Likewise.
50604         * lib/unictype/categ_So.h: Likewise.
50605         * lib/unictype/categ_Z.h: Likewise.
50606         * lib/unictype/categ_Zl.h: Likewise.
50607         * lib/unictype/categ_Zp.h: Likewise.
50608         * lib/unictype/categ_Zs.h: Likewise.
50609         * lib/unictype/categ_of.h: Likewise.
50610         * lib/unictype/combining.h: Likewise.
50611         * lib/unictype/ctype_alnum.h: Likewise.
50612         * lib/unictype/ctype_alpha.h: Likewise.
50613         * lib/unictype/ctype_blank.h: Likewise.
50614         * lib/unictype/ctype_cntrl.h: Likewise.
50615         * lib/unictype/ctype_digit.h: Likewise.
50616         * lib/unictype/ctype_graph.h: Likewise.
50617         * lib/unictype/ctype_lower.h: Likewise.
50618         * lib/unictype/ctype_print.h: Likewise.
50619         * lib/unictype/ctype_punct.h: Likewise.
50620         * lib/unictype/ctype_space.h: Likewise.
50621         * lib/unictype/ctype_upper.h: Likewise.
50622         * lib/unictype/ctype_xdigit.h: Likewise.
50623         * lib/unictype/decdigit.h: Likewise.
50624         * lib/unictype/digit.h: Likewise.
50625         * lib/unictype/mirror.h: Likewise.
50626         * lib/unictype/numeric.h: Likewise.
50627         * lib/unictype/pr_alphabetic.h: Likewise.
50628         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50629         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50630         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50631         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50632         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50633         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50634         * lib/unictype/pr_bidi_control.h: Likewise.
50635         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50636         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50637         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50638         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50639         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50640         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50641         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50642         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50643         * lib/unictype/pr_bidi_pdf.h: Likewise.
50644         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50645         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50646         * lib/unictype/pr_combining.h: Likewise.
50647         * lib/unictype/pr_composite.h: Likewise.
50648         * lib/unictype/pr_currency_symbol.h: Likewise.
50649         * lib/unictype/pr_dash.h: Likewise.
50650         * lib/unictype/pr_decimal_digit.h: Likewise.
50651         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50652         * lib/unictype/pr_deprecated.h: Likewise.
50653         * lib/unictype/pr_diacritic.h: Likewise.
50654         * lib/unictype/pr_extender.h: Likewise.
50655         * lib/unictype/pr_format_control.h: Likewise.
50656         * lib/unictype/pr_grapheme_base.h: Likewise.
50657         * lib/unictype/pr_grapheme_extend.h: Likewise.
50658         * lib/unictype/pr_grapheme_link.h: Likewise.
50659         * lib/unictype/pr_hex_digit.h: Likewise.
50660         * lib/unictype/pr_hyphen.h: Likewise.
50661         * lib/unictype/pr_id_continue.h: Likewise.
50662         * lib/unictype/pr_id_start.h: Likewise.
50663         * lib/unictype/pr_ideographic.h: Likewise.
50664         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50665         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50666         * lib/unictype/pr_ignorable_control.h: Likewise.
50667         * lib/unictype/pr_iso_control.h: Likewise.
50668         * lib/unictype/pr_join_control.h: Likewise.
50669         * lib/unictype/pr_left_of_pair.h: Likewise.
50670         * lib/unictype/pr_line_separator.h: Likewise.
50671         * lib/unictype/pr_logical_order_exception.h: Likewise.
50672         * lib/unictype/pr_lowercase.h: Likewise.
50673         * lib/unictype/pr_math.h: Likewise.
50674         * lib/unictype/pr_non_break.h: Likewise.
50675         * lib/unictype/pr_not_a_character.h: Likewise.
50676         * lib/unictype/pr_numeric.h: Likewise.
50677         * lib/unictype/pr_other_alphabetic.h: Likewise.
50678         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50679         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50680         * lib/unictype/pr_other_id_continue.h: Likewise.
50681         * lib/unictype/pr_other_id_start.h: Likewise.
50682         * lib/unictype/pr_other_lowercase.h: Likewise.
50683         * lib/unictype/pr_other_math.h: Likewise.
50684         * lib/unictype/pr_other_uppercase.h: Likewise.
50685         * lib/unictype/pr_paired_punctuation.h: Likewise.
50686         * lib/unictype/pr_paragraph_separator.h: Likewise.
50687         * lib/unictype/pr_pattern_syntax.h: Likewise.
50688         * lib/unictype/pr_pattern_white_space.h: Likewise.
50689         * lib/unictype/pr_private_use.h: Likewise.
50690         * lib/unictype/pr_punctuation.h: Likewise.
50691         * lib/unictype/pr_quotation_mark.h: Likewise.
50692         * lib/unictype/pr_radical.h: Likewise.
50693         * lib/unictype/pr_sentence_terminal.h: Likewise.
50694         * lib/unictype/pr_soft_dotted.h: Likewise.
50695         * lib/unictype/pr_space.h: Likewise.
50696         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50697         * lib/unictype/pr_titlecase.h: Likewise.
50698         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50699         * lib/unictype/pr_unified_ideograph.h: Likewise.
50700         * lib/unictype/pr_uppercase.h: Likewise.
50701         * lib/unictype/pr_variation_selector.h: Likewise.
50702         * lib/unictype/pr_white_space.h: Likewise.
50703         * lib/unictype/pr_xid_continue.h: Likewise.
50704         * lib/unictype/pr_xid_start.h: Likewise.
50705         * lib/unictype/pr_zero_width.h: Likewise.
50706         * lib/unictype/scripts.h: Likewise.
50707         * lib/unictype/scripts_byname.gperf: Likewise.
50708         * lib/unictype/sy_c_ident.h: Likewise.
50709         * lib/unictype/sy_c_whitespace.h: Likewise.
50710         * lib/unictype/sy_java_ident.h: Likewise.
50711         * lib/unictype/sy_java_whitespace.h: Likewise.
50712
50713         * lib/unictype/Makefile: New file.
50714         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50715         glibc.
50716         * lib/unictype/3level.h: New file, copied from glibc.
50717         * lib/unictype/3levelbit.h: New file.
50718
50719 2007-11-11  Bruno Haible  <bruno@clisp.org>
50720
50721         * modules/gperf: New file.
50722         * modules/iconv_open (Depends-on): Add it.
50723         (Makefile.am): Remove the GPERF definition.
50724
50725 2007-11-11  Bruno Haible  <bruno@clisp.org>
50726
50727         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50728         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50729
50730 2007-11-11  Bruno Haible  <bruno@clisp.org>
50731
50732         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50733         (usage): Remove function.
50734
50735 2007-11-11  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50738         gl_FUNC_CEILF_LIBS.
50739         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50740         gl_FUNC_CEIL_LIBS.
50741         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50742         gl_FUNC_CEILL_LIBS.
50743         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50744         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50745         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50746
50747 2007-11-11  Bruno Haible  <bruno@clisp.org>
50748
50749         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50750         roundf were declared but do not exist on functions.
50751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50752         roundl were declared but do not exist on functions.
50753         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50754         HAVE_FLOORL_AND_CEILL, respectively.
50755         Needed for Sun C on Solaris 10.
50756
50757 2007-11-11  Bruno Haible  <bruno@clisp.org>
50758
50759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50760         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50761         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50762         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50763         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50764         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50765         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50766         HAVE_DECL_ROUNDF.
50767         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50768         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50770         of HAVE_DECL_ROUND*.
50771         * modules/math (Makefile.am): Update.
50772
50773 2007-11-10  Bruno Haible  <bruno@clisp.org>
50774
50775         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50776         ptrdiff_t as m4/intl.m4.
50777
50778 2007-11-10  Jim Meyering  <meyering@redhat.com>
50779
50780         Avoid link failure for the argmatch test.
50781         * tests/test-argmatch.c (usage): Define function to avoid a link
50782         failure: argmatch_die requires a usage function.
50783
50784 2007-11-09  Bruno Haible  <bruno@clisp.org>
50785
50786         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50787         * doc/functions/vsnprintf.texi: Likewise.
50788         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50789         with a size argument < 2.
50790
50791 2007-11-09  Bruno Haible  <bruno@clisp.org>
50792
50793         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50794         buffer. Fixes an inefficiency introduced on 2007-11-03.
50795
50796 2007-11-09  Bruno Haible  <bruno@clisp.org>
50797
50798         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50799         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50800
50801 2007-11-08  Jim Meyering  <meyering@redhat.com>
50802
50803         Change cache variable name prefix "jm_" to "gl_" everywhere.
50804         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50805         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50806         * m4/uptime.m4: s/gl_/jm_/
50807
50808 2007-11-07  Bruno Haible  <bruno@clisp.org>
50809
50810         Update to GNU gettext 0.17.
50811         * m4/intl.m4: Update to GNU gettext 0.17.
50812         * m4/po.m4: Likewise.
50813         * modules/gettext (Files): Remove m4/ulonglong.m4.
50814         (configure.ac): Require gettext infrastructure from version 0.17.
50815
50816 2007-11-06  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50819         symbolic values are not defined in a public header.
50820         * lib/freadable.c (freadable) [QNX]: Likewise.
50821         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50822         * lib/freading.c (freading) [QNX]: Likewise.
50823         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50824         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50825         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50826         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50827         Reported by Alain Magloire.
50828
50829         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50830
50831 2007-11-05  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50834         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50835         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50836         Reported by Eric Blake.
50837
50838 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50839             Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50842         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50843         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50844         (malloc): Undefine also before including <stdlib.h>.
50845         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50846         Needed on OSF/1 4.0.
50847
50848 2007-11-05  Jim Meyering  <meyering@redhat.com>
50849
50850         git-version-gen: sync from coreutils.
50851         * build-aux/git-version-gen: Add comments.
50852         Change the first '-' to '.' in the snapshot version string,
50853         e.g., 6.9-377-08144 -> 6.9.377-08144
50854         Remove first parameter.
50855         Don't declare a version "-dirty" merely because a time
50856         stamp has changed.
50857
50858 2007-11-04  Bruno Haible  <bruno@clisp.org>
50859
50860         * lib/lock.h: Protect all macro definitions containing an 'if'
50861         statement through a "do { ... } while (0)".
50862         * lib/tls.h: Likewise.
50863
50864 2007-11-04  Bruno Haible  <bruno@clisp.org>
50865
50866         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50867
50868 2007-11-04  Bruno Haible  <bruno@clisp.org>
50869
50870         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50871         * modules/fprintf-posix (Depends-on): Add nocrash.
50872         * modules/snprintf-posix (Depends-on): Likewise.
50873         * modules/sprintf-posix (Depends-on): Likewise.
50874         * modules/vasnprintf-posix (Depends-on): Likewise.
50875         * modules/vasprintf-posix (Depends-on): Likewise.
50876         * modules/vfprintf-posix (Depends-on): Likewise.
50877         * modules/vsnprintf-posix (Depends-on): Likewise.
50878         * modules/vsprintf-posix (Depends-on): Likewise.
50879         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50880         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50881         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50882         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50883         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50884         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50885         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50886
50887 2007-11-04  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/nocrash: New file.
50890         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50891         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50892
50893 2007-11-04  Bruno Haible  <bruno@clisp.org>
50894
50895         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50896         precision handling.
50897         * tests/test-vasprintf-posix.c (test_function): Likewise.
50898         * tests/test-snprintf-posix.h (test_function): Likewise.
50899         * tests/test-sprintf-posix.h (test_function): Likewise.
50900
50901         Fix *printf behaviour for large precisions on mingw and BeOS.
50902         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50903         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50905         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50907         gl_PRINTF_PRECISION and test its result. Invoke
50908         gl_PREREQ_VASNPRINTF_PRECISION.
50909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50910         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50916         * doc/functions/fprintf.texi: Update.
50917         * doc/functions/printf.texi: Update.
50918         * doc/functions/snprintf.texi: Update.
50919         * doc/functions/sprintf.texi: Update.
50920         * doc/functions/vfprintf.texi: Update.
50921         * doc/functions/vprintf.texi: Update.
50922         * doc/functions/vsnprintf.texi: Update.
50923         * doc/functions/vsprintf.texi: Update.
50924
50925 2007-11-04  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50928
50929 2007-11-04  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50932         Reported by Sylvain Beucler <beuc@gnu.org>.
50933
50934 2007-11-03  Bruno Haible  <bruno@clisp.org>
50935
50936         * tests/test-fprintf-posix2.sh: New file.
50937         * tests/test-fprintf-posix2.c: New file.
50938         * modules/fprintf-posix-tests (Files): Add them.
50939         (TESTS): Add test-fprintf-posix2.sh.
50940         (configure.ac): Check for getrlimit and setrlimit.
50941         (check_PROGRAMS): Add test-fprintf-posix2.
50942
50943         * tests/test-printf-posix2.sh: New file.
50944         * tests/test-printf-posix2.c: New file.
50945         * modules/printf-posix-tests (Files): Add them.
50946         (TESTS): Add test-printf-posix2.sh.
50947         (configure.ac): Check for getrlimit and setrlimit.
50948         (check_PROGRAMS): Add test-printf-posix2.
50949
50950         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50951         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50952         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50953         (decode_double): New function, copied from decode_long_double.
50954         (scale10_round_decimal_decoded): New function, extracted from
50955         scale10_round_decimal_long_double.
50956         (scale10_round_decimal_long_double): Use it.
50957         (scale10_round_decimal_double): New function.
50958         (floorlog10): New function.
50959         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50961         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50962         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50963         gl_PRINTF_ENOMEM and test its result. Invoke
50964         gl_PREREQ_VASNPRINTF_ENOMEM.
50965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50972         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50973         * modules/snprintf-posix (Depends-on): Likewise.
50974         * modules/sprintf-posix (Depends-on): Likewise.
50975         * modules/vasnprintf-posix (Depends-on): Likewise.
50976         * modules/vasprintf-posix (Depends-on): Likewise.
50977         * modules/vfprintf-posix (Depends-on): Likewise.
50978         * modules/vsnprintf-posix (Depends-on): Likewise.
50979         * modules/vsprintf-posix (Depends-on): Likewise.
50980         * doc/functions/fprintf.texi: Update.
50981         * doc/functions/printf.texi: Update.
50982         * doc/functions/snprintf.texi: Update.
50983         * doc/functions/sprintf.texi: Update.
50984         * doc/functions/vfprintf.texi: Update.
50985         * doc/functions/vprintf.texi: Update.
50986         * doc/functions/vsnprintf.texi: Update.
50987         * doc/functions/vsprintf.texi: Update.
50988
50989 2007-11-03  Bruno Haible  <bruno@clisp.org>
50990
50991         * modules/frexp-nolibm-tests: New file.
50992
50993         * modules/frexp-nolibm: New file.
50994         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50995
50996 2007-11-03  Bruno Haible  <bruno@clisp.org>
50997
50998         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50999         value is C99 compliant.
51000         Needed for OSF/1 5.1.
51001
51002 2007-11-03  Bruno Haible  <bruno@clisp.org>
51003
51004         Fix out-of-memory handling of vasnprintf.
51005         * lib/printf-parse.c: Include <errno.h>.
51006         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51007         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51008         is already set.
51009
51010 2007-11-02  Eric Blake  <ebb9@byu.net>
51011
51012         Fix tests on cygwin.
51013         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51014
51015 2007-11-01  Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51018         warning.
51019         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51020         needed for POSIX compatibility.
51021
51022 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51023
51024         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51025         for compatibility with GNU.
51026
51027 2007-11-01  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51030         (putenv): Renamed from rpl_putenv. Change argument type from
51031         'const char *' to 'char *'.
51032         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51033         of defining putenv in config.h, just set REPLACE_PUTENV.
51034         * modules/putenv (Depends-on): Add stdlib.
51035         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51036         (Include): Use <stdlib.h>.
51037         * lib/stdlib.in.h (putenv): New declaration.
51038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51039         REPLACE_PUTENV.
51040         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51041         REPLACE_PUTENV.
51042         Needed for MacOS X 10.5.0.
51043         Reported by Peter O'Gorman <peter@pogma.com>.
51044
51045 2007-11-01  Jim Meyering  <meyering@redhat.com>
51046
51047         Treat an empty date string exactly like "0".
51048         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51049         if the remaining date string (to be parsed) is empty, use "0".
51050         Reported by Mischa Molhoek and discussed in this thread:
51051         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51052
51053 2007-10-31  Bruno Haible  <bruno@clisp.org>
51054
51055         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51056         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51057         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51058         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51059         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51060         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51061
51062 2007-10-31  Bruno Haible  <bruno@clisp.org>
51063
51064         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51065         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51066         (AC_TYPE_LONG_LONG_INT): Use it.
51067         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51068         it as well.
51069         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51070         to m4/longlong.m4.
51071         * modules/stdint (Files): Remove m4/ulonglong.m4.
51072         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51073         m4/ulonglong.m4.
51074         * modules/strtoumax (Files): Likewise.
51075
51076 2007-10-30  Bruno Haible  <bruno@clisp.org>
51077
51078         * modules/xvasprintf-posix: New file.
51079         Suggested by Eric Blake.
51080
51081 2007-10-30  Bruno Haible  <bruno@clisp.org>
51082
51083         * modules/xprintf-posix-tests: New file.
51084         * tests/test-xprintf-posix.sh: New file.
51085         * tests/test-xprintf-posix.c: New file.
51086         * tests/test-xfprintf-posix.c: New file.
51087
51088         * modules/xprintf-posix: New file.
51089
51090 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51091
51092         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51093         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51094         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51095
51096 2007-10-29  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51099         contain the special marker '_cv_'.
51100         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51101         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51102         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51103         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51104         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51105         Reported by Ralf Wildenhues.
51106
51107 2007-10-29  Bruno Haible  <bruno@clisp.org>
51108
51109         * gnulib-tool (func_import): When --lgpl is not specified, set
51110         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51111         GPLv3.
51112         Reported by Simon Josefsson.
51113
51114 2007-10-28  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51117         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51118         HAVE_DECL_ISFINITE.
51119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51120         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51121         HAVE_DECL_ISFINITE.
51122
51123 2007-10-28  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51126         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51127
51128 2007-10-28  Bruno Haible  <bruno@clisp.org>
51129
51130         Fix link errors with Sun C 5.0 on Solaris 10.
51131         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51132         function is declared but not present in the compiler's libm.
51133         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51134         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51135         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51136         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51137         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51138         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51139         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51141         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51142         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51143         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51144         HAVE_DECL_FLOORL.
51145
51146 2007-10-28  Bruno Haible  <bruno@clisp.org>
51147
51148         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51149         gl_FUNC_FLOORL. Cache the result.
51150         (gl_FUNC_FLOORL): Use it.
51151         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51152         gl_FUNC_CEILL. Cache the result.
51153         (gl_FUNC_CEILL): Use it.
51154
51155         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51156         gl_FUNC_FLOOR. Cache the result.
51157         (gl_FUNC_FLOOR): Use it.
51158         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51159         gl_FUNC_CEIL. Cache the result.
51160         (gl_FUNC_CEIL): Use it.
51161
51162         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51163         gl_FUNC_FLOORF. Cache the result.
51164         (gl_FUNC_FLOORF): Use it.
51165         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51166         gl_FUNC_CEILF. Cache the result.
51167         (gl_FUNC_CEILF): Use it.
51168
51169 2007-10-28  Bruno Haible  <bruno@clisp.org>
51170
51171         * gnulib-tool: Allow specifying the LGPL version number through
51172         --lgpl=2 or --lgpl=3.
51173         (func_usage): Document --lgpl with argument.
51174         Handle --lgpl=... arguments.
51175         (func_import): Recognize also gl_LGPL calls with an argument. When
51176         --lgpl=2 is used and the module's license is just LGPL, report an
51177         error. Set sed_transform_lib_file according to the lgpl variable. In
51178         the generated files, use --lgpl or gl_LGPL invocations with argument,
51179         if necessary.
51180         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51181         an LGPv2+ license.
51182         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51183         gl_LGPL macro.
51184
51185 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51186             Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51189         (u16_uctomb_aux): Likewise.
51190         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51191         !HAVE_INLINE.
51192         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51193
51194 2007-10-28  Bruno Haible  <bruno@clisp.org>
51195
51196         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51197         Invoke AM_GETTEXT_OPTION if it exists.
51198         * modules/vasprintf: Likewise.
51199         * modules/verror: Likewise.
51200         * modules/xprintf: Likewise.
51201         * modules/xvasprintf: Likewise.
51202
51203 2007-10-27  Ben Pfaff  <blp@gnu.org>
51204
51205         * lib/math.in.h: Define isfinite macro and prototypes for
51206         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51207         implementations.
51208         * m4/math_h.m4: New substitutions for isfinite module.
51209         * lib/isfinite.c: New file.
51210         * m4/isfinite.m4: New file.
51211         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51212         * modules/isfinite: New file.
51213         * modules/isfinite-tests: New file.
51214         * tests/tests-isfinite.c: New file.
51215         * doc/functions/isfinite.texi: Mention isfinite module.
51216         * MODULES.html.sh: Mention new module.
51217
51218 2007-10-27  Ben Pfaff  <blp@gnu.org>
51219
51220         Ralf Wildenhues reported that Tru64 4.0D declares the round
51221         functions but does not have definitions.
51222         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51223         cannot be found in any library, set the output variable to
51224         "missing" instead of "".
51225         * m4/round.m4: Also use our substitute if we cannot find round in
51226         any library, even if it is declared.
51227         * m4/roundf.m4: Likewise for roundf.
51228         * m4/roundl.m4: Likewise for roundl.
51229         * lib/math.in.h: Undefine roundf, round, roundl before defining
51230         their replacements, to allow for hypothetical systems where these
51231         may be defined as macros but not available in libraries.
51232
51233 2007-10-27  Bruno Haible  <bruno@clisp.org>
51234
51235         * doc/gnulib.texi: Invoke @firstparagraphindent.
51236         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51237         changes in gnulib.
51238         (Source changes): New section.
51239
51240 2007-10-26  Bruno Haible  <bruno@clisp.org>
51241
51242         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51243         borrowed from autoconf.
51244
51245 2007-10-26  Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51248         strerror returned the empty string. Needed on HP-UX 11.00.
51249
51250 2007-10-24  Micah Cowan  <micah@cowan.name>
51251
51252         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51253         * build-aux/bootstrap: Remove support for now-unnecessary option,
51254         --cvs-user, and envvars CVS_USER, CVS_RSH.
51255
51256 2007-10-24  Jim Meyering  <meyering@redhat.com>
51257
51258         Avoid diagnostics from sha1sum when there is no cached checksum.
51259         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51260         if the po.s1 file hasn't been created yet.
51261
51262         * build-aux/bootstrap: Sync from coreutils:
51263         2007-10-24  Jim Meyering  <meyering@redhat.com>
51264         Get gnulib from the git repository, not from an obsolete cvs one.
51265         * build-aux/bootstrap: Suggestion from Micah Cowan.
51266         2007-10-04  Jim Meyering  <jim@meyering.net>
51267         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51268         (update_po_files): Work also when there are no .po files in po/.
51269
51270 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         * README: Append ".git" to git and cg examples.
51273         Problem reported by Benoit Sigoure.
51274
51275 2007-10-23  Micah Cowan  <micah@cowan.name>
51276
51277         * users.txt: Add wget.
51278
51279 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51280
51281         Fix linking of some unistdio tests on FreeBSD.
51282         * modules/unistdio/u16-vsnprintf-tests
51283         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51284         * modules/unistdio/u16-vsprintf-tests
51285         (test_u16_vsnprintf1_LDADD): Likewise.
51286         * modules/unistdio/u32-vsnprintf-tests
51287         (test_u32_vsnprintf1_LDADD): Likewise.
51288         * modules/unistdio/u32-vsprintf-tests
51289         (test_u32_vsprintf1_LDADD): Likewise.
51290         * modules/unistdio/u8-vsnprintf-tests
51291         (test_u8_vsnprintf1_LDADD): Likewise.
51292         * modules/unistdio/u8-vsprintf-tests
51293         (test_u8_vsprintf1_LDADD): Likewise.
51294         * modules/unistdio/ulc-vsnprintf-tests
51295         (test_ulc_vsnprintf1_LDADD): Likewise.
51296         * modules/unistdio/ulc-vsprintf-tests
51297         (test_ulc_vsprintf1_LDADD): Likewise.
51298
51299         Fix linking of some uniconv tests on FreeBSD.
51300         * modules/uniconv/u16-conv-from-enc-tests
51301         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51302         * modules/uniconv/u16-conv-to-enc-tests
51303         (test_u16_conv_to_enc_LDADD): Likewise.
51304         * modules/uniconv/u16-strconv-from-enc-tests
51305         (test_u16_strconv_from_enc_LDADD): Likewise.
51306         * modules/uniconv/u16-strconv-to-enc-tests
51307         (test_u16_strconv_to_enc_LDADD): Likewise.
51308         * modules/uniconv/u32-conv-from-enc-tests
51309         (test_u32_conv_from_enc_LDADD): Likewise.
51310         * modules/uniconv/u32-conv-to-enc-tests
51311         (test_u32_conv_to_enc_LDADD): Likewise.
51312         * modules/uniconv/u32-strconv-from-enc-tests
51313         (test_u32_strconv_from_enc_LDADD): Likewise.
51314         * modules/uniconv/u32-strconv-to-enc-tests
51315         (test_u32_strconv_to_enc_LDADD): Likewise.
51316         * modules/uniconv/u8-conv-from-enc-tests
51317         (test_u8_conv_from_enc_LDADD): Likewise.
51318         * modules/uniconv/u8-conv-to-enc-tests
51319         (test_u8_conv_to_enc_LDADD): Likewise.
51320         * modules/uniconv/u8-strconv-from-enc-tests
51321         (test_u8_strconv_from_enc_LDADD): Likewise.
51322         * modules/uniconv/u8-strconv-to-enc-tests
51323         (test_u8_strconv_to_enc_LDADD): Likewise.
51324
51325 2007-10-22  Bruno Haible  <bruno@clisp.org>
51326
51327         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51328         size.
51329
51330 2007-10-22  Eric Blake  <ebb9@byu.net>
51331
51332         Tweak x*printf documentation.
51333         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51334         variable name and comments.
51335         Suggested by Bruno Haible.
51336
51337 2007-10-22  Bruno Haible  <bruno@clisp.org>
51338
51339         * lib/acl.c (copy_acl): Fix file name in comment.
51340
51341 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51342
51343         Fix Tru64 problem with stdbool.h.
51344         * lib/stdbool.in.h (false, true):
51345         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51346         Don't declare as an enum in this situation; it runs afoul of Tru64.
51347         Problem reported by Steven M. Schweda in
51348         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51349
51350 2007-10-22  Eric Blake  <ebb9@byu.net>
51351
51352         Also wrap vf?printf.
51353         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51354         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51355         (xvprintf, xvfprintf): New functions.
51356
51357 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51358
51359         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51360         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51361
51362         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51363         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51364
51365 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51366
51367         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51368         by Bruno Haible.
51369
51370 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51371
51372         * lib/getloadavg.c
51373         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51374         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51375
51376         * tests/test-i-ring.c: Work for C89.
51377
51378 2007-10-22  Bruno Haible  <bruno@clisp.org>
51379
51380         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51381         -1u, in preprocessor expression, so that we don't test for the bug
51382         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51384
51385 2007-10-22  Eric Blake  <ebb9@byu.net>
51386
51387         * tests/test-yesno.sh: Silence stderr during test.
51388
51389 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51390
51391         * modules/crypto/gc-camellia: New file.
51392
51393         * m4/gc-camellia.m4: New file.
51394
51395         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51396
51397         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51398
51399 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51400
51401         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51402         --help to stdout.  Reported by sms@antinode.org (Steven
51403         M. Schweda).
51404
51405 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51406
51407         * users.txt: Fix link to libksba.
51408
51409 2007-10-21  Ben Pfaff  <blp@gnu.org>
51410
51411         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51412         round.c roundf implementation that depends on floorf and ceilf to
51413         be tested unconditionally.
51414
51415 2007-10-21  Ben Pfaff  <blp@gnu.org>
51416
51417         * m4/check-libm-func.m4: Removed.
51418         * m4/check-math-lib.m4: New file.
51419         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51420         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51421         definition and lack of AC_LIBOBJ([roundf]).
51422         * m4/roundl.m4: Ditto, and similarly for roundl.
51423         * modules/round: Reference new m4 file.
51424         * modules/roundf: Ditto.
51425         * modules/roundl: Ditto.
51426         * tests/test-round2.c (main): Use ROUND instead of round.
51427         Bug report from Bruno Haible.
51428
51429 2007-10-21  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51432         context.
51433
51434 2007-10-21  Bruno Haible  <bruno@clisp.org>
51435
51436         * tests/test-wcwidth.c (main): Allow negative result for some control
51437         characters.
51438
51439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51440         Needed on OSF/1 5.1.
51441
51442 2007-10-21  Bruno Haible  <bruno@clisp.org>
51443
51444         * tests/test-floorf1.c: Include isnanf.h.
51445         (main): Use isnanf() instead of isnan().
51446         * tests/test-ceilf1.c: Include isnanf.h.
51447         (main): Use isnanf() instead of isnan().
51448         * tests/test-truncf1.c: Include isnanf.h.
51449         (main): Use isnanf() instead of isnan().
51450         * tests/test-roundf1.c: Include isnanf.h.
51451         (main): Use isnanf() instead of isnan().
51452
51453 2007-10-21  Eric Blake  <ebb9@byu.net>
51454
51455         * users.txt: Update URL for m4.
51456
51457 2007-10-21  Bruno Haible  <bruno@clisp.org>
51458
51459         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51460
51461 2007-10-21  Bruno Haible  <bruno@clisp.org>
51462
51463         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51464         Git's management files if the CVS files are not present.
51465
51466 2007-10-20  Bruno Haible  <bruno@clisp.org>
51467
51468         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51469         gcc-3.4.x.
51470
51471 2007-10-20  Ben Pfaff  <blp@gnu.org>
51472
51473         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51474         implementations.
51475         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51476         * lib/round.c: New file.
51477         * lib/roundf.c: New file.
51478         * lib/roundl.c: New file.
51479         * m4/round.m4: New file.
51480         * m4/roundf.m4: New file.
51481         * m4/roundl.m4: New file.
51482         * m4/check-libm-func-m4: New file.
51483         * modules/math: Replace round, roundf, roundl related @VARS@ in
51484         math.in.h.
51485         * modules/round: New file.
51486         * modules/round-tests: New file.
51487         * modules/roundf: New file.
51488         * modules/roundf-tests: New file.
51489         * modules/roundl: New file.
51490         * modules/roundl-tests: New file.
51491         * tests/test-round1.c: New file.
51492         * tests/test-round2.c: New file.
51493         * tests/test-roundf1.c: New file.
51494         * tests/test-roundf2.c: New file.
51495         * tests/test-roundl.c: New file.
51496         * doc/functions/round.texi: Mention round module.
51497         * doc/functions/roundf.texi: Mention roundf module.
51498         * doc/functions/roundl.texi: Mention roundl module.
51499         * MODULES.html.sh: Mention new modules.
51500         Thanks to Bruno Haible for suggestions.
51501
51502 2007-10-20  Jim Meyering  <meyering@redhat.com>
51503
51504         * lib/xprintf.c: Include <config.h> unconditionally.
51505
51506         Change xprintf's license to GPL.
51507         * modules/xprintf (License): s/LGPL/GPL/, since this module
51508         depends on modules (exit and exitfail) which are GPL.
51509         Suggestion from Bruno Haible.
51510
51511         xprintf fixes.
51512         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51513         Use a clearer diagnostic.
51514         Patch from Bruno Haible.
51515
51516 2007-10-20  Bruno Haible  <bruno@clisp.org>
51517
51518         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51519         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51521
51522 2007-10-20  Bruno Haible  <bruno@clisp.org>
51523
51524         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51525         precision in the comparison result > x - 1 or similar.
51526         * tests/test-ceilf2.c (correct_result_p): Likewise.
51527         * tests/test-truncf2.c (correct_result_p): Likewise.
51528         * tests/test-trunc2.c (correct_result_p): Likewise.
51529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51530
51531 2007-10-20  Bruno Haible  <bruno@clisp.org>
51532
51533         * modules/ceil: New file.
51534         * m4/ceil.m4: New file.
51535         * doc/functions/ceil.texi: Mention the 'ceil' module.
51536
51537 2007-10-20  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/floor: New file.
51540         * m4/floor.m4: New file.
51541         * doc/functions/floor.texi: Mention the 'floor' module.
51542
51543 2007-10-20  Bruno Haible  <bruno@clisp.org>
51544
51545         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51546         of %a.
51547         * modules/floorf-tests (Depends-on): Likewise.
51548         * modules/truncf-tests (Depends-on): Likewise.
51549         * modules/trunc-tests (Depends-on): Likewise.
51550         Reported by Ben Pfaff.
51551
51552 2007-10-19  Jim Meyering  <meyering@redhat.com>
51553
51554         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51555         Don't bother testing specific errno values.  Just test ferror.
51556
51557         New module: xprintf
51558         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51559
51560 2007-10-19  Bruno Haible  <bruno@clisp.org>
51561
51562         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51563         syntax.
51564         * modules/javaexec (Makefile.am): Likewise.
51565         * modules/relocatable-prog (Makefile.am): Likewise.
51566         Suggested by Jim Meyering.
51567
51568 2007-10-18  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51571         Reported by Jim Meyering.
51572
51573 2007-10-18  Eric Blake  <ebb9@byu.net>
51574
51575         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51576
51577 2007-10-18  Bruno Haible  <bruno@clisp.org>
51578
51579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51580         the format string into writable memory. Needed in Fortify conditions.
51581
51582 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51583             Bruno Haible  <bruno@clisp.org>
51584
51585         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51586         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51587         * modules/trim (Depends-on): Add mbchar.
51588         (configure.ac): Add gl_FUNC_MBRTOWC.
51589         (Makefile.am): Augment lib_SOURCES.
51590
51591 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         Modify glob.c to use fstatat and dirfd, to simplify it.
51594         Suggested by Eric Blake.
51595         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51596         Don't include <stdbool.h>; not used.
51597         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51598         (link_exists_p): Simplify implementation, since we can now assume
51599         dirfd and fstatat.
51600         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51601
51602 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51603
51604         * gnulib-tool (func_get_dependencies): Fix sed script to
51605         match only tests.
51606
51607 2007-10-17  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51610         allow locale names without encoding suffix.
51611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51612         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51613
51614 2007-10-16  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51617         * lib/getgroups.c (getgroups): Likewise.
51618         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51619
51620 2007-10-16  Bruno Haible  <bruno@clisp.org>
51621
51622         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51623         * modules/malloc-posix (License): Likewise.
51624         * modules/realloc-posix (License): Likewise.
51625         * modules/calloc-posix (License): Likewise.
51626         * modules/intprops (License): Change from GPL to LGPL, with
51627         Paul Eggert's approval.
51628
51629 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51630
51631         Merge glibc changes into lib/glob.c.
51632
51633         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51634         2007-10-15 04:59:03 UTC.  Here are the changes:
51635
51636         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51637
51638         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51639
51640         * lib/glob.c: Add some branch prediction throughout.
51641
51642         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51643
51644         [BZ #5103]
51645         * lib/glob.c (glob): Recognize patterns starting \/.
51646
51647         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51648
51649         [BZ #3996]
51650         * lib/glob.c (attribute_hidden): Define if not defined.
51651         (glob): Unescape dirname, filename or username when needed and not
51652         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51653         is NULL.  Handle unescaped [ in pattern without closing ].
51654         Don't pass GLOB_CHECK down to recursive glob for directories.
51655         (__glob_pattern_type): New function.
51656         (__glob_pattern_p): Implement using __glob_pattern_type.
51657         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51658         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51659         Remove unreachable code.
51660
51661         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51662
51663         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51664         explain why there are no leaks.
51665
51666         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51667
51668         [BZ #3253]
51669         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51670         time, rather allocate increasingly bigger arrays of pointers, if
51671         possible with alloca, if too large with malloc.
51672
51673 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51674
51675         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51676         Problem reported by H.Merijn Brand in
51677         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51678         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51679         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51680
51681 2007-10-15  Bruno Haible  <bruno@clisp.org>
51682
51683         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51684         with explicit rpl_ prefix.
51685         * lib/fopen.c (fopen): Likewise.
51686         * lib/freopen.c (freopen): Likewise.
51687         * lib/iconv.c (iconv): Likewise.
51688         * lib/iconv_close.c (iconv_close): Likewise.
51689
51690 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51691
51692         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51693
51694 2007-10-15  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51697         <stddef.h> instead of <stdlib.h> since we only need NULL.
51698         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51699
51700 2007-10-15  Bruno Haible  <bruno@clisp.org>
51701
51702         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51703         Replace paragraph talking about LIBOBJS.
51704         Reported by Colin Watson <cjwatson@debian.org>.
51705
51706 2007-10-15  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51709         <stdlib.h> before using NULL.
51710
51711 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51712
51713         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51714         Reported by Albert Chin <china@thewrittenword.com>.
51715
51716 2007-10-14  Bruno Haible  <bruno@clisp.org>
51717
51718         * modules/iconv_open-utf-tests: New file.
51719         * tests/test-iconv-utf.c: New file.
51720
51721         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51722         * modules/iconv_open-utf: New file.
51723         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51724         (iconv, iconv_close): New declarations.
51725         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51726         be defined.
51727         (iconv_open): Add special handling of conversion between UTF-8 and
51728         UTF-{16,32}{BE,LE}.
51729         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51730         * lib/iconv_close.c: New file.
51731         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51732         gl_FUNC_ICONV_OPEN.
51733         (gl_FUNC_ICONV_OPEN): Use it.
51734         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51735         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51736         and REPLACE_ICONV_UTF.
51737         * modules/iconv_open (Depends-on): Add c-strcase.
51738         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51739         ICONV_CONST.
51740         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51741
51742 2007-10-13  Albert Chin  <china@thewrittenword.com>
51743             Bruno Haible  <bruno@clisp.org>
51744
51745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51746         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51747
51748 2007-10-13  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51751         defined, use the ISO C99 inline semantics.
51752         * lib/argp.h (ARGP_EI): Likewise.
51753
51754 2007-10-13  Bruno Haible  <bruno@clisp.org>
51755
51756         Handle 'inline' change in gcc 4.3.0.
51757         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51758         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51759         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51760         argp_fmtstream_point): Disable 'extern' declaration if the function
51761         definition is going to be provided inline.
51762         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51763         semantics, not the ISO C99 inline semantics.
51764         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51765         'extern' declaration if the function definition is going to be provided
51766         inline.
51767         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51768         the GNU C inline semantics, not the ISO C99 inline semantics. With
51769         GCC 4.2, avoid a warning.
51770
51771 2007-10-13  Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/freading.h (freading): Enable the use of __freading for
51774         glibc >= 2.7.
51775         * lib/freading.c (freading): Likewise.
51776
51777 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51780         "warning: C99 inline functions are not supported; using GNU89".
51781
51782 2007-10-12  Bruno Haible  <bruno@clisp.org>
51783
51784         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51785         of 2.
51786         * tests/test-ceilf2.c: New file.
51787         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51788
51789         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51790         * modules/ceilf-tests: Update.
51791
51792 2007-10-12  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51795         of 2.
51796         * tests/test-floorf2.c: New file.
51797         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51798
51799         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51800         * modules/floorf-tests: Update.
51801
51802 2007-10-12  Bruno Haible  <bruno@clisp.org>
51803
51804         * tests/test-trunc2.c: New file.
51805         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51806
51807         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51808         * modules/trunc-tests: Update.
51809
51810 2007-10-12  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51813         of 2.
51814         * tests/test-truncf2.c: New file.
51815         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51816
51817         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51818         * modules/truncf-tests: Update.
51819
51820 2007-10-11  Eric Blake  <ebb9@byu.net>
51821
51822         Don't claim strerror is broken on Interix.
51823         * doc/functions/strerror.texi (strerror): Known broken systems are
51824         now Solaris 8, and not Interix.
51825         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51826         Interix on cross-compile.
51827         Reported by Martin Koeppe in
51828         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51829
51830 2007-10-11  Bruno Haible  <bruno@clisp.org>
51831
51832         * modules/i-ring-tests: New file.
51833         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51834         instead of assert.
51835
51836 2007-10-11  Bruno Haible  <bruno@clisp.org>
51837
51838         * modules/filenamecat-tests: New file.
51839         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51840         * lib/filenamecat.c: Remove test code.
51841
51842 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51843
51844         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51845
51846         * lib/strerror.c: Include <string.h> always, to test interface,
51847         and to remove the need for the dummy.
51848         Include intprops.h to compute width instead of doing it ourselves
51849         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51850         (strerror): Define it to return NULL if there's no system strerror.
51851         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51852         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51853         ancient pre-strerror Unix systems well any more.  Saying "unknown
51854         system error" is enough.
51855         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51856         simpler strerror.c implementation.
51857         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51858         Simplify the tests to reflect the simpler strerror implementation.
51859         * modules/strerror (Depends-on): Add intprops.
51860
51861 2007-10-09  Eric Blake  <ebb9@byu.net>
51862
51863         Silence test-fpending.
51864         * modules/fpending-tests (Files): Add wrapper script.
51865         * tests/test-fpending.sh: New file.
51866
51867 2007-10-09  Bruno Haible  <bruno@clisp.org>
51868
51869         * MODULES.html.sh (func_module): Don't create a hyperlink for
51870         function names like 'printf_frexp'.
51871         (Misc): Add crc, memxor.
51872         (Characteristics of floating types): New section.
51873         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51874         isnanf-nolibm, signbit, trunc, truncf, truncl.
51875         (Enhancements for ISO C 99 functions): New subsection Input/output.
51876         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51877         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51878         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51879         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51880         (Enhancements for POSIX:2001 functions): Add chdir-long.
51881         (File system functions): Add areadlink, chdir-safer, read-file.
51882         Remove cycle-check.
51883         (File system as inode set): New section.
51884         (Date and time): Add gethrxtime.
51885         (Multithreading): Add openmp.
51886         (Internationalization functions): Add localename.
51887         (Unicode string functions): Add unistr/u*-mbsnlen.
51888         (Support for maintaining and releasing projects): Add git-version-gen.
51889         (Lone files): Remove directories.
51890
51891 2007-10-08  Ben Pfaff  <blp@gnu.org>
51892
51893         * lib/xmalloca.h: Fix typo in comment.
51894
51895 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51898         when avoiding problems with integer overflow.  Use a portable test
51899         instead.
51900
51901 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51902
51903         * modules/dummy (License): Change to LGPLv2+.
51904         * modules/float (License): Likewise
51905         * modules/realloc (License): Likewise
51906         * modules/stdlib (License): Likewise
51907
51908 2007-10-07  Bruno Haible  <bruno@clisp.org>
51909
51910         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51911         * floor.c (TWO_MANT_DIG): Likewise.
51912         * ceil.c (TWO_MANT_DIG): Likewise.
51913         Reported by Ben Pfaff.
51914
51915 2007-10-07  Bruno Haible  <bruno@clisp.org>
51916
51917         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51918         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51919         * lib/frexp.c (FUNC): Likewise.
51920         * lib/printf-frexp.h (printf_frexp): Likewise.
51921         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51922         * lib/printf-frexp.c (FUNC): Likewise.
51923         Suggested by Jim Meyering.
51924
51925 2007-10-07  Jim Meyering  <meyering@redhat.com>
51926
51927         Make xnanosleep's integer overflow test more robust.
51928         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51929         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51930
51931 2007-10-07  Bruno Haible  <bruno@clisp.org>
51932
51933         * NEWS: Mention the license change.
51934
51935         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51936         abbreviations in the modules files.
51937
51938         Change copyright notice from GPLv2+ to GPLv3+.
51939         * README: Change copyright notice.
51940         * MODULES.html.sh: Likewise.
51941         * build-aux/bootstrap.conf: Likewise.
51942         * build-aux/config.libpath: Likewise.
51943         * build-aux/csharpcomp.sh.in: Likewise.
51944         * build-aux/csharpexec.sh.in: Likewise.
51945         * build-aux/install-reloc: Likewise.
51946         * build-aux/javacomp.sh.in: Likewise.
51947         * build-aux/javaexec.sh.in: Likewise.
51948         * build-aux/ldd.sh.in: Likewise.
51949         * build-aux/reloc-ldflags: Likewise.
51950         * build-aux/relocatable.sh.in: Likewise.
51951         * build-aux/x-to-1.in: Likewise.
51952         * check-module: Likewise.
51953         * config/srclistvars.sh: Likewise.
51954         * gnulib-tool: Likewise.
51955         * lib/acl-internal.h: Likewise.
51956         * lib/acl.c: Likewise.
51957         * lib/acl.h: Likewise.
51958         * lib/acl_entries.c: Likewise.
51959         * lib/areadlink-with-size.c: Likewise.
51960         * lib/areadlink.c: Likewise.
51961         * lib/areadlink.h: Likewise.
51962         * lib/argmatch.c: Likewise.
51963         * lib/argmatch.h: Likewise.
51964         * lib/argp-ba.c: Likewise.
51965         * lib/argp-eexst.c: Likewise.
51966         * lib/argp-fmtstream.c: Likewise.
51967         * lib/argp-fmtstream.h: Likewise.
51968         * lib/argp-fs-xinl.c: Likewise.
51969         * lib/argp-help.c: Likewise.
51970         * lib/argp-namefrob.h: Likewise.
51971         * lib/argp-parse.c: Likewise.
51972         * lib/argp-pin.c: Likewise.
51973         * lib/argp-pv.c: Likewise.
51974         * lib/argp-pvh.c: Likewise.
51975         * lib/argp-xinl.c: Likewise.
51976         * lib/argp.h: Likewise.
51977         * lib/at-func.c: Likewise.
51978         * lib/atanl.c: Likewise.
51979         * lib/backupfile.c: Likewise.
51980         * lib/backupfile.h: Likewise.
51981         * lib/basename.c: Likewise.
51982         * lib/binary-io.h: Likewise.
51983         * lib/byteswap.in.h: Likewise.
51984         * lib/c-stack.c: Likewise.
51985         * lib/c-stack.h: Likewise.
51986         * lib/c-strcasestr.c: Likewise.
51987         * lib/c-strcasestr.h: Likewise.
51988         * lib/c-strstr.c: Likewise.
51989         * lib/c-strstr.h: Likewise.
51990         * lib/c-strtod.c: Likewise.
51991         * lib/calloc.c: Likewise.
51992         * lib/canon-host.c: Likewise.
51993         * lib/canon-host.h: Likewise.
51994         * lib/canonicalize-lgpl.c: Likewise.
51995         * lib/canonicalize.c: Likewise.
51996         * lib/canonicalize.h: Likewise.
51997         * lib/ceil.c: Likewise.
51998         * lib/ceilf.c: Likewise.
51999         * lib/ceill.c: Likewise.
52000         * lib/chdir-long.c: Likewise.
52001         * lib/chdir-long.h: Likewise.
52002         * lib/chdir-safer.c: Likewise.
52003         * lib/chdir-safer.h: Likewise.
52004         * lib/chown.c: Likewise.
52005         * lib/classpath.c: Likewise.
52006         * lib/classpath.h: Likewise.
52007         * lib/clean-temp.c: Likewise.
52008         * lib/clean-temp.h: Likewise.
52009         * lib/cloexec.c: Likewise.
52010         * lib/close-stream.c: Likewise.
52011         * lib/closein.c: Likewise.
52012         * lib/closein.h: Likewise.
52013         * lib/closeout.c: Likewise.
52014         * lib/closeout.h: Likewise.
52015         * lib/concat-filename.c: Likewise.
52016         * lib/copy-file.c: Likewise.
52017         * lib/copy-file.h: Likewise.
52018         * lib/count-one-bits.h: Likewise.
52019         * lib/crc.c: Likewise.
52020         * lib/crc.h: Likewise.
52021         * lib/creat-safer.c: Likewise.
52022         * lib/csharpcomp.c: Likewise.
52023         * lib/csharpcomp.h: Likewise.
52024         * lib/csharpexec.c: Likewise.
52025         * lib/csharpexec.h: Likewise.
52026         * lib/cycle-check.c: Likewise.
52027         * lib/cycle-check.h: Likewise.
52028         * lib/diacrit.c: Likewise.
52029         * lib/diacrit.h: Likewise.
52030         * lib/diffseq.h: Likewise.
52031         * lib/dirchownmod.c: Likewise.
52032         * lib/dirent.in.h: Likewise.
52033         * lib/dirfd.c: Likewise.
52034         * lib/dirfd.h: Likewise.
52035         * lib/dirname.c: Likewise.
52036         * lib/dirname.h: Likewise.
52037         * lib/dummy.c: Likewise.
52038         * lib/dup-safer.c: Likewise.
52039         * lib/dup2.c: Likewise.
52040         * lib/eealloc.h: Likewise.
52041         * lib/error.c: Likewise.
52042         * lib/error.h: Likewise.
52043         * lib/euidaccess.c: Likewise.
52044         * lib/exclude.c: Likewise.
52045         * lib/exclude.h: Likewise.
52046         * lib/execute.c: Likewise.
52047         * lib/execute.h: Likewise.
52048         * lib/exitfail.c: Likewise.
52049         * lib/exitfail.h: Likewise.
52050         * lib/expl.c: Likewise.
52051         * lib/fatal-signal.c: Likewise.
52052         * lib/fatal-signal.h: Likewise.
52053         * lib/fbufmode.c: Likewise.
52054         * lib/fbufmode.h: Likewise.
52055         * lib/fchdir.c: Likewise.
52056         * lib/fchmodat.c: Likewise.
52057         * lib/fchownat.c: Likewise.
52058         * lib/fcntl--.h: Likewise.
52059         * lib/fcntl-safer.h: Likewise.
52060         * lib/fcntl.in.h: Likewise.
52061         * lib/fd-safer.c: Likewise.
52062         * lib/fflush.c: Likewise.
52063         * lib/file-has-acl.c: Likewise.
52064         * lib/file-set.c: Likewise.
52065         * lib/file-type.c: Likewise.
52066         * lib/file-type.h: Likewise.
52067         * lib/fileblocks.c: Likewise.
52068         * lib/filemode.c: Likewise.
52069         * lib/filemode.h: Likewise.
52070         * lib/filename.h: Likewise.
52071         * lib/filenamecat.c: Likewise.
52072         * lib/filenamecat.h: Likewise.
52073         * lib/findprog.c: Likewise.
52074         * lib/findprog.h: Likewise.
52075         * lib/float.in.h: Likewise.
52076         * lib/floor.c: Likewise.
52077         * lib/floorf.c: Likewise.
52078         * lib/floorl.c: Likewise.
52079         * lib/fopen-safer.c: Likewise.
52080         * lib/fopen.c: Likewise.
52081         * lib/fpending.c: Likewise.
52082         * lib/fpending.h: Likewise.
52083         * lib/fprintf.c: Likewise.
52084         * lib/fprintftime.h: Likewise.
52085         * lib/fpucw.h: Likewise.
52086         * lib/fpurge.c: Likewise.
52087         * lib/fpurge.h: Likewise.
52088         * lib/freadable.c: Likewise.
52089         * lib/freadable.h: Likewise.
52090         * lib/freadahead.c: Likewise.
52091         * lib/freadahead.h: Likewise.
52092         * lib/freading.c: Likewise.
52093         * lib/freading.h: Likewise.
52094         * lib/free.c: Likewise.
52095         * lib/freopen.c: Likewise.
52096         * lib/frexp.c: Likewise.
52097         * lib/frexpl.c: Likewise.
52098         * lib/fseek.c: Likewise.
52099         * lib/fseterr.c: Likewise.
52100         * lib/fseterr.h: Likewise.
52101         * lib/fstatat.c: Likewise.
52102         * lib/fstrcmp.c: Likewise.
52103         * lib/fstrcmp.h: Likewise.
52104         * lib/fsusage.c: Likewise.
52105         * lib/fsusage.h: Likewise.
52106         * lib/ftell.c: Likewise.
52107         * lib/ftello.c: Likewise.
52108         * lib/fts-cycle.c: Likewise.
52109         * lib/fts.c: Likewise.
52110         * lib/fts_.h: Likewise.
52111         * lib/full-read.c: Likewise.
52112         * lib/full-read.h: Likewise.
52113         * lib/full-write.c: Likewise.
52114         * lib/full-write.h: Likewise.
52115         * lib/fwritable.c: Likewise.
52116         * lib/fwritable.h: Likewise.
52117         * lib/fwriteerror.c: Likewise.
52118         * lib/fwriteerror.h: Likewise.
52119         * lib/fwriting.c: Likewise.
52120         * lib/fwriting.h: Likewise.
52121         * lib/gcd.c: Likewise.
52122         * lib/gcd.h: Likewise.
52123         * lib/getcwd.c: Likewise.
52124         * lib/getdate.h: Likewise.
52125         * lib/getdate.y: Likewise.
52126         * lib/getdomainname.c: Likewise.
52127         * lib/getdomainname.h: Likewise.
52128         * lib/getgroups.c: Likewise.
52129         * lib/gethostname.c: Likewise.
52130         * lib/gethrxtime.c: Likewise.
52131         * lib/gethrxtime.h: Likewise.
52132         * lib/getloadavg.c: Likewise.
52133         * lib/getndelim2.c: Likewise.
52134         * lib/getndelim2.h: Likewise.
52135         * lib/getnline.c: Likewise.
52136         * lib/getnline.h: Likewise.
52137         * lib/getopt.c: Likewise.
52138         * lib/getopt.in.h: Likewise.
52139         * lib/getopt1.c: Likewise.
52140         * lib/getopt_int.h: Likewise.
52141         * lib/getpagesize.h: Likewise.
52142         * lib/getsubopt.c: Likewise.
52143         * lib/gettime.c: Likewise.
52144         * lib/getugroups.c: Likewise.
52145         * lib/getugroups.h: Likewise.
52146         * lib/getusershell.c: Likewise.
52147         * lib/gl_anyavltree_list1.h: Likewise.
52148         * lib/gl_anyavltree_list2.h: Likewise.
52149         * lib/gl_anyhash_list1.h: Likewise.
52150         * lib/gl_anyhash_list2.h: Likewise.
52151         * lib/gl_anylinked_list1.h: Likewise.
52152         * lib/gl_anylinked_list2.h: Likewise.
52153         * lib/gl_anyrbtree_list1.h: Likewise.
52154         * lib/gl_anyrbtree_list2.h: Likewise.
52155         * lib/gl_anytree_list1.h: Likewise.
52156         * lib/gl_anytree_list2.h: Likewise.
52157         * lib/gl_anytree_oset.h: Likewise.
52158         * lib/gl_anytreehash_list1.h: Likewise.
52159         * lib/gl_anytreehash_list2.h: Likewise.
52160         * lib/gl_array_list.c: Likewise.
52161         * lib/gl_array_list.h: Likewise.
52162         * lib/gl_array_oset.c: Likewise.
52163         * lib/gl_array_oset.h: Likewise.
52164         * lib/gl_avltree_list.c: Likewise.
52165         * lib/gl_avltree_list.h: Likewise.
52166         * lib/gl_avltree_oset.c: Likewise.
52167         * lib/gl_avltree_oset.h: Likewise.
52168         * lib/gl_avltreehash_list.c: Likewise.
52169         * lib/gl_avltreehash_list.h: Likewise.
52170         * lib/gl_carray_list.c: Likewise.
52171         * lib/gl_carray_list.h: Likewise.
52172         * lib/gl_linked_list.c: Likewise.
52173         * lib/gl_linked_list.h: Likewise.
52174         * lib/gl_linkedhash_list.c: Likewise.
52175         * lib/gl_linkedhash_list.h: Likewise.
52176         * lib/gl_list.c: Likewise.
52177         * lib/gl_list.h: Likewise.
52178         * lib/gl_oset.c: Likewise.
52179         * lib/gl_oset.h: Likewise.
52180         * lib/gl_rbtree_list.c: Likewise.
52181         * lib/gl_rbtree_list.h: Likewise.
52182         * lib/gl_rbtree_oset.c: Likewise.
52183         * lib/gl_rbtree_oset.h: Likewise.
52184         * lib/gl_rbtreehash_list.c: Likewise.
52185         * lib/gl_rbtreehash_list.h: Likewise.
52186         * lib/gl_sublist.c: Likewise.
52187         * lib/gl_sublist.h: Likewise.
52188         * lib/group-member.c: Likewise.
52189         * lib/group-member.h: Likewise.
52190         * lib/hard-locale.c: Likewise.
52191         * lib/hard-locale.h: Likewise.
52192         * lib/hash-pjw.c: Likewise.
52193         * lib/hash-pjw.h: Likewise.
52194         * lib/hash-triple.c: Likewise.
52195         * lib/hash.c: Likewise.
52196         * lib/hash.h: Likewise.
52197         * lib/human.c: Likewise.
52198         * lib/human.h: Likewise.
52199         * lib/i-ring.c: Likewise.
52200         * lib/i-ring.h: Likewise.
52201         * lib/idcache.c: Likewise.
52202         * lib/imaxabs.c: Likewise.
52203         * lib/imaxdiv.c: Likewise.
52204         * lib/inet_pton.c: Likewise.
52205         * lib/inet_pton.h: Likewise.
52206         * lib/intprops.h: Likewise.
52207         * lib/inttostr.c: Likewise.
52208         * lib/inttostr.h: Likewise.
52209         * lib/inttypes.in.h: Likewise.
52210         * lib/isapipe.c: Likewise.
52211         * lib/isdir.c: Likewise.
52212         * lib/isnan.c: Likewise.
52213         * lib/isnan.h: Likewise.
52214         * lib/isnanf.c: Likewise.
52215         * lib/isnanf.h: Likewise.
52216         * lib/isnanl-nolibm.h: Likewise.
52217         * lib/isnanl.c: Likewise.
52218         * lib/isnanl.h: Likewise.
52219         * lib/javacomp.c: Likewise.
52220         * lib/javacomp.h: Likewise.
52221         * lib/javaexec.c: Likewise.
52222         * lib/javaexec.h: Likewise.
52223         * lib/javaversion.c: Likewise.
52224         * lib/javaversion.h: Likewise.
52225         * lib/javaversion.java: Likewise.
52226         * lib/lbrkprop.h: Likewise.
52227         * lib/lchmod.h: Likewise.
52228         * lib/lchown.c: Likewise.
52229         * lib/ldexpl.c: Likewise.
52230         * lib/linebreak.c: Likewise.
52231         * lib/linebreak.h: Likewise.
52232         * lib/linebuffer.c: Likewise.
52233         * lib/linebuffer.h: Likewise.
52234         * lib/locale.in.h: Likewise.
52235         * lib/logl.c: Likewise.
52236         * lib/long-options.c: Likewise.
52237         * lib/long-options.h: Likewise.
52238         * lib/lstat.c: Likewise.
52239         * lib/lstat.h: Likewise.
52240         * lib/math.in.h: Likewise.
52241         * lib/mbchar.c: Likewise.
52242         * lib/mbchar.h: Likewise.
52243         * lib/mbfile.h: Likewise.
52244         * lib/mbiter.h: Likewise.
52245         * lib/mbscasecmp.c: Likewise.
52246         * lib/mbscasestr.c: Likewise.
52247         * lib/mbschr.c: Likewise.
52248         * lib/mbscspn.c: Likewise.
52249         * lib/mbslen.c: Likewise.
52250         * lib/mbsncasecmp.c: Likewise.
52251         * lib/mbsnlen.c: Likewise.
52252         * lib/mbspbrk.c: Likewise.
52253         * lib/mbspcasecmp.c: Likewise.
52254         * lib/mbsrchr.c: Likewise.
52255         * lib/mbssep.c: Likewise.
52256         * lib/mbsspn.c: Likewise.
52257         * lib/mbsstr.c: Likewise.
52258         * lib/mbstok_r.c: Likewise.
52259         * lib/mbswidth.c: Likewise.
52260         * lib/mbswidth.h: Likewise.
52261         * lib/mbuiter.h: Likewise.
52262         * lib/memcasecmp.c: Likewise.
52263         * lib/memcasecmp.h: Likewise.
52264         * lib/memchr.c: Likewise.
52265         * lib/memcmp.c: Likewise.
52266         * lib/memcoll.c: Likewise.
52267         * lib/memcoll.h: Likewise.
52268         * lib/memcpy.c: Likewise.
52269         * lib/memrchr.c: Likewise.
52270         * lib/mkancesdirs.c: Likewise.
52271         * lib/mkdir-p.c: Likewise.
52272         * lib/mkdir-p.h: Likewise.
52273         * lib/mkdir.c: Likewise.
52274         * lib/mkdirat.c: Likewise.
52275         * lib/mkdtemp.c: Likewise.
52276         * lib/mkstemp-safer.c: Likewise.
52277         * lib/mkstemp.c: Likewise.
52278         * lib/modechange.c: Likewise.
52279         * lib/modechange.h: Likewise.
52280         * lib/mountlist.c: Likewise.
52281         * lib/mountlist.h: Likewise.
52282         * lib/mpsort.c: Likewise.
52283         * lib/nanosleep.c: Likewise.
52284         * lib/obstack.c: Likewise.
52285         * lib/obstack.h: Likewise.
52286         * lib/open-safer.c: Likewise.
52287         * lib/open.c: Likewise.
52288         * lib/openat-die.c: Likewise.
52289         * lib/openat-priv.h: Likewise.
52290         * lib/openat-proc.c: Likewise.
52291         * lib/openat.c: Likewise.
52292         * lib/openat.h: Likewise.
52293         * lib/pagealign_alloc.c: Likewise.
52294         * lib/pagealign_alloc.h: Likewise.
52295         * lib/physmem.c: Likewise.
52296         * lib/physmem.h: Likewise.
52297         * lib/pipe-safer.c: Likewise.
52298         * lib/pipe.c: Likewise.
52299         * lib/pipe.h: Likewise.
52300         * lib/posixtm.c: Likewise.
52301         * lib/posixtm.h: Likewise.
52302         * lib/posixver.c: Likewise.
52303         * lib/printf-frexp.c: Likewise.
52304         * lib/printf-frexp.h: Likewise.
52305         * lib/printf-frexpl.c: Likewise.
52306         * lib/printf-frexpl.h: Likewise.
52307         * lib/printf.c: Likewise.
52308         * lib/progname.c: Likewise.
52309         * lib/progname.h: Likewise.
52310         * lib/progreloc.c: Likewise.
52311         * lib/putenv.c: Likewise.
52312         * lib/quote.c: Likewise.
52313         * lib/quote.h: Likewise.
52314         * lib/quotearg.c: Likewise.
52315         * lib/quotearg.h: Likewise.
52316         * lib/raise.c: Likewise.
52317         * lib/readline.c: Likewise.
52318         * lib/readline.h: Likewise.
52319         * lib/readlink.c: Likewise.
52320         * lib/readtokens.c: Likewise.
52321         * lib/readtokens.h: Likewise.
52322         * lib/readtokens0.c: Likewise.
52323         * lib/readtokens0.h: Likewise.
52324         * lib/readutmp.c: Likewise.
52325         * lib/readutmp.h: Likewise.
52326         * lib/realloc.c: Likewise.
52327         * lib/relocwrapper.c: Likewise.
52328         * lib/rename-dest-slash.c: Likewise.
52329         * lib/rename.c: Likewise.
52330         * lib/rmdir.c: Likewise.
52331         * lib/rpmatch.c: Likewise.
52332         * lib/safe-read.c: Likewise.
52333         * lib/safe-read.h: Likewise.
52334         * lib/safe-write.c: Likewise.
52335         * lib/safe-write.h: Likewise.
52336         * lib/same-inode.h: Likewise.
52337         * lib/same.c: Likewise.
52338         * lib/same.h: Likewise.
52339         * lib/save-cwd.c: Likewise.
52340         * lib/save-cwd.h: Likewise.
52341         * lib/savedir.c: Likewise.
52342         * lib/savedir.h: Likewise.
52343         * lib/savewd.c: Likewise.
52344         * lib/savewd.h: Likewise.
52345         * lib/search.in.h: Likewise.
52346         * lib/setenv.c: Likewise.
52347         * lib/setenv.h: Likewise.
52348         * lib/settime.c: Likewise.
52349         * lib/sh-quote.c: Likewise.
52350         * lib/sh-quote.h: Likewise.
52351         * lib/sig2str.c: Likewise.
52352         * lib/sig2str.h: Likewise.
52353         * lib/signal.in.h: Likewise.
52354         * lib/signbitd.c: Likewise.
52355         * lib/signbitf.c: Likewise.
52356         * lib/signbitl.c: Likewise.
52357         * lib/sigprocmask.c: Likewise.
52358         * lib/sincosl.c: Likewise.
52359         * lib/sleep.c: Likewise.
52360         * lib/sprintf.c: Likewise.
52361         * lib/sqrtl.c: Likewise.
52362         * lib/stat-time.h: Likewise.
52363         * lib/stdio--.h: Likewise.
52364         * lib/stdio-safer.h: Likewise.
52365         * lib/stdlib--.h: Likewise.
52366         * lib/stdlib-safer.h: Likewise.
52367         * lib/stdlib.in.h: Likewise.
52368         * lib/stpcpy.c: Likewise.
52369         * lib/stpncpy.c: Likewise.
52370         * lib/strchrnul.c: Likewise.
52371         * lib/strcspn.c: Likewise.
52372         * lib/strerror.c: Likewise.
52373         * lib/strftime.c: Likewise.
52374         * lib/strftime.h: Likewise.
52375         * lib/striconveh.c: Likewise.
52376         * lib/striconveh.h: Likewise.
52377         * lib/striconveha.c: Likewise.
52378         * lib/striconveha.h: Likewise.
52379         * lib/stripslash.c: Likewise.
52380         * lib/strnlen1.c: Likewise.
52381         * lib/strnlen1.h: Likewise.
52382         * lib/strtod.c: Likewise.
52383         * lib/strtoimax.c: Likewise.
52384         * lib/strtok_r.c: Likewise.
52385         * lib/strtol.c: Likewise.
52386         * lib/strtoll.c: Likewise.
52387         * lib/strtoul.c: Likewise.
52388         * lib/strtoull.c: Likewise.
52389         * lib/sysexits.in.h: Likewise.
52390         * lib/tempname.c: Likewise.
52391         * lib/tempname.h: Likewise.
52392         * lib/timespec.h: Likewise.
52393         * lib/tls.c: Likewise.
52394         * lib/tls.h: Likewise.
52395         * lib/tmpdir.c: Likewise.
52396         * lib/tmpdir.h: Likewise.
52397         * lib/tmpfile-safer.c: Likewise.
52398         * lib/tmpfile.c: Likewise.
52399         * lib/trigl.c: Likewise.
52400         * lib/trigl.h: Likewise.
52401         * lib/trim.c: Likewise.
52402         * lib/trim.h: Likewise.
52403         * lib/trunc.c: Likewise.
52404         * lib/truncf.c: Likewise.
52405         * lib/truncl.c: Likewise.
52406         * lib/tsearch.c: Likewise.
52407         * lib/unicodeio.c: Likewise.
52408         * lib/unicodeio.h: Likewise.
52409         * lib/unistd--.h: Likewise.
52410         * lib/unistd-safer.h: Likewise.
52411         * lib/unistdio/ulc-fprintf.c: Likewise.
52412         * lib/unistdio/ulc-vfprintf.c: Likewise.
52413         * lib/unlinkdir.c: Likewise.
52414         * lib/unlinkdir.h: Likewise.
52415         * lib/unlocked-io.h: Likewise.
52416         * lib/unsetenv.c: Likewise.
52417         * lib/userspec.c: Likewise.
52418         * lib/utime.c: Likewise.
52419         * lib/utimecmp.c: Likewise.
52420         * lib/utimecmp.h: Likewise.
52421         * lib/utimens.c: Likewise.
52422         * lib/verify.h: Likewise.
52423         * lib/verror.c: Likewise.
52424         * lib/verror.h: Likewise.
52425         * lib/version-etc-fsf.c: Likewise.
52426         * lib/version-etc.c: Likewise.
52427         * lib/version-etc.h: Likewise.
52428         * lib/vfprintf.c: Likewise.
52429         * lib/vprintf.c: Likewise.
52430         * lib/vsprintf.c: Likewise.
52431         * lib/w32spawn.h: Likewise.
52432         * lib/wait-process.c: Likewise.
52433         * lib/wait-process.h: Likewise.
52434         * lib/wcwidth.c: Likewise.
52435         * lib/write-any-file.c: Likewise.
52436         * lib/xalloc-die.c: Likewise.
52437         * lib/xalloc.h: Likewise.
52438         * lib/xasprintf.c: Likewise.
52439         * lib/xgetcwd.c: Likewise.
52440         * lib/xgetcwd.h: Likewise.
52441         * lib/xgetdomainname.c: Likewise.
52442         * lib/xgetdomainname.h: Likewise.
52443         * lib/xgethostname.c: Likewise.
52444         * lib/xmalloc.c: Likewise.
52445         * lib/xmalloca.c: Likewise.
52446         * lib/xmalloca.h: Likewise.
52447         * lib/xmemcoll.c: Likewise.
52448         * lib/xnanosleep.c: Likewise.
52449         * lib/xreadlink.c: Likewise.
52450         * lib/xreadlink.h: Likewise.
52451         * lib/xsetenv.c: Likewise.
52452         * lib/xsetenv.h: Likewise.
52453         * lib/xstriconv.c: Likewise.
52454         * lib/xstriconv.h: Likewise.
52455         * lib/xstrndup.c: Likewise.
52456         * lib/xstrndup.h: Likewise.
52457         * lib/xstrtod.c: Likewise.
52458         * lib/xstrtod.h: Likewise.
52459         * lib/xstrtol-error.c: Likewise.
52460         * lib/xstrtol.c: Likewise.
52461         * lib/xstrtol.h: Likewise.
52462         * lib/xtime.h: Likewise.
52463         * lib/xvasprintf.c: Likewise.
52464         * lib/xvasprintf.h: Likewise.
52465         * lib/yesno.c: Likewise.
52466         * lib/yesno.h: Likewise.
52467         * posix-modules: Likewise.
52468         * tests/test-alloca-opt.c: Likewise.
52469         * tests/test-arcfour.c: Likewise.
52470         * tests/test-arctwo.c: Likewise.
52471         * tests/test-argmatch.c: Likewise.
52472         * tests/test-argp-2.sh: Likewise.
52473         * tests/test-argp.c: Likewise.
52474         * tests/test-arpa_inet.c: Likewise.
52475         * tests/test-array_list.c: Likewise.
52476         * tests/test-array_oset.c: Likewise.
52477         * tests/test-atexit.c: Likewise.
52478         * tests/test-avltree_list.c: Likewise.
52479         * tests/test-avltree_oset.c: Likewise.
52480         * tests/test-avltreehash_list.c: Likewise.
52481         * tests/test-base64.c: Likewise.
52482         * tests/test-binary-io.c: Likewise.
52483         * tests/test-byteswap.c: Likewise.
52484         * tests/test-c-ctype.c: Likewise.
52485         * tests/test-c-strcasecmp.c: Likewise.
52486         * tests/test-c-strcasestr.c: Likewise.
52487         * tests/test-c-strncasecmp.c: Likewise.
52488         * tests/test-c-strstr.c: Likewise.
52489         * tests/test-canonicalize-lgpl.c: Likewise.
52490         * tests/test-canonicalize.c: Likewise.
52491         * tests/test-carray_list.c: Likewise.
52492         * tests/test-ceilf.c: Likewise.
52493         * tests/test-ceill.c: Likewise.
52494         * tests/test-count-one-bits.c: Likewise.
52495         * tests/test-crc.c: Likewise.
52496         * tests/test-dirname.c: Likewise.
52497         * tests/test-fbufmode.c: Likewise.
52498         * tests/test-fcntl.c: Likewise.
52499         * tests/test-fflush.c: Likewise.
52500         * tests/test-floorf.c: Likewise.
52501         * tests/test-floorl.c: Likewise.
52502         * tests/test-fopen.c: Likewise.
52503         * tests/test-fprintf-posix.c: Likewise.
52504         * tests/test-fprintf-posix.h: Likewise.
52505         * tests/test-fpurge.c: Likewise.
52506         * tests/test-freadable.c: Likewise.
52507         * tests/test-freadahead.c: Likewise.
52508         * tests/test-freading.c: Likewise.
52509         * tests/test-freopen.c: Likewise.
52510         * tests/test-frexp.c: Likewise.
52511         * tests/test-frexpl.c: Likewise.
52512         * tests/test-fseek.c: Likewise.
52513         * tests/test-fseeko.c: Likewise.
52514         * tests/test-fseterr.c: Likewise.
52515         * tests/test-fstrcmp.c: Likewise.
52516         * tests/test-ftell.c: Likewise.
52517         * tests/test-ftello.c: Likewise.
52518         * tests/test-fwritable.c: Likewise.
52519         * tests/test-fwriting.c: Likewise.
52520         * tests/test-getaddrinfo.c: Likewise.
52521         * tests/test-getpass.c: Likewise.
52522         * tests/test-gettimeofday.c: Likewise.
52523         * tests/test-hmac-md5.c: Likewise.
52524         * tests/test-hmac-sha1.c: Likewise.
52525         * tests/test-iconv.c: Likewise.
52526         * tests/test-iconvme.c: Likewise.
52527         * tests/test-inttypes.c: Likewise.
52528         * tests/test-isnan.c: Likewise.
52529         * tests/test-isnanf.c: Likewise.
52530         * tests/test-isnanl-nolibm.c: Likewise.
52531         * tests/test-isnanl.c: Likewise.
52532         * tests/test-isnanl.h: Likewise.
52533         * tests/test-ldexpl.c: Likewise.
52534         * tests/test-linked_list.c: Likewise.
52535         * tests/test-linkedhash_list.c: Likewise.
52536         * tests/test-locale.c: Likewise.
52537         * tests/test-localename.c: Likewise.
52538         * tests/test-lock.c: Likewise.
52539         * tests/test-lseek.c: Likewise.
52540         * tests/test-malloca.c: Likewise.
52541         * tests/test-math.c: Likewise.
52542         * tests/test-mbscasecmp.c: Likewise.
52543         * tests/test-mbscasestr1.c: Likewise.
52544         * tests/test-mbscasestr2.c: Likewise.
52545         * tests/test-mbscasestr3.c: Likewise.
52546         * tests/test-mbscasestr4.c: Likewise.
52547         * tests/test-mbschr.c: Likewise.
52548         * tests/test-mbscspn.c: Likewise.
52549         * tests/test-mbsncasecmp.c: Likewise.
52550         * tests/test-mbspbrk.c: Likewise.
52551         * tests/test-mbspcasecmp.c: Likewise.
52552         * tests/test-mbsrchr.c: Likewise.
52553         * tests/test-mbsspn.c: Likewise.
52554         * tests/test-mbsstr1.c: Likewise.
52555         * tests/test-mbsstr2.c: Likewise.
52556         * tests/test-mbsstr3.c: Likewise.
52557         * tests/test-md5.c: Likewise.
52558         * tests/test-memmem.c: Likewise.
52559         * tests/test-netinet_in.c: Likewise.
52560         * tests/test-open.c: Likewise.
52561         * tests/test-printf-frexp.c: Likewise.
52562         * tests/test-printf-frexpl.c: Likewise.
52563         * tests/test-printf-posix.c: Likewise.
52564         * tests/test-printf-posix.h: Likewise.
52565         * tests/test-rbtree_list.c: Likewise.
52566         * tests/test-rbtree_oset.c: Likewise.
52567         * tests/test-rbtreehash_list.c: Likewise.
52568         * tests/test-read-file.c: Likewise.
52569         * tests/test-rijndael.c: Likewise.
52570         * tests/test-search.c: Likewise.
52571         * tests/test-signbit.c: Likewise.
52572         * tests/test-sleep.c: Likewise.
52573         * tests/test-snprintf-posix.c: Likewise.
52574         * tests/test-snprintf-posix.h: Likewise.
52575         * tests/test-snprintf.c: Likewise.
52576         * tests/test-sprintf-posix.c: Likewise.
52577         * tests/test-sprintf-posix.h: Likewise.
52578         * tests/test-stat-time.c: Likewise.
52579         * tests/test-stdbool.c: Likewise.
52580         * tests/test-stdint.c: Likewise.
52581         * tests/test-stdio.c: Likewise.
52582         * tests/test-stdlib.c: Likewise.
52583         * tests/test-stpncpy.c: Likewise.
52584         * tests/test-strcasestr.c: Likewise.
52585         * tests/test-striconv.c: Likewise.
52586         * tests/test-striconveh.c: Likewise.
52587         * tests/test-striconveha.c: Likewise.
52588         * tests/test-string.c: Likewise.
52589         * tests/test-sys_select.c: Likewise.
52590         * tests/test-sys_socket.c: Likewise.
52591         * tests/test-sys_stat.c: Likewise.
52592         * tests/test-sys_time.c: Likewise.
52593         * tests/test-sysexits.c: Likewise.
52594         * tests/test-time.c: Likewise.
52595         * tests/test-tls.c: Likewise.
52596         * tests/test-trunc.c: Likewise.
52597         * tests/test-truncf.c: Likewise.
52598         * tests/test-truncl.c: Likewise.
52599         * tests/test-unistd.c: Likewise.
52600         * tests/test-vasnprintf-posix.c: Likewise.
52601         * tests/test-vasnprintf-posix2.c: Likewise.
52602         * tests/test-vasnprintf.c: Likewise.
52603         * tests/test-vasprintf-posix.c: Likewise.
52604         * tests/test-vasprintf.c: Likewise.
52605         * tests/test-verify.c: Likewise.
52606         * tests/test-vfprintf-posix.c: Likewise.
52607         * tests/test-vprintf-posix.c: Likewise.
52608         * tests/test-vsnprintf-posix.c: Likewise.
52609         * tests/test-vsnprintf.c: Likewise.
52610         * tests/test-vsprintf-posix.c: Likewise.
52611         * tests/test-wchar.c: Likewise.
52612         * tests/test-wctype.c: Likewise.
52613         * tests/test-wcwidth.c: Likewise.
52614         * tests/test-xstrtol.c: Likewise.
52615         * tests/test-xvasprintf.c: Likewise.
52616         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52617         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52618         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52619         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52620         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52621         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52622         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52623         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52624         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52625         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52626         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52627         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52628         * tests/uniname/test-uninames.c: Likewise.
52629         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52630         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52631         * tests/unistdio/test-u16-printf1.h: Likewise.
52632         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52633         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52634         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52635         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52636         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52637         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52638         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52639         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52640         * tests/unistdio/test-u32-printf1.h: Likewise.
52641         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52642         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52643         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52644         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52645         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52646         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52647         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52648         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52649         * tests/unistdio/test-u8-printf1.h: Likewise.
52650         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52651         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52652         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52653         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52654         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52655         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52656         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52657         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52658         * tests/unistdio/test-ulc-printf1.h: Likewise.
52659         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52660         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52661         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52662         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52663         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52664         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52665         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52666         * tests/uniwidth/test-u16-width.c: Likewise.
52667         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52668         * tests/uniwidth/test-u32-width.c: Likewise.
52669         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52670         * tests/uniwidth/test-u8-width.c: Likewise.
52671         * tests/uniwidth/test-uc_width.c: Likewise.
52672         * config/srclist-update: Likewise.
52673         (fixlicense): Update to GPLv3+.
52674
52675         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52676         * tests/test-tsearch.c: Change copyright notice.
52677
52678         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52679         * lib/c-strcaseeq.h: Change copyright notice.
52680         * lib/streq.h: Likewise.
52681         * lib/uniconv.h: Likewise.
52682         * lib/uniconv/u-conv-from-enc.h: Likewise.
52683         * lib/uniconv/u-conv-to-enc.h: Likewise.
52684         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52685         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52686         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52687         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52688         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52689         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52690         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52691         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52692         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52693         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52694         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52695         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52696         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52697         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52698         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52699         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52700         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52701         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52702         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52703         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52704         * lib/uniname.h: Likewise.
52705         * lib/uniname/uniname.c: Likewise.
52706         * lib/unistdio.h: Likewise.
52707         * lib/unistdio/u-asnprintf.h: Likewise.
52708         * lib/unistdio/u-asprintf.h: Likewise.
52709         * lib/unistdio/u-printf-args.c: Likewise.
52710         * lib/unistdio/u-printf-args.h: Likewise.
52711         * lib/unistdio/u-printf-parse.h: Likewise.
52712         * lib/unistdio/u-snprintf.h: Likewise.
52713         * lib/unistdio/u-sprintf.h: Likewise.
52714         * lib/unistdio/u-vasprintf.h: Likewise.
52715         * lib/unistdio/u-vsnprintf.h: Likewise.
52716         * lib/unistdio/u-vsprintf.h: Likewise.
52717         * lib/unistdio/u16-asnprintf.c: Likewise.
52718         * lib/unistdio/u16-asprintf.c: Likewise.
52719         * lib/unistdio/u16-printf-parse.c: Likewise.
52720         * lib/unistdio/u16-snprintf.c: Likewise.
52721         * lib/unistdio/u16-sprintf.c: Likewise.
52722         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52723         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52724         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52725         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52726         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52727         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52728         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52729         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52730         * lib/unistdio/u16-vasnprintf.c: Likewise.
52731         * lib/unistdio/u16-vasprintf.c: Likewise.
52732         * lib/unistdio/u16-vsnprintf.c: Likewise.
52733         * lib/unistdio/u16-vsprintf.c: Likewise.
52734         * lib/unistdio/u32-asnprintf.c: Likewise.
52735         * lib/unistdio/u32-asprintf.c: Likewise.
52736         * lib/unistdio/u32-printf-parse.c: Likewise.
52737         * lib/unistdio/u32-snprintf.c: Likewise.
52738         * lib/unistdio/u32-sprintf.c: Likewise.
52739         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52740         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52741         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52742         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52743         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52744         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52745         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52746         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52747         * lib/unistdio/u32-vasnprintf.c: Likewise.
52748         * lib/unistdio/u32-vasprintf.c: Likewise.
52749         * lib/unistdio/u32-vsnprintf.c: Likewise.
52750         * lib/unistdio/u32-vsprintf.c: Likewise.
52751         * lib/unistdio/u8-asnprintf.c: Likewise.
52752         * lib/unistdio/u8-asprintf.c: Likewise.
52753         * lib/unistdio/u8-printf-parse.c: Likewise.
52754         * lib/unistdio/u8-snprintf.c: Likewise.
52755         * lib/unistdio/u8-sprintf.c: Likewise.
52756         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52757         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52758         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52759         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52760         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52761         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52762         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52763         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52764         * lib/unistdio/u8-vasnprintf.c: Likewise.
52765         * lib/unistdio/u8-vasprintf.c: Likewise.
52766         * lib/unistdio/u8-vsnprintf.c: Likewise.
52767         * lib/unistdio/u8-vsprintf.c: Likewise.
52768         * lib/unistdio/ulc-asnprintf.c: Likewise.
52769         * lib/unistdio/ulc-asprintf.c: Likewise.
52770         * lib/unistdio/ulc-printf-parse.c: Likewise.
52771         * lib/unistdio/ulc-snprintf.c: Likewise.
52772         * lib/unistdio/ulc-sprintf.c: Likewise.
52773         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52774         * lib/unistdio/ulc-vasprintf.c: Likewise.
52775         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52776         * lib/unistdio/ulc-vsprintf.c: Likewise.
52777         * lib/unistr.h: Likewise.
52778         * lib/unistr/u-cpy-alloc.h: Likewise.
52779         * lib/unistr/u-cpy.h: Likewise.
52780         * lib/unistr/u-endswith.h: Likewise.
52781         * lib/unistr/u-move.h: Likewise.
52782         * lib/unistr/u-set.h: Likewise.
52783         * lib/unistr/u-startswith.h: Likewise.
52784         * lib/unistr/u-stpcpy.h: Likewise.
52785         * lib/unistr/u-stpncpy.h: Likewise.
52786         * lib/unistr/u-strcat.h: Likewise.
52787         * lib/unistr/u-strcpy.h: Likewise.
52788         * lib/unistr/u-strcspn.h: Likewise.
52789         * lib/unistr/u-strdup.h: Likewise.
52790         * lib/unistr/u-strlen.h: Likewise.
52791         * lib/unistr/u-strncat.h: Likewise.
52792         * lib/unistr/u-strncpy.h: Likewise.
52793         * lib/unistr/u-strnlen.h: Likewise.
52794         * lib/unistr/u-strpbrk.h: Likewise.
52795         * lib/unistr/u-strspn.h: Likewise.
52796         * lib/unistr/u-strstr.h: Likewise.
52797         * lib/unistr/u-strtok.h: Likewise.
52798         * lib/unistr/u16-check.c: Likewise.
52799         * lib/unistr/u16-chr.c: Likewise.
52800         * lib/unistr/u16-cmp.c: Likewise.
52801         * lib/unistr/u16-cpy-alloc.c: Likewise.
52802         * lib/unistr/u16-cpy.c: Likewise.
52803         * lib/unistr/u16-endswith.c: Likewise.
52804         * lib/unistr/u16-mblen.c: Likewise.
52805         * lib/unistr/u16-mbsnlen.c: Likewise.
52806         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52807         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52808         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52809         * lib/unistr/u16-mbtouc.c: Likewise.
52810         * lib/unistr/u16-mbtoucr.c: Likewise.
52811         * lib/unistr/u16-move.c: Likewise.
52812         * lib/unistr/u16-next.c: Likewise.
52813         * lib/unistr/u16-prev.c: Likewise.
52814         * lib/unistr/u16-set.c: Likewise.
52815         * lib/unistr/u16-startswith.c: Likewise.
52816         * lib/unistr/u16-stpcpy.c: Likewise.
52817         * lib/unistr/u16-stpncpy.c: Likewise.
52818         * lib/unistr/u16-strcat.c: Likewise.
52819         * lib/unistr/u16-strchr.c: Likewise.
52820         * lib/unistr/u16-strcmp.c: Likewise.
52821         * lib/unistr/u16-strcpy.c: Likewise.
52822         * lib/unistr/u16-strcspn.c: Likewise.
52823         * lib/unistr/u16-strdup.c: Likewise.
52824         * lib/unistr/u16-strlen.c: Likewise.
52825         * lib/unistr/u16-strmblen.c: Likewise.
52826         * lib/unistr/u16-strmbtouc.c: Likewise.
52827         * lib/unistr/u16-strncat.c: Likewise.
52828         * lib/unistr/u16-strncmp.c: Likewise.
52829         * lib/unistr/u16-strncpy.c: Likewise.
52830         * lib/unistr/u16-strnlen.c: Likewise.
52831         * lib/unistr/u16-strpbrk.c: Likewise.
52832         * lib/unistr/u16-strrchr.c: Likewise.
52833         * lib/unistr/u16-strspn.c: Likewise.
52834         * lib/unistr/u16-strstr.c: Likewise.
52835         * lib/unistr/u16-strtok.c: Likewise.
52836         * lib/unistr/u16-to-u32.c: Likewise.
52837         * lib/unistr/u16-to-u8.c: Likewise.
52838         * lib/unistr/u16-uctomb-aux.c: Likewise.
52839         * lib/unistr/u16-uctomb.c: Likewise.
52840         * lib/unistr/u32-check.c: Likewise.
52841         * lib/unistr/u32-chr.c: Likewise.
52842         * lib/unistr/u32-cmp.c: Likewise.
52843         * lib/unistr/u32-cpy-alloc.c: Likewise.
52844         * lib/unistr/u32-cpy.c: Likewise.
52845         * lib/unistr/u32-endswith.c: Likewise.
52846         * lib/unistr/u32-mblen.c: Likewise.
52847         * lib/unistr/u32-mbsnlen.c: Likewise.
52848         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52849         * lib/unistr/u32-mbtouc.c: Likewise.
52850         * lib/unistr/u32-mbtoucr.c: Likewise.
52851         * lib/unistr/u32-move.c: Likewise.
52852         * lib/unistr/u32-next.c: Likewise.
52853         * lib/unistr/u32-prev.c: Likewise.
52854         * lib/unistr/u32-set.c: Likewise.
52855         * lib/unistr/u32-startswith.c: Likewise.
52856         * lib/unistr/u32-stpcpy.c: Likewise.
52857         * lib/unistr/u32-stpncpy.c: Likewise.
52858         * lib/unistr/u32-strcat.c: Likewise.
52859         * lib/unistr/u32-strchr.c: Likewise.
52860         * lib/unistr/u32-strcmp.c: Likewise.
52861         * lib/unistr/u32-strcpy.c: Likewise.
52862         * lib/unistr/u32-strcspn.c: Likewise.
52863         * lib/unistr/u32-strdup.c: Likewise.
52864         * lib/unistr/u32-strlen.c: Likewise.
52865         * lib/unistr/u32-strmblen.c: Likewise.
52866         * lib/unistr/u32-strmbtouc.c: Likewise.
52867         * lib/unistr/u32-strncat.c: Likewise.
52868         * lib/unistr/u32-strncmp.c: Likewise.
52869         * lib/unistr/u32-strncpy.c: Likewise.
52870         * lib/unistr/u32-strnlen.c: Likewise.
52871         * lib/unistr/u32-strpbrk.c: Likewise.
52872         * lib/unistr/u32-strrchr.c: Likewise.
52873         * lib/unistr/u32-strspn.c: Likewise.
52874         * lib/unistr/u32-strstr.c: Likewise.
52875         * lib/unistr/u32-strtok.c: Likewise.
52876         * lib/unistr/u32-to-u16.c: Likewise.
52877         * lib/unistr/u32-to-u8.c: Likewise.
52878         * lib/unistr/u32-uctomb.c: Likewise.
52879         * lib/unistr/u8-check.c: Likewise.
52880         * lib/unistr/u8-chr.c: Likewise.
52881         * lib/unistr/u8-cmp.c: Likewise.
52882         * lib/unistr/u8-cpy-alloc.c: Likewise.
52883         * lib/unistr/u8-cpy.c: Likewise.
52884         * lib/unistr/u8-endswith.c: Likewise.
52885         * lib/unistr/u8-mblen.c: Likewise.
52886         * lib/unistr/u8-mbsnlen.c: Likewise.
52887         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52888         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52889         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52890         * lib/unistr/u8-mbtouc.c: Likewise.
52891         * lib/unistr/u8-mbtoucr.c: Likewise.
52892         * lib/unistr/u8-move.c: Likewise.
52893         * lib/unistr/u8-next.c: Likewise.
52894         * lib/unistr/u8-prev.c: Likewise.
52895         * lib/unistr/u8-set.c: Likewise.
52896         * lib/unistr/u8-startswith.c: Likewise.
52897         * lib/unistr/u8-stpcpy.c: Likewise.
52898         * lib/unistr/u8-stpncpy.c: Likewise.
52899         * lib/unistr/u8-strcat.c: Likewise.
52900         * lib/unistr/u8-strchr.c: Likewise.
52901         * lib/unistr/u8-strcmp.c: Likewise.
52902         * lib/unistr/u8-strcpy.c: Likewise.
52903         * lib/unistr/u8-strcspn.c: Likewise.
52904         * lib/unistr/u8-strdup.c: Likewise.
52905         * lib/unistr/u8-strlen.c: Likewise.
52906         * lib/unistr/u8-strmblen.c: Likewise.
52907         * lib/unistr/u8-strmbtouc.c: Likewise.
52908         * lib/unistr/u8-strncat.c: Likewise.
52909         * lib/unistr/u8-strncmp.c: Likewise.
52910         * lib/unistr/u8-strncpy.c: Likewise.
52911         * lib/unistr/u8-strnlen.c: Likewise.
52912         * lib/unistr/u8-strpbrk.c: Likewise.
52913         * lib/unistr/u8-strrchr.c: Likewise.
52914         * lib/unistr/u8-strspn.c: Likewise.
52915         * lib/unistr/u8-strstr.c: Likewise.
52916         * lib/unistr/u8-strtok.c: Likewise.
52917         * lib/unistr/u8-to-u16.c: Likewise.
52918         * lib/unistr/u8-to-u32.c: Likewise.
52919         * lib/unistr/u8-uctomb-aux.c: Likewise.
52920         * lib/unistr/u8-uctomb.c: Likewise.
52921         * lib/unitypes.h: Likewise.
52922         * lib/uniwidth.h: Likewise.
52923         * lib/uniwidth/cjk.h: Likewise.
52924         * lib/uniwidth/u16-strwidth.c: Likewise.
52925         * lib/uniwidth/u16-width.c: Likewise.
52926         * lib/uniwidth/u32-strwidth.c: Likewise.
52927         * lib/uniwidth/u32-width.c: Likewise.
52928         * lib/uniwidth/u8-strwidth.c: Likewise.
52929         * lib/uniwidth/u8-width.c: Likewise.
52930         * lib/uniwidth/width.c: Likewise.
52931
52932 2007-10-07  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52935         The file is still under LGPL (see modules/inttypes).
52936
52937 2007-10-06  Bruno Haible  <bruno@clisp.org>
52938
52939         * modules/trunc (Dependencies): Add 'extensions'.
52940         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52941         Reported by Ben Pfaff <blp@gnu.org>.
52942
52943 2007-10-06  Bruno Haible  <bruno@clisp.org>
52944
52945         * modules/freopen-tests: New file.
52946         * tests/test-freopen.c: New file.
52947
52948         * modules/fopen-tests: New file.
52949         * tests/test-fopen.c: New file.
52950
52951         * modules/fopen: New file.
52952         * lib/fopen.c: New file.
52953         * m4/fopen.m4: New file.
52954         * modules/freopen: New file.
52955         * lib/freopen.c: New file.
52956         * m4/freopen.m4: New file.
52957         * lib/stdio.in.h (fopen, freopen): New declarations.
52958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52959         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52960         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52961         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52962         * doc/functions/fopen.texi: Mention the 'fopen' module.
52963         * doc/functions/freopen.texi: Mention the 'freopen' module.
52964
52965 2007-10-06  Bruno Haible  <bruno@clisp.org>
52966
52967         * modules/open-tests: New file.
52968         * tests/test-open.c: New file.
52969
52970         * modules/open: New file.
52971         * lib/open.c: New file.
52972         * m4/open.m4: New file.
52973         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52974         lib/open.c does.
52975         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52976         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52977         macros.
52978         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52979         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52980         REPLACE_OPEN.
52981         * doc/functions/open.texi: Mention the 'open' module.
52982
52983 2007-10-04  Bruno Haible  <bruno@clisp.org>
52984
52985         * modules/ceill-tests: New file.
52986         * tests/test-ceill.c: New file.
52987
52988         * modules/ceill: New file.
52989         * lib/ceill.c: Replace entire file.
52990         * m4/ceill.m4: New file.
52991         * lib/math.in.h (ceill): Replace declaration.
52992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52993         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52994         * doc/functions/ceill.texi: Mention the 'ceill' module.
52995         * modules/mathl (Files): Remove lib/ceill.c.
52996         (Depends-on): Add ceill.
52997
52998 2007-10-04  Bruno Haible  <bruno@clisp.org>
52999
53000         * modules/ceilf-tests: New file.
53001         * tests/test-ceilf.c: New file.
53002
53003         * modules/ceilf: New file.
53004         * lib/ceil.c: New file.
53005         * lib/ceilf.c: New file.
53006         * m4/ceilf.m4: New file.
53007         * lib/math.in.h (ceilf): New declaration.
53008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53009         HAVE_DECL_CEILF.
53010         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53011         HAVE_DECL_CEILF.
53012         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53013
53014 2007-10-04  Bruno Haible  <bruno@clisp.org>
53015
53016         * modules/floorl-tests: New file.
53017         * tests/test-floorl.c: New file.
53018
53019         * modules/floorl: New file.
53020         * lib/floorl.c: Replace entire file.
53021         * m4/floorl.m4: New file.
53022         * lib/math.in.h (floorl): Replace declaration.
53023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53024         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53025         * doc/functions/floorl.texi: Mention the 'floorl' module.
53026         * modules/mathl (Files): Remove lib/floorl.c.
53027         (Depends-on): Add floorl.
53028
53029 2007-10-04  Bruno Haible  <bruno@clisp.org>
53030
53031         * modules/floorf-tests: New file.
53032         * tests/test-floorf.c: New file.
53033
53034         * modules/floorf: New file.
53035         * lib/floor.c: New file.
53036         * lib/floorf.c: New file.
53037         * m4/floorf.m4: New file.
53038         * lib/math.in.h (floorf): New declaration.
53039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53040         HAVE_DECL_FLOORF.
53041         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53042         HAVE_DECL_FLOORF.
53043         * doc/functions/floorf.texi: Mention the 'floorf' module.
53044
53045 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53046             Bruno Haible  <bruno@clisp.org>
53047
53048         Advertise for the Git server instead of the CVS server.
53049         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53050         repository instead of the CVS one.
53051         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53052         about all VCS systems generically.
53053         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53054
53055 2007-10-04  Bruno Haible  <bruno@clisp.org>
53056
53057         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53058         means.
53059         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53060
53061 2007-10-04  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/truncl-tests: New file.
53064         * tests/test-truncl.c: New file.
53065
53066         * modules/truncl: New file.
53067         * lib/truncl.c: New file.
53068         * m4/truncl.m4: New file.
53069         * lib/math.in.h (truncl): New declaration.
53070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53071         HAVE_DECL_TRUNCL.
53072         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53073         HAVE_DECL_TRUNCL.
53074         * doc/functions/truncl.texi: Mention the 'truncl' module.
53075
53076 2007-10-04  Bruno Haible  <bruno@clisp.org>
53077
53078         * modules/truncf-tests: New file.
53079         * tests/test-truncf.c: New file.
53080
53081         * modules/truncf: New file.
53082         * lib/trunc.c: Make paramerizable through USE_* macros.
53083         * lib/truncf.c: New file.
53084         * m4/truncf.m4: New file.
53085         * lib/math.in.h (truncf): New declaration.
53086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53087         HAVE_DECL_TRUNCF.
53088         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53089         HAVE_DECL_TRUNCF.
53090         * doc/functions/truncf.texi: Mention the 'truncf' module.
53091
53092 2007-10-03  Bruno Haible  <bruno@clisp.org>
53093
53094         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53095         augmentation also for tests modules.
53096         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53097         * modules/atexit-tests (Makefile.am): Likewise.
53098         * modules/binary-io-tests (Makefile.am): Likewise.
53099         * modules/c-strcase-tests (Makefile.am): Likewise.
53100         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53101         * modules/canonicalize-tests (Makefile.am): Likewise.
53102         * modules/closein-tests (Makefile.am): Likewise.
53103         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53104         * modules/freadahead-tests (Makefile.am): Likewise.
53105         * modules/fseek-tests (Makefile.am): Likewise.
53106         * modules/fseeko-tests (Makefile.am): Likewise.
53107         * modules/ftell-tests (Makefile.am): Likewise.
53108         * modules/ftello-tests (Makefile.am): Likewise.
53109         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53110         * modules/isnanl-tests (Makefile.am): Likewise.
53111         * modules/lseek-tests (Makefile.am): Likewise.
53112         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53113         * modules/mbscasestr-tests (Makefile.am): Likewise.
53114         * modules/mbschr-tests (Makefile.am): Likewise.
53115         * modules/mbscspn-tests (Makefile.am): Likewise.
53116         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53117         * modules/mbspbrk-tests (Makefile.am): Likewise.
53118         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53119         * modules/mbsrchr-tests (Makefile.am): Likewise.
53120         * modules/mbsspn-tests (Makefile.am): Likewise.
53121         * modules/mbsstr-tests (Makefile.am): Likewise.
53122         * modules/printf-posix-tests (Makefile.am): Likewise.
53123         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53124         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53125         * modules/tsearch-tests (Makefile.am): Likewise.
53126         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53127         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53128         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53129         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53130         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53131         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53132         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53133         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53134         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53135         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53136         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53137         * modules/xstrtol-tests (Makefile.am): Likewise.
53138         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53139         * modules/yesno-tests (Makefile.am): Likewise.
53140
53141 2007-10-03  Bruno Haible  <bruno@clisp.org>
53142
53143         * modules/trunc-tests: New file.
53144         * tests/test-trunc.c: New file.
53145
53146         * modules/trunc: New file.
53147         * lib/trunc.c: New file.
53148         * m4/trunc.m4: New file.
53149         * lib/math.in.h (trunc): New declaration.
53150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53151         HAVE_DECL_TRUNC.
53152         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53153         HAVE_DECL_TRUNC.
53154         * doc/functions/trunc.texi: Mention the 'trunc' module.
53155
53156 2007-10-03  Bruno Haible  <bruno@clisp.org>
53157
53158         * tests/test-fpending.c: New file, mostly copied
53159         from coreutils/lib/t-fpending.c.
53160         * modules/fpending-tests: New file.
53161
53162 2007-10-03  Bruno Haible  <bruno@clisp.org>
53163
53164         Port the stdio extensions to QNX (untested).
53165         * lib/fseterr.c (fseterr): Add support for QNX.
53166         * lib/fbufmode.c (fbufmode): Likewise.
53167         * lib/freadable.c (freadable): Likewise.
53168         * lib/fwritable.c (fwritable): Likewise.
53169         * lib/freading.c (freading): Likewise.
53170         * lib/fwriting.c (fwriting): Likewise.
53171         * lib/freadahead.c (freadahed): Likewise.
53172         * lib/fpurge.c (fpurge): Likewise.
53173         * lib/fseeko.c (rpl_fseeko): Likewise.
53174
53175 2007-10-03  Bruno Haible  <bruno@clisp.org>
53176             Jim Meyering  <jim@meyering.net>
53177             Eric Blake  <ebb9@byu.net>
53178
53179         * doc/relocatable.texi: Use @command instead of @program.
53180
53181 2007-10-02  Jim Meyering  <jim@meyering.net>
53182
53183         Perform one more "_.h" -> ".in.h" substitution.
53184         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53185         instead of unistd_.h here, too.
53186
53187 2007-10-01  Bruno Haible  <bruno@clisp.org>
53188
53189         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53190         Needed for the alloca-opt module.
53191
53192 2007-09-30  Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53195         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53196         alloca_.h.
53197         * lib/argz.in.h: Renamed from lib/argz_.h.
53198         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53199         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53200         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53201         byteswap_.h.
53202         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53203         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53204         dirent_.h.
53205         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53206         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53207         fcntl_.h.
53208         * lib/float.in.h: Renamed from lib/float_.h.
53209         * modules/float (Files, Makefile.am): Use float.in.h instead of
53210         float_.h.
53211         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53212         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53213         fnmatch_.h.
53214         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53215         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53216         getopt_.h.
53217         * lib/glob.in.h: Renamed from lib/glob_.h.
53218         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53219         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53220         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53221         iconv_.h.
53222         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53223         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53224         inttypes_.h.
53225         * lib/locale.in.h: Renamed from lib/locale_.h.
53226         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53227         locale_.h.
53228         * lib/math.in.h: Renamed from lib/math_.h.
53229         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53230         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53231         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53232         of netinet_in_.h. Add dependency.
53233         * lib/poll.in.h: Renamed from lib/poll_.h.
53234         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53235         * lib/search.in.h: Renamed from lib/search_.h.
53236         * modules/search (Files, Makefile.am): Use search.in.h instead of
53237         search_.h.
53238         * lib/signal.in.h: Renamed from lib/signal_.h.
53239         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53240         _signal.h.
53241         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53242         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53243         stdbool_.h.
53244         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53245         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53246         stdint_.h.
53247         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53248         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53249         stdio_.h.
53250         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53251         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53252         stdlib_.h.
53253         * lib/string.in.h: Renamed from lib/string_.h.
53254         * modules/string (Files, Makefile.am): Use string.in.h instead of
53255         string_.h.
53256         * doc/gnulib-tool.texi (Initial import): Update.
53257         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53258         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53259         of sys_select_.h. Add dependency.
53260         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53261         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53262         of sys_socket_.h.
53263         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53264         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53265         sys_stat_.h.
53266         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53267         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53268         sys_time_.h.
53269         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53270         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53271         sysexits_.h.
53272         * lib/time.in.h: Renamed from lib/time_.h.
53273         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53274         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53275         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53276         unistd_.h.
53277         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53278         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53279         wchar_.h.
53280         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53281         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53282         wctype_.h.
53283         * build-aux/bootstrap (slurp): Update.
53284         * lib/.cppi-disable: Update.
53285
53286 2007-09-30  Bruno Haible  <bruno@clisp.org>
53287
53288         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53289         Needed on BeOS.
53290
53291 2007-09-30  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53294
53295 2007-09-29  Bruno Haible  <bruno@clisp.org>
53296
53297         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53298
53299 2007-09-29  Bruno Haible  <bruno@clisp.org>
53300
53301         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53302         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53303         * build-aux/install-reloc: Compile also areadlink.c.
53304         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53305
53306 2007-09-29  Bruno Haible  <bruno@clisp.org>
53307
53308         * gnulib-tool (func_emit_initmacro_done): Indentation.
53309
53310 2007-09-29  Bruno Haible  <bruno@clisp.org>
53311
53312         * README: Add CVS checkout update instructions.
53313         Info from Bob Proulx <bob@proulx.com>.
53314
53315 2007-09-28  Eric Blake  <ebb9@byu.net>
53316
53317         Provide move-if-change.
53318         * build-aux/move-if-change: New file, based on best practice
53319         rather than any canonical upstream location.
53320
53321 2007-09-28  Jim Meyering  <jim@meyering.net>
53322
53323         Fix canonicalize loop-detection corner case.
53324         Do not attempt to stat the symlink values stored via seen_triple.
53325         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53326         on linux-2.6.18, (but not 2.6.22).
53327         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53328         triple_compare.  The former compares dev,ino,filename, while the latter
53329         would actually stat dirname(filename) when dev and ino were equal.
53330         * lib/hash-triple.c: Install <string.h>.
53331         (STREQ): Define.
53332         (triple_compare_ino_str): New function.
53333         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53334
53335 2007-09-28  Eric Blake  <ebb9@byu.net>
53336
53337         Enforce that AC_REPLACE_FUNCS files exist.
53338         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53339         override check for typos.
53340
53341         Fix test-closein on Solaris 10.
53342         * tests/test-closein.c (main): Don't assume stdin can be inherited
53343         closed on all systems.
53344         * tests/test-closein.sh: Likewise.
53345         Reported by Piotr Tarnowski.
53346
53347 2007-09-28  Jim Meyering  <jim@meyering.net>
53348
53349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53350
53351 2007-09-27  Jim Meyering  <jim@meyering.net>
53352
53353         canonicalize: Avoid a false-positive cycle failure.
53354         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53355         Sort.  Remove cycle-check.
53356         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53357         not cycle-check.h.
53358         (seen_triple): New function.
53359         (canonicalize_filename_mode): Use it instead of cycle-check.
53360         * tests/test-canonicalize.c: Add a test for this bug.
53361         * tests/test-canonicalize.sh: Set up and run the test.
53362
53363         New module, file-set, from coreutils.
53364         * modules/file-set: Define it.
53365         * lib/file-set.c, lib/file-set.h: Implement.
53366
53367         New module, hash-triple, from coreutils.
53368         * modules/hash-triple: Define it.
53369         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53370
53371 2007-09-25  Eric Blake  <ebb9@byu.net>
53372
53373         Fix strerror on Interix.
53374         * lib/string_.h (strerror): Declare replacement.
53375         * doc/functions/strerror.texi (strerror): Document the Interix
53376         shortcoming.
53377         * modules/string (Makefile.am): Support new hooks.
53378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53379         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53380         gl_FUNC_STRERROR_SEPARATE.
53381         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53382         * lib/strerror.c (rpl_strerror): Provide replacement.
53383         * modules/strerror (Depends-on): Add string.
53384         (configure.ac): Detect use of module.
53385         * tests/test-strerror.c: New file.
53386         * modules/strerror-tests: New test module.
53387         * modules/argp (Depends-on): Add strerror.
53388         * modules/error (Depends-on): Likewise.
53389         Reported by Martin Koeppe.
53390
53391 2007-09-24  Bruno Haible  <bruno@clisp.org>
53392
53393         * README: Update git instructions.
53394
53395 2007-09-24  Eric Blake  <ebb9@byu.net>
53396
53397         Revert fpending breakage from 2007-09-08.
53398         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53399         __fpending.c.
53400
53401 2007-09-24  Jim Meyering  <jim@meyering.net>
53402
53403         filenamecat.c: Add a test.
53404         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53405         showing how the function works when DIR is the empty string.
53406
53407 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53408
53409         * tests/test-canonicalize.sh: Turn on executable bit.
53410
53411 2007-09-19  Eric Blake  <ebb9@byu.net>
53412
53413         * README: Update CVS instructions.
53414
53415 2007-09-18  Bruno Haible  <bruno@clisp.org>
53416
53417         * modules/areadlink: New file.
53418         * lib/areadlink.h (areadlink): New declaration.
53419         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53420
53421 2007-09-17  Jim Meyering  <jim@meyering.net>
53422
53423         * lib/savewd.c (ESTALE) [!defined]: Define.
53424         Reported to be required on Interix by Martin Koeppe.
53425
53426 2007-09-17  Bruno Haible  <bruno@clisp.org>
53427
53428         * gnulib-tool (func_version): Use $version.
53429
53430 2007-09-16  Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53433         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53434         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53435         Reported by Greg Schafer <gschafer@zip.com.au>.
53436
53437 2007-09-15  Bruno Haible  <bruno@clisp.org>
53438
53439         * gnulib-tool (sed): Try a little harder to make bash understand the
53440         alias.
53441         Reported by Bruce Korb <bruce.korb@gmail.com>.
53442
53443 2007-09-13  Eric Blake  <ebb9@byu.net>
53444
53445         * ChangeLog: Remove conflict markers.
53446
53447 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53448
53449         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53450         Reported by Bruno Haible <bruno@clisp.org>.
53451
53452 2007-09-12  Bruno Haible  <bruno@clisp.org>
53453
53454         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53455         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53456         is not defined.
53457
53458 2007-09-12  Eric Blake  <ebb9@byu.net>
53459
53460         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53461         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53462         Autoconf definition.
53463         * modules/euidaccess (Depends-on): Add extensions, for
53464         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53465         * modules/fnmatch (Depends-on): Likewise.
53466         * modules/getaddrinfo (Depends-on): Likewise.
53467         * modules/getdelim (Depends-on): Likewise.
53468         * modules/getline (Depends-on): Likewise.
53469         * modules/getsubopt (Depends-on): Likewise.
53470         * modules/gettext (Depends-on): Likewise.
53471         * modules/group-member (Depends-on): Likewise.
53472         * modules/mbchar (Depends-on): Likewise.
53473         * modules/memmem (Depends-on): Likewise.
53474         * modules/mempcpy (Depends-on): Likewise.
53475         * modules/memrchr (Depends-on): Likewise.
53476         * modules/pagealign_alloc (Depends-on): Likewise.
53477         * modules/readutmp (Depends-on): Likewise.
53478         * modules/stpcpy (Depends-on): Likewise.
53479         * modules/stpncpy (Depends-on): Likewise.
53480         * modules/strchrnul (Depends-on): Likewise.
53481         * modules/strndup (Depends-on): Likewise.
53482         * modules/strsep (Depends-on): Likewise.
53483         * modules/strverscmp (Depends-on): Likewise.
53484         * modules/vasprintf (Depends-on): Likewise.
53485         * modules/wcwidth (Depends-on): Likewise.
53486         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53487         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53488         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53491         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53492         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53493         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53494         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53495         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53497         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53499         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53500         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53501         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53502         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53503         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53505         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53506         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53507         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53508         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53509         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53510         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53513         so that lock.m4 can be used in gettext without extensions module.
53514
53515 2007-09-11  Bruno Haible  <bruno@clisp.org>
53516
53517         * m4/isc-posix.m4: Remove file.
53518         Suggested by Eric Blake.
53519
53520 2007-09-11  Eric Blake  <ebb9@byu.net>
53521
53522         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53523
53524 2007-09-10  Bruno Haible  <bruno@clisp.org>
53525
53526         * posix-modules: Fix typo in error message.
53527         Reported by Matt <mkraai@beckman.com>.
53528
53529 2007-09-09  Bruno Haible  <bruno@clisp.org>
53530
53531         * doc/functions/getdelim.texi: Update list of platforms lacking the
53532         function.
53533         * doc/functions/getline.texi: Likewise.
53534
53535 2007-09-09  Jim Meyering  <jim@meyering.net>
53536
53537         * lib/hash.c (hash_initialize): Detect calloc failure.
53538         Reported by Bruno Haible.
53539
53540 2007-09-09  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53543         malloc or realloc fails.
53544
53545 2007-09-09  Bruno Haible  <bruno@clisp.org>
53546
53547         * modules/getcwd (Depends-on): Add malloc-posix.
53548         * modules/glob (Depends-on): Likewise.
53549         * modules/putenv (Depends-on): Likewise.
53550         * modules/strdup (Depends-on): Likewise.
53551         * modules/getdelim (Depends-on): Add realloc-posix.
53552         * modules/read-file (Depends-on): Likewise.
53553
53554 2007-09-09  Bruno Haible  <bruno@clisp.org>
53555
53556         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53557         (gl_FUNC_MALLOC_POSIX): Require it.
53558         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53559         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53560         * modules/realloc (Files): Add m4/malloc.m4.
53561         * modules/calloc (Files): Likewise.
53562
53563 2007-09-09  Bruno Haible  <bruno@clisp.org>
53564
53565         * modules/malloc-posix: New file.
53566         * modules/malloc (Depends-on): Add malloc-posix.
53567         * lib/malloc.c: Include errno.h.
53568         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53569         and a POSIX-compatible malloc into a single function. Set ENOMEM
53570         when returning NULL.
53571         * m4/malloc.m4: New file.
53572         * doc/functions/malloc.texi: Mention the malloc-posix module.
53573         * lib/stdlib_.h (malloc): New declaration.
53574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53575         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53576         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53577         and HAVE_MALLOC_POSIX.
53578
53579 2007-09-09  Bruno Haible  <bruno@clisp.org>
53580
53581         * modules/realloc-posix: New file.
53582         * modules/realloc (Depends-on): Add realloc-posix.
53583         * lib/realloc.c: Include errno.h.
53584         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53585         and a POSIX-compatible realloc into a single function. Set ENOMEM
53586         when returning NULL.
53587         * m4/realloc.m4: New file.
53588         * doc/functions/realloc.texi: Mention the realloc-posix module.
53589         * lib/stdlib_.h (realloc): New declaration.
53590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53591         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53592         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53593         and HAVE_REALLOC_POSIX.
53594
53595 2007-09-09  Bruno Haible  <bruno@clisp.org>
53596
53597         * modules/calloc-posix: New file.
53598         * modules/calloc (Depends-on): Add calloc-posix.
53599         * lib/calloc.c: Include errno.h.
53600         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53601         and a POSIX-compatible calloc into a single function. Set ENOMEM
53602         when returning NULL.
53603         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53604         * doc/functions/calloc.texi: Mention the calloc-posix module.
53605         * lib/stdlib_.h (calloc): New declaration.
53606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53607         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53608         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53609         and HAVE_CALLOC_POSIX.
53610
53611 2007-09-09  Bruno Haible  <bruno@clisp.org>
53612
53613         Allow for modules to show an arbitrary notice.
53614         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53615         * gnulib-tool: New option --extract-notice.
53616         (func_usage): Document it.
53617         (sed_extract_prog): Update.
53618         (func_get_notice): New function.
53619         (func_modules_notice): New function.
53620         (func_import, func_create_testdir): Invoke it.
53621         Suggested by Jim Meyering.
53622
53623 2007-09-09  Bruno Haible  <bruno@clisp.org>
53624
53625         * gnulib-tool: New options --verbose, --quiet.
53626         (func_usage): Document them.
53627         (verbose): New variable.
53628         (func_execute_command): New function.
53629         (func_import): Don't show the module list and the file list if
53630         $verbose < 0.
53631         (func_create_testdir): Likewise. Use func_execute_command.
53632         (func_create_megatestdir): Use func_execute_command.
53633
53634 2007-09-08  Bruno Haible  <bruno@clisp.org>
53635
53636         * gnulib-tool (func_import): Prefer rsync over wget when available,
53637         for fetching the PO files.
53638
53639 2007-09-08  Bruno Haible  <bruno@clisp.org>
53640
53641         * posix-modules: New file. Portions copied from gnulib-tool.
53642         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53643
53644 2007-09-08  Jim Meyering  <jim@meyering.net>
53645
53646         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53647         * lib/fpending.h: Rename from __fpending.h.
53648         * lib/fpending.c: Rename from __fpending.c.
53649         Include "fpending.h", not "__fpending.h".
53650         * lib/__fpending.h, lib/__fpending.c: Remove files.
53651         * modules/fpending (Files): Reflect new file names.
53652         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53653
53654 2007-09-08  Bruno Haible  <bruno@clisp.org>
53655
53656         * m4/inttypes-h.m4: Remove stub file.
53657
53658 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53659
53660         * doc/headers/stdint.texi: Discuss #include_next issue.
53661
53662 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53665
53666 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53667
53668         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53669         in variable name.
53670
53671 2007-09-03  Jim Meyering  <jim@meyering.net>
53672
53673         New module: git-version-gen.
53674         * modules/git-version-gen: New file.
53675
53676         Import changes from coreutils for bootstrap script.
53677
53678         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53679
53680         bootstrap: uses rsync to download the .po files
53681         * build-aux/bootstrap (po_download_command_format): New global.
53682         (download_po_files): Use rsync.
53683         (update_po_files): Don't remove .po files after download,
53684         so future rsync runs can take advantage of the copies.
53685
53686         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53687
53688         Solve the unnecessary-.po-file-regeneration problem once and for all.
53689         * build-aux/bootstrap (download_po_files): New function, renamed from
53690         get_translations.  Now, downloads, but doesn't update LINGUAS.
53691         (update_po_files): New function.
53692
53693         bootstrap: Ignore more.
53694         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53695         uniwidth to e.g., lib/.gitignore.
53696         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53697
53698         * build-aux/bootstrap: New setting: vc_ignore.
53699         (insert_sorted_if_absent): Create $file if absent.
53700         Adapt to new, possibly empty, list: $vc_ignore.
53701
53702         bootstrap: generate more ignorable names
53703         * build-aux/bootstrap (slurp): When generating ignorable names,
53704         also map .sin to .sed, .gperf to .c, and .y to .c.
53705
53706 2007-09-03  Jim Meyering  <jim@meyering.net>
53707
53708         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53709         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53710
53711 2007-09-02  Bruno Haible  <bruno@clisp.org>
53712
53713         Fix mis-recognition of 'mcs' on QNX 6.
53714         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53715         output contains the string "Mono".
53716         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53717         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53718
53719 2007-09-01  Bruno Haible  <bruno@clisp.org>
53720
53721         Fix collision between uniwidth/* and linebreak modules.
53722         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53723         u32_width): Remove declarations.
53724         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53725         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53726         streq3, streq2, streq1, streq0): Remove functions.
53727         (STREQ): Remove macro.
53728         (is_cjk_encoding): Remove function.
53729         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53730         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53731         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53732         * NEWS: Document the change.
53733
53734 2007-09-01  Bruno Haible  <bruno@clisp.org>
53735
53736         * lib/streq.h: Add double-inclusion guard.
53737
53738 2007-09-01  Karl Berry  <karl@gnu.org>
53739
53740         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53741
53742 2007-08-28  Jim Meyering  <jim@meyering.net>
53743
53744         Rename mreadlink_with_size to areadlink_with_size.
53745         * NEWS: Document the change.
53746         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53747         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53748         * lib/mreadlink.h: Rename this to...
53749         * lib/areadlink.h: ...this.
53750         * modules/mreadlink-with-size: Rename this to...
53751         * modules/areadlink-with-size: ...this.
53752         * lib/canonicalize.c: Reflect the renaming.
53753         * modules/canonicalize: Likewise.
53754
53755 2007-08-26  Bruno Haible  <bruno@clisp.org>
53756
53757         * gnulib-tool (func_import): When deciding which files to remove,
53758         consider also dangling symbolic links.
53759         Reported by Eric Blake.
53760
53761 2007-08-26  Bruno Haible  <bruno@clisp.org>
53762
53763         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53764
53765 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53766
53767         * lib/readline.c: Don't include getline.h, the prototype is now
53768         found in stdio.h.
53769
53770 2007-08-23  Jim Meyering  <jim@meyering.net>
53771
53772         Getdelim touchup.
53773         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53774         around the funlockfile call, since funlockfile never sets errno.
53775         Don't set errno upon failed realloc.
53776
53777 2007-08-22  Eric Blake  <ebb9@byu.net>
53778
53779         Getline touchups.
53780         * lib/getdelim.c (getdelim): Revert regression that required *n to
53781         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53782         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53783         getdelim, rather than whether implementation is missing.
53784         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53785         * lib/stdio_.h (getline): Also declare if replacement is
53786         required.
53787         * doc/functions/getdelim.texi: New file.
53788         * doc/functions/getline.texi: Likewise.
53789         * doc/gnulib.texi (Function Substitutes): Add new files.
53790         Reported by Bruno Haible.
53791
53792 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53793
53794         * users.txt: Add Guile.
53795
53796 2007-08-22  Eric Blake  <ebb9@byu.net>
53797
53798         * tests/test-getdelim.c (main): Use remove, not unlink.
53799         * tests/test-getline.c (main): Likewise.
53800
53801         Move getline and getdelim into stdio.h, per POSIX 200x.
53802         * modules/getline (Files): Remove getline.h.
53803         (Depends-on): Add stdio.
53804         (configure.ac): Add module indicator.
53805         * modules/getdelim (Files): Remove getdelim.h.
53806         (Depends-on): Add stdio.
53807         (configure.ac): Add module indicator.
53808         * modules/stdio (Makefile.am): Work with new indicators.
53809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53811         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53812         * lib/getdelim.h: Delete.
53813         * lib/getline.h: Delete.
53814         * lib/stdio_.h (getdelim, getline): Declare.
53815         * modules/getdelim-tests: New module.
53816         * modules/getline-tests: Likewise.
53817         * tests/test-getdelim.c: New file.
53818         * tests/test-getline.c: Likewise.
53819         * NEWS: Document the change.
53820         * lib/getline.c: Update choice of header.
53821         * lib/csharpcomp.c: Likewise.
53822         * lib/getpass.c: Likewise.
53823         * lib/javacomp.c: Likewise.
53824         * lib/javaversion.c: Likewise.
53825         * lib/yesno.c: Likewise.
53826         * lib/getdelim.c: Likewise.
53827         (getdelim): Set errno on failure, and avoid memory leak.
53828
53829 2007-08-19  Bruno Haible  <bruno@clisp.org>
53830
53831         * modules/closein (Depends-on): Add freadahead.
53832         * lib/closein.c: Include freadahead.h.
53833         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53834         is zero.
53835
53836 2007-08-19  Bruno Haible  <bruno@clisp.org>
53837
53838         * modules/freadahead-tests: New file.
53839         * tests/test-freadahead.sh: New file.
53840         * tests/test-freadahead.c: New file.
53841
53842         * modules/freadahead: New file.
53843         * lib/freadahead.h: New file.
53844         * lib/freadahead.c: New file.
53845         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53846         fbufmode, fpurge, freadable, fwritable.
53847
53848 2007-08-19  Eric Blake  <ebb9@byu.net>
53849
53850         Test yesno in combination with closein.
53851         * lib/yesno.c (yesno): Document use of stdin.
53852         * modules/yesno-tests (Files): New module.
53853         * tests/test-yesno.c (main): New file.
53854         * tests/test-yesno.sh: Likewise.
53855
53856 2007-08-19  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53859         * lib/fseeko.c (rpl_fseeko): Likewise.
53860         * lib/fseterr.c (fseterr): Likewise.
53861
53862 2007-08-19  Bruno Haible  <bruno@clisp.org>
53863
53864         * tests/test-lseek.c (main): Disable a test for BeOS.
53865         * doc/functions/lseek.texi: Document the BeOS bug.
53866
53867 2007-08-19  Bruno Haible  <bruno@clisp.org>
53868             Eric Blake  <ebb9@byu.net>
53869
53870         * lib/lseek.c: Include <sys/stat.h>.
53871         (rpl_lseek): Add workaround code also for Unix platforms.
53872         Needed for BeOS.
53873         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53874         * doc/functions/lseek.texi: Document BeOS definiency.
53875
53876 2007-08-18  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/fstrcmp-tests: New file.
53879         * tests/test-fstrcmp.c: New file.
53880
53881 2007-08-18  Bruno Haible  <bruno@clisp.org>
53882
53883         * modules/fstrcmp: New file, from GNU gettext with modifications.
53884         * lib/fstrcmp.h: New file, from GNU gettext.
53885         * lib/fstrcmp.c: New file, from GNU gettext.
53886         * MODULES.html.sh (String handling): Add fstrcmp.
53887
53888 2007-08-18  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53891         'bool'.
53892         (diag, compareseq): Remove const from the ctxt argument.
53893         (USE_HEURISTIC): Undefine at the end.
53894
53895 2007-08-18  Jim Meyering  <jim@meyering.net>
53896
53897         New file: lib/idcache.h
53898         * NEWS: Mention the addition.
53899         * modules/idcache (Files): Add lib/idcache.h
53900         * lib/idcache.c: Include "idcache.h".
53901         Don't include <sys/types.h>.
53902         Add a FIXME comment.
53903         Move file-scoped "static" declarations to the top.
53904         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53905
53906 2007-08-17  Bruno Haible  <bruno@clisp.org>
53907         and Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * MODULES.html.sh: Add diffseq.
53910         * modules/diffseq: New file.
53911         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53912         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53913
53914 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         Import changes from coreutils for bootstrap script.
53917
53918         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         * build-aux/bootstrap (slurp): Work even in environments where
53921         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53922         current code does not slurp files whose names start with ".", and
53923         this looks like it might be a troublesome area.
53924
53925         2007-07-11  Jim Meyering  <jim@meyering.net>
53926
53927         If there's a GPL vN copyright comment, require that N == 3.
53928
53929         2007-07-08  Jim Meyering  <jim@meyering.net>
53930
53931         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53932         * build-aux/bootstrap (mam_template): Move definition out of loop.
53933
53934         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53935
53936         * build-aux/bootstrap (symlink_to_dir): Rename function from
53937         symlink_to_gnulib.  Add a directory parameter.  Update all
53938         callers.
53939         (cp_mark_as_generated): Also check for -- and link to -- files in
53940         gl/.
53941
53942         2007-07-08  Jim Meyering  <jim@meyering.net>
53943
53944         Adapt to deeper hierarchy in gnulib.
53945         * build-aux/bootstrap (symlink_to_dir): If the destination
53946         directory doesn't exist, create it. This is required at least for
53947         "lib/uniwidth/cjk.h".
53948
53949         2007-05-15  Jim Meyering  <jim@meyering.net>
53950
53951         * build-aux/bootstrap: Now that generated Makefile.am files
53952         are no longer under version control, they must be created at
53953         bootstrap time.
53954
53955 2007-08-14  Ben Pfaff  <blp@gnu.org>
53956
53957         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53958
53959 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53962         given the changes below.
53963         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53964         even on hosts that have padding bits beyond the supported 64.
53965
53966 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53967
53968         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53969         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53970         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53971         depends on it.
53972         (xstrtol_error): Remove.
53973         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53974         but with a different signature.
53975         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53976         * lib/xstrtol-error.c: Include exitfail.h.
53977         (xstrtol_fatal): New function, with a different signature from the
53978         old xstrtol_error, so that the caller need not worry about passing
53979         in an exit status, or about storage management of the option argument.
53980         (xstrtol_error): Now a static function.  Redo signature to
53981         implement xstrtol_fatal.  Output the correct number of hyphens in
53982         front of the option so that the caller need not worry about
53983         storage management.
53984         (N_): New macro.
53985         (_): Remove; not used now.
53986         * modules/xstrtol: Depend on getopt.
53987         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53988         of old STRTOL_FATAL_ERROR macro.
53989         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53990         of test program.
53991         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53992         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53993
53994 2007-08-08  Eric Blake  <ebb9@byu.net>
53995
53996         * lib/xstrtol-error.c: Add missing include.
53997
53998         Move xstrtol messages into gnulib domain, when --pobase is used.
53999         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54000         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54001         * modules/xstrtol (Files): Distribute new file.
54002         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54003         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54004         * tests/test-xstrtol.c: ...into new file.
54005         * tests/test-xstrtoul.c: Also test xstrtoul.
54006         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54007         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54008         * tests/test-xstrtol.sh: Drive the tests.
54009         * tests/test-xstrtoimax.sh: Likewise.
54010         * tests/test-xstrtoumax.sh: Likewise.
54011         * modules/xstrtol-tests: New module.
54012         * modules/xstrtoimax-tests: Likewise.
54013         * modules/xstrtoumax-tests: Likewise.
54014
54015 2007-08-08  Jim Meyering  <jim@meyering.net>
54016
54017         New function: mfile_name_concat.
54018         * lib/filenamecat.c (mfile_name_concat): New function, just like
54019         file_name_concat, but return NULL upon failure rather than exiting
54020         with a diagnostic.
54021         * lib/filenamecat.h: Declare it.
54022
54023 2007-08-07  Bruno Haible  <bruno@clisp.org>
54024
54025         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54026         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54027         warning from gcc.
54028         Reported by Eric Blake.
54029
54030 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54031
54032         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54033         * modules/crypto/arcfour (License): Likewise.
54034         * modules/crypto/des-tests (License): Likewise.
54035         * modules/crypto/gc-arctwo-tests (License): Likewise.
54036         * modules/crypto/gc-des-tests (License): Likewise.
54037         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54038         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54039         * modules/crypto/gc-md2-tests (License): Likewise.
54040         * modules/crypto/gc-md4-tests (License): Likewise.
54041         * modules/crypto/gc-md5-tests (License): Likewise.
54042         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54043         * modules/crypto/gc-rijndael-tests (License): Likewise.
54044         * modules/crypto/gc-sha1-tests (License): Likewise.
54045         * modules/crypto/gc-tests (License): Likewise.
54046         * modules/crypto/hmac-md5 (License): Likewise.
54047         * modules/crypto/hmac-sha1 (License): Likewise.
54048         * modules/crypto/md2-tests (License): Likewise.
54049         * modules/crypto/md4-tests (License): Likewise.
54050         * modules/crypto/md5 (License): Likewise.
54051         * modules/crypto/rijndael (License): Likewise.
54052         * modules/crypto/sha1 (License): Likewise.
54053         * modules/memxor (License): Likewise.
54054
54055 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54056         and Bruno Haible  <bruno@clisp.org>
54057
54058         * NEWS: Describe interface changes to human, xstrtol.
54059         * lib/human.h: Include <xstrtol.h>.
54060         (human_options): Return enum strtol_error, not int.  Remove
54061         bool arg; take int * instead.
54062         * lib/human.c: Don't include "gettext.h".
54063         (_): Remove; no longer used.
54064         Don't include <xstrtol.h>, since human.h does it.
54065         (human_options): Adjust to abovementioned interface changes.
54066         Do not report error to stderr; that's now the caller's
54067         responsibility.
54068         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54069         interface change.
54070         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54071         Str, Argument_type_string.  All uses changed.  Put " argument"
54072         in diagnostics to make them clearer.  Change wording of suffix
54073         message for clarity.
54074         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54075         Argument_type_string.
54076         (STRTOL_FATAL_WARN): Remove; no longer used.
54077         * modules/human (Depends-on): Remove gettext-h.
54078
54079 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54080
54081         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54082
54083 2007-07-31  Bruno Haible  <bruno@clisp.org>
54084
54085         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54086         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54087         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54088
54089 2007-07-31  Bruno Haible  <bruno@clisp.org>
54090
54091         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54092         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54093
54094 2007-07-30  Bruno Haible  <bruno@clisp.org>
54095
54096         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54097         * modules/c-ctype (License): Likewise.
54098         * modules/c-strcase (License): Likewise.
54099         * modules/check-version (License): Likewise.
54100         * modules/iconv (License): Likewise.
54101         * modules/iconv_open (License): Likewise.
54102         * modules/read-file (License): Likewise.
54103         * modules/striconv (License): Likewise.
54104         * modules/strverscmp (License): Likewise.
54105         * modules/vasprintf (License): Likewise.
54106         * modules/crypto/des (License): Likewise.
54107         * modules/crypto/gc (License): Likewise.
54108         * modules/crypto/gc-arcfour (License): Likewise.
54109         * modules/crypto/gc-arctwo (License): Likewise.
54110         * modules/crypto/gc-des (License): Likewise.
54111         * modules/crypto/gc-hmac-md5 (License): Likewise.
54112         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54113         * modules/crypto/gc-md2 (License): Likewise.
54114         * modules/crypto/gc-md4 (License): Likewise.
54115         * modules/crypto/gc-md5 (License): Likewise.
54116         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54117         * modules/crypto/gc-random (License): Likewise.
54118         * modules/crypto/gc-rijndael (License): Likewise.
54119         * modules/crypto/gc-sha1 (License): Likewise.
54120         * modules/crypto/md2 (License): Likewise.
54121         * modules/crypto/md4 (License): Likewise.
54122
54123 2007-07-30  Jim Meyering  <jim@meyering.net>
54124
54125         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54126         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54127         it has valid stat data.  This bug would cause du not to count the
54128         sizes of inaccessible directories.
54129         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54130         in <http://bugzilla.redhat.com/250077>.
54131
54132 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54133             Bruno Haible  <bruno@clisp.org>
54134
54135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54136         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54137         #include_next, gives a diagnostic about it, but reports no error in
54138         the exit code.
54139         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54140
54141 2007-07-24  Ben Pfaff  <blp@gnu.org>
54142
54143         Improve name: "count-one-bits" is better than "popcount".
54144         * MODULES.html.sh: Update name.
54145         * lib/popcount.h: Renamed lib/count-one-bits.h.
54146         (popcount): Renamed count_one_bits.
54147         (popcountl): Renamed count_one_bits_l.
54148         (popcountll): Renamed count_one_bits_ll.
54149         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54150         * modules/popcount: Renamed module/count-one-bits.
54151         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54152         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54153
54154 2007-07-23  Ben Pfaff  <blp@gnu.org>
54155
54156         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54157         better code generation, and add U to large constants to avoid
54158         warnings, in non-GCC case.
54159         Suggested by Bruno Haible.
54160
54161 2007-07-23  Ben Pfaff  <blp@gnu.org>
54162
54163         * lib/popcount.h: Use verify_true instead of if...abort.
54164         * modules/popcount: Depend on verify module.
54165         Suggested by Jim Meyering.
54166
54167 2007-07-23  Bruno Haible  <bruno@clisp.org>
54168
54169         * gnulib-tool (func_import): Create a .cvsignore file also when the
54170         directory is not yet in CVS but the toplevel directory is. When
54171         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54172         Reported by Karl Berry.
54173
54174 2007-07-22  Ben Pfaff  <blp@gnu.org>
54175
54176         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54177         case.
54178         Suggested by Eric Blake.
54179
54180 2007-07-22  Ben Pfaff  <blp@gnu.org>
54181
54182         New module: popcount.
54183         * MODULES.html.sh: Add popcount.
54184         * modules/popcount: New file.
54185         * modules/popcount-tests: New file.
54186         * tests/test-popcount.c: New file.
54187         * lib/popcount.h: New file.
54188         * m4/popcount.m4: New file.
54189
54190 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * build-aux/announce-gen: Update to GPLv3.
54193
54194         * build-aux/config.guess: Update from config.
54195
54196 2007-07-21  Bruno Haible  <bruno@clisp.org>
54197
54198         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54199         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54200
54201 2007-07-20  Jim Meyering  <jim@meyering.net>
54202
54203         * check-module: Diagnose a self-dependency.
54204
54205 2007-07-19  Bruno Haible  <bruno@clisp.org>
54206
54207         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54208         empty.
54209         Reported by Eric Blake.
54210
54211 2007-07-18  Bruno Haible  <bruno@clisp.org>
54212
54213         * gnulib-tool: New options --po-base, --po-domain.
54214         (func_usage): Document them.
54215         (pobase, po_domain): New variables.
54216         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54217         DEFAULT_TEXT_DOMAIN.
54218         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54219         (func_import): Consider pobase and po_domain. Create a po/ directory.
54220         (func_create_testdir): Set pobase and po_domain to empty.
54221         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54222         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54223
54224 2007-07-18  Bruno Haible  <bruno@clisp.org>
54225
54226         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54227         EXTRA_DIST augmentation for files in build-aux/.
54228
54229 2007-07-16  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54232         * modules/getdelim (License): Likewise.
54233
54234 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54235
54236         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54237         * modules/d-type (License): Likewise.
54238         * modules/extensions (License): Likewise.
54239         * modules/fnmatch (License): Likewise.
54240         * modules/fseeko (License): Likewise.
54241         * modules/getaddrinfo (License): Likewise.
54242         * modules/getline (License): Likewise.
54243         * modules/getlogin_r (License): Likewise.
54244         * modules/getpass (License): Likewise.
54245         * modules/gettimeofday (License): Likewise.
54246         * modules/glob (License): Likewise.
54247         * modules/inet_ntop (License): Likewise.
54248         * modules/malloc (License): Likewise.
54249         * modules/malloca (License): Likewise.
54250         * modules/memmem (License): Likewise.
54251         * modules/mempcpy (License): Likewise.
54252         * modules/memset (License): Likewise.
54253         * modules/minmax (License): Likewise.
54254         * modules/mktime (License): Likewise.
54255         * modules/netinet_in (License): Likewise.
54256         * modules/pathmax (License): Likewise.
54257         * modules/poll (License): Likewise.
54258         * modules/regex (License): Likewise.
54259         * modules/snprintf (License): Likewise.
54260         * modules/stdbool (License): Likewise.
54261         * modules/stdint (License): Likewise.
54262         * modules/stdio (License): Likewise.
54263         * modules/strcase (License): Likewise.
54264         * modules/strcasestr (License): Likewise.
54265         * modules/strdup (License): Likewise.
54266         * modules/string (License): Likewise.
54267         * modules/strndup (License): Likewise.
54268         * modules/strnlen (License): Likewise.
54269         * modules/strpbrk (License): Likewise.
54270         * modules/strptime (License): Likewise.
54271         * modules/strsep (License): Likewise.
54272         * modules/sys_select (License): Likewise.
54273         * modules/sys_socket (License): Likewise.
54274         * modules/sys_stat (License): Likewise.
54275         * modules/sys_time (License): Likewise.
54276         * modules/time (License): Likewise.
54277         * modules/time_r (License): Likewise.
54278         * modules/timegm (License): Likewise.
54279         * modules/unistd (License): Likewise.
54280         * modules/vsnprintf (License): Likewise.
54281         * modules/wctype (License): Likewise.
54282
54283 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54284
54285         * modules/argz (License): LGPLv2+.
54286
54287 2007-07-15  Karl Berry  <karl@gnu.org>
54288
54289         * doc/gnulib.texi: revise node structure per new fdl.texi.
54290
54291 2007-07-14  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54294         the output file.
54295         * lib/uniname/uninames.h: Regenerated.
54296
54297 2007-07-14  Karl Berry  <karl@gnu.org>
54298
54299         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54300         omitting sectioning and index commands.
54301
54302 2007-07-13  Bruno Haible  <bruno@clisp.org>
54303
54304         New gnulib-tool option --more-symlinks.
54305         * gnulib-tool (func_usage): Document --more-symlinks.
54306         (do_copyrights): New variable.
54307         Recognize option --more-symlinks.
54308         (func_import): Don't add a copyright notice transform to
54309         sed_transform_lib_file if do_copyrights is empty.
54310
54311 2007-07-13  Bruno Haible  <bruno@clisp.org>
54312
54313         * lib/vasnprintf.c (decimal_point_char): Define also if
54314         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54315         && !NEED_PRINTF_DIRECTIVE_A.
54316         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54317         Gary V. Vaughan <gary@gnu.org>.
54318
54319 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54320
54321         * lib/inttypes_.h: Undo previous change, since it was fixed
54322         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54323
54324 2007-07-13  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54327         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54328
54329 2007-07-13  Jim Meyering  <jim@meyering.net>
54330
54331         df: Don't fail for Tru64's "file-on-file mount".
54332         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54333         so we fall through and use statfs instead.  Details here:
54334         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54335         Reported by Albert Chin.
54336
54337 2007-07-13  Bruno Haible  <bruno@clisp.org>
54338
54339         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54340         * modules/configmake (License): Likewise.
54341         * modules/gettext (License): Likewise.
54342         * modules/gettext-h (License): Likewise.
54343         * modules/include_next (License): Likewise.
54344         * modules/link-warning (License): Likewise.
54345         * modules/localcharset (License): Likewise.
54346         * modules/localename (License): Likewise.
54347         * modules/lock (License): Likewise.
54348         * modules/relocatable-lib-lgpl (License): Likewise.
54349         * modules/size_max (License): Likewise.
54350         * modules/vasnprintf (License): Likewise.
54351         * modules/wchar (License): Likewise.
54352         * modules/xsize (License): Likewise.
54353
54354 2007-07-13  Bruno Haible  <bruno@clisp.org>
54355
54356         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54357         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54358
54359 2007-07-12  Bruno Haible  <bruno@clisp.org>
54360
54361         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54362         in the modules files.
54363
54364 2007-07-11  Karl Berry  <karl@gnu.org>
54365
54366         * MODULES.html.sh (func_module): use
54367          sed -e '\|^'"${includefile}"'$|d'
54368          instead of /.../d, to avoid errors on $includefile's containing /.
54369
54370 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54371
54372         * gnulib-tool (func_import): Avoid duplication of --avoid
54373         statements
54374         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54375         names to `_' in variable names.
54376
54377 2007-07-10  Eric Blake  <ebb9@byu.net>
54378
54379         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54380         * NEWS: Document this change.
54381
54382 2007-07-08  Bruno Haible  <bruno@clisp.org>
54383
54384         Update to Unicode 5.0.
54385         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54386         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54387         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54388         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54389         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54390         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54391         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54392         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54393         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54394         U+10A3F, U+1D242..U+1D244.
54395         (nonspacing_table_ind): Update.
54396         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54397         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54398
54399 2007-07-08  Bruno Haible  <bruno@clisp.org>
54400
54401         Update to Unicode 5.0.
54402         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54403         code transform. Extend the name index field of unicode_name_to_code and
54404         unicode_code_to_name from 16 to 24 bits.
54405         * lib/uniname/uniname.c (unicode_character_name,
54406         unicode_name_character): Add the range 0x12xxx to the code transform.
54407         * lib/uniname/uninames.h: Regenerated.
54408         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54409
54410 2007-07-07  Bruno Haible  <bruno@clisp.org>
54411
54412         * modules/wcwidth-tests: New file.
54413         * tests/test-wcwidth.c: New file.
54414
54415         Work around MacOS X wcwidth() bug.
54416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54417         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54418         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54419         original wcwidth in non-UTF-8 locales.
54420         * modules/wcwidth (Depends-on): Add localcharset, streq,
54421         uniwidth/width.
54422         * doc/functions/wcwidth.texi: Update.
54423
54424 2007-07-07  Bruno Haible  <bruno@clisp.org>
54425
54426         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54427         (wcwidth): New declaration.
54428         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54429         macros.
54430         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54431         here. Prepare for creating <wchar.h> unconditionally.
54432         * modules/wchar (Depends-on): Add link-warning.
54433         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54434         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54435         * lib/wcwidth.h: Remove file.
54436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54437         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54438         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54439         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54440         (Include): Replace wcwidth.h with <wchar.h>.
54441         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54442         * lib/mbchar.h: Don't include wcwidth.h.
54443         * lib/mbswidth.c: Likewise.
54444         * NEWS: Mention the change.
54445
54446 2007-07-07  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54449         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54450         definition with an external declaration.
54451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54452         defined as a function. Remove AC_C_INLINE requirement.
54453         * modules/wcwidth (Files): Add lib/wcwidth.c.
54454         (Makefile.am): Remove redundant statement.
54455
54456 2007-07-07  Bruno Haible  <bruno@clisp.org>
54457
54458         * MODULES.html.sh (Unicode string functions): Add the new modules.
54459
54460         * tests/uniwidth/test-u32-strwidth.c: New file.
54461         * modules/uniwidth/u32-strwidth-tests: New file.
54462
54463         * lib/uniwidth/u32-strwidth.c: New file.
54464         * modules/uniwidth/u32-strwidth: New file.
54465
54466         * tests/uniwidth/test-u16-strwidth.c: New file.
54467         * modules/uniwidth/u16-strwidth-tests: New file.
54468
54469         * lib/uniwidth/u16-strwidth.c: New file.
54470         * modules/uniwidth/u16-strwidth: New file.
54471
54472         * tests/uniwidth/test-u8-strwidth.c: New file.
54473         * modules/uniwidth/u8-strwidth-tests: New file.
54474
54475         * lib/uniwidth/u8-strwidth.c: New file.
54476         * modules/uniwidth/u8-strwidth: New file.
54477
54478         * tests/uniwidth/test-u32-width.c: New file.
54479         * modules/uniwidth/u32-width-tests: New file.
54480
54481         * lib/uniwidth/u32-width.c: New file.
54482         * modules/uniwidth/u32-width: New file.
54483
54484         * tests/uniwidth/test-u16-width.c: New file.
54485         * modules/uniwidth/u16-width-tests: New file.
54486
54487         * lib/uniwidth/u16-width.c: New file.
54488         * modules/uniwidth/u16-width: New file.
54489
54490         * tests/uniwidth/test-u8-width.c: New file.
54491         * modules/uniwidth/u8-width-tests: New file.
54492
54493         * lib/uniwidth/u8-width.c: New file.
54494         * modules/uniwidth/u8-width: New file.
54495
54496         * tests/uniwidth/test-uc_width.c: New file.
54497         * modules/uniwidth/width-tests: New file.
54498
54499         * lib/uniwidth/width.c: New file, from GNU libiconv.
54500         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54501         * modules/uniwidth/width: New file.
54502
54503         * lib/uniwidth.h: New file, from GNU libiconv.
54504         * modules/uniwidth/base: New file.
54505
54506 2007-07-07  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/uniname.h: New file, from GNU gettext.
54509         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54510         * lib/uniname/uninames.h: New file, from GNU gettext.
54511         * lib/uniname/uniname.c: New file, from GNU gettext.
54512         * tests/uniname/test-uninames.sh: New file.
54513         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54514         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54515         * modules/uniname/base: New file.
54516         * modules/uniname/uniname: New file.
54517         * modules/uniname/uniname-tests: New file.
54518         * MODULES.html.sh (Unicode string functions): Add the new modules.
54519
54520 2007-07-06  Bruno Haible  <bruno@clisp.org>
54521
54522         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54523
54524 2007-07-06  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54527         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54528         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54529         include <sys/time.h>.
54530         Reported by Eric Blake.
54531
54532 2007-07-06  Eric Blake  <ebb9@byu.net>
54533
54534         Fix testing canonicalize on cygwin.
54535         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54536         Revert patch from 2007-06-19.
54537         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54538         canonicalize module is also in use.
54539         * tests/test-canonicalize.c: New file.
54540         * tests/test-canonicalize.sh: Likewise.
54541         * modules/canonicalize-tests: Likewise.
54542
54543 2007-07-06  Jim Meyering  <jim@meyering.net>
54544
54545         * lib/getugroups.c (getugroups): Detect getgrent failure.
54546         Adjust comment to reflect reality: this function may return -1.
54547
54548 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54549
54550         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54551         the new TP address.
54552         (usage): Fix typo
54553         (gnulib_mk): New variable.
54554
54555 2007-07-05  Jim Meyering  <jim@meyering.net>
54556
54557         Don't let endgrent clobber errno, no matter how improbable.
54558         * lib/getugroups.c (getugroups): Save and restore errno around
54559         endgrent call.
54560
54561         Close the group DB even when failing with 2^31 or more members.
54562         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54563
54564 2007-07-04  Jim Meyering  <jim@meyering.net>
54565
54566         * lib/getugroups.h: New file.
54567         * lib/getugroups.c: Include "getugroups.h".
54568         Remove uses of "register" keyword.
54569         Move local variable, "cp", down into scope where used.
54570         Give "username" parameter the "const" attribute.
54571         * modules/getugroups (Files): Add lib/getugroups.h
54572
54573 2007-07-04  Karl Berry  <karl@gnu.org>
54574
54575         * MODULES.html.sh (func_all_modules): Complete rename of
54576         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54577
54578 2007-07-02  Bruno Haible  <bruno@clisp.org>
54579
54580         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54581         mode, when inttypes.h comes from gnulib.
54582         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54583
54584 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54585
54586         * NEWS: Mention lgpl module name change.
54587
54588         * modules/lgpl-2.1: Renamed from lgpl.
54589
54590         * NEWS: Mention gpl module name change.
54591
54592         * modules/gpl-3.0: New file, based on gpl-2.0.
54593
54594         * modules/gpl-2.0: Renamed from gpl.
54595
54596         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54597         doc/gpl-2.0.texi.
54598
54599 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54602         #define __STDC_LIMIT_MACROS temporarily while including
54603         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54604         Problem reported by Joel E. Denny in
54605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54606
54607 2007-07-01  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/unistdio.h: New file.
54610         * lib/unistdio/u-asnprintf.h: New file.
54611         * lib/unistdio/u-asprintf.h: New file.
54612         * lib/unistdio/u-printf-args.c: New file.
54613         * lib/unistdio/u-printf-args.h: New file.
54614         * lib/unistdio/u-printf-parse.h: New file.
54615         * lib/unistdio/u-snprintf.h: New file.
54616         * lib/unistdio/u-sprintf.h: New file.
54617         * lib/unistdio/u-vasprintf.h: New file.
54618         * lib/unistdio/u-vsnprintf.h: New file.
54619         * lib/unistdio/u-vsprintf.h: New file.
54620         * lib/unistdio/ulc-asnprintf.c: New file.
54621         * lib/unistdio/ulc-asprintf.c: New file.
54622         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54623         * lib/unistdio/ulc-printf-parse.c: New file.
54624         * lib/unistdio/ulc-snprintf.c: New file.
54625         * lib/unistdio/ulc-sprintf.c: New file.
54626         * lib/unistdio/ulc-vasnprintf.c: New file.
54627         * lib/unistdio/ulc-vasprintf.c: New file.
54628         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54629         * lib/unistdio/ulc-vsnprintf.c: New file.
54630         * lib/unistdio/ulc-vsprintf.c: New file.
54631         * lib/unistdio/u8-asnprintf.c: New file.
54632         * lib/unistdio/u8-asprintf.c: New file.
54633         * lib/unistdio/u8-printf-parse.c: New file.
54634         * lib/unistdio/u8-snprintf.c: New file.
54635         * lib/unistdio/u8-sprintf.c: New file.
54636         * lib/unistdio/u8-vasnprintf.c: New file.
54637         * lib/unistdio/u8-vasprintf.c: New file.
54638         * lib/unistdio/u8-vsnprintf.c: New file.
54639         * lib/unistdio/u8-vsprintf.c: New file.
54640         * lib/unistdio/u8-u8-asnprintf.c: New file.
54641         * lib/unistdio/u8-u8-asprintf.c: New file.
54642         * lib/unistdio/u8-u8-snprintf.c: New file.
54643         * lib/unistdio/u8-u8-sprintf.c: New file.
54644         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54645         * lib/unistdio/u8-u8-vasprintf.c: New file.
54646         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54647         * lib/unistdio/u8-u8-vsprintf.c: New file.
54648         * lib/unistdio/u16-asnprintf.c: New file.
54649         * lib/unistdio/u16-asprintf.c: New file.
54650         * lib/unistdio/u16-printf-parse.c: New file.
54651         * lib/unistdio/u16-snprintf.c: New file.
54652         * lib/unistdio/u16-sprintf.c: New file.
54653         * lib/unistdio/u16-vasnprintf.c: New file.
54654         * lib/unistdio/u16-vasprintf.c: New file.
54655         * lib/unistdio/u16-vsnprintf.c: New file.
54656         * lib/unistdio/u16-vsprintf.c: New file.
54657         * lib/unistdio/u16-u16-asnprintf.c: New file.
54658         * lib/unistdio/u16-u16-asprintf.c: New file.
54659         * lib/unistdio/u16-u16-snprintf.c: New file.
54660         * lib/unistdio/u16-u16-sprintf.c: New file.
54661         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54662         * lib/unistdio/u16-u16-vasprintf.c: New file.
54663         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54664         * lib/unistdio/u16-u16-vsprintf.c: New file.
54665         * lib/unistdio/u32-asnprintf.c: New file.
54666         * lib/unistdio/u32-asprintf.c: New file.
54667         * lib/unistdio/u32-printf-parse.c: New file.
54668         * lib/unistdio/u32-snprintf.c: New file.
54669         * lib/unistdio/u32-sprintf.c: New file.
54670         * lib/unistdio/u32-vasnprintf.c: New file.
54671         * lib/unistdio/u32-vasprintf.c: New file.
54672         * lib/unistdio/u32-vsnprintf.c: New file.
54673         * lib/unistdio/u32-vsprintf.c: New file.
54674         * lib/unistdio/u32-u32-asnprintf.c: New file.
54675         * lib/unistdio/u32-u32-asprintf.c: New file.
54676         * lib/unistdio/u32-u32-snprintf.c: New file.
54677         * lib/unistdio/u32-u32-sprintf.c: New file.
54678         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54679         * lib/unistdio/u32-u32-vasprintf.c: New file.
54680         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54681         * lib/unistdio/u32-u32-vsprintf.c: New file.
54682         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54683         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54684         * tests/unistdio/test-ulc-printf1.h: New file.
54685         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54686         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54687         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54688         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54689         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54690         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54691         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54692         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54693         * tests/unistdio/test-u8-asnprintf1.c: New file.
54694         * tests/unistdio/test-u8-asnprintf1.h: New file.
54695         * tests/unistdio/test-u8-printf1.h: New file.
54696         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54697         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54698         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54699         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54700         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54701         * tests/unistdio/test-u8-vasprintf1.c: New file.
54702         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54703         * tests/unistdio/test-u8-vsprintf1.c: New file.
54704         * tests/unistdio/test-u16-asnprintf1.c: New file.
54705         * tests/unistdio/test-u16-asnprintf1.h: New file.
54706         * tests/unistdio/test-u16-printf1.h: New file.
54707         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54708         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54709         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54710         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54711         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54712         * tests/unistdio/test-u16-vasprintf1.c: New file.
54713         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54714         * tests/unistdio/test-u16-vsprintf1.c: New file.
54715         * tests/unistdio/test-u32-asnprintf1.c: New file.
54716         * tests/unistdio/test-u32-asnprintf1.h: New file.
54717         * tests/unistdio/test-u32-printf1.h: New file.
54718         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54719         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54720         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54721         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54722         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54723         * tests/unistdio/test-u32-vasprintf1.c: New file.
54724         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54725         * tests/unistdio/test-u32-vsprintf1.c: New file.
54726         * modules/unistdio/base: New file.
54727         * modules/unistdio/u-printf-args: New file.
54728         * modules/unistdio/ulc-asnprintf: New file.
54729         * modules/unistdio/ulc-asprintf: New file.
54730         * modules/unistdio/ulc-fprintf: New file.
54731         * modules/unistdio/ulc-printf-parse: New file.
54732         * modules/unistdio/ulc-snprintf: New file.
54733         * modules/unistdio/ulc-sprintf: New file.
54734         * modules/unistdio/ulc-vasnprintf: New file.
54735         * modules/unistdio/ulc-vasprintf: New file.
54736         * modules/unistdio/ulc-vfprintf: New file.
54737         * modules/unistdio/ulc-vsnprintf: New file.
54738         * modules/unistdio/ulc-vsprintf: New file.
54739         * modules/unistdio/u8-asnprintf: New file.
54740         * modules/unistdio/u8-asprintf: New file.
54741         * modules/unistdio/u8-printf-parse: New file.
54742         * modules/unistdio/u8-snprintf: New file.
54743         * modules/unistdio/u8-sprintf: New file.
54744         * modules/unistdio/u8-vasnprintf: New file.
54745         * modules/unistdio/u8-vasprintf: New file.
54746         * modules/unistdio/u8-vsnprintf: New file.
54747         * modules/unistdio/u8-vsprintf: New file.
54748         * modules/unistdio/u8-u8-asnprintf: New file.
54749         * modules/unistdio/u8-u8-asprintf: New file.
54750         * modules/unistdio/u8-u8-snprintf: New file.
54751         * modules/unistdio/u8-u8-sprintf: New file.
54752         * modules/unistdio/u8-u8-vasnprintf: New file.
54753         * modules/unistdio/u8-u8-vasprintf: New file.
54754         * modules/unistdio/u8-u8-vsnprintf: New file.
54755         * modules/unistdio/u8-u8-vsprintf: New file.
54756         * modules/unistdio/u16-asnprintf: New file.
54757         * modules/unistdio/u16-asprintf: New file.
54758         * modules/unistdio/u16-printf-parse: New file.
54759         * modules/unistdio/u16-snprintf: New file.
54760         * modules/unistdio/u16-sprintf: New file.
54761         * modules/unistdio/u16-vasnprintf: New file.
54762         * modules/unistdio/u16-vasprintf: New file.
54763         * modules/unistdio/u16-vsnprintf: New file.
54764         * modules/unistdio/u16-vsprintf: New file.
54765         * modules/unistdio/u16-u16-asnprintf: New file.
54766         * modules/unistdio/u16-u16-asprintf: New file.
54767         * modules/unistdio/u16-u16-snprintf: New file.
54768         * modules/unistdio/u16-u16-sprintf: New file.
54769         * modules/unistdio/u16-u16-vasnprintf: New file.
54770         * modules/unistdio/u16-u16-vasprintf: New file.
54771         * modules/unistdio/u16-u16-vsnprintf: New file.
54772         * modules/unistdio/u16-u16-vsprintf: New file.
54773         * modules/unistdio/u32-asnprintf: New file.
54774         * modules/unistdio/u32-asprintf: New file.
54775         * modules/unistdio/u32-printf-parse: New file.
54776         * modules/unistdio/u32-snprintf: New file.
54777         * modules/unistdio/u32-sprintf: New file.
54778         * modules/unistdio/u32-vasnprintf: New file.
54779         * modules/unistdio/u32-vasprintf: New file.
54780         * modules/unistdio/u32-vsnprintf: New file.
54781         * modules/unistdio/u32-vsprintf: New file.
54782         * modules/unistdio/u32-u32-asnprintf: New file.
54783         * modules/unistdio/u32-u32-asprintf: New file.
54784         * modules/unistdio/u32-u32-snprintf: New file.
54785         * modules/unistdio/u32-u32-sprintf: New file.
54786         * modules/unistdio/u32-u32-vasnprintf: New file.
54787         * modules/unistdio/u32-u32-vasprintf: New file.
54788         * modules/unistdio/u32-u32-vsnprintf: New file.
54789         * modules/unistdio/u32-u32-vsprintf: New file.
54790         * modules/unistdio/ulc-asnprintf-tests: New file.
54791         * modules/unistdio/ulc-vasnprintf-tests: New file.
54792         * modules/unistdio/ulc-vasprintf-tests: New file.
54793         * modules/unistdio/ulc-vsnprintf-tests: New file.
54794         * modules/unistdio/ulc-vsprintf-tests: New file.
54795         * modules/unistdio/u8-asnprintf-tests: New file.
54796         * modules/unistdio/u8-vasnprintf-tests: New file.
54797         * modules/unistdio/u8-vasprintf-tests: New file.
54798         * modules/unistdio/u8-vsnprintf-tests: New file.
54799         * modules/unistdio/u8-vsprintf-tests: New file.
54800         * modules/unistdio/u16-asnprintf-tests: New file.
54801         * modules/unistdio/u16-vasnprintf-tests: New file.
54802         * modules/unistdio/u16-vasprintf-tests: New file.
54803         * modules/unistdio/u16-vsnprintf-tests: New file.
54804         * modules/unistdio/u16-vsprintf-tests: New file.
54805         * modules/unistdio/u32-asnprintf-tests: New file.
54806         * modules/unistdio/u32-vasnprintf-tests: New file.
54807         * modules/unistdio/u32-vasprintf-tests: New file.
54808         * modules/unistdio/u32-vsnprintf-tests: New file.
54809         * modules/unistdio/u32-vsprintf-tests: New file.
54810         * MODULES.html.sh (Unicode string functions): Add the new modules.
54811
54812 2007-07-01  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/sprintf.c (sprintf): Limit the available length estimation,
54815         to avoid address wraparound.
54816         * lib/vsprintf.c (vsprintf): Likewise.
54817         * modules/sprintf-posix (Dependencies): Add stdint.
54818         * modules/vsprintf-posix (Dependencies): Likewise.
54819
54820 2007-07-01  Bruno Haible  <bruno@clisp.org>
54821
54822         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54823         Windows PATH as well. Conservative double-quoting. Comments.
54824
54825 2007-07-01  Bruno Haible  <bruno@clisp.org>
54826             Eric Blake  <ebb9@byu.net>
54827             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54828
54829         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54830         empty components in $PATH, denoting '.'.
54831
54832 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54833
54834         * gnulib-tool: Fix indentation.
54835         (func_create_megatestdir): Likewise.
54836         Report by Bruno Haible.
54837
54838 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54839
54840         Sync from Automake.
54841         * build-aux/gnupload: Fix shell portability issues with for loops.
54842         Report by Karl Berry.
54843
54844 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54845
54846         * build-aux/maint.mk (POURL): Use translationproject.org.
54847
54848 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54849             Bruno Haible  <bruno@clisp.org>
54850
54851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54852         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54853         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54854         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54855         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54856
54857 2007-06-27  Bruno Haible  <bruno@clisp.org>
54858
54859         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54860         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54861
54862 2007-06-26  Karl Berry  <karl@gnu.org>
54863
54864         * MODULES.html.sh: remove xreadlink-with-size.
54865
54866 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54869         method that I hope also handles the double-include problem noted
54870         by Bruno Haible in
54871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54872
54873 2007-06-23  Bruno Haible  <bruno@clisp.org>
54874
54875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54876         Don't let the 'mostlyclean' target fail if the last subdirectory could
54877         not be removed.
54878         Reported by Karl Berry.
54879
54880 2007-06-23  Bruno Haible  <bruno@clisp.org>
54881
54882         * gnulib-tool (echo): Add a speedier workaround for ksh.
54883         * tests/test-echo.sh: Likewise.
54884
54885 2007-06-23  Bruno Haible  <bruno@clisp.org>
54886
54887         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54888         * tests/test-echo.sh: Likewise.
54889
54890 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54891
54892         * gnulib-tool (IFS): Initialize early, so we don't set it to
54893         empty later.
54894         (self_abspathname): Rewrite algorithm to set it, reindent.
54895         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54896         (func_create_megatestdir): Merge some sed scripts.
54897
54898 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54899
54900         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54901         exposed by Sun Studio 11 cc on Solaris 8.
54902
54903 2007-06-22  Bruno Haible  <bruno@clisp.org>
54904
54905         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54906         backslashes.
54907         * tests/test-echo.sh: New file.
54908
54909 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54910
54911         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54912         simplify `sed_replace_build_aux' scripts, they are portable but
54913         echoing them with `echo' is not.
54914         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54915
54916 2007-06-21  Karl Berry  <karl@gnu.org>
54917
54918         * config/srclist.txt: guess we can't handle the licenses via
54919         srclist at the moment.
54920
54921 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         * MODULES.html.sh: Add include_next.
54924         * modules/include_next: New file.
54925
54926 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54927
54928         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54929         INCLUDE_NEXT.
54930         (gl_CHECK_NEXT_HEADERS): New macro.
54931         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54932         the obsolescent gl_ABSOLUTE_HEADER.
54933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54934         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54935         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54936         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54937         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54938         * m4/math_h.m4 (gl_MATH_H): Likewise.
54939         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54940         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54941         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54942         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54943         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54944         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54945         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54949         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54950         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54951         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54952         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54953         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54954         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54955         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54956         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54957         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54958         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54959         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54960         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54961         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54962         * lib/float_.h: Likewise.
54963         * lib/inttypes_.h: Likewise.
54964         * lib/math_.h: Likewise.
54965         * lib/search_.h: Likewise.
54966         * lib/signal_.h: Likewise.
54967         * lib/stdint_.h: Likewise.
54968         * lib/stdio_.h: Likewise.
54969         * lib/stdlib_.h: Likewise.
54970         * lib/string_.h: Likewise.
54971         * lib/sys_stat_.h: Likewise.
54972         * lib/sys_time_.h: Likewise.
54973         * lib/time_.h: Likewise.
54974         * lib/unistd_.h: Likewise.
54975         * lib/wchar_.h: Likewise.
54976         * lib/wctype_.h: Likewise.
54977         * lib/dirent_.h: Likewise.
54978         * lib/iconv_.h: Likewise.
54979         * lib/locale_.h: Likewise.
54980         * lib/netinet_in_.h: Likewise.
54981         * lib/sys_select_.h: Likewise.
54982         * lib/sys_socket_.h: Likewise.
54983         * lib/sysexits_.h: Likewise.
54984         * modules/fcntl (Depends-on): Depend on include_next, not
54985         absolute_header.
54986         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54987         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54988         * modules/fchdir: Likewise.
54989         * modules/float: Likewise.
54990         * modules/iconv_open: Likewise.
54991         * modules/inttypes: Likewise.
54992         * modules/locale: Likewise.
54993         * modules/math: Likewise.
54994         * modules/netinet_in: Likewise.
54995         * modules/search: Likewise.
54996         * modules/signal: Likewise.
54997         * modules/stdint: Likewise.
54998         * modules/stdio: Likewise.
54999         * modules/stdlib: Likewise.
55000         * modules/string: Likewise.
55001         * modules/sys_select: Likewise.
55002         * modules/sys_socket: Likewise.
55003         * modules/sys_stat: Likewise.
55004         * modules/sys_time: Likewise.
55005         * modules/sysexits: Likewise.
55006         * modules/time: Likewise.
55007         * modules/unistd: Likewise.
55008         * modules/wchar: Likewise.
55009         * modules/wctype: Likewise.
55010         * modules/sys_stat: Change maintainer to "all".
55011         * modules/unistd: Likewise.
55012
55013 2007-06-20  Karl Berry  <karl@gnu.org>
55014
55015         * config/srclist.txt: track www changes in license files.
55016
55017 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55018
55019         * build-aux/bootstrap: Remove stray dot.
55020         Make sure build_aux settings are honored when linking
55021         gnulib_extra_files.
55022
55023 2007-06-19  Eric Blake  <ebb9@byu.net>
55024
55025         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55026         Allow compilation on cygwin.
55027
55028 2007-06-19  Jim Meyering  <jim@meyering.net>
55029
55030         xreadlink-with-size: Remove module.  No longer used.
55031         Ex-callers now use xreadlink or mreadlink-with-size.
55032         * modules/xreadlink-with-size: Remove module.
55033         * lib/xreadlink-with-size.c: Remove file.
55034         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55035         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55036         just before the function definition *is* accurate.
55037
55038         Eliminate one way canonicalize_filename_mode could exit.
55039         * lib/canonicalize.c (canonicalize_filename_mode):
55040         Use mreadlink_with_size, not xreadlink_with_size.
55041
55042 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55043
55044         Detect porting problems to FreeBSD/arm, which has time_t wider than
55045         long int.  Original problem reported for GNU diff by Xin Li in
55046         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55047         * modules/getdate (Depends-on): Add intprops, verify.
55048         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55049         is an integer type no wider than long int.
55050
55051 2007-06-18  Jim Meyering  <jim@meyering.net>
55052
55053         New module: mreadlink-with-size.
55054         * MODULES.html.sh: Add mreadlink-with-size.
55055         * modules/mreadlink-with-size: New module
55056         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55057         not xreadlink-with-size.
55058         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55059
55060 2007-06-16  Bruno Haible  <bruno@clisp.org>
55061
55062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55063         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55064         Reported by Gary V. Vaughan <gary@gnu.org>.
55065
55066 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55067
55068         Revamp lchown so that it lives in unistd.h where it belongs.
55069         * lib/lchown.h: Remove.
55070         * lib/dirchownmod.c: Don't include lib/lchown.h.
55071         * lib/fchownat.c: Likewise.
55072         * lib/openat.c: Likewise.
55073         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55074         does not follow symlinks.
55075         (EOPNOTSUPP): Define if not defined.
55076         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55077         is defined to 0.
55078         (lchown): New decl.
55079         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55080         Do not check for lchown decl.
55081         Set REPLACE_LCHOWN.
55082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55083         REPLACE_LCHOWN.
55084         * modules/chown: Make it clear it follows symlinks.
55085         * modules/lchown: Make it clear it doesn't follow symlinks.
55086         (Files): Remove lib/lchown.h
55087         (Depends-on): Add unistd.
55088         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55089         (Include): Include <unistd.h>, not "lchown.h".
55090         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55091         REPLACE_LCHOWN.
55092
55093 2007-06-15  Jim Meyering  <jim@meyering.net>
55094
55095         Change license (GPL to LGPL) of fsusage and dependents.
55096         * modules/fsusage (License): Change to LGPL.
55097         * modules/full-read (License): Likewise.
55098         * modules/full-write (License): Likewise.
55099         * modules/safe-read (License): Likewise.
55100         * modules/safe-write (License): Likewise.
55101
55102 2007-06-14  Ben Pfaff  <blp@gnu.org>
55103
55104         Missing part of allocsa -> malloca transition.
55105         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55106         gl_MALLOCA.
55107
55108 2007-06-12  Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55111         to ia64, x86_64, i386.
55112         Reported by Eric Blake.
55113
55114 2007-06-12  Bruno Haible  <bruno@clisp.org>
55115
55116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55117         cross-compiling to x86_64.
55118
55119 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55122         glitch reported by Ralf Wildenhues in
55123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55124
55125         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55126         Vin Shelton.
55127
55128 2007-06-11  Bruno Haible  <bruno@clisp.org>
55129
55130         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55131         replacement string.
55132         Reported by Eric Blake.
55133
55134 2007-06-10  Bruno Haible  <bruno@clisp.org>
55135
55136         Prepare vasnprintf code for use with Unicode strings.
55137         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55138         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55139         TYPE_U32_STRING.
55140         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55141         a_u32_string variants.
55142         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55143         * lib/printf-args.c: Don't include config.h and the specification
55144         header if PRINTF_FETCHARGS is already defined.
55145         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55146         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55147         TYPE_U16_STRING, TYPE_U32_STRING.
55148         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55149         u16_directive, u16_directives, u32_directive, u32_directives): New
55150         types.
55151         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55152         New declarations.
55153         * lib/printf-parse.c: Don't include config.h and the specification
55154         header if PRINTF_PARSE is already defined. Eliminate the set of
55155         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55156         them now. Include c-ctype.h.
55157         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55158         directive and CHAR_T_ONLY_ASCII.
55159         * lib/vasnprintf.c: Don't include config.h and the specification header
55160         if VASNPRINTF is already defined.
55161         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55162         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55163         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55164         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55165         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55166         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55167         code accordingly.
55168         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55169         pad_ourselves also in this case, with the 'c' and 's' directives, and
55170         with a different notion of "width".
55171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55172
55173 2007-06-10  Bruno Haible  <bruno@clisp.org>
55174
55175         * modules/unistr/u32-mbsnlen: New file.
55176         * lib/unistr/u32-mbsnlen.c: New file.
55177
55178         * modules/unistr/u16-mbsnlen: New file.
55179         * lib/unistr/u16-mbsnlen.c: New file.
55180
55181         * modules/unistr/u8-mbsnlen: New file.
55182         * lib/unistr/u8-mbsnlen.c: New file.
55183
55184         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55185         declarations.
55186
55187 2007-06-10  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/string_.h (mbsnlen): New declaration.
55190         * lib/mbsnlen.c: New file.
55191         * m4/mbsnlen.m4: New file.
55192         * modules/mbsnlen: New file.
55193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55194         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55195         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55196
55197 2007-06-10  Bruno Haible  <bruno@clisp.org>
55198
55199         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55200
55201 2007-06-10  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55204         * lib/mbuiter.h: Likewise.
55205
55206 2007-06-10  Bruno Haible  <bruno@clisp.org>
55207
55208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55209         declaration.
55210
55211 2007-06-10  Karl Berry  <karl@gnu.org>
55212
55213         * config/srclist.txt: remove gettext entries, Bruno prefers
55214         to update individually.
55215
55216 2007-06-10  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55219         'maxlen'. Ensure only length + width bytes are allocated, not
55220         length + 1 + width.
55221
55222 2007-06-09  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55225         (CHAR_T): Remove macro.
55226         (VASNPRINTF): Update.
55227
55228 2007-06-09  Bruno Haible  <bruno@clisp.org>
55229
55230         * MODULES.html.sh (Unicode string functions): Add the new modules.
55231
55232         * modules/uniconv/u32-conv-to-enc: New file.
55233         * lib/uniconv/u32-conv-to-enc.c: New file.
55234         * modules/uniconv/u32-conv-to-enc-tests: New file.
55235         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55236
55237         * modules/uniconv/u16-conv-to-enc: New file.
55238         * lib/uniconv/u16-conv-to-enc.c: New file.
55239         * lib/uniconv/u-conv-to-enc.h: New file.
55240         * modules/uniconv/u16-conv-to-enc-tests: New file.
55241         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55242
55243         * modules/uniconv/u8-conv-to-enc: New file.
55244         * lib/uniconv/u8-conv-to-enc.c: New file.
55245         * modules/uniconv/u8-conv-to-enc-tests: New file.
55246         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55247
55248         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55249         u32_conv_to_encoding): New declarations.
55250
55251 2007-06-09  Bruno Haible  <bruno@clisp.org>
55252
55253         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55254
55255 2007-06-09  Bruno Haible  <bruno@clisp.org>
55256
55257         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55258         * modules/malloca: Renamed from modules/allocsa, updated.
55259         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55260         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55261         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55262         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55263         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55264         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55265         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55266         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55267         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55268         * modules/c-strcasestr (Depends-on): Update.
55269         * lib/c-strcasestr.c: Update.
55270         * modules/c-strstr (Depends-on): Update.
55271         * lib/c-strstr.c: Update.
55272         * modules/canonicalize-lgpl (Depends-on): Update.
55273         * lib/canonicalize-lgpl.c: Update.
55274         * modules/clean-temp (Depends-on): Update.
55275         * lib/clean-temp.c: Update.
55276         * modules/csharpcomp (Depends-on): Update.
55277         * lib/csharpcomp.c: Update.
55278         * modules/csharpexec (Depends-on): Update.
55279         * lib/csharpexec.c: Update.
55280         * modules/javacomp (Depends-on): Update.
55281         * lib/javacomp.c: Update.
55282         * modules/javaexec (Depends-on): Update.
55283         * lib/javaexec.c: Update.
55284         * modules/mbscasestr (Depends-on): Update.
55285         * lib/mbscasestr.c: Update.
55286         * modules/mbsstr (Depends-on): Update.
55287         * lib/mbsstr.c: Update.
55288         * modules/setenv (Depends-on): Update.
55289         * lib/setenv.c: Update.
55290         * modules/strcasestr (Depends-on): Update.
55291         * lib/strcasestr.c: Update.
55292         * modules/striconveha (Depends-on): Update.
55293         * lib/striconveha.c: Update.
55294         * modules/relocatable-prog-wrapper (Files): Update.
55295         * lib/relocwrapper.c: Update.
55296         * build-aux/install-reloc: Update.
55297         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55298
55299 2007-06-08  Bruno Haible  <bruno@clisp.org>
55300
55301         Port to uClibc.
55302         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55303         * lib/fpurge.c (fpurge): Likewise.
55304         * lib/freading.c (freading): Likewise.
55305         * lib/fseeko.c (rpl_fseeko): Likewise.
55306         * lib/fseterr.c (fseterr): Likewise.
55307         * lib/fwriting.c (fwriting): Likewise.
55308         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55309
55310 2007-06-08  Bruno Haible  <bruno@clisp.org>
55311
55312         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55313         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55314         * modules/gettext (Files): Add m4/intlmacosx.m4.
55315
55316 2007-06-07  Bruno Haible  <bruno@clisp.org>
55317
55318         * modules/localename-tests: New file.
55319         * tests/test-localename.c: New file.
55320
55321         New module 'localename'.
55322         * lib/localename.h: New file.
55323         * lib/localename.c: New file, from GNU gettext.
55324         * m4/localename.m4: New file.
55325         * modules/localename: New file.
55326
55327 2007-06-07  Bruno Haible  <bruno@clisp.org>
55328
55329         Work around the lack of <wchar.h> on some builds of uClibc.
55330         * doc/headers/wchar.texi: Update.
55331         * lib/wchar_.h: Include <wchar.h> only if it exists.
55332         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55333         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55334         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55335         doesn't exist.
55336         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55337         * modules/mbfile (Depends-on): Add wchar.
55338         * modules/mbiter (Depends-on): Likewise.
55339         * modules/mbuiter (Depends-on): Likewise.
55340         Reported by Simon Josefsson.
55341
55342 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         Work around problem reported by Steven M. Schweda in
55345         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55346         Tru64 5.1B with the Compaq compiler environment installed declares
55347         an 'isblank' function but does not define it in the C library.
55348         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55349         * lib/regex_internal.h (isblank): Likewise.
55350         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55351         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55352
55353 2007-06-05  Bruno Haible  <bruno@clisp.org>
55354
55355         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55356         ia64.
55357         * modules/printf-safe: New file.
55358         * modules/fprintf-posix (Depends-on): Add printf-safe.
55359         * modules/printf-posix (Depends-on): Likewise.
55360         * modules/snprintf-posix (Depends-on): Likewise.
55361         * modules/sprintf-posix (Depends-on): Likewise.
55362         * modules/vasnprintf-posix (Depends-on): Likewise.
55363         * modules/vasprintf-posix (Depends-on): Likewise.
55364         * modules/vfprintf-posix (Depends-on): Likewise.
55365         * modules/vprintf-posix (Depends-on): Likewise.
55366         * modules/vsnprintf-posix (Depends-on): Likewise.
55367         * modules/vsprintf-posix (Depends-on): Likewise.
55368         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55369         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55370         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55371         "no" on i386, x86_64, ia64.
55372         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55373         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55374         on i386, x86_64, ia64.
55375         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55376         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55377         on i386, x86_64, ia64.
55378         * tests/test-vasnprintf-posix.c: Include float.h.
55379         (LDBL80_WORDS): New macro.
55380         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55381         on i386, x86_64, ia64.
55382         * tests/test-vasprintf-posix.c: Include float.h.
55383         (LDBL80_WORDS): New macro.
55384         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55385         on i386, x86_64, ia64.
55386         * tests/test-snprintf-posix.c: Include float.h.
55387         * tests/test-sprintf-posix.c: Likewise.
55388         * tests/test-vsnprintf-posix.c: Likewise.
55389         * tests/test-vsprintf-posix.c: Likewise.
55390
55391 2007-06-05  Bruno Haible  <bruno@clisp.org>
55392
55393         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55394         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55395         non-IEEE numbers on i386, x86_64, ia64.
55396         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55397         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55398         * tests/test-isnanl.h: Include float.h.
55399         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55400
55401 2007-06-05  Bruno Haible  <bruno@clisp.org>
55402
55403         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55404         also the %a / %A. Handle the %a / %A code before this extra handling.
55405
55406 2007-06-05  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55409         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55410
55411 2007-06-05  Bruno Haible  <bruno@clisp.org>
55412
55413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55414         typo in variable name.
55415
55416 2007-06-05  Eric Blake  <ebb9@byu.net>
55417
55418         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55419         Reported by Simon Josefsson.
55420
55421 2007-06-04  Bruno Haible  <bruno@clisp.org>
55422
55423         Avoid test failures on some PowerPC platforms.
55424         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55425         Define differently for PowerPC.
55426         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55427         Reported by Gary V. Vaughan <gary@gnu.org>.
55428
55429 2007-06-02  Bruno Haible  <bruno@clisp.org>
55430
55431         Fix test-stdint failure on FreeBSD/ia64.
55432         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55433         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55434         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55435         * doc/headers/stdint.texi: Update.
55436
55437 2007-06-01  Bruno Haible  <bruno@clisp.org>
55438
55439         * tests/test-binary-io.c (main): Pass a third argument to open().
55440         Reported by Gary V. Vaughan <gary@gnu.org>.
55441
55442 2007-06-01  Bruno Haible  <bruno@clisp.org>
55443
55444         * doc/functions/frexpl.texi: Update for mingw.
55445
55446 2007-06-01  Bruno Haible  <bruno@clisp.org>
55447
55448         * tests/test-lseek.c (main): Disable test of errno for invalid third
55449         argument.
55450         * doc/functions/lseek.texi: Update.
55451         Reported by Gary V. Vaughan <gary@gnu.org>.
55452
55453 2007-05-28  Bruno Haible  <bruno@clisp.org>
55454
55455         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55456
55457 2007-05-31  Eric Blake  <ebb9@byu.net>
55458
55459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55460         cross compiling.
55461
55462 2007-05-30  Eric Blake  <ebb9@byu.net>
55463         and Bruno Haible  <bruno@clisp.org>
55464
55465         Work around mingw test failures exposed by m4-1.4.9b.
55466         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55467         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55468         moment.
55469
55470 2007-05-30  Bruno Haible  <bruno@clisp.org>
55471
55472         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55473         assuming that they are closed. Needed on HP-UX 11.
55474
55475 2007-05-29  Bruno Haible  <bruno@clisp.org>
55476
55477         Fix a problem with #include_next.
55478         * lib/dirent_.h: Split the double-inclusion guard.
55479         * lib/fcntl_.h: Likewise.
55480         * lib/float_.h: Likewise.
55481         * lib/iconv_.h: Likewise.
55482         * lib/inttypes_.h: Likewise.
55483         * lib/locale_.h: Likewise.
55484         * lib/math_.h: Likewise.
55485         * lib/netinet_in_.h: Likewise.
55486         * lib/search_.h: Likewise.
55487         * lib/signal_.h: Likewise.
55488         * lib/stdint_.h: Likewise.
55489         * lib/stdio_.h: Likewise.
55490         * lib/stdlib_.h: Likewise.
55491         * lib/string_.h: Likewise.
55492         * lib/sys_select_.h: Likewise.
55493         * lib/sys_socket_.h: Likewise.
55494         * lib/sys_stat_.h: Likewise.
55495         * lib/sys_time_.h: Likewise.
55496         * lib/sysexits_.h: Likewise.
55497         * lib/time_.h: Likewise.
55498         * lib/unistd_.h: Likewise.
55499         * lib/wchar_.h: Likewise.
55500         * lib/wctype_.h: Likewise.
55501
55502 2007-05-29  Bruno Haible  <bruno@clisp.org>
55503
55504         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55505         for the moment.
55506
55507 2007-05-29  Bruno Haible  <bruno@clisp.org>
55508
55509         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55510         invocation.
55511         Reported by Eric Blake.
55512
55513 2007-05-29  Bruno Haible  <bruno@clisp.org>
55514
55515         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55516         compiling case.
55517
55518 2007-05-29  Eric Blake  <ebb9@byu.net>
55519             Bruno Haible  <bruno@clisp.org>
55520
55521         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55522         cross compiles.
55523
55524 2007-05-28  Eric Blake  <ebb9@byu.net>
55525
55526         * modules/closein-tests (test_closein_LDADD): Support test on
55527         cygwin with libtool.
55528
55529 2007-05-28  Bruno Haible  <bruno@clisp.org>
55530
55531         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55532         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55533         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55534         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55535         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55536         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55537         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55538         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55539         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55540
55541 2007-05-28  Eric Blake  <ebb9@byu.net>
55542
55543         Unconditionally include <config.h> in unit tests.
55544         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55545         * tests/test-allocsa.c, tests/test-arcfour.c,
55546         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55547         tests/test-array_list.c, tests/test-array_oset.c,
55548         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55549         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55550         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55551         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55552         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55553         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55554         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55555         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55556         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55557         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55558         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55559         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55560         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55561         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55562         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55563         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55564         test-md5.c, test-memmem.c, test-printf-posix.c,
55565         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55566         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55567         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55568         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55569         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55570         test-vasnprintf-posix2.c, test-vasnprintf.c,
55571         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55572         test-vfprintf-posix.c, test-vprintf-posix.c,
55573         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55574         test-xvasprintf.c: Likewise.
55575
55576 2007-05-28  Bruno Haible  <bruno@clisp.org>
55577
55578         * gnulib-tool (func_import): Remember the --with-tests command-line
55579         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55580         Reported by Eric Blake.
55581
55582 2007-05-28  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/ftell-tests: New file.
55585         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55586         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55587
55588         * lib/ftell.c: New file.
55589         * modules/ftell: New file.
55590         * m4/ftell.m4: New file.
55591         * doc/functions/ftell.texi: Update.
55592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55593         REPLACE_FTELL.
55594         * lib/stdio_.h (rpl_ftell): New declaration.
55595         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55596         REPLACE_FTELL.
55597
55598 2007-05-28  Eric Blake  <ebb9@byu.net>
55599
55600         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55601
55602 2007-05-28  Bruno Haible  <bruno@clisp.org>
55603
55604         * modules/fseek-tests: New file.
55605         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55606         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55607
55608         * lib/fseek.c: New file.
55609         * modules/fseek: New file.
55610         * m4/fseek.m4: New file.
55611         * doc/functions/fseek.texi: Update.
55612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55613         REPLACE_FSEEK.
55614         * lib/stdio_.h (rpl_fseek): New declaration.
55615         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55616         REPLACE_FSEEK.
55617
55618 2007-05-28  Bruno Haible  <bruno@clisp.org>
55619
55620         * lib/stdio_.h (fflush): More comments.
55621
55622 2007-05-28  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55625         runtime test.
55626
55627 2007-05-28  Eric Blake  <ebb9@byu.net>
55628
55629         Improve lseek module.
55630         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55631         * lib/unistd_.h (lseek): Scale back link warning message.
55632         * tests/test-lseek.c: Beef up test.
55633         * tests/test-lseek.sh: Exercise more facets of lseek.
55634         Reported by Bruno Haible.
55635
55636 2007-05-28  Bruno Haible  <bruno@clisp.org>
55637
55638         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55639         to define.
55640
55641 2007-05-27  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55644
55645 2007-05-27  Bruno Haible  <bruno@clisp.org>
55646
55647         * modules/openmp: New file.
55648         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55649         Noah Misch.
55650
55651 2007-05-26  Bruno Haible  <bruno@clisp.org>
55652
55653         * modules/chdir-long (Depends-on): Add fchdir.
55654         * modules/chdir-safer (Depends-on): Likewise.
55655         * modules/fts (Depends-on): Likewise.
55656         * modules/fts-lgpl (Depends-on): Likewise.
55657         * modules/openat (Depends-on): Likewise.
55658         * modules/savewd (Depends-on): Likewise.
55659
55660 2007-05-24  Eric Blake  <ebb9@byu.net>
55661
55662         Fix lseek on mingw.
55663         * modules/lseek: New module.
55664         * m4/lseek.m4: New file.
55665         * lib/lseek.c: New file.
55666         * modules/lseek-tests: New file.
55667         * tests/test-lseek.c: New file.
55668         * tests/test-lseek.sh: New file.
55669         * MODULES.html.sh: Document lseek module.
55670         * modules/fflush (Depends-on): Add lseek, fseeko.
55671         * modules/fseeko (Depends-on): Likewise.
55672         * modules/ftello (Depends-on): Likewise.
55673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55674         broken.
55675         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55676         broken.
55677         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55678         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55679         * lib/ftello.c (rpl_ftello): Likewise.
55680         * tests/test-fseeko.c (main): Test this.
55681         * tests/test-fseeko.sh: Likewise.
55682         * tests/test-ftello.c (main): Likewise.
55683         * tests/test-ftello.sh: Likewise.
55684         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55685         implies replacing fseek.
55686         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55687         HAVE_FTELLO.
55688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55689         * modules/unistd (Makefile.am): Likewise.
55690         * lib/unistd_.h (lseek): Declare a replacement.
55691         * doc/functions/lseek.texi (lseek): Document this fix.
55692         * doc/functions/fseek.texi (fseek): Likewise.
55693         * doc/functions/ftell.texi (ftell): Likewise.
55694
55695 2007-05-24  Bruno Haible  <bruno@clisp.org>
55696
55697         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55698         in the printed representation of a NaN.
55699         * tests/test-vasprintf-posix.c (test_function): Likewise.
55700         * tests/test-snprintf-posix.h (test_function): Likewise.
55701         * tests/test-sprintf-posix.h (test_function): Likewise.
55702         Reported by Eric Blake.
55703
55704 2007-05-23  Eric Blake  <ebb9@byu.net>
55705
55706         Fix fseeko/ftello on cygwin 1.5.24.
55707         * doc/functions/fseeko.texi (fseeko): Document the fix.
55708         * doc/functions/ftello.texi (ftello): Document the fix.
55709         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55710         * doc/functions/stdout.text (stdout): New file.
55711         * doc/functions/stderr.text (stderr): New file.
55712         * doc/gnulib.texi (Function Substitutes): Use new files.
55713         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55714         prior to 1.7.0.
55715         * tests/test-ftello.c (main): Likewise for ftello.
55716         * tests/test-fseeko.sh: New file.
55717         * tests/test-ftello.sh: New file.
55718         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55719         with seekable stdin.
55720         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55722         (gl_REPLACE_FSEEKO): New macro.
55723         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55724         * modules/fseeko (Files): Distribute fseeko.c.
55725         * modules/ftello (Files): Distribute ftello.c.
55726         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55727         mode.
55728         * lib/ftello.c (rpl_ftello): New file.
55729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55730         fseeko, ftello.
55731         (gl_STDIN_LARGE_OFFSET): New macro.
55732         * modules/stdio (Makefile.am): Perform the replacement.
55733         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55734
55735 2007-05-23  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55738         GNULIB_POSIXCHECK is defined.
55739
55740 2007-05-21  Bruno Haible  <bruno@clisp.org>
55741
55742         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55743         Check also the output for NaN arguments. When cross-compiling, guess
55744         no on IRIX.
55745         * lib/vasnprintf.c: Update comments.
55746         * tests/test-vasnprintf-posix.c (strisnan): New function.
55747         (test_function): Use it.
55748         * tests/test-vasprintf-posix.c (strisnan): New function.
55749         (test_function): Use it.
55750         * tests/test-snprintf-posix.h (strisnan): New function.
55751         (test_function): Use it.
55752         * tests/test-sprintf-posix.h (strisnan): New function.
55753         (test_function): Use it.
55754         Reported by Eric Blake.
55755
55756 2007-05-20  Bruno Haible  <bruno@clisp.org>
55757
55758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55759         numbers that fails on BeOS.
55760         * doc/functions/frexpl.texi: Update.
55761
55762 2007-05-20  Jim Meyering  <jim@meyering.net>
55763
55764         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55765         forced upon us by glibc-2.6.
55766
55767 2007-05-20  Bruno Haible  <bruno@clisp.org>
55768
55769         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55770         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55771         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55772         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55773         NEED_PRINTF_INFINITE.
55774         (is_infinitel): New function.
55775         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55777         gl_PREREQ_VASNPRINTF_INFINITE.
55778         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55780         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55781         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55782         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55783         gl_PREREQ_VASNPRINTF_INFINITE.
55784         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55788         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55791         * doc/functions/fprintf.texi: Update.
55792         * doc/functions/printf.texi: Update.
55793         * doc/functions/snprintf.texi: Update.
55794         * doc/functions/sprintf.texi: Update.
55795         * doc/functions/vfprintf.texi: Update.
55796         * doc/functions/vprintf.texi: Update.
55797         * doc/functions/vsnprintf.texi: Update.
55798         * doc/functions/vsprintf.texi: Update.
55799
55800 2007-05-20  Bruno Haible  <bruno@clisp.org>
55801
55802         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55803         was not found in libc.
55804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55805
55806 2007-05-20  Bruno Haible  <bruno@clisp.org>
55807
55808         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55809         printed as "-nan" instead of "nan".
55810         * tests/test-vasprintf-posix.c (test_function): Likewise.
55811         * tests/test-snprintf-posix.h (test_function): Likewise.
55812         * tests/test-sprintf-posix.h (test_function): Likewise.
55813         Needed for HP-UX 11.
55814
55815 2007-05-20  Jim Meyering  <jim@meyering.net>
55816
55817         Fix buggy test for the fchownat-deref bug.
55818         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55819         symlink required for the run-test.  Without it, this test would
55820         always declare that fchownat doesn't work, and client code would
55821         unnecessarily use the replacement function with fixed libc.
55822         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55823         Reported by Greg Schafer.
55824
55825 2007-05-19  Bruno Haible  <bruno@clisp.org>
55826
55827         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55828         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55829         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55830         Needed for IRIX 6.5 and Solaris 2.5.1.
55831
55832 2007-05-19  Bruno Haible  <bruno@clisp.org>
55833
55834         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55835         (test_function): Skip tests involving -0.0 on platforms where
55836         -0.0 = 0.0.
55837         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55838         (test_function): Skip tests involving -0.0 on platforms where
55839         -0.0 = 0.0.
55840         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55841         (test_function): Skip tests involving -0.0 on platforms where
55842         -0.0 = 0.0.
55843         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55844         (test_function): Skip tests involving -0.0 on platforms where
55845         -0.0 = 0.0.
55846         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55847         tests.
55848         * tests/test-printf-posix.h (test_function): Likewise.
55849         * tests/test-printf-posix.output: Remove all -0.0 related results.
55850         Needed for IRIX 6.5.
55851
55852 2007-05-19  Bruno Haible  <bruno@clisp.org>
55853
55854         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55855         printed as "nan0x7fffffff" instead of "nan".
55856         * tests/test-vasprintf-posix.c (test_function): Likewise.
55857         * tests/test-snprintf-posix.h (test_function): Likewise.
55858         * tests/test-sprintf-posix.h (test_function): Likewise.
55859         * tests/test-fprintf-posix.h (NaN): Remove macro.
55860         (test_function): Remove all NaN related tests.
55861         * tests/test-printf-posix.h (NaN): Remove macro.
55862         (test_function): Remove all NaN related tests.
55863         * tests/test-printf-posix.output: Remove all NaN related results.
55864         Needed for IRIX 6.5.
55865
55866 2007-05-19  Bruno Haible  <bruno@clisp.org>
55867
55868         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55870
55871 2007-05-19  Bruno Haible  <bruno@clisp.org>
55872
55873         * lib/float_.h: New file.
55874         * m4/float_h.m4: New file.
55875         * modules/float: New file.
55876         * modules/isnanl (Dependencies): Add float.
55877         * modules/isnanl-nolibm (Dependencies): Likewise.
55878         * modules/mathl (Dependencies): Likewise.
55879         * modules/printf-frexpl (Dependencies): Likewise.
55880         * modules/signbit (Dependencies): Likewise.
55881         * modules/vasnprintf (Dependencies): Likewise.
55882         * doc/headers/float.texi: Update.
55883
55884 2007-05-19  Jim Meyering  <jim@meyering.net>
55885
55886         * lib/utimens.c (gl_futimens): Rename from futimens,
55887         now that glibc-2.6 declares futimens.
55888         * lib/utimens.h: Likewise.
55889
55890 2007-05-19  Bruno Haible  <bruno@clisp.org>
55891
55892         Avoid test failures on mingw.
55893         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55894         * tests/test-printf-posix.sh: Likewise.
55895         * tests/test-vfprintf-posix.sh: Likewise.
55896         * tests/test-vprintf-posix.sh: Likewise.
55897
55898 2007-05-19  Bruno Haible  <bruno@clisp.org>
55899
55900         Fix *printf result for NaN, Inf, -0.0 on mingw.
55901         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55902         * lib/vasnprintf.c: Include math.h and isnan.h.
55903         (is_infinite_or_zero): New function.
55904         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55905         values in the %f, %F, %e, %E, %g, %G directives.
55906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55907         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55908         gl_PRINTF_INFINITE and test its result. Invoke
55909         gl_PREREQ_VASNPRINTF_INFINITE.
55910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55917         * doc/functions/fprintf.texi: Update.
55918         * doc/functions/printf.texi: Update.
55919         * doc/functions/snprintf.texi: Update.
55920         * doc/functions/sprintf.texi: Update.
55921         * doc/functions/vfprintf.texi: Update.
55922         * doc/functions/vprintf.texi: Update.
55923         * doc/functions/vsnprintf.texi: Update.
55924         * doc/functions/vsprintf.texi: Update.
55925
55926 2007-05-19  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55929         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55930         Instead of multiplying with 10^k, set extra_zeroes to k.
55931         (scale10_round_long_double): Remove function.
55932
55933 2007-05-18  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55936         introduced on 2007-05-06.
55937
55938 2007-05-18  Bruno Haible  <bruno@clisp.org>
55939
55940         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55941         %g directives.
55942         * tests/test-vasprintf-posix.c (test_function): Likewise.
55943         * tests/test-snprintf-posix.h (test_function): Likewise.
55944         * tests/test-sprintf-posix.h (test_function): Likewise.
55945
55946 2007-05-18  Bruno Haible  <bruno@clisp.org>
55947
55948         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55949         (strmatch): New function.
55950         (test_function): Test the %f directive on numbers of various exponents.
55951         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55952         (strmatch): New function.
55953         (test_function): Test the %f directive on numbers of various exponents.
55954         * tests/test-snprintf-posix.h (strmatch): New function.
55955         (test_function): Test the %f directive on numbers of various exponents.
55956         * tests/test-sprintf-posix.h (strmatch): New function.
55957         (test_function): Test the %f directive on numbers of various exponents.
55958         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55959         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55960         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55961         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55962
55963 2007-05-18  Bruno Haible  <bruno@clisp.org>
55964
55965         Add support for 'long double' number output.
55966         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55967         * lib/vasnprintf.c: Include math.h and float+.h.
55968         (mp_limb_t): New type.
55969         (GMP_LIMB_BITS): New macro.
55970         (mp_twolimb_t): New type.
55971         (GMP_TWOLIMB_BITS): New macro.
55972         (mpn_t): New type.
55973         (multiply, divide, convert_to_decimal, decode_long_double,
55974         scale10_round_long_double, scale10_round_decimal_long_double,
55975         floorlog10l): New functions.
55976         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55977         for the %f, %F, %e, %E, %g, %G directives.
55978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55980         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55981         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55989         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55990         * modules/snprintf-posix (Depends-on): Likewise.
55991         * modules/sprintf-posix (Depends-on): Likewise.
55992         * modules/vasnprintf-posix (Depends-on): Likewise.
55993         * modules/vasprintf-posix (Depends-on): Likewise.
55994         * modules/vfprintf-posix (Depends-on): Likewise.
55995         * modules/vsnprintf-posix (Depends-on): Likewise.
55996         * modules/vsprintf-posix (Depends-on): Likewise.
55997         * modules/vasnprintf (Files): Add lib/float+.h.
55998         * doc/functions/fprintf.texi: Update.
55999         * doc/functions/printf.texi: Update.
56000         * doc/functions/snprintf.texi: Update.
56001         * doc/functions/sprintf.texi: Update.
56002         * doc/functions/vfprintf.texi: Update.
56003         * doc/functions/vprintf.texi: Update.
56004         * doc/functions/vsnprintf.texi: Update.
56005         * doc/functions/vsprintf.texi: Update.
56006
56007 2007-05-18  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56010
56011 2007-05-18  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56014         for printing 64-bit integers. Needed for mingw.
56015
56016 2007-05-18  Bruno Haible  <bruno@clisp.org>
56017
56018         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56019         gl_FUNC_FREXPL_WORKS.
56020         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56021
56022 2007-05-18  Bruno Haible  <bruno@clisp.org>
56023
56024         * modules/frexpl-nolibm-tests: New file.
56025
56026         * modules/frexpl-nolibm: New file.
56027         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56028
56029 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56030
56031         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56032         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56033         GCC 4.2, which otherwise issues a lot of warnings.
56034         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56035         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56036         Likewise.
56037         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56038         * modules/iconv_open (iconv.h): Likewise.
56039         * modules/locale (locale.h): Likewise.
56040         * modules/netinet_in (netinet/in.h): Likewise.
56041         * modules/sys_select (sys_select.h): Likewise.
56042         * modules/sys_socket (sys/socket.h): Likewise.
56043         * modules/sys_stat (sys/stat.h): Likewise.
56044         * modules/sysexits (sysexits.h): Likewise.
56045         * modules/unistd (unistd.h): Likewise.
56046
56047 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56048
56049         * modules/closein-tests (Makefile.am): Distribute
56050         `test-closein.sh'.
56051
56052 2007-05-17  Bruno Haible  <bruno@clisp.org>
56053
56054         * tests/test-printf-posix.output: Renamed from
56055         tests/test-fprintf-posix.out.
56056         * modules/fprintf-posix-tests: Update.
56057         * modules/printf-posix-tests: Update.
56058         * modules/vfprintf-posix-tests: Update.
56059         * modules/vprintf-posix-tests: Update.
56060         * tests/test-fprintf-posix.sh: Update.
56061         * tests/test-printf-posix.sh: Update.
56062         * tests/test-vfprintf-posix.sh: Update.
56063         * tests/test-vprintf-posix.sh: Update.
56064         Reported by Ralf Wildenhues.
56065
56066 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56067
56068         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56069         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56070         GCC 4.2, which otherwise issues a lot of warnings.
56071         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56072         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56073         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56074         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56075         it should no longer be needed.
56076         * lib/string_.h: Likewise.
56077         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56078         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56079         * modules/inttypes (inttypes.h): Likewise.
56080         * modules/math (math.h): Likewise.
56081         * modules/search (search.h): Likewise.
56082         * modules/signal (signal.h): Likewise.
56083         * modules/stdint (stdint.h): Likewise.
56084         * modules/stdio (stdio.h): Likewise.
56085         * modules/stdlib (stdlib.h): Likewise.
56086         * modules/string (string.h): Likewise.
56087         * modules/sys_time (sys/time.h): Likewise.
56088         * modules/time (time.h): Likewise.
56089         * modules/wchar (wchar.h): Likewise.
56090         * modules/wctype (wtype.h): Likewise.
56091
56092 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56093
56094         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56095
56096 2007-05-13  Bruno Haible  <bruno@clisp.org>
56097
56098         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56099         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56100         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56101         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56102         (gl_PREREQ_STRTOK_R): Don't require it here.
56103
56104 2007-05-13  Bruno Haible  <bruno@clisp.org>
56105
56106         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56107         when used in C++ mode.
56108
56109 2007-05-12  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/linebuffer.h: Tweak doc.
56112         * lib/linebuffer.c: Likewise.
56113
56114 2007-05-12  James Youngman  <jay@gnu.org>
56115
56116         * lib/linebuffer.c (readlinebuffer_delim): New function,
56117         like readlinebuffer, but use a caller-specified delimiter.
56118         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56119         as the delimiter.
56120         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56121
56122 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56123
56124         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56125         * modules/openat (Files): Remove openat-die.c.
56126         (Depends-on): Add openat-die.
56127         * modules/openat-die: New module.
56128
56129 2007-05-06  Bruno Haible  <bruno@clisp.org>
56130
56131         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56132         Update with info about Cygwin.
56133         * doc/functions/fprintf.texi: Update.
56134         * doc/functions/printf.texi: Update.
56135         * doc/functions/snprintf.texi: Update.
56136         * doc/functions/sprintf.texi: Update.
56137         * doc/functions/vfprintf.texi: Update.
56138         * doc/functions/vprintf.texi: Update.
56139         * doc/functions/vsnprintf.texi: Update.
56140         * doc/functions/vsprintf.texi: Update.
56141         Reported by Eric Blake.
56142
56143 2007-05-06  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56146         padding ourselves for the floating-point directives.
56147         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56150         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56151         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56152         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56156         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56159         * tests/test-snprintf-posix.h (test_function): Also check the width
56160         and some flags in the %f directive.
56161         * tests/test-sprintf-posix.h (test_function): Likewise.
56162         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56163         * tests/test-vasprintf-posix.c (test_function): Likewise.
56164         * doc/functions/fprintf.texi: Update.
56165         * doc/functions/printf.texi: Update.
56166         * doc/functions/snprintf.texi: Update.
56167         * doc/functions/sprintf.texi: Update.
56168         * doc/functions/vfprintf.texi: Update.
56169         * doc/functions/vprintf.texi: Update.
56170         * doc/functions/vsnprintf.texi: Update.
56171         * doc/functions/vsprintf.texi: Update.
56172
56173 2007-05-06  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56176         pass the ' flag character to sprintf or snprintf.
56177         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56180         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56181         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56189         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56190         flag.
56191         * tests/test-sprintf-posix.h (test_function): Likewise.
56192         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56193         * tests/test-vasprintf-posix.c (test_function): Likewise.
56194         * doc/functions/fprintf.texi: Update.
56195         * doc/functions/printf.texi: Update.
56196         * doc/functions/snprintf.texi: Update.
56197         * doc/functions/sprintf.texi: Update.
56198         * doc/functions/vfprintf.texi: Update.
56199         * doc/functions/vprintf.texi: Update.
56200         * doc/functions/vsnprintf.texi: Update.
56201         * doc/functions/vsprintf.texi: Update.
56202
56203 2007-05-01  Bruno Haible  <bruno@clisp.org>
56204
56205         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56206
56207 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56208
56209         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56210         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56211
56212 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56215         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56217
56218 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56219
56220         * lib/argp-help.c (struct hol_entry): New member `ord'.
56221         (HOL_ENTRY_PTRCMP): Use ord for comparison
56222         (hol_sort): Initialize ord.
56223
56224 2007-05-01  Bruno Haible  <bruno@clisp.org>
56225
56226         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56227         Reported by Eric Blake.
56228         * doc/gnulib.texi (Function Substitutes): Update.
56229
56230 2007-05-01  Bruno Haible  <bruno@clisp.org>
56231
56232         * doc/functions.texi: Remove file, now redundant through
56233         doc/functions/*.texi.
56234
56235 2007-05-01  Bruno Haible  <bruno@clisp.org>
56236
56237         * modules/argp (Depends-on): Add sleep.
56238
56239 2007-05-01  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/sleep-tests: New file.
56242         * tests/test-sleep.c: New file.
56243
56244         * modules/sleep: New file.
56245         * lib/sleep.c: New file.
56246         * m4/sleep.m4: New file.
56247         * lib/unistd_.h (sleep): New declaration.
56248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56249         HAVE_SLEEP.
56250         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56251         * doc/functions/sleep.texi: Document the sleep module.
56252
56253 2007-05-01  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/sigprocmask.h: Remove file.
56256         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56257         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56259         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56260         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56261         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56262         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56263         HAVE_SIGSET_T as a shell variable.
56264         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56265         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56266         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56267         (Depends-on): Add signal. Remove verify.
56268         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56269         (Include): Mention <signal.h> instead of sigprocmask.h.
56270         * NEWS: Mention the change.
56271         * lib/fatal-signal.c: Don't include sigprocmask.h.
56272
56273 2007-05-01  Bruno Haible  <bruno@clisp.org>
56274
56275         * modules/signal: New file.
56276         * lib/signal_.h: New file.
56277         * m4/signal_h.m4: New file.
56278
56279 2007-05-01  Bruno Haible  <bruno@clisp.org>
56280
56281         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56282         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56283         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56284         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56285
56286 2007-05-01  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56289         configure time.
56290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56291         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56292         * modules/sys_stat (Makefile.am): Substitute their values into
56293         sys/stat.h.
56294
56295 2007-05-01  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56298         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56299         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56300
56301 2007-05-01  Bruno Haible  <bruno@clisp.org>
56302
56303         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56304         'assert' module here.
56305
56306 2007-05-01  Bruno Haible  <bruno@clisp.org>
56307
56308         * doc/functions/*.texi: New files.
56309         * doc/functions/google-ranking.txt: New file.
56310         * doc/gnulib.texi (Function Substitutes): New chapter.
56311         (ctime, inet_ntoa): Remove sections.
56312         * doc/ctime.texi: Remove file.
56313         * doc/inet_ntoa.texi: Remove file.
56314         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56315         dependencies.
56316         (%.info): New rule, specifying a --reference-limit.
56317
56318 2007-05-01  Bruno Haible  <bruno@clisp.org>
56319
56320         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56321
56322 2007-05-01  Bruno Haible  <bruno@clisp.org>
56323
56324         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56325         the portability of 'mkdir' to mingw systems.
56326
56327 2007-05-01  Bruno Haible  <bruno@clisp.org>
56328
56329         * doc/headers/google-ranking.txt: New file.
56330
56331 2007-04-30  Eric Blake  <ebb9@byu.net>
56332
56333         Prefer fseeko to fseek.
56334         * modules/getpass (Depends-on): Add fseeko.
56335         * lib/getpass.c (getpass): Use fseeko, not fseek.
56336
56337 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56338
56339         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56340         assumes the sorting is stable, while most qsort implementations
56341         are not.  Use argument addresses to ensure they never compare as
56342         equal.
56343
56344         * tests/test-argp-2.sh (usage-indent test): Fix output
56345         (func_compare): Restore diff options
56346         * tests/test-argp.c: Restore #include "progname.h"
56347
56348 2007-04-29  Bruno Haible  <bruno@clisp.org>
56349
56350         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56352         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56354         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56355         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56356         (TESTS, check_PROGRAMS): Add test-snprintf.
56357         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56358         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56359         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56360         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56361         assertions that fail on HP-UX, OSF/1, or IRIX.
56362         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56363
56364 2007-04-29  Bruno Haible  <bruno@clisp.org>
56365
56366         * MODULES.html.sh (posix_functions): Remove 'contents'.
56367
56368 2007-04-29  Karl Berry  <karl@gnu.org>
56369
56370         * config/srclist.txt (gendocs_template_min): new entry.
56371
56372 2007-04-29  Bruno Haible  <bruno@clisp.org>
56373
56374         Work around fpurge bug on BSD systems.
56375         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56376         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56377         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56378         fpurge to rpl_fpurge if the system already has this function.
56379         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56380         the case where the system already has this function. Correct invariants
56381         on BSD systems.
56382         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56383         BSD systems.
56384
56385 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56386
56387         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56388         proposed by Sven Verdoolaege.
56389
56390         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56391         options.
56392         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56393         (usage and help tests): Update
56394
56395 2007-04-29  Bruno Haible  <bruno@clisp.org>
56396
56397         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56398         Print more information in case of failure. Disable a test on BeOS.
56399
56400 2007-04-29  Bruno Haible  <bruno@clisp.org>
56401
56402         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56403         This helps debugging on systems on which no gdb is available.
56404
56405 2007-04-29  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/freading.h: Improve comments.
56408         * lib/fwriting.h: Likewise.
56409         * tests/test-freading.c (main): Don't check freading immediately after
56410         repositioning. Needed for glibc.
56411
56412 2007-04-29  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/freading.c (freading): Trivial simplification.
56415
56416 2007-04-28  Bruno Haible  <bruno@clisp.org>
56417
56418         * tests/test-fwriting.c (main): Also test the interaction between
56419         fflush and fwriting.
56420         * modules/fwriting-tests (Depends-on): Add fflush.
56421
56422         * tests/test-freading.c (main): Also test the interaction between
56423         fflush and freading.
56424         * modules/freading-tests (Depends-on): Add fflush.
56425
56426 2007-04-28  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56429         fseeko and ftello.
56430         Suggested by Eric Blake.
56431
56432 2007-04-28  Jim Meyering  <jim@meyering.net>
56433
56434         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56435         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56436         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56437
56438 2007-04-27  Eric Blake  <ebb9@byu.net>
56439
56440         * doc/headers/assert.texi (assert.h): Document assert module use.
56441
56442 2007-04-27  Bruno Haible  <bruno@clisp.org>
56443
56444         * doc/headers/*.texi: New files.
56445         * doc/gnulib.texi (Header File Substitutes): New chapter.
56446         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56447         dependencies.
56448         (standards.info ,standards.html, standards.dvi): Update dependencies.
56449         (mostlyclean, clean): New targets.
56450
56451 2007-04-27  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56454         * modules/sysexits (Files, Makefile.am): Update.
56455
56456         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56457         * modules/sys_socket (Files, Makefile.am): Update.
56458
56459         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56460         * modules/sys_stat (Files, Makefile.am): Update.
56461
56462 2007-04-27  Eric Blake  <ebb9@byu.net>
56463
56464         * lib/freading.h: Improve comments.
56465         * lib/fwriting.h: Likewise.
56466         * lib/fflush.c: Likewise.
56467
56468         Fix closein for mingw.
56469         * modules/closein-tests: Add tests for closein.
56470         * tests/test-closein.c: New file.
56471         * tests/test-closein.sh: Likewise.
56472         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56473         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56474
56475 2007-04-27  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56478         version is < 6.
56479         * lib/math_.h [__DECC]: Likewise.
56480         * lib/stdio_.h [__DECC]: Likewise.
56481         * lib/stdlib_.h [__DECC]: Likewise.
56482         * lib/string_.h [__DECC]: Likewise.
56483         * lib/time_.h [__DECC]: Likewise.
56484         * lib/wchar_.h [__DECC]: Likewise.
56485         * lib/wctype_.h [__DECC]: Likewise.
56486
56487 2007-04-27  Bruno Haible  <bruno@clisp.org>
56488
56489         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56490
56491 2007-04-27  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/fflush.c: Add comments.
56494         * modules/fpurge-tests (Depends-on): Add fflush.
56495         * modules/freadable-tests (Depends-on): Likewise.
56496         * modules/fwritable-tests (Depends-on): Likewise.
56497
56498 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56499
56500         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56501         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56502         Report by Bruno Haible <bruno@clisp.org>.
56503
56504 2007-04-26  Eric Blake  <ebb9@byu.net>
56505
56506         Fix fflush on mingw.
56507         * modules/fflush (Depends-on): Add freading.
56508         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56509         but unread data.
56510
56511 2007-04-26  Eric Blake  <ebb9@byu.net>
56512         and Bruno Haible  <bruno@clisp.org>
56513
56514         Implement freading and fwriting.
56515         * lib/freading.c: New file.
56516         * lib/freading.h: Likewise.
56517         * m4/freading.m4: Likewise.
56518         * modules/freading: Likewise.
56519         * modules/freading-tests: Likewise.
56520         * tests/test-freading.c: Likewise.
56521         * lib/fwriting.c: New file.
56522         * lib/fwriting.h: Likewise.
56523         * m4/fwriting.m4: Likewise.
56524         * modules/fwriting: Likewise.
56525         * modules/fwriting-tests: Likewise.
56526         * tests/test-fwriting.c: Likewise.
56527         * MODULES.html.sh (File stream based Input/Output): Mention them.
56528
56529 2007-04-26  Bruno Haible  <bruno@clisp.org>
56530
56531         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56532         'long' when we assume it.
56533         Suggested by Eric Blake.
56534
56535 2007-04-26  Bruno Haible  <bruno@clisp.org>
56536
56537         Ensure fseeko, ftello are declared on glibc systems.
56538         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56539         * modules/fseeko (configure.ac-early): Likewise.
56540         * modules/ftello (configure.ac-early): Likewise.
56541         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56542         AC_FUNC_FSEEKO for this.
56543         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56544         (gl_CHECK_FSEEKO): Remove macro.
56545
56546 2007-04-26  Bruno Haible  <bruno@clisp.org>
56547
56548         * tests/test-fflush.c (main): Also check the ftell result after
56549         fflush and fseek/fseeko.
56550         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56551         file descriptor position cache in the stream.
56552         * lib/fseeko.c (rpl_fseeko): Likewise.
56553
56554 2007-04-26  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/fflush-tests (Depends-on): Add fseeko.
56557
56558 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56559             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56560
56561         * lib/argz_.h: ensure error_t definition is obtained in same
56562         mechanism system argz.h would have.
56563         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56564         argz facilities are known bad.  Err on the side of caution if
56565         cross-compiling.
56566
56567 2007-04-25  Eric Blake  <ebb9@byu.net>
56568
56569         * lib/fpurge.c (includes): Use stdlib.h for free.
56570         * tests/test-fflush.c (main): Also test fflush-fseeko.
56571
56572 2007-04-25  Bruno Haible  <bruno@clisp.org>
56573
56574         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56575         * lib/fseeko.c: New file.
56576         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56577         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56578         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56579         gl_FUNC_FSEEKO.
56580         (gl_FUNC_FSEEKO): Invoke it.
56581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56582         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56583         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56584
56585 2007-04-25  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/fflush (Depends-on): Add ftello.
56588
56589 2007-04-25  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/ftello-tests: New file.
56592         * tests/test-ftello.c: New file.
56593
56594         * modules/ftello: New file.
56595         * m4/ftello.m4: New file.
56596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56597         HAVE_FTELLO.
56598         * lib/stdio_.h (ftello): New declaration.
56599         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56600         HAVE_FTELLO.
56601
56602 2007-04-25  Bruno Haible  <bruno@clisp.org>
56603
56604         * modules/fseeko-tests: New file.
56605         * tests/test-fseeko.c: New file.
56606
56607         * modules/fseeko: New file.
56608         * m4/fseeko.m4: New file.
56609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56610         HAVE_FSEEKO.
56611         * lib/stdio_.h (fseeko): New declaration.
56612         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56613         HAVE_FSEEKO.
56614
56615 2007-04-25  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56618
56619 2007-04-25  Bruno Haible  <bruno@clisp.org>
56620
56621         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56622         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56623         * tests/test-unistd.c: Likewise.
56624         * tests/test-fcntl.c: Likewise.
56625
56626 2007-04-23  Eric Blake  <ebb9@byu.net>
56627
56628         * lib/fflush.c: Fix missing include.
56629         Reported by Bruno Haible.
56630
56631 2007-04-23  Bruno Haible  <bruno@clisp.org>
56632
56633         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56634         Reported by Eric Blake.
56635
56636 2007-04-23  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56639
56640 2007-04-23  Bruno Haible  <bruno@clisp.org>
56641
56642         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56643
56644 2007-04-23  Bruno Haible  <bruno@clisp.org>
56645
56646         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56647         Needed on HP-UX 11.
56648
56649 2007-04-16  Eric Blake  <ebb9@byu.net>
56650
56651         Make fflush rely on fpurge.
56652         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56653         open coding all variants.
56654         * modules/fflush (Depends-on): Add fpurge and unistd.
56655         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56657
56658         Fix --with-tests compilation on cygwin.
56659         * modules/argmatch-tests (Makefile.am): List gnulib library first
56660         in LDADD.
56661         * modules/argp-tests (Makefile.am): Likewise.
56662         * modules/array-list-tests (Makefile.am): Likewise.
56663         * modules/array-oset-tests (Makefile.am): Likewise.
56664         * modules/avltree-list-tests (Makefile.am): Likewise.
56665         * modules/avltree-oset-tests (Makefile.am): Likewise.
56666         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56667         * modules/carray-list-tests (Makefile.am): Likewise.
56668         * modules/dirname-tests (Makefile.am): Likewise.
56669         * modules/frexp-tests (Makefile.am): Likewise.
56670         * modules/isnanl-tests (Makefile.am): Likewise.
56671         * modules/linked-list-tests (Makefile.am): Likewise.
56672         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56673         * modules/lock-tests (Makefile.am): Likewise.
56674         * modules/rbtree-list-tests (Makefile.am): Likewise.
56675         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56676         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56677         * modules/tls-tests (Makefile.am): Likewise.
56678         * modules/tsearch-tests (Makefile.am): Likewise.
56679         * modules/xvasprintf-tests (Makefile.am): Likewise.
56680
56681         Fix fpurge for cygwin.
56682         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56683         value.
56684         * modules/fpurge-tests (Depends-on): Clean up trash.
56685
56686 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56687
56688         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56689
56690         * m4/autobuild.m4: Re-indent.
56691
56692 2007-04-13  Bruno Haible  <bruno@clisp.org>
56693
56694         * modules/fpurge-tests: New file.
56695         * tests/test-fpurge.c: New file.
56696
56697         * modules/fpurge: New file.
56698         * lib/fpurge.h: New file.
56699         * lib/fpurge.c: New file.
56700         * m4/fpurge.m4: New file.
56701
56702 2007-04-13  Bruno Haible  <bruno@clisp.org>
56703
56704         * modules/fbufmode-tests: New file.
56705         * tests/test-fbufmode.c: New file.
56706
56707         * modules/fbufmode: New file.
56708         * lib/fbufmode.h: New file.
56709         * lib/fbufmode.c: New file.
56710         * m4/fbufmode.m4: New file.
56711
56712 2007-04-13  Bruno Haible  <bruno@clisp.org>
56713
56714         * modules/fwritable-tests: New file.
56715         * tests/test-fwritable.c: New file.
56716
56717         * modules/fwritable: New file.
56718         * lib/fwritable.h: New file.
56719         * lib/fwritable.c: New file.
56720         * m4/fwritable.m4: New file.
56721
56722 2007-04-13  Bruno Haible  <bruno@clisp.org>
56723
56724         * modules/freadable-tests: New file.
56725         * tests/test-freadable.c: New file.
56726
56727         * modules/freadable: New file.
56728         * lib/freadable.h: New file.
56729         * lib/freadable.c: New file.
56730         * m4/freadable.m4: New file.
56731
56732 2007-04-13  Bruno Haible  <bruno@clisp.org>
56733
56734         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56735         MOSTLYCLEANFILES.
56736
56737 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56740         gzip bootstrap.conf to avoid dragging in i18n machinery.
56741         (gnulib_tool_option): Use it.
56742
56743 2007-04-13  Bruno Haible  <bruno@clisp.org>
56744
56745         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56746         %F directives.
56747         * tests/test-vasprintf-posix.c (test_function): Likewise.
56748         * tests/test-snprintf-posix.h (test_function): Likewise.
56749         * tests/test-sprintf-posix.h (test_function): Likewise.
56750         * tests/test-fprintf-posix.h (test_function): Likewise.
56751         * tests/test-printf-posix.h (test_function): Likewise.
56752         * tests/test-fprintf-posix.out: Likewise.
56753
56754 2007-04-13  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56757         * modules/tls-tests (configure.ac): Likewise.
56758         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56759
56760 2007-04-13  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/tls.c (glthread_tls_get): Fix return type.
56763         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56764
56765 2007-04-12  Eric Blake  <ebb9@byu.net>
56766
56767         * modules/gettime (Depends-on): Remove gettime.
56768         Reported by Dmitry V. Levin.
56769
56770 2007-04-12  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/fflush (Include): Mention <stdio.h>.
56773         * modules/strtoimax (Include): Mention <inttypes.h>.
56774         * modules/strtoumax (Include): Likewise.
56775
56776 2007-04-12  Eric Blake  <ebb9@byu.net>
56777
56778         * .cvsignore: New file.
56779         * .gitignore: Likewise.
56780
56781 2007-04-12  Bruno Haible  <bruno@clisp.org>
56782
56783         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56784         not before, since $(LDADD) often contains libgnu.a.
56785         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56786         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56787         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56788         Needed on Cygwin.
56789
56790 2007-04-12  Eric Blake  <ebb9@byu.net>
56791
56792         Work around glibc's failure to flush stdin on fclose.
56793         * lib/closein.c (close_stdin): Flush stdin before closing.
56794
56795         Work around glibc's failure to reset seekable stdin on exit.
56796         * modules/closein: New module.
56797         * lib/closein.c: New file.
56798         * lib/closein.h: Likewise.
56799         * m4/closein.m4: Likewise.
56800         * MODULES.html.sh (File stream based Input/Output): Document it.
56801
56802 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56803
56804         * gnulib-tool: Rename generated 'autobuild' script to
56805         'do-autobuild' in --create-megatestdir output.
56806
56807         * doc/gnulib.texi (Build robot for gnulib): Fix.
56808
56809 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56810
56811         * modules/sysexits (Depends-on): Add absolute-header.
56812
56813 2007-04-12  Eric Blake  <ebb9@byu.net>
56814
56815         No need to preserve errno on success.
56816         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56817         Reported by Bruno Haible.
56818
56819 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56820
56821         * MODULES.html.sh (Support for maintaining and releasing
56822         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56823
56824 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56825
56826         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56827
56828 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56829
56830         * modules/autobuild: New module.
56831
56832         * m4/autobuild.m4: New file.
56833
56834 2007-04-11  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56837         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56841         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56842         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56844         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56845         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56847         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56848         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56850         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56851         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56853         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56854         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56855         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56864         Reported by Eric Blake.
56865
56866 2007-04-11  Bruno Haible  <bruno@clisp.org>
56867
56868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56869
56870 2007-04-10  Bruno Haible  <bruno@clisp.org>
56871
56872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56873         for NaN and Infinity. Needed on FreeBSD 6.1.
56874         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56875         regarding results for "%010a" of Infinity and NaN.
56876         * tests/test-vasprintf-posix.c (test_function): Likewise.
56877         * tests/test-snprintf-posix.h (test_function): Likewise.
56878         * tests/test-sprintf-posix.h (test_function): Likewise.
56879         * tests/test-fprintf-posix.h (test_function): Likewise.
56880         * tests/test-printf-posix.h (test_function): Likewise.
56881         * tests/test-fprintf-posix.out: Likewise.
56882
56883 2007-04-10  Bruno Haible  <bruno@clisp.org>
56884
56885         * modules/locale-tests: New file.
56886         * tests/test-locale.c: New file.
56887
56888         * modules/locale: New file.
56889         * lib/locale_.h: New file.
56890         * m4/locale_h.m4: New file.
56891
56892 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56893             Bruno Haible  <bruno@clisp.org>
56894
56895         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56896         be determined, test for availability of the copysignf, copysign,
56897         copysignl functions.
56898         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56899         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56900         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56901
56902 2007-04-09  Eric Blake  <ebb9@byu.net>
56903
56904         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56905         * modules/stdio (Makefile.am): Support fflush.
56906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56907         * modules/fflush: New file.
56908         * lib/fflush.c: Likewise.
56909         * m4/fflush.m4: Likewise.
56910         * modules/fflush-tests: New test.
56911         * tests/test-fflush.c: Likewise.
56912         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56913
56914 2007-04-06  Bruno Haible  <bruno@clisp.org>
56915
56916         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56917         (VASNPRINTF): Use signbit for faster determination whether to print a
56918         minus sign.
56919         * modules/vasnprintf (Files): Remove lib/float+.h.
56920         * modules/fprintf-posix (Depends-on): Add signbit.
56921         * modules/snprintf-posix (Depends-on): Likewise.
56922         * modules/sprintf-posix (Depends-on): Likewise.
56923         * modules/vasnprintf-posix (Depends-on): Likewise.
56924         * modules/vasprintf-posix (Depends-on): Likewise.
56925         * modules/vfprintf-posix (Depends-on): Likewise.
56926         * modules/vsnprintf-posix (Depends-on): Likewise.
56927         * modules/vsprintf-posix (Depends-on): Likewise.
56928
56929 2007-04-06  Bruno Haible  <bruno@clisp.org>
56930
56931         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56932         * tests/test-frexpl.c (main): Likewise.
56933         * tests/test-ldexpl.c (main): Likewise.
56934         * modules/frexp-tests (Depends-on): Add signbit.
56935         * modules/frexpl-tests (Depdends-on): Likewise.
56936         * modules/ldexpl-tests (Depdends-on): Likewise.
56937
56938 2007-04-06  Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/signbit-tests: New file.
56941         * tests/test-signbit.c: New file.
56942
56943         * modules/signbit: New file.
56944         * lib/signbitf.c: New file.
56945         * lib/signbitd.c: New file.
56946         * lib/signbitl.c: New file.
56947         * m4/signbit.m4: New file.
56948         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56949         (signbit): New macro.
56950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56951         REPLACE_SIGNBIT.
56952         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56953         REPLACE_FREXPL into math.h.
56954
56955 2007-04-06  Bruno Haible  <bruno@clisp.org>
56956
56957         * modules/isnanf-nolibm-tests: New file.
56958         * tests/test-isnanf.c: New file.
56959
56960         * modules/isnanf-nolibm: New file.
56961         * lib/isnanf.h: New file.
56962         * lib/isnanf.c: New file.
56963         * lib/isnan.c: Consider the USE_FLOAT macro.
56964         * m4/isnanf.m4: New file.
56965
56966 2007-04-06  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56969         (Link): New section.
56970
56971         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56972
56973 2007-04-06  Bruno Haible  <bruno@clisp.org>
56974
56975         Assume the 'long double' type.
56976         * m4/longdouble.m4: Remove file.
56977         * config/srclist.txt: Don't mention longdouble.m4.
56978         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56979         * lib/float+.h: Likewise.
56980         * lib/frexp.c: Likewise.
56981         * lib/printf-args.h: Likewise.
56982         * lib/printf-args.c: Likewise.
56983         * lib/printf-frexp.c: Likewise.
56984         * lib/printf-parse.c: Likewise.
56985         * lib/vasnprintf.c: Likewise.
56986         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56987         * m4/intl.m4: Likewise.
56988         * m4/isnanl.m4: Likewise.
56989         * m4/printf.m4: Likewise.
56990         * m4/printf-frexpl.m4: Likewise.
56991         * m4/vasnprintf.m4: Likewise.
56992         * modules/allocsa (Files): Remove m4/longdouble.m4.
56993         * modules/gettext (Files): Likewise.
56994         * modules/relocatable-prog-wrapper (Files): Likewise.
56995         * modules/vasnprintf (Files): Likewise.
56996         * modules/isnanl (Files): Likewise.
56997         (Include): Simplify.
56998         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56999         (Include): Simplify.
57000         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57001         (Include): Simplify.
57002         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57003         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57004         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57005         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57006         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57007         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57008         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57009         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57010         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57011         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57012         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57013         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57014         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57015         * tests/test-isnanl.c: Likewise.
57016         * tests/test-snprintf-posix.h: Likewise.
57017         * tests/test-sprintf-posix.h: Likewise.
57018         * tests/test-vasnprintf-posix.c: Likewise.
57019         * tests/test-vasnprintf-posix2.c: Likewise.
57020         * tests/test-vasprintf-posix.c: Likewise.
57021
57022 2007-04-06  Bruno Haible  <bruno@clisp.org>
57023
57024         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57025         * lib/math_.h [__DECC]: Include the overridden include file through
57026         #include_next, outside the double-inclusion guard.
57027         * lib/stdio_.h [__DECC]: Likewise.
57028         * lib/stdlib_.h [__DECC]: Likewise.
57029         * lib/string_.h [__DECC]: Likewise.
57030         * lib/time_.h [__DECC]: Likewise.
57031         * lib/wchar_.h [__DECC]: Likewise.
57032         * lib/wctype_.h [__DECC]: Likewise.
57033         * lib/inttypes_.h [__DECC]: Likewise.
57034         Reported by Albert Chin <china@thewrittenword.com> in
57035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57036
57037 2007-04-04  Eric Blake  <ebb9@byu.net>
57038
57039         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57040         1.5.x.
57041
57042 2007-04-04  Bruno Haible  <bruno@clisp.org>
57043
57044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57045         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57046
57047 2007-04-04  Bruno Haible  <bruno@clisp.org>
57048
57049         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57050         results for "%010a" of Infinity and NaN.
57051         * tests/test-vasprintf-posix.c (test_function): Likewise.
57052         * tests/test-snprintf-posix.h (test_function): Likewise.
57053         * tests/test-sprintf-posix.h (test_function): Likewise.
57054         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57055         * tests/test-printf-posix.h (test_function): Likewise.
57056         * tests/test-fprintf-posix.out: Update.
57057         Needed for FreeBSD 6.1.
57058
57059 2007-04-04  Bruno Haible  <bruno@clisp.org>
57060
57061         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57062         directly used by the gnulib modules nor by gnulib-tool.
57063
57064 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * DEPENDENCIES: Give overall description of version dependency
57067         desirability.  Use more-typical names for apps.
57068         Add shell, coreutils, diffutils, grep, tar, gzip.
57069
57070 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57071
57072         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57073
57074 2007-04-04  Karl Berry  <karl@gnu.org>
57075
57076         * MODULES.html.sh (func_module): missing '.
57077
57078 2007-04-03  Bruno Haible  <bruno@clisp.org>
57079
57080         * modules/argmatch-tests (Makefile.am): New variable
57081         test_argmatch_LDADD.
57082         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57083         * modules/array-list-tests (Makefile.am): New variable
57084         test_array_list_LDADD.
57085         * modules/array-oset-tests (Makefile.am): New variable
57086         test_array_oset_LDADD.
57087         * modules/avltree-list-tests (Makefile.am): New variable
57088         test_avltree_list_LDADD.
57089         * modules/avltree-oset-tests (Makefile.am): New variable
57090         test_avltree_oset_LDADD.
57091         * modules/avltreehash-list-tests (Makefile.am): New variable
57092         test_avltreehash_list_LDADD.
57093         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57094         test_canonicalize_lgpl_LDADD.
57095         * modules/carray-list-tests (Makefile.am): New variable
57096         test_carray_list_LDADD.
57097         * modules/dirname-tests (Makefile.am): New variable
57098         test_dirname_LDADD.
57099         * modules/linked-list-tests (Makefile.am): New variable
57100         test_linked_list_LDADD.
57101         * modules/linkedhash-list-tests (Makefile.am): New variable
57102         test_linkedhash_list_LDADD.
57103         * modules/rbtree-list-tests (Makefile.am): New variable
57104         test_rbtree_list_LDADD.
57105         * modules/rbtree-oset-tests (Makefile.am): New variable
57106         test_rbtree_oset_LDADD.
57107         * modules/rbtreehash-list-tests (Makefile.am): New variable
57108         test_rbtreehash_list_LDADD.
57109         * modules/xvasprintf-tests (Makefile.am): New variable
57110         test_xvasprintf_LDADD.
57111         Reported by Eric Blake.
57112
57113 2007-04-03  Eric Blake  <ebb9@byu.net>
57114
57115         * DEPENDENCIES: Weaken m4 requirements.
57116
57117 2007-04-03  Bruno Haible  <bruno@clisp.org>
57118
57119         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57120         * modules/isnanl-tests (configure.ac): Likewise.
57121
57122 2007-04-03  Ben Pfaff  <blp@gnu.org>
57123
57124         * modules/iconv_open: Add $(srcdir)/ to source directory
57125         references in Makefile fragments that call gperf, to fix VPATH
57126         builds.
57127
57128 2007-04-03  Bruno Haible  <bruno@clisp.org>
57129
57130         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57131         * lib/ldexpl.c: Undo last change.
57132
57133 2007-04-03  Bruno Haible  <bruno@clisp.org>
57134
57135         * modules/printf-frexpl (Depends-on): Undo last change.
57136         (Files): Add m4/ldexpl.m4.
57137
57138 2007-04-03  Bruno Haible  <bruno@clisp.org>
57139
57140         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57141         * modules/isnanl (Link): New section.
57142
57143         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57144         * modules/frexp (Link): New section.
57145
57146         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57147         * modules/frexpl (Link): New section.
57148
57149         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57150         * modules/ldexpl (Link): New section.
57151
57152 2007-04-03  Bruno Haible  <bruno@clisp.org>
57153
57154         * modules/TEMPLATE-EXTENDED: New file.
57155         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57156
57157 2007-04-03  Bruno Haible  <bruno@clisp.org>
57158
57159         * DEPENDENCIES: New file.
57160         Suggested by Simon Josefsson.
57161
57162 2007-04-03  Bruno Haible  <bruno@clisp.org>
57163
57164         * doc/gnulib.texi: Escape @.
57165
57166 2007-04-03  James Youngman  <jay@gnu.org>
57167         and Paul Eggert  <eggert@cs.ucla.edu>
57168
57169         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57170         birthtime on all systems that have birthtime, not just those which
57171         use st_birthtimensec rather than st_birthtim.  Putting zero in
57172         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57173         that the birth time is not available for files on an NFS mount.
57174
57175 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57176
57177         * modules/memxor: Move back from crypto/, suggested by Bruno.
57178         * modules/crypto/hmac-sha1: Fix memxor dependency.
57179
57180         * modules/crypto/gc: Moved from ../.
57181
57182 2007-04-02  Eric Blake  <ebb9@byu.net>
57183
57184         * lib/ldexpl.c (includes): Avoid libm.
57185
57186         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57187
57188 2007-04-02  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57191         on IRIX.
57192
57193 2007-04-02  Bruno Haible  <bruno@clisp.org>
57194
57195         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57196         x86 or x86_64 platforms running MacOS X.
57197         Reported by Ryan Schmidt <@ryandesign.com>.
57198
57199 2007-04-02  Bruno Haible  <bruno@clisp.org>
57200
57201         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57202         i386.
57203
57204 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57205
57206         * modules/crypto/arcfour: Moved from ../.
57207         * modules/crypto/arcfour-tests: Moved from ../.
57208         * modules/crypto/arctwo: Moved from ../.
57209         * modules/crypto/arctwo-tests: Moved from ../.
57210         * modules/crypto/des: Moved from ../.
57211         * modules/crypto/des-tests: Moved from ../.
57212         * modules/crypto/gc-arcfour: Moved from ../.
57213         * modules/crypto/gc-arcfour-tests: Moved from ../.
57214         * modules/crypto/gc-arctwo: Moved from ../.
57215         * modules/crypto/gc-arctwo-tests: Moved from ../.
57216         * modules/crypto/gc-des: Moved from ../.
57217         * modules/crypto/gc-des-tests: Moved from ../.
57218         * modules/crypto/gc-hmac-md5: Moved from ../.
57219         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57220         * modules/crypto/gc-hmac-sha1: Moved from ../.
57221         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57222         * modules/crypto/gc-md2: Moved from ../.
57223         * modules/crypto/gc-md2-tests: Moved from ../.
57224         * modules/crypto/gc-md4: Moved from ../.
57225         * modules/crypto/gc-md4-tests: Moved from ../.
57226         * modules/crypto/gc-md5: Moved from ../.
57227         * modules/crypto/gc-md5-tests: Moved from ../.
57228         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57229         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57230         * modules/crypto/gc-random: Moved from ../.
57231         * modules/crypto/gc-rijndael: Moved from ../.
57232         * modules/crypto/gc-rijndael-tests: Moved from ../.
57233         * modules/crypto/gc-sha1: Moved from ../.
57234         * modules/crypto/gc-sha1-tests: Moved from ../.
57235         * modules/crypto/gc-tests: Moved from ../.
57236         * modules/crypto/hmac-md5: Moved from ../.
57237         * modules/crypto/hmac-md5-tests: Moved from ../.
57238         * modules/crypto/hmac-sha1: Moved from ../.
57239         * modules/crypto/hmac-sha1-tests: Moved from ../.
57240         * modules/crypto/md2: Moved from ../.
57241         * modules/crypto/md2-tests: Moved from ../.
57242         * modules/crypto/md4: Moved from ../.
57243         * modules/crypto/md4-tests: Moved from ../.
57244         * modules/crypto/md5: Moved from ../.
57245         * modules/crypto/md5-tests: Moved from ../.
57246         * modules/crypto/memxor: Moved from ../.
57247         * modules/crypto/rijndael: Moved from ../.
57248         * modules/crypto/rijndael-tests: Moved from ../.
57249         * modules/crypto/sha1: Moved from ../.
57250
57251 2007-03-30  James Youngman  <jay@gnu.org>
57252
57253         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57254         rename() to change the ctime of a file (because ctime is unaffected
57255         by rename on jfs2 on AIX 5.1).
57256         (main): Start by doing cleanup, in case a previous run failed leaving
57257         test files behind.
57258
57259 2007-03-31  Bruno Haible  <bruno@clisp.org>
57260
57261         Support old proprietary implementations of iconv.
57262         * modules/iconv_open: New file.
57263         * lib/iconv_.h: New file.
57264         * m4/iconv_h.m4: New file.
57265         * lib/iconv_open.c: New file.
57266         * lib/iconv_open-aix.gperf: New file.
57267         * lib/iconv_open-hpux.gperf: New file.
57268         * lib/iconv_open-irix.gperf: New file.
57269         * lib/iconv_open-osf.gperf: New file.
57270         * m4/iconv_open.m4: New file.
57271         * modules/linebreak (Depends-on): Add iconv_open.
57272         * modules/striconv (Depends-on): Likewise.
57273         * modules/striconveh (Depends-on): Likewise.
57274         * modules/unicodeio (Depends-on): Likewise.
57275         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57276         (iconv_t)(-1).
57277         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57278         conversion if cd is (iconv_t)(-1).
57279         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57280         is not possible.
57281
57282 2007-03-31  Bruno Haible  <bruno@clisp.org>
57283
57284         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57285         work on Solaris either. Protect also second use of "autodetect_jp".
57286
57287 2007-03-31  Bruno Haible  <bruno@clisp.org>
57288
57289         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57290         the function is not present.
57291
57292 2007-03-31  Bruno Haible  <bruno@clisp.org>
57293
57294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57295         the function is not present.
57296
57297 2007-03-31  Bruno Haible  <bruno@clisp.org>
57298
57299         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57300         a bug in HP-UX iconv_open().
57301
57302 2007-03-31  Bruno Haible  <bruno@clisp.org>
57303
57304         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57305         (Mathematics <math.h>): New section, add fpieee.
57306         (Input/output <stdio.h>): Add fseterr.
57307         (Mathematics <math.h>): New section, add printf-frexp.
57308         (Container data structures): Add sublist.
57309         (Core language properties): Add fpucw, inline.
57310         (Functions for greatest-width integer types <inttypes.h>): Add
57311         imaxabs, imaxdiv, inttypes.
57312         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57313         isnanl-nolibm, ldexp.
57314         (Mathematics <math.h>): New section, add printf-frexpl.
57315         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57316         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57317         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57318         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57319         (Unicode string functions): Add unistr/u*-mbtoucr.
57320         (Java): Add javacomp-script, javaexec-script.
57321         (C#): Add csharpcomp-script, csharpexec-script.
57322         (Support for building libraries and executables): Add havelib,
57323         relocatable-*.
57324         (Support for maintaining and releasing projects): Renamed from
57325         'Support for maintaining and release projects'. Add announce-gen.
57326
57327 2007-03-31  Bruno Haible  <bruno@clisp.org>
57328
57329         * README: Talk primarily about git.
57330         (git and CVS): Renamed from CVS.
57331         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57332         gnulib is available through git.
57333         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57334
57335 2007-03-30  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57338         * lib/poll_.h: Likewise.
57339         * lib/stat_.h: Likewise.
57340         * lib/sys_time_.h: Likewise.
57341         * lib/sysexit_.h: Likewise.
57342         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57343         * lib/stdbool_.h: Likewise.
57344         * lib/byteswap_.h: Add double-inclusion guard.
57345
57346 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57347
57348         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57349
57350 2007-03-30  Karl Berry  <karl@gnu.org>
57351
57352         * config/srclist-update: double space after USA in the license
57353         substitution, since that's how it's usually (?) written.
57354
57355 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57356
57357         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57358         reported by Bruno Haible.
57359
57360 2007-03-29  Bruno Haible  <bruno@clisp.org>
57361
57362         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57363         a bug in AIX iconv().
57364
57365 2007-03-29  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/ldexpl-tests: New file.
57368         * tests/test-ldexpl.c: New file.
57369
57370 2007-03-29  Bruno Haible  <bruno@clisp.org>
57371
57372         * lib/ldexpl.c: Include fpucw.h.
57373         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57374         multiplication.
57375         * modules/ldexpl (Depends-on): Add fpucw.
57376
57377 2007-03-29  Bruno Haible  <bruno@clisp.org>
57378
57379         * modules/ldexpl: New file.
57380         * m4/ldexpl.m4: New file.
57381         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57382         set.
57383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57384         REPLACE_LDEXPL.
57385         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57386         REPLACE_LDEXPL.
57387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57388         gl_FUNC_LDEXPL_WORKS.
57389         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57390         * modules/mathl (Files): Remove lib/ldexpl.c.
57391         (Depends-on): Add ldexpl.
57392
57393 2007-03-29  Bruno Haible  <bruno@clisp.org>
57394
57395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57396
57397 2007-03-29  Bruno Haible  <bruno@clisp.org>
57398
57399         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57400         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57401         and possibly also HP-UX.
57402         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57403         work on AIX, IRIX, HP-UX, OSF/1.
57404         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57405         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57406         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57407         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57408         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57409         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57410
57411 2007-03-29  Bruno Haible  <bruno@clisp.org>
57412
57413         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57414
57415 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57416
57417         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57418         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57419
57420 2007-03-29  Eric Blake  <ebb9@byu.net>
57421
57422         * lib/acl-internal.h: Remove redundant include.
57423         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57424         Cygwin when a file is locked.
57425
57426 2007-03-29  Bruno Haible  <bruno@clisp.org>
57427
57428         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57429         file.
57430         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57431
57432 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57433
57434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57435         try to remove a parent directory if the child couldn't be removed
57436         (except for the first rmdir, which could fail because the child
57437         doesn't exist).  Problem reported by Jeff Blaine in
57438         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57439
57440 2007-03-28  Bruno Haible  <bruno@clisp.org>
57441
57442         * lib/striconveh.c (utf8conv_carefully): New function.
57443         (mem_cd_iconveh_internal): Invoke it.
57444
57445 2007-03-28  Bruno Haible  <bruno@clisp.org>
57446
57447         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57448         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57449         input.
57450         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57451         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57452         unistr/u8-uctomb.
57453
57454 2007-03-28  Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/unistr/u8-mbtoucr: New file.
57457         * lib/unistr/u8-mbtoucr.c: New file.
57458         * modules/unistr/u16-mbtoucr: New file.
57459         * lib/unistr/u16-mbtoucr.c: New file.
57460         * modules/unistr/u16-mbtoucr: New file.
57461         * lib/unistr/u16-mbtoucr.c: New file.
57462         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57463
57464 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57465             Bruno Haible  <bruno@clisp.org>
57466
57467         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57468         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57469         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57470
57471         * m4/stdio_h.m4: Add stubs for vasprintf too.
57472
57473         * modules/stdio: Support vasprintf in sed command.
57474
57475         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57476         vasprintf.h.  Add stdio module indicator.
57477
57478         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57479         vasprintf.h.
57480
57481         * lib/vasprintf.h: File removed.
57482
57483         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57484         * lib/vasprintf.c: Ditto.
57485         * lib/xvasprintf.c: Ditto.
57486         * tests/test-vasprintf-posix.c: Ditto.
57487         * tests/test-vasprintf.c: Ditto.
57488
57489 2007-03-27  Bruno Haible  <bruno@clisp.org>
57490
57491         Make vasnprintf multithread-safe.
57492         * lib/vasnprintf.c (decimal_point_char): New function.
57493         (VASNPRINTF): Use it.
57494         Suggested by Simon Josefsson.
57495
57496 2007-03-27  Eric Blake  <ebb9@byu.net>
57497
57498         Support sub-second birthtime on cygwin.
57499         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57500         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57501         (get_stat_birthtime): Also work with st_birthtim.
57502
57503 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57506         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57507         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57508         (get_stat_birthtime_ns): Simplify compile-time tests.
57509         (get_stat_birthtime): Change the API to look like
57510         get_stat_mtime etc., except return a negative tv_nsec on error.
57511         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57512         Don't check for "spare" fields.
57513         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57514         or for struct stat.st_birthtime, as these tests aren't used.
57515         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57516
57517 2007-03-27  Bruno Haible  <bruno@clisp.org>
57518
57519         * lib/stat-time.h: Include <sys/stat.h>.
57520
57521 2007-03-27  James Youngman  <jay@gnu.org>
57522
57523         * lib/stat-time.h (get_stat_birthtime): New function for
57524           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57525         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57526           and its variants.
57527         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57528         * modules/stat-time-test: New file.
57529         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57530
57531 2007-03-26  Bruno Haible  <bruno@clisp.org>
57532
57533         Better support of signalling NaNs.
57534         * lib/atanl.c: Include isnanl.h.
57535         (atanl): Perform test for NaN at the beginning of the function and
57536         through a call to isnanl.
57537         * lib/cosl.c: Include isnanl.h.
57538         (cosl): Perform test for NaN at the beginning of the function and
57539         through a call to isnanl.
57540         * lib/ldexpl.c: Include isnanl.h.
57541         (ldexpl): Perform test for NaN through a call to isnanl.
57542         * lib/logl.c: Include isnanl.h.
57543         (logl): Perform test for NaN at the beginning of the function and
57544         through a call to isnanl.
57545         * lib/sinl.c: Include isnanl.h.
57546         (sinl): Perform test for NaN at the beginning of the function and
57547         through a call to isnanl.
57548         * lib/sqrtl.c: Include isnanl.h.
57549         (sqrtl): Perform test for NaN at the beginning of the function and
57550         through a call to isnanl.
57551         * lib/tanl.c: Include isnanl.h.
57552         (tanl): Perform test for NaN at the beginning of the function and
57553         through a call to isnanl.
57554         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57555         * modules/mathl (Depends-on): Add isnanl.
57556
57557 2007-03-26  Eric Blake  <ebb9@byu.net>
57558
57559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57560         regression in logic sense of previous patch.
57561
57562 2007-03-26  Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57565         unportable shell command "if ! ...".
57566         Reported by Ralf Wildenhues.
57567
57568 2007-03-25  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57571         <sysexits.h> file, and only add EX_CONFIG.
57572         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57573         absolute file name and whether it is sufficient. Substitute also
57574         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57575         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57576         ABSOLUTE_SYSEXITS_H into sysexits.h.
57577
57578 2007-03-25  Bruno Haible  <bruno@clisp.org>
57579
57580         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57581         hints is NULL.
57582
57583 2007-03-25  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57586         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57587
57588 2007-03-25  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/vasnprintf.c: Include langinfo.h.
57591         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57592         multithread-safe.
57593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57602         Reported by Simon Josefsson.
57603
57604 2007-03-25  Bruno Haible  <bruno@clisp.org>
57605
57606         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57607         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57608         * modules/vasnprintf (Depends-on): Add stdint.
57609
57610 2007-03-25  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/fpieee: New file.
57613         * m4/fpieee.m4: New file.
57614         * modules/isnan-nolibm (Depends-on): Add fpieee.
57615         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57616         * modules/isnanl (Depends-on): Add fpieee.
57617
57618 2007-03-25  Bruno Haible  <bruno@clisp.org>
57619
57620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57621
57622 2007-03-25  Bruno Haible  <bruno@clisp.org>
57623
57624         Avoid test failures on IRIX 6.5.
57625         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57626         (main): Use it.
57627         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57628         macros.
57629         (main): Use them.
57630
57631 2007-03-25  Bruno Haible  <bruno@clisp.org>
57632
57633         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57634         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57635         exists but doesn't work.
57636         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57637         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57639         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57640         math.h.
57641
57642 2007-03-25  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57645         returns inf. Needed on IRIX 6.5.
57646
57647 2007-03-25  Bruno Haible  <bruno@clisp.org>
57648
57649         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57650         (main): Use isnanl instead of x != x idiom.
57651         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57652
57653         * tests/test-frexp.c: Include isnan.h.
57654         (main): Use isnan instead of x != x idiom.
57655         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57656
57657 2007-03-25  Bruno Haible  <bruno@clisp.org>
57658
57659         * tests/test-frexp.c (NaN): New function/macro.
57660         (main): Use it instead of 0.0 / 0.0.
57661         * tests/test-isnan.c (NaN): New function/macro.
57662         (main): Use it instead of 0.0 / 0.0.
57663         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57664         (test_function): Use it instead of 0.0 / 0.0.
57665         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57666         (test_function): Use it instead of 0.0 / 0.0.
57667         * tests/test-snprintf-posix.h (NaN): New function/macro.
57668         (test_function): Use it instead of 0.0 / 0.0.
57669         * tests/test-sprintf-posix.h (NaN): New function/macro.
57670         (test_function): Use it instead of 0.0 / 0.0.
57671         * tests/test-fprintf-posix.h (NaN): New function/macro.
57672         (test_function): Use it instead of 0.0 / 0.0.
57673         * tests/test-printf-posix.h (NaN): New function/macro.
57674         (test_function): Use it instead of 0.0 / 0.0.
57675
57676         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57677
57678 2007-03-25  Bruno Haible  <bruno@clisp.org>
57679
57680         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57681
57682 2007-03-25  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/regexec.c (merge_state_with_log): Make static.
57685
57686 2007-03-25  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/trigl.c (kernel_rem_pio2): Make static.
57689
57690 2007-03-25  Bruno Haible  <bruno@clisp.org>
57691
57692         * lib/sincosl.c (sincosl_table): Make static.
57693
57694 2007-03-25  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57697         if the compiler does not support C99.
57698
57699 2007-03-25  Bruno Haible  <bruno@clisp.org>
57700
57701         * modules/time (Makefile.am): Ensure all rule action lines start with a
57702         tab.
57703
57704 2007-03-24  Bruno Haible  <bruno@clisp.org>
57705
57706         * modules/tsearch-tests: New file.
57707         * tests/test-tsearch.sh: New file.
57708         * tests/test-tsearch.c: New file, mostly copied from glibc.
57709
57710         * modules/search-tests: New file.
57711         * tests/test-search.c: New file.
57712
57713         * modules/search: New file.
57714         * lib/search_.h: New file, incorporating lib/tsearch.h.
57715         * m4/search_h.m4: New file.
57716         * lib/tsearch.h: Remove file.
57717         * lib/tsearch.c: Include search.h instead of tsearch.h.
57718         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57719         HAVE_TSEARCH.
57720         * modules/tsearch (Files): Remove lib/tsearch.h.
57721         (Depends-on): Add search.
57722         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57723         (Include): Change tsearch.h into search.h.
57724
57725 2007-03-24  Bruno Haible  <bruno@clisp.org>
57726
57727         * modules/fpucw: New file.
57728         * lib/fpucw.h: New file.
57729         * lib/frexp.c: Include fpucw.h.
57730         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57731         (FUNC): Use them.
57732         * lib/printf-frexp.c: Include fpucw.h.
57733         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57734         (FUNC): Use them.
57735         * lib/vasnprintf.c: Include fpucw.h.
57736         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57737         'long double' calculations.
57738         * tests/test-frexpl.c: Include fpucw.h.
57739         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57740         * tests/test-printf-frexpl.c: Include fpucw.h.
57741         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57742         * modules/frexpl (Depends-on): Add fpucw.
57743         * modules/printf-frexpl (Depends-on): Likewise.
57744         * modules/fprintf-posix (Depends-on): Likewise.
57745         * modules/snprintf-posix (Depends-on): Likewise.
57746         * modules/sprintf-posix (Depends-on): Likewise.
57747         * modules/vasnprintf-posix (Depends-on): Likewise.
57748         * modules/vasprintf-posix (Depends-on): Likewise.
57749         * modules/vfprintf-posix (Depends-on): Likewise.
57750         * modules/vsnprintf-posix (Depends-on): Likewise.
57751         * modules/vsprintf-posix (Depends-on): Likewise.
57752         * modules/frexpl-tests (Depends-on): Likewise.
57753         * modules/printf-frexpl-tests (Depends-on): Likewise.
57754
57755 2007-03-24  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/float+.h: New file.
57758         * lib/isnan.c: Include float+.h.
57759         (SIZE): New macro.
57760         (FUNC): Compare only SIZE bytes of the value.
57761         * lib/vasnprintf.c: Include float+.h.
57762         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57763         SIZEOF_LDBL or SIZEOF_DBL bytes.
57764         * modules/isnan-nolibm (Files): Add lib/float+.h.
57765         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57766         * modules/isnanl (Files): Add lib/float+.h.
57767         * modules/vasnprintf (Files): Add lib/float+.h.
57768
57769 2007-03-24  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57772         include isnanl-nolibm.h.
57773
57774 2007-03-24  Bruno Haible  <bruno@clisp.org>
57775
57776         * tests/test-read-file.c (main): Don't produce spurious output for
57777         expected situations. Make the test fail if it encountered unexpected
57778         results.
57779
57780 2007-03-24  Bruno Haible  <bruno@clisp.org>
57781
57782         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57783         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57784
57785 2007-03-24  Bruno Haible  <bruno@clisp.org>
57786
57787         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57788
57789 2007-03-24  Bruno Haible  <bruno@clisp.org>
57790
57791         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57792         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57793
57794         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57795         * modules/utf8-ucs4: Turn into a symbolic link to module
57796         unistr/u8-mbtouc.
57797
57798         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57799         utf8-ucs4-unsafe.
57800         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57801         unistr/u8-mbtouc-unsafe.
57802
57803         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57804         * modules/utf16-ucs4: Turn into a symbolic link to module
57805         unistr/u16-mbtouc.
57806
57807         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57808         utf16-ucs4-unsafe.
57809         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57810         unistr/u16-mbtouc-unsafe.
57811
57812         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57813         * modules/ucs4-utf8: Turn into a symbolic link to module
57814         unistr/u8-ubtomb.
57815
57816         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57817         * modules/ucs4-utf16: Turn into a symbolic link to module
57818         unistr/u16-ubtomb.
57819
57820 2007-03-24  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57823         Enable the function only if HAVE_INLINE.
57824         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57825         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57826         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57827         Enable the function only if HAVE_INLINE.
57828         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57829         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57830         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57831         Enable the function only if HAVE_INLINE.
57832         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57833         Enable the function only if HAVE_INLINE.
57834         * modules/utf8-ucs4: Update.
57835         * modules/utf8-ucs4-unsafe: Update.
57836         * modules/utf16-ucs4: Update.
57837         * modules/utf16-ucs4-unsafe: Update.
57838         * modules/ucs4-utf8: Update.
57839         * modules/ucs4-utf16: Update.
57840
57841 2007-03-24  Bruno Haible  <bruno@clisp.org>
57842
57843         * lib/utf8-ucs4.h: Remove file.
57844         * lib/utf8-ucs4-unsafe.h: Remove file.
57845         * lib/utf16-ucs4.h: Remove file.
57846         * lib/utf16-ucs4-unsafe.h: Remove file.
57847         * lib/ucs4-utf8.h: Remove file.
57848         * lib/ucs4-utf16.h: Remove file.
57849         * lib/unistr.h: Include their previous contents.
57850         * m4/utf-ucs4.m4: Remove file.
57851         * m4/ucs4-utf.m4: Remove file.
57852         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57853         (Depends-on): Add unistr/base.
57854         (configure.ac): Remove gl_UTF_UCS4.
57855         (Makefile.am): Update.
57856         (Include): Change to unistr.h.
57857         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57858         (Depends-on): Add unistr/base.
57859         (configure.ac): Remove gl_UTF_UCS4.
57860         (Makefile.am): Update.
57861         (Include): Change to unistr.h.
57862         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57863         (Depends-on): Add unistr/base.
57864         (configure.ac): Remove gl_UTF_UCS4.
57865         (Makefile.am): Update.
57866         (Include): Change to unistr.h.
57867         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57868         (Depends-on): Add unistr/base.
57869         (configure.ac): Remove gl_UTF_UCS4.
57870         (Makefile.am): Update.
57871         (Include): Change to unistr.h.
57872         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57873         (Depends-on): Add unistr/base.
57874         (configure.ac): Remove gl_UCS4_UTF.
57875         (Makefile.am): Update.
57876         (Include): Change to unistr.h.
57877         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57878         (Depends-on): Add unistr/base.
57879         (configure.ac): Remove gl_UCS4_UTF.
57880         (Makefile.am): Update.
57881         (Include): Change to unistr.h.
57882         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57883         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57884         utf8-ucs4-unsafe.h.
57885         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57886         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57887         utf16-ucs4-unsafe.h.
57888         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57889         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57890         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57891         * lib/unistr/u8-strchr.c: Likewise.
57892         * lib/unistr/u8-strrchr.c: Likewise.
57893         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57894         * lib/unistr/u16-strchr.c: Likewise.
57895         * lib/unistr/u16-strrchr.c: Likewise.
57896         * lib/striconveh.c: Update.
57897         * lib/linebreak.c: Update.
57898
57899 2007-03-24  Bruno Haible  <bruno@clisp.org>
57900
57901         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57902         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57903
57904 2007-03-22  Bruno Haible  <bruno@clisp.org>
57905
57906         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57907
57908 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * MODULES.html.sh (File system functions): New module write-any-file.
57911         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57912         * m4/write-any-file.m4: New files.
57913
57914 2007-03-23  Eric Blake  <ebb9@byu.net>
57915
57916         * gnulib-tool: Rearrange space-tab sequences, since some editors
57917         like to eat them.
57918
57919 2007-03-23  Eric Blake  <ebb9@byu.net>
57920
57921         * lib/version-etc.c (version_etc_va): Update license wording to
57922         be more concise.  Recommended by Richard Stallman.
57923
57924 2007-03-22  Bruno Haible  <bruno@clisp.org>
57925
57926         * lib/poll.c (MSG_PEEK): New fallback definition.
57927
57928 2007-03-22  Bruno Haible  <bruno@clisp.org>
57929
57930         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57931         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57932         (main): Update.
57933         Fixes a compilation error on BeOS.
57934
57935 2007-03-22  Bruno Haible  <bruno@clisp.org>
57936
57937         * modules/frexpl-tests: New file.
57938         * tests/test-frexpl.c: New file.
57939
57940         * modules/frexpl: New file.
57941         * m4/frexpl.m4: New file.
57942         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57943         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57945         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57946         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57947         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57948
57949 2007-03-22  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/frexpl.c: Share code with lib/frexp.c.
57952         * modules/mathl (Files): Add lib/frexp.c.
57953         (Depends-on): Add isnanl-nolibm.
57954
57955 2007-03-22  Bruno Haible  <bruno@clisp.org>
57956
57957         * modules/printf-frexp (Files): Add m4/frexp.m4.
57958         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57959         only if the found frexp function actually works.
57960
57961 2007-03-22  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/frexp.c: Remove older implementation that uses divisions.
57964
57965 2007-03-21  Bruno Haible  <bruno@clisp.org>
57966
57967         * modules/frexp-tests: New file.
57968         * tests/test-frexp.c: New file.
57969
57970         * modules/frexp: New file.
57971         * lib/frexp.c: New file.
57972         * m4/frexp.m4: New file.
57973         * lib/math_.h (frexp): New declaration.
57974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57975         REPLACE_FREXP.
57976         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57977
57978 2007-03-21  Bruno Haible  <bruno@clisp.org>
57979
57980         * modules/isnanl-tests: New file.
57981         * tests/test-isnanl.c: New file.
57982
57983         * modules/isnanl: New file.
57984         * lib/isnanl.h: New file.
57985         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57986         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57987         gl_FUNC_ISNANL_WORKS.
57988         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57989         New macros.
57990
57991 2007-03-21  Bruno Haible  <bruno@clisp.org>
57992
57993         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57994         lib/isnanl.h.
57995         (Include): Update.
57996         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57997         * lib/vasnprintf.c: Update.
57998         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57999         tests/test-isnanl.h, remove tests/test-isnanl.c.
58000         (Makefile.am): Update.
58001         * tests/test-isnanl-nolibm.c: New file.
58002         * tests/test-isnanl.h: New file.
58003         * tests/test-isnanl.c: Remove file.
58004
58005 2007-03-21  Jim Meyering  <jim@meyering.net>
58006
58007         When trying to open ".", treat ESTALE like EACCES.
58008         * lib/savewd.c (savewd_save): Resort to forking not just upon
58009         failure with EACCES, but also when errno is ESTALE.
58010
58011 2007-03-20  Bruno Haible  <bruno@clisp.org>
58012
58013         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58014         Needed on AIX 5.1. Reported by Matthew Woehlke.
58015
58016 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58017
58018         Suggestions by Bruno Haible:
58019         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58020         our own.
58021         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58022         * modules/acl (Depends-on): Add gettext.
58023
58024 2007-03-19  Bruno Haible  <bruno@clisp.org>
58025
58026         * modules/iconvme: Remove file.
58027         * lib/iconvme.h: Remove file.
58028         * lib/iconvme.c: Remove file.
58029         * m4/iconvme.m4: Remove file.
58030
58031 2007-03-19  Bruno Haible  <bruno@clisp.org>
58032
58033         * doc/relocatable-maint.texi: Break long shell script line.
58034         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58035
58036 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58037
58038         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58039         handle file_has_acl.
58040         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58041         * lib/acl.c: Move header inclusions and related macro defns into
58042         lib/acl-internal.h.
58043         (S_ISLNK): Remove defn, since that's now done for us.
58044         (file_has_acl): Move to lib/file-has-acl.c.
58045         Call acl_trivial if available.  This is the crucial part of the fix.
58046         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58047         shared within the library.  Rewrite a bit, partly to make it compatible
58048         with the GNU coding style.
58049         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58050         Remove unnecessary double-quotes.
58051         Don't test for acl_to_text; the build will catch that.
58052         Replace acl_entries if it doesn't exist and it is needed.
58053         Check for -lsec and acl_trivial (as used on Solaris 10).
58054         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58055         lib/file-has-acl.c.
58056         (Depends-on): Add sys_stat, for S_ISLNK.
58057
58058 2007-03-19  Ben Pfaff  <blp@gnu.org>
58059
58060         * doc/gnulib.texi: Fix typos.
58061         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58062
58063 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58064
58065         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58066         If size is zero here, buf must be zero.
58067
58068 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58069
58070         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58071         <bruno@clisp.org>.
58072
58073 2007-03-18  Bruno Haible  <bruno@clisp.org>
58074
58075         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58076         Suggested by Eric Blake.
58077
58078 2007-03-18  Ben Pfaff  <blp@gnu.org>
58079
58080         * doc/relocatable.texi: Recommend using as prefix a directory
58081         that does not exist and will never be created.  Based on
58082         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58083         and others.
58084
58085 2007-03-17  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/fchownat.c: Include lchown.h.
58088
58089 2007-03-17  Bruno Haible  <bruno@clisp.org>
58090
58091         Fix endless loop when the given allocated size was > INT_MAX.
58092         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58093         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58094         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58095         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58096         * lib/sprintf.c (sprintf): Likewise.
58097
58098 2007-03-17  Bruno Haible  <bruno@clisp.org>
58099
58100         * tests/test-argp-2.sh (func_compare): Output a context diff.
58101
58102 2007-03-17  Bruno Haible  <bruno@clisp.org>
58103
58104         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58105         locale's decimal-point character.
58106
58107 2007-03-17  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58110         before comparing it. Needed because on some platforms (e.g. x86) a
58111         'long double' occupies less bytes than sizeof (long double).
58112
58113 2007-03-17  Bruno Haible  <bruno@clisp.org>
58114
58115         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58116         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58117         * tests/test-getaddrinfo.c (simple): Likewise.
58118         * tests/test-read-file.c (main): Likewise.
58119
58120 2007-03-17  Bruno Haible  <bruno@clisp.org>
58121
58122         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58123
58124 2007-03-17  Bruno Haible  <bruno@clisp.org>
58125
58126         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58127         unused variable.
58128
58129 2007-03-17  Bruno Haible  <bruno@clisp.org>
58130
58131         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58132         * tests/test-c-strncasecmp.c: Likewise.
58133
58134 2007-03-17  Bruno Haible  <bruno@clisp.org>
58135
58136         * modules/stdlib (Depends-on): Add unistd.
58137         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58138         Needed for MacOS X 10.3.
58139
58140 2007-03-17  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58143
58144 2007-03-17  Bruno Haible  <bruno@clisp.org>
58145
58146         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58147
58148 2007-03-17  Bruno Haible  <bruno@clisp.org>
58149
58150         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58151         to reflect files copied from gnulib (with or without modifications).
58152         Suggested by Jim Meyering.
58153
58154 2007-03-17  Eric Blake  <ebb9@byu.net>
58155
58156         * NEWS: Document stdlib change from 2007-02-18.
58157
58158 2007-03-17  Jim Meyering  <jim@meyering.net>
58159
58160         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58161         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58162         someone uses a name containing shell meta-characters.
58163         Reported by Alfred M. Szmidt.
58164
58165         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58166
58167 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58168
58169         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58170         and copy gettext configuration files only if configure.ac contains
58171         a use of AM_GNU_GETTEXT_VERSION.
58172
58173 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58174
58175         * build-aux/bootstrap (gnulib_name): New variable.
58176         (gnulib_tool_options): Use it.
58177
58178 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58179
58180         * tests/test-des.c: Use new namespace.
58181
58182 2007-03-15  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58185         Reported by James Youngman <jay@gnu.org>.
58186
58187 2007-03-15  Bruno Haible  <bruno@clisp.org>
58188
58189         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58190         declared prototype. Needed with cc on OSF/1 5.1.
58191
58192 2007-03-15  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58195         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58196         (struct gl_list_implementation): Add dispose_fn argument to the
58197         'create_empty', 'create' methods.
58198         (struct gl_list_impl_base): Add field 'dispose_fn'.
58199         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58200         argument.
58201         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58202         dispose_fn argument.
58203         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58204         dispose_fn on the dropped values.
58205         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58206         dispose_fn argument.
58207         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58208         dropped values.
58209         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58210         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58211         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58212         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58213         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58214         argument.
58215         (gl_tree_list_free): Call dispose_fn on the dropped values.
58216         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58217         the dropped values.
58218         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58219         Add dispose_fn argument.
58220         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58221         Call dispose_fn on the dropped values.
58222         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58223         Add dispose_fn argument.
58224         (gl_sublist_create): Initialize the 'dispose_fn' field.
58225         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58226         * tests/test-array_list.c (main): Update.
58227         * tests/test-carray_list.c (main): Update.
58228         * tests/test-avltree_list.c (main): Update.
58229         * tests/test-rbtree_list.c (main): Update.
58230         * tests/test-avltreehash_list.c (main): Update.
58231         * tests/test-rbtreehash_list.c (main): Update.
58232         * tests/test-linked_list.c (main): Update.
58233         * tests/test-linkedhash_list.c (main): Update.
58234         * tests/test-array_oset.c (main): Update.
58235
58236 2007-03-15  Bruno Haible  <bruno@clisp.org>
58237
58238         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58239         (gl_oset_create_empty): Add dispose_fn argument.
58240         (struct gl_oset_implementation): Add dispose_fn argument to
58241         'create_empty' method.
58242         (struct gl_oset_impl_base): Add dispose_fn field.
58243         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58244         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58245         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58246         values.
58247         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58248         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58249         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58250         dropped value.
58251         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58252         dropped value.
58253         * tests/test-array_oset.c (main): Update.
58254         * tests/test-avltree_oset.c (main): Update.
58255         * tests/test-rbtree_oset.c (main): Update.
58256         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58257
58258 2007-03-13  Bruno Haible  <bruno@clisp.org>
58259
58260         * tests/test-stdbool.c (i): Update after last patch.
58261
58262 2007-03-12  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58265         the iswprint macro. Needed on Solaris 2.5.1.
58266
58267 2007-03-12  Bruno Haible  <bruno@clisp.org>
58268
58269         * tests/test-printf-frexp.c (main): Declare x as volatile.
58270
58271 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58272
58273         * doc/gnulib.texi (Build robot for gnulib): New section.
58274
58275 2007-03-12  Jim Meyering  <jim@meyering.net>
58276
58277         * build-aux/bootstrap: New file.
58278         * build-aux/bootstrap.conf: New file, from coreutils.
58279
58280 2007-03-11  Bruno Haible  <bruno@clisp.org>
58281
58282         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58283
58284 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58285
58286         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58287         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58288         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58289
58290 2007-03-11  Bruno Haible  <bruno@clisp.org>
58291
58292         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58293         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58294
58295 2007-03-11  Bruno Haible  <bruno@clisp.org>
58296
58297         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58298         formula. Needed for SunPRO C 5.0.
58299
58300 2007-03-11  Bruno Haible  <bruno@clisp.org>
58301
58302         * modules/long-options (Depends-on): Add getopt.
58303
58304 2007-03-11  Bruno Haible  <bruno@clisp.org>
58305
58306         * modules/modechange (Depends-on): Add stdbool.
58307
58308 2007-03-11  Bruno Haible  <bruno@clisp.org>
58309
58310         * modules/i-ring (Depends-on): Add stdbool.
58311
58312 2007-03-11  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/gc-des (Depends-on): Add stdbool.
58315
58316 2007-03-11  Bruno Haible  <bruno@clisp.org>
58317
58318         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58319
58320 2007-03-11  Bruno Haible  <bruno@clisp.org>
58321
58322         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58323
58324 2007-03-11  Bruno Haible  <bruno@clisp.org>
58325
58326         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58327
58328 2007-03-11  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/vasnprintf.c (sprintf): Undefine.
58331
58332 2007-03-11  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58335         initializers in SunPRO C and Compaq C compilers.
58336
58337 2007-03-11  Bruno Haible  <bruno@clisp.org>
58338
58339         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58340         decrementing code ANSI C compliant.
58341
58342 2007-03-11  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58345         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58346
58347 2007-03-11  Bruno Haible  <bruno@clisp.org>
58348
58349         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58350         <stdbool.h> substitute doesn't pass.
58351
58352 2007-03-11  Bruno Haible  <bruno@clisp.org>
58353
58354         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58355
58356 2007-03-11  Bruno Haible  <bruno@clisp.org>
58357
58358         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58359         script, for submission to autobuild.josefsson.org.
58360
58361 2007-03-10  Bruno Haible  <bruno@clisp.org>
58362
58363         * modules/canonicalize-lgpl-tests: New file.
58364         * tests/test-canonicalize-lgpl.sh: New file.
58365         * tests/test-canonicalize-lgpl.c: New file.
58366
58367         * modules/c-strcase-tests: New file.
58368         * tests/test-c-strcase.sh: New file.
58369         * tests/test-c-strcasecmp.c: New file.
58370         * tests/test-c-strncasecmp.c: New file.
58371
58372         * modules/atexit-tests: New file.
58373         * tests/test-atexit.sh: New file.
58374         * tests/test-atexit.c: New file.
58375
58376 2007-03-10  Bruno Haible  <bruno@clisp.org>
58377
58378         * tests/test-binary-io.sh: Use temporary filenames that are not so
58379         likely to clash with those of other tests (in a parallel make).
58380         * tests/test-binary-io.c: Likewise.
58381
58382 2007-03-10  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58385         fallback; use #error instead.
58386         Suggested by Simon Josefsson.
58387
58388 2007-03-10  Bruno Haible  <bruno@clisp.org>
58389
58390         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58391         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58392         first and the last.
58393
58394 2007-03-10  Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58397
58398 2007-03-10  Bruno Haible  <bruno@clisp.org>
58399
58400         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58401         "make distcheck".
58402         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58403         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58404         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58405
58406 2007-03-10  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58409         variable.
58410         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58411         variable.
58412
58413 2007-03-09  Eric Blake  <ebb9@byu.net>
58414         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58415
58416         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58417         types are not being provided by gnulib.
58418         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58419         types are supported.
58420
58421 2007-03-10  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/stdio_.h (__attribute__): New macro.
58424         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58425         vsprintf): Specify __attribute__ __format__ for GCC.
58426         Suggested by Eric Blake.
58427
58428 2007-03-09  Bruno Haible  <bruno@clisp.org>
58429
58430         * modules/printf-posix-tests: New file.
58431         * tests/test-printf-posix.sh: New file.
58432         * tests/test-printf-posix.c: New file.
58433
58434         * modules/printf-posix: New file.
58435         * lib/printf.c: New file.
58436         * m4/printf-posix-rpl.m4: New file.
58437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58438         REPLACE_PRINTF.
58439         * lib/stdio_.h (printf): New declaration.
58440         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58441         ____strfmon____): New macros.
58442         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58443         REPLACE_PRINTF.
58444
58445 2007-03-09  Bruno Haible  <bruno@clisp.org>
58446
58447         * tests/test-vasnprintf-posix2.sh: New file.
58448         * tests/test-vasnprintf-posix2.c: New file.
58449         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58450         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58451         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58452
58453         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58454         a locale dependent decimal point, rather than always '.'.
58455
58456 2007-03-09  Eric Blake  <ebb9@byu.net>
58457
58458         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58459         spite of platforms like Tandem/NSK that define it to -1.
58460
58461 2007-03-08  Bruno Haible  <bruno@clisp.org>
58462
58463         * modules/vprintf-posix-tests: New file.
58464         * tests/test-vprintf-posix.sh: New file.
58465         * tests/test-vprintf-posix.c: New file.
58466         * tests/test-printf-posix.h: New file.
58467
58468         * modules/vprintf-posix: New file.
58469         * lib/vprintf.c: New file.
58470         * m4/vprintf-posix.m4: New file.
58471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58472         REPLACE_VPRINTF.
58473         * lib/stdio_.h (vprintf): New declaration.
58474         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58475         REPLACE_VPRINTF.
58476
58477 2007-03-08  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/fprintf-posix-tests: New file.
58480         * tests/test-fprintf-posix.sh: New file.
58481         * tests/test-fprintf-posix.c: New file.
58482
58483         * modules/fprintf-posix: New file.
58484         * lib/fprintf.c: New file.
58485         * m4/fprintf-posix.m4: New file.
58486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58487         REPLACE_FPRINTF.
58488         * lib/stdio_.h (fprintf): New declaration.
58489         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58490         REPLACE_FPRINTF.
58491
58492 2007-03-08  Bruno Haible  <bruno@clisp.org>
58493
58494         * modules/vfprintf-posix-tests: New file.
58495         * tests/test-vfprintf-posix.sh: New file.
58496         * tests/test-vfprintf-posix.c: New file.
58497         * tests/test-fprintf-posix.h: New file.
58498         * tests/test-fprintf-posix.out: New file.
58499
58500         * modules/vfprintf-posix: New file.
58501         * lib/vfprintf.c: New file.
58502         * m4/vfprintf-posix.m4: New file.
58503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58504         REPLACE_VFPRINTF.
58505         * lib/stdio_.h (vfprintf): New declaration.
58506         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58507         REPLACE_VFPRINTF.
58508
58509 2007-03-08  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58512
58513 2007-03-08  Bruno Haible  <bruno@clisp.org>
58514
58515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58516         instead of 'expr' invocations.
58517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58522         Suggested by Paul Eggert.
58523
58524 2007-03-08  Bruno Haible  <bruno@clisp.org>
58525
58526         * modules/fseterr-tests: New file.
58527         * tests/test-fseterr.c: New file.
58528
58529         * modules/fseterr: New file.
58530         * lib/fseterr.h: New file.
58531         * lib/fseterr.c: New file.
58532
58533 2007-03-08  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58536         * lib/getopt_.h: Likewise.
58537         * lib/mbswidth.h: Likewise.
58538         * lib/setenv.h: Likewise.
58539         * lib/vasnprintf.h: Likewise.
58540         * lib/vasprintf.h: Likewise.
58541         * lib/verror.h: Likewise.
58542         * lib/xsetenv.h: Likewise.
58543         * lib/xvasprintf.h: Likewise.
58544
58545 2007-03-08  Jim Meyering  <jim@meyering.net>
58546
58547         * users.txt: Add parted.
58548
58549         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58550
58551 2007-03-07  Bruno Haible  <bruno@clisp.org>
58552
58553         * m4/printf.m4: Make the shell script snippets copy&pastable.
58554
58555 2007-03-02  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/netinet_in_.h: New file.
58558         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58559         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58560         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58561         (Depends-on): Add absolute-header.
58562         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58563         into netinet/in.h.
58564
58565 2007-03-03  Bruno Haible  <bruno@clisp.org>
58566
58567         * lib/sys_select_.h: New file.
58568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58569         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58570         * modules/sys_select (Files): Add lib/sys_select_.h.
58571         (Depends-on): Add absolute-header.
58572         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58573         into sys/select.h.
58574
58575 2007-03-02  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58578         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58579         values.
58580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58581         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58582         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58583         * modules/sys_socket (Depends-on): Add absolute-header.
58584         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58585         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58586         (Include): Remove requirement of inclusion of <sys/types.h>.
58587
58588 2007-03-02  Bruno Haible  <bruno@clisp.org>
58589
58590         * lib/byteswap_.h (bswap_32): Fix formula.
58591
58592 2007-03-06  Bruno Haible  <bruno@clisp.org>
58593
58594         * modules/sprintf-posix-tests: New file.
58595         * tests/test-sprintf-posix.c: New file.
58596
58597         * modules/sprintf-posix: New file.
58598         * lib/sprintf.c: New file.
58599         * m4/sprintf-posix.m4: New file.
58600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58601         REPLACE_SPRINTF.
58602         * lib/stdio_.h (sprintf): New declaration.
58603         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58604         REPLACE_SPRINTF.
58605
58606 2007-03-06  Bruno Haible  <bruno@clisp.org>
58607
58608         * modules/vsprintf-posix-tests: New file.
58609         * tests/test-vsprintf-posix.c: New file.
58610         * tests/test-sprintf-posix.h: New file.
58611
58612         * modules/vsprintf-posix: New file.
58613         * lib/vsprintf.c: New file.
58614         * m4/vsprintf-posix.m4: New file.
58615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58616         REPLACE_VSPRINTF.
58617         * lib/stdio_.h (vsprintf): New declaration.
58618         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58619         REPLACE_VSPRINTF.
58620
58621 2007-03-06  Bruno Haible  <bruno@clisp.org>
58622
58623         * modules/vsnprintf (Depend-on): Remove minmax.
58624
58625 2007-03-06  Bruno Haible  <bruno@clisp.org>
58626
58627         * modules/snprintf-posix-tests: New file.
58628         * tests/test-snprintf-posix.c: New file.
58629
58630         * modules/snprintf-posix: New file.
58631         * m4/snprintf-posix.m4: New file.
58632         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58633         gl_FUNC_SNPRINTF.
58634         (gl_FUNC_SNPRINTF): Invoke it.
58635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58636         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58637         is set.
58638         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58639
58640 2007-03-06  Bruno Haible  <bruno@clisp.org>
58641
58642         * modules/vsnprintf-posix-tests: New file.
58643         * tests/test-vsnprintf-posix.c: New file.
58644         * tests/test-snprintf-posix.h: New file.
58645
58646         * modules/vsnprintf-posix: New file.
58647         * m4/vsnprintf-posix.m4: New file.
58648         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58649         gl_FUNC_VSNPRINTF.
58650         (gl_FUNC_VSNPRINTF): Invoke it.
58651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58652         * lib/stdio_.h (vsnprintf): Define as a replacement if
58653         REPLACE_VSNPRINTF is set.
58654         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58655
58656 2007-03-06  Bruno Haible  <bruno@clisp.org>
58657
58658         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58660
58661 2007-03-06  Bruno Haible  <bruno@clisp.org>
58662
58663         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58664         (asinl): Declare also if HAVE_DECL_ASINL is set.
58665         (atanl): Declare also if HAVE_DECL_ATANL is set.
58666         (ceill): Declare also if HAVE_DECL_CEILL is set.
58667         (cosl): Declare also if HAVE_DECL_COSL is set.
58668         (expl): Declare also if HAVE_DECL_EXPL is set.
58669         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58670         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58671         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58672         (logl): Declare also if HAVE_DECL_LOGL is set.
58673         (sinl): Declare also if HAVE_DECL_SINL is set.
58674         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58675         (tanl): Declare also if HAVE_DECL_TANL is set.
58676         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58678         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58679         declaration of frexpl, ldexpl.
58680         * modules/printf-frexpl (Depends-on): Add math.
58681         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58682
58683 2007-03-05  Bruno Haible  <bruno@clisp.org>
58684
58685         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58686         frexpl and ldexpl are declared.
58687         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58688
58689 2007-03-05  Bruno Haible  <bruno@clisp.org>
58690
58691         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58692         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58693
58694 2007-03-05  Bruno Haible  <bruno@clisp.org>
58695
58696         * lib/stdio_.h: Include <stddef.h>.
58697
58698 2007-03-05  Bruno Haible  <bruno@clisp.org>
58699
58700         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58701
58702 2007-03-05  Bruno Haible  <bruno@clisp.org>
58703
58704         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58705         NetBSD 4, from Ralf Wildenhues.
58706
58707 2007-03-04  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/vasprintf.h: Update #if logic for the case when the functions
58710         exist but are overridden.
58711
58712 2007-03-04  Bruno Haible  <bruno@clisp.org>
58713
58714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58715         implementations: glibc-2.4 and MacOS X 10.3.
58716         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58717         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58718         * tests/test-vasprintf-posix.c (test_function): Likewise.
58719
58720 2007-03-04  Bruno Haible  <bruno@clisp.org>
58721
58722         * modules/vasprintf-posix-tests: New file.
58723         * tests/test-vasprintf-posix.c: New file.
58724
58725         * modules/vasprintf-posix: New file.
58726         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58727         defined.
58728         * m4/vasprintf-posix.m4: New file.
58729         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58730         gl_FUNC_VASPRINTF.
58731         (gl_FUNC_VASPRINTF): Invoke it.
58732         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58733         here.
58734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58735
58736 2007-03-04  Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58739         REPLACE_GETTIMEOFDAY.
58740         * modules/sys_time (Makefile.am): Likewise.
58741         * m4/sys_time_h.m4: Likewise.
58742         * m4/gettimeofday.m4: Likewise.
58743
58744 2007-03-04  Bruno Haible  <bruno@clisp.org>
58745
58746         * modules/vasnprintf-posix-tests: New file.
58747         * tests/test-vasnprintf-posix.c: New file.
58748
58749         * modules/vasnprintf-posix: New file.
58750         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58751         printf-frexpl.h.
58752         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58753         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58754         REPLACE_VASNPRINTF is defined.
58755         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58756         gl_FUNC_VASNPRINTF.
58757         (gl_FUNC_VASNPRINTF): Invoke it.
58758         * m4/vasnprintf-posix.m4: New file.
58759         * m4/printf.m4: New file.
58760
58761 2007-03-04  Bruno Haible  <bruno@clisp.org>
58762
58763         Compile progreloc.c only if --enable-relocatable is specified.
58764         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58765         if --enable-relocatable was specified.
58766         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58767         lib_SOURCES.
58768
58769 2007-03-04  Jim Meyering  <jim@meyering.net>
58770
58771         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58772         Use it consistently, rather than enumerating errno constants.
58773
58774 2007-03-04  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/xvasprintf-tests: New file.
58777         * tests/test-xvasprintf.c: New file.
58778
58779         * modules/vasprintf-tests: New file.
58780         * tests/test-vasprintf.c: New file.
58781
58782         * modules/vasnprintf-tests: New file.
58783         * tests/test-vasnprintf.c: New file.
58784
58785         * modules/vsnprintf-tests: New file.
58786         * tests/test-vsnprintf.c: New file.
58787
58788         * modules/snprintf-tests: New file.
58789         * tests/test-snprintf.c: New file.
58790
58791 2007-03-04  Bruno Haible  <bruno@clisp.org>
58792
58793         Compile relocatable.c only if --enable-relocatable is specified.
58794         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58795         gl_RELOCATABLE_LIBRARY.
58796         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58797         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58798         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58799         gl_RELOCATABLE_LIBRARY.
58800         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58801         (Makefile.am): Remove lib_SOURCES.
58802         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58803         gl_RELOCATABLE_LIBRARY.
58804         (Makefile.am): Remove lib_SOURCES.
58805         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58806         always.
58807         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58808         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58809
58810 2007-03-04  Bruno Haible  <bruno@clisp.org>
58811
58812         * modules/argmatch-tests: New file.
58813         * tests/test-argmatch.c: New file.
58814
58815         * tests/test-allocsa.c (main): Halve the number of loop runs.
58816
58817         * modules/alloca-opt-tests: New file.
58818         * tests/test-alloca-opt.c: New file.
58819
58820 2007-03-04  Jim Meyering  <jim@meyering.net>
58821
58822         Work around difference between Linux ACLs and Solaris 10 ZFS.
58823         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58824         for EINVAL.
58825
58826 2007-03-03  Bruno Haible  <bruno@clisp.org>
58827
58828         * modules/relocatable-prog (Depends-on): Add back progreloc's
58829         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58830
58831 2007-03-03  Bruno Haible  <bruno@clisp.org>
58832
58833         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58834         * modules/relocatable-lib: New file.
58835
58836 2007-03-03  Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/relocatable-prog: Renamed from modules/relocatable.
58839         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58840
58841 2007-03-03  Bruno Haible  <bruno@clisp.org>
58842
58843         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58844         m4/relocatable-lib.m4.
58845         (Depends-on): Remove 'relocatable'.
58846         (configure.ac): Add gl_RELOCATABLE_NOP.
58847
58848 2007-03-03  Bruno Haible  <bruno@clisp.org>
58849
58850         * modules/relocatable-prog-wrapper: New file.
58851         * modules/relocatable (Depends-on): Add it. Remove all other
58852         dependencies except progname.
58853         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58854
58855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58856         (gl_FUNC_STRERROR): Nop.
58857         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58858
58859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58860         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58861
58862         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58863         (gl_FUNC_READLINK): Update.
58864
58865         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58866
58867 2007-03-03  Bruno Haible  <bruno@clisp.org>
58868
58869         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58870         * modules/xreadlink (Depends-on): Add unistd.
58871         * modules/xreadlink-with-size (Depends-on): Likewise.
58872
58873 2007-03-03  Bruno Haible  <bruno@clisp.org>
58874
58875         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58876         extracted from gt_FUNC_SETENV.
58877         (gt_FUNC_SETENV): Remove macro.
58878         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58879         remove gt_FUNC_SETENV.
58880
58881 2007-03-03  Bruno Haible  <bruno@clisp.org>
58882
58883         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58884         ENABLE_RELOCATABLE here.
58885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58886
58887 2007-03-03  Bruno Haible  <bruno@clisp.org>
58888
58889         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58890         * tests/test-rbtreehash_list.c: Include progname.h.
58891         (main): Call set_program_name.
58892
58893         * modules/rbtree-oset-tests (Depends-on): Add progname.
58894         * tests/test-rbtree_oset.c: Include progname.h.
58895         (main): Call set_program_name.
58896
58897         * modules/rbtree-list-tests (Depends-on): Add progname.
58898         * tests/test-rbtree_list.c: Include progname.h.
58899         (main): Call set_program_name.
58900
58901         * modules/linked-list-tests (Depends-on): Add progname.
58902         * tests/test-linked_list.c: Include progname.h.
58903         (main): Call set_program_name.
58904
58905 2007-03-03  Bruno Haible  <bruno@clisp.org>
58906
58907         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58908         All uses of __restrict changed to _Restrict_.
58909         * lib/glob_.h (__restrict): Remove macro.
58910
58911 2007-03-02  Bruno Haible  <bruno@clisp.org>
58912
58913         * modules/gettext (configure.ac): Require gettext infrastructure
58914         from version 0.16.1.
58915
58916 2007-03-02  Bruno Haible  <bruno@clisp.org>
58917
58918         * modules/linkedhash-list-tests (Depends-on): Add progname.
58919         * tests/test-linkedhash_list.c: Include progname.h.
58920         (main): Call set_program_name.
58921
58922         * modules/carray-list-tests (Depends-on): Add progname.
58923         * tests/test-carray_list.c: Include progname.h.
58924         (main): Call set_program_name.
58925
58926         * modules/avltreehash-list-tests (Depends-on): Add progname.
58927         * tests/test-avltreehash_list.c: Include progname.h.
58928         (main): Call set_program_name.
58929
58930         * modules/avltree-oset-tests (Depends-on): Add progname.
58931         * tests/test-avltree_oset.c: Include progname.h.
58932         (main): Call set_program_name.
58933
58934         * modules/avltree-list-tests (Depends-on): Add progname.
58935         * tests/test-avltree_list.c: Include progname.h.
58936         (main): Call set_program_name.
58937
58938         * modules/array-oset-tests (Depends-on): Add progname.
58939         * tests/test-array_oset.c: Include progname.h.
58940         (main): Call set_program_name.
58941
58942         * modules/array-list-tests (Depends-on): Add progname.
58943         * tests/test-array_list.c: Include progname.h.
58944         (main): Call set_program_name.
58945
58946         * modules/argp-tests (Depends-on): Add progname.
58947         * tests/test-argp.c: Include argp.h first. Include progname.h.
58948         (main): Call set_program_name.
58949
58950 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58951
58952         * doc/gnulib-tool.texi (Initial import): Reword description of
58953         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58954         limited effect even if defined after the first system include.
58955
58956 2007-03-01  Bruno Haible  <bruno@clisp.org>
58957
58958         * build-aux/config.libpath: Update to libtool-1.5.22.
58959         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58960
58961 2007-03-01  Bruno Haible  <bruno@clisp.org>
58962
58963         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58964         foo_CFLAGS.
58965         Reported by Ralf Wildenhues.
58966
58967 2007-03-01  Bruno Haible  <bruno@clisp.org>
58968
58969         * build-aux/install-reloc: Remove object files left over by some
58970         compilers.
58971         Reported by Ralf Wildenhues.
58972
58973 2007-03-01  Bruno Haible  <bruno@clisp.org>
58974
58975         * build-aux/install-reloc: Break long lines.
58976
58977 2007-03-01  Bruno Haible  <bruno@clisp.org>
58978
58979         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58980         Reported by Ralf Wildenhues.
58981
58982 2007-03-01  Bruno Haible  <bruno@clisp.org>
58983
58984         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58985         include ordering constraints.
58986
58987 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58988
58989         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58991         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58992         as another example.
58993         * lib/time_.h: Fix misspelling.
58994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58995         Require gl_HEADER_TIME_H_DEFAULTS.
58996         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58997         * m4/time_r.m4 (gl_TIME_R): Likewise.
58998         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58999
59000 2007-03-01  Bruno Haible  <bruno@clisp.org>
59001
59002         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59003         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59004
59005 2007-03-01  Jim Meyering  <jim@meyering.net>
59006
59007         * modules/xreadlink (Maintainer): Add my name.
59008         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59009
59010 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59011             Bruno Haible  <bruno@clisp.org>
59012
59013         * build-aux/install-reloc: Compile also c-ctype.c.
59014         * build-aux/relocatable.sh.in: New file.
59015         * doc/relocatable.texi: New file.
59016         * doc/relocatable-maint.texi: New file.
59017         * doc/gnulib.texi: Include relocatable-maint.texi.
59018         * lib/progreloc.c: Include unistd.h unconditionally.
59019         * lib/relocwrapper.c: Include unistd.h unconditionally.
59020         Include c-ctype.h.
59021         (add_dotbin): Use c_tolower.
59022         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59023         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59024         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59025         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59026         to m4/relocatable-lib.m4.
59027         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59028         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59029         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59030         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59031         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59032         * modules/relocatable: New file.
59033         * modules/relocatable-lib: New file.
59034         * modules/relocatable-script: New file.
59035
59036 2007-02-28  Bruno Haible  <bruno@clisp.org>
59037
59038         Import --enable-relocatable infrastructure.
59039         * build-aux/config.libpath: New file, from GNU gettext.
59040         * build-aux/install-reloc: New file, from GNU gettext.
59041         * build-aux/reloc-ldflags: New file, from GNU gettext.
59042         * lib/relocatable.h: New file, from GNU gettext.
59043         * lib/relocatable.c: New file, from GNU gettext.
59044         * lib/relocwrapper.c: New file, from GNU gettext.
59045         * m4/relocatable.m4: New file, from GNU gettext.
59046
59047 2007-02-28  Bruno Haible  <bruno@clisp.org>
59048
59049         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59050
59051         * modules/xreadlink: New file, from GNU gettext with modifications.
59052         * lib/xreadlink.c: New file, from GNU gettext.
59053         * lib/xreadlink.h: Add comments.
59054         (xreadlink): New declaration.
59055
59056         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59057         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59058         lib/xreadlink-with-size.c.
59059         (configure.ac): Remove gl_XREADLINK invocation.
59060         (Makefile.am): Augment lib_SOURCES.
59061         * m4/xreadlink.m4: Remove file.
59062         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59063         (xreadlink_with_size): Renamed from xreadink.
59064         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59065         * modules/canonicalize (Depends-on): Replace xreadlink with
59066         xreadlink-with-size.
59067         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59068
59069 2007-02-25  Jim Meyering  <jim@meyering.net>
59070
59071         * build-aux/announce-gen: When complaining about excess arguments,
59072         list them.
59073
59074 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59075
59076         * README: Document signed integer overflow situation more
59077         accurately.
59078
59079 2007-02-25  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59082         'a' or 'A' conversion.
59083
59084 2007-02-25  Bruno Haible  <bruno@clisp.org>
59085
59086         * modules/filename: Renamed from modules/pathname.
59087         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59088         lib/concatpath.c with lib/concat-filename.c.
59089         (Makefile.am): Update.
59090         (Include): Replace pathname.h with filename.h.
59091         * lib/filename.h: Renamed from lib/pathname.h.
59092         (concatenated_filename): Renamed from concatenated_pathname.
59093         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59094         (concatenated_filename): Renamed from concatenated_pathname.
59095         * lib/findprog.c: Include filename.h instead of pathname.h.
59096         (find_in_path): Update.
59097         * lib/javacomp.c: Include filename.h instead of pathname.h.
59098         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59099         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59100         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59101         is_oldgcj_14_13_usable, is_javac_usable): Update.
59102         * lib/javaexec.c: Include filename.h instead of pathname.h.
59103         (execute_java_class): Update.
59104         * modules/findprog: Update.
59105         * modules/javacomp: Update.
59106         * modules/javaexec: Update.
59107         * MODULES.html.sh (File system functions): Add 'filename', remove
59108         'pathname'.
59109
59110 2007-02-25  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/printf-frexpl-tests: New file.
59113         * tests/test-printf-frexpl.c: New file.
59114
59115         * modules/printf-frexpl: New file.
59116         * lib/printf-frexpl.h: New file.
59117         * lib/printf-frexpl.c: New file.
59118         * m4/printf-frexpl.m4: New file.
59119
59120 2007-02-25  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/printf-frexp-tests: New file.
59123         * tests/test-printf-frexp.c: New file.
59124
59125         * modules/printf-frexp: New file.
59126         * lib/printf-frexp.h: New file.
59127         * lib/printf-frexp.c: New file.
59128         * m4/printf-frexp.m4: New file.
59129
59130 2007-02-25  Bruno Haible  <bruno@clisp.org>
59131
59132         Assume automake >= 1.10 for the tests.
59133         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59134         * modules/arctwo-tests: Likewise.
59135         * modules/argp-tests: Likewise.
59136         * modules/avltree-list-tests: Likewise.
59137         * modules/avltree-oset-tests: Likewise.
59138         * modules/avltreehash-list-tests: Likewise.
59139         * modules/carray-list-tests: Likewise.
59140         * modules/crc-tests: Likewise.
59141         * modules/des-tests: Likewise.
59142         * modules/gc-arcfour-tests: Likewise.
59143         * modules/gc-arctwo-tests: Likewise.
59144         * modules/gc-des-tests: Likewise.
59145         * modules/gc-hmac-md5-tests: Likewise.
59146         * modules/gc-hmac-sha1-tests: Likewise.
59147         * modules/gc-md2-tests: Likewise.
59148         * modules/gc-md4-tests: Likewise.
59149         * modules/gc-md5-tests: Likewise.
59150         * modules/gc-pbkdf2-sha1-tests: Likewise.
59151         * modules/gc-rijndael-tests: Likewise.
59152         * modules/gc-sha1-tests: Likewise.
59153         * modules/gc-tests: Likewise.
59154         * modules/getaddrinfo-tests: Likewise.
59155         * modules/hmac-md5-tests: Likewise.
59156         * modules/hmac-sha1-tests: Likewise.
59157         * modules/linked-list-tests: Likewise.
59158         * modules/linkedhash-list-tests: Likewise.
59159         * modules/lock-tests: Likewise.
59160         * modules/md2-tests: Likewise.
59161         * modules/md4-tests: Likewise.
59162         * modules/md5-tests: Likewise.
59163         * modules/rbtree-list-tests: Likewise.
59164         * modules/rbtree-oset-tests: Likewise.
59165         * modules/rbtreehash-list-tests: Likewise.
59166         * modules/read-file-tests: Likewise.
59167         * modules/rijndael-tests: Likewise.
59168         * modules/stdint-tests: Likewise.
59169         * modules/tls-tests: Likewise.
59170
59171 2007-02-24  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59174         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59175         function; instead check whether isnan with a double argument links.
59176         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59177         function; instead check whether isnan with a 'long double' argument
59178         links.
59179         Reported by Eric Blake <ebb9@byu.net>.
59180
59181 2007-02-24  Bruno Haible  <bruno@clisp.org>
59182
59183         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59184         defined.
59185         * lib/isnanl.c: Remove all code. Just include isnan.c.
59186         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59187
59188 2007-02-25  Jim Meyering  <jim@meyering.net>
59189
59190         Avoid conflicting types for 'unsetenv' on FreeBSD.
59191         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59192         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59193         in stdlib.h.
59194
59195 2007-02-24  Bruno Haible  <bruno@clisp.org>
59196
59197         * modules/isnanl-nolibm-tests: New file.
59198         * tests/test-isnanl.c: New file.
59199
59200         * modules/isnanl-nolibm: New file.
59201         * lib/isnanl.h: New file.
59202         * lib/isnanl.c: New file.
59203         * m4/isnanl.m4: New file.
59204
59205 2007-02-24  Bruno Haible  <bruno@clisp.org>
59206
59207         * modules/isnan-nolibm-tests: New file.
59208         * tests/test-isnan.c: New file.
59209
59210         * modules/isnan-nolibm: New file.
59211         * lib/isnan.h: New file.
59212         * lib/isnan.c: New file.
59213         * m4/isnan.m4: New file.
59214
59215 2007-02-24  Bruno Haible  <bruno@clisp.org>
59216
59217         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59218         assume that an exponent fits in 20 bits.
59219
59220 2007-02-24  Jim Meyering  <jim@meyering.net>
59221
59222         * m4/regex.m4: Update the description of the configure-time option,
59223         --without-included-regex, to state accurately what the defaults are,
59224         and perhaps to give people an idea why using this option is risky.
59225
59226 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59227
59228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59229         loops on small arguments.  This attempts to avoid the problem
59230         Bruno Haible reported for AIX 4.3.2 in
59231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59232
59233 2007-02-23  Bruno Haible  <bruno@clisp.org>
59234
59235         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59236         Needed for help2man.
59237
59238 2007-02-23  Karl Berry  <karl@gnu.org>
59239
59240         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59241         exists, foo.h should be cvs-ignored, not committed.
59242
59243 2007-02-23  Eric Blake  <ebb9@byu.net>
59244
59245         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59246         * lib/stat-time.h (includes): Likewise.
59247         * lib/utimecmp.c (includes): Likewise.
59248         * lib/utimens.h (includes): Likewise.
59249         * lib/getdate.y (includes): Also include "timespec.h" for use
59250         internal to the module.
59251         * modules/utimens (Depends-on): Revert yesterday's patch.
59252         * modules/nanosleep (Depends-on): Add missing dependency.
59253
59254 2007-02-22  Bruno Haible  <bruno@clisp.org>
59255
59256         * lib/glob.c: Don't include getlogin_r.h.
59257
59258 2007-02-22  Jim Meyering  <jim@meyering.net>
59259
59260         * modules/utimens (Depends-on): Add timespec, required for
59261         utimens.h's inclusion of timespec.h.
59262
59263 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59266         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59267         Schwab in
59268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59269         I'll try to think of a better way to fix the Solaris problem.
59270
59271         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59272         like glibc; on Solaris 10, it fails with errno == EINVAL.
59273         POSIX says the behavior is unspecified if the first argument is NULL,
59274         so play it safe and never pass NULL to the system getcwd.
59275
59276 2007-02-21  Jim Meyering  <jim@meyering.net>
59277
59278         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59279         of gettimeofday.  It would conflict with the one now always
59280         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59281         an IRIX 6.5 build failure.
59282
59283 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         Minor fixups to port to Solaris 10 with Sun C 5.8.
59286         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59287         * modules/getcwd (Depends-on): Add dirfd.
59288         * lib/putenv.c (putenv): #undef it.
59289         (rpl_putenv): New decl.
59290         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59291
59292 2007-02-20  Bruno Haible  <bruno@clisp.org>
59293
59294         * modules/stdio-tests: New file.
59295         * tests/test-stdio.c: New file.
59296
59297         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59298         (Depends-on): Add stdio.
59299         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59300         (Include): Use <stdio.h> instead of vsnprintf.h.
59301         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59302         HAVE_DECL_VSNPRINTF.
59303         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59304
59305         * modules/snprintf (Files): Remove lib/snprintf.h.
59306         (Depends-on): Add stdio.
59307         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59308         (Include): Use <stdio.h> instead of snprintf.h.
59309         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59310         HAVE_DECL_SNPRINTF.
59311         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59312         * lib/getaddrinfo.c: Likewise.
59313
59314         * modules/stdio: New file.
59315         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59316         * lib/snprintf.h: Remove file.
59317         * lib/vsnprintf.h: Remove file.
59318         * lib/.cppi-disable: Remove snprintf.h.
59319         * m4/stdio_h.m4: New file.
59320         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59321
59322 2007-02-20  Jim Meyering  <jim@meyering.net>
59323
59324         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59325         used by e.g., mingw.  From Bruno Haible.
59326
59327 2007-02-19  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59330         warnings.
59331         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59332
59333 2007-02-19  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59336         from mingw users.
59337
59338 2007-02-19  Bruno Haible  <bruno@clisp.org>
59339
59340         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59341         warnings.
59342         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59343
59344 2007-02-19  Jim Meyering  <jim@meyering.net>
59345
59346         Don't use FD after a successful "fdopendir (fd)".
59347         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59348         Reset it by calling dirfd on the just-obtained DIR*.
59349
59350         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59351         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59352
59353 2007-02-18  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/readlink.c: Include <unistd.h>.
59356         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59357         HAVE_READLINK.
59358         * modules/readlink (Depends-on): Add unistd.
59359         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59360         (Include): Add <unistd.h>.
59361
59362         * lib/getlogin_r.h: Remove file.
59363         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59364         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59365         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59366         HAVE_DECL_GETLOGIN_R.
59367         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59369         (Include): Use <unistd.h> instead of getlogin_r.h.
59370
59371         * lib/getcwd.h: Remove file.
59372         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59373         * lib/xgetcwd.c: Likewise.
59374         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59375         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59376         * modules/getcwd (Files): Remove lib/getcwd.h.
59377         (Depends-on): Add unistd.
59378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59379         (Include): Use <unistd.h> instad of getcwd.h.
59380
59381         * lib/ftruncate.c: Include <unistd.h> first.
59382         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59383         Set HAVE_FTRUNCATE.
59384         * modules/ftruncate (Depends-on): Add unistd.
59385         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59386
59387         * lib/fchdir.c: Include <unistd.h> first.
59388         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59390         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59391         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59392         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59393
59394         * lib/dup2.c: Include <unistd.h> first.
59395         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59396         HAVE_DUP2.
59397         * modules/dup2 (Depends-on): Add unistd.
59398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59399
59400         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59401         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59402         REPLACE_CHOWN. Don't define chown as a macro here.
59403         * modules/chown (Depends-on): Add unistd.
59404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59405
59406         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59407         Add definition for GL_LINK_WARNING.
59408         (chown, dup2): New declarations.
59409         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59410         link warning.
59411         (ftruncate): New declaration.
59412         (getcwd): New declaration, taken from old getcwd.h.
59413         (getlogin_r): New declaration, taken from old getlogin_r.h.
59414         (readlink): New declaration.
59415         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59416         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59417         (gl_PREREQ_UNISTD): Remove macro.
59418         (gl_UNISTD_MODULE_INDICATOR): New macro.
59419         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59420         many new variables. Don't set UNISTD_H.
59421         * modules/unistd (Description): Change.
59422         (Depends-on): Add link-warning.
59423         (configure.ac): Update.
59424         (Makefile.am): Create unistd.h always. Substitute many new variables
59425         into it.
59426
59427 2007-02-18  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59430         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59431         HAVE_GETSUBOPT.
59432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59433         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59434         * lib/getsubopt.h: Remove file.
59435         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59436         (Depends-on): Add stdlib.
59437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59438         (Includes): Use <stdlib.h> instead of getsubopt.h.
59439         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59440         Set HAVE_GETSUBOPT.
59441         * lib/getsubopt.c: Don't include getsubopt.h.
59442
59443 2007-02-18  Bruno Haible  <bruno@clisp.org>
59444
59445         * modules/fchdir (Depends-on): Add dup2.
59446
59447 2007-02-18  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/stdlib_.h: Handle glibc's special invocation convention
59450         specially.
59451
59452 2007-02-18  Bruno Haible  <bruno@clisp.org>
59453
59454         * modules/stdlib-tests: New file.
59455         * tests/test-stdlib.c: New file.
59456
59457         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59458         (Depends-on): Add stdlib.
59459         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59460         (Includes): Use <stdlib.h> instead of mkstemp.h.
59461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59462         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59463         * lib/mkstemp.c: Don't include mkstemp.h.
59464         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59465         * lib/stdlib--.h: Don't include mkstemp.h.
59466
59467         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59468         (Depends-on): Add stdlib.
59469         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59470         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59471         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59472         HAVE_MKDTEMP.
59473         * lib/mkdtemp.c: Don't include mkdtemp.h.
59474         * lib/clean-temp.c: Don't include mkdtemp.h.
59475
59476         * modules/exit (Files): Remove lib/exit.h.
59477         (Depends-on): Add stdlib.
59478         (Makefile.am): Remove lib_SOURCES.
59479         (Include): Use <stdlib.h> instead of exit.h.
59480         * lib/argmatch.c: Don't include exit.h.
59481         * lib/execute.c: Likewise.
59482         * lib/pagealign_alloc.c: Likewise.
59483         * lib/pipe.c: Likewise.
59484         * lib/wait-process.c: Likewise.
59485         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59486         * lib/exitfail.c: Likewise.
59487         * lib/savewd.c: Likewise.
59488         * lib/xsetenv.c: Likewise.
59489
59490         * modules/stdlib: New file.
59491         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59492         and extra comments about mkstemp().
59493         * lib/exit.h: Remove file.
59494         * lib/mkdtemp.h: Remove file.
59495         * lib/mkstemp.h: Remove file.
59496         * m4/stdlib_h.m4: New file.
59497         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59498
59499 2007-02-18  Bruno Haible  <bruno@clisp.org>
59500
59501         * modules/math-tests: New file.
59502         * tests/test-math.c: New file.
59503
59504         * modules/math: New file.
59505         * modules/mathl (Files): Remove lib/mathl.h.
59506         (Depends-on): Add math.
59507         (Makefile.am): Don't mention mathl.h.
59508         (Include): Use <math.h> instead of mathl.h.
59509         * lib/math_.h: New file.
59510         * lib/mathl.h: Remove file.
59511         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59512         mathl.h.
59513         * lib/asinl.c: Likewise.
59514         * lib/atanl.c: Likewise.
59515         * lib/ceill.c: Likewise.
59516         * lib/cosl.c: Likewise.
59517         * lib/expl.c: Likewise.
59518         * lib/floorl.c: Likewise.
59519         * lib/frexpl.c: Likewise.
59520         * lib/ldexpl.c: Likewise.
59521         * lib/logl.c: Likewise.
59522         * lib/sincosl.c: Likewise.
59523         * lib/sinl.c: Likewise.
59524         * lib/sqrtl.c: Likewise.
59525         * lib/tanl.c: Likewise.
59526         * lib/trigl.c: Likewise.
59527         * m4/math_h.m4: New file.
59528         * MODULES.html.sh (Mathematics): Add math.
59529
59530 2007-02-17  Bruno Haible  <bruno@clisp.org>
59531
59532         * modules/wctype-tests: New file.
59533         * tests/test-wctype.c: New file.
59534
59535         * modules/wchar-tests: New file.
59536         * tests/test-wchar.c: New file.
59537
59538         * modules/unistd-tests: New file.
59539         * tests/test-unistd.c: New file.
59540
59541         * modules/time-tests: New file.
59542         * tests/test-time.c: New file.
59543
59544         * modules/sysexits-tests: New file.
59545         * tests/test-sysexits.c: New file.
59546
59547         * modules/sys_time-tests: New file.
59548         * tests/test-sys_time.c: New file.
59549
59550         * modules/sys_stat-tests: New file.
59551         * tests/test-sys_stat.c: New file.
59552
59553         * modules/sys_socket-tests: New file.
59554         * tests/test-sys_socket.c: New file.
59555
59556         * modules/sys_select-tests: New file.
59557         * tests/test-sys_select.c: New file.
59558
59559         * modules/string-tests: New file.
59560         * tests/test-string.c: New file.
59561
59562         * modules/stdbool-tests: New file.
59563         * tests/test-stdbool.c: New file.
59564
59565         * modules/netinet_in-tests: New file.
59566         * tests/test-netinet_in.c: New file.
59567
59568         * modules/inttypes-tests: New file.
59569         * tests/test-inttypes.c: New file.
59570
59571         * modules/fcntl-tests: New file.
59572         * tests/test-fcntl.c: New file.
59573
59574         * modules/byteswap-tests: New file.
59575         * tests/test-byteswap.c: New file.
59576
59577         * modules/arpa_inet-tests: New file.
59578         * tests/test-arpa_inet.c: New file.
59579
59580 2007-02-17  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59583         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59584         if the corresponding module is not enabled. Emit link warnings if
59585         the function is used nevertheless.
59586         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59587         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59588         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59589         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59590         * modules/inttypes (Depends-on): Add link-warning.
59591         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59592         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59593         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59594         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59595         * modules/imaxdiv (configure.ac): Likewise.
59596         * modules/strtoimax (configure.ac): Likewise.
59597         * modules/strtoumax (configure.ac): Likewise.
59598
59599 2007-02-17  Bruno Haible  <bruno@clisp.org>
59600
59601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59602         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59603         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59604         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59605
59606 2007-02-17  Bruno Haible  <bruno@clisp.org>
59607
59608         * modules/link-warning: New file.
59609         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59610         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59611         * modules/string (Depends-on): Add link-warning.
59612         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59613         string.h.
59614         * MODULES.html.sh (Support for building libraries and executables): Add
59615         link-warning.
59616
59617 2007-02-17  Bruno Haible  <bruno@clisp.org>
59618
59619         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59620         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59621         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59622         long lines.
59623
59624 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59625             Bruno Haible  <bruno@clisp.org>
59626
59627         * modules/tmpfile: New file.
59628         * lib/tmpfile.c: New file.
59629         * m4/tmpfile.m4: New file.
59630         * MODULES.html.sh (func_all_modules): New section "Input/output".
59631
59632 2007-02-15  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59635         (supports_delete_on_close): New function.
59636         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59637
59638 2007-02-14  Bruno Haible  <bruno@clisp.org>
59639
59640         * modules/mbspcasecmp-tests: New file.
59641         * tests/test-mbspcasecmp.sh: New file.
59642         * tests/test-mbspcasecmp.c: New file.
59643
59644         New module mbspcasecmp.
59645         * modules/mbspcasecmp: New file.
59646         * lib/mbspcasecmp.c: New file.
59647         * lib/string_.h (strncasecmp): Change warning message.
59648         (mbspcasecmp): New declaration.
59649         * m4/mbspcasecmp.m4: New file.
59650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59651         GNULIB_MBSPCASECMP.
59652         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59653         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59654
59655 2007-02-14  Bruno Haible  <bruno@clisp.org>
59656
59657         * modules/mbsncasecmp-tests: New file.
59658         * tests/test-mbsncasecmp.sh: New file.
59659         * tests/test-mbsncasecmp.c: New file.
59660
59661         New module mbsncasecmp.
59662         * modules/mbsncasecmp: New file.
59663         * lib/mbsncasecmp.c: New file.
59664         * lib/string_.h (mbsncasecmp): New declaration.
59665         * m4/mbsncasecmp.m4: New file.
59666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59667         GNULIB_MBSNCASECMP.
59668         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59669         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59670
59671 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59672
59673         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59674         Verify that it doesn't overlap with our flags.
59675         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59676         do not have the desired effect in multibyte locales; instead, use
59677         mbscasecmp.
59678         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59679         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59680         we don't require GNU fnmatch ourselves (if our users require it, they
59681         should do so explicitly).
59682
59683         Fix regex code so it doesn't rely on strcasecmp.
59684         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59685         Otherwise, include gnulib's langinfo.h.
59686         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59687         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59688         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59689         * modules/regex (FILES): Remove m4/codeset.m4.
59690         (Depends-on): Add localcharset.  Remove strcase.
59691
59692 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59693
59694         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59695         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59696
59697 2007-02-13  Bruno Haible  <bruno@clisp.org>
59698
59699         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59701
59702 2007-02-12  Bruno Haible  <bruno@clisp.org>
59703
59704         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59705         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59706         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59707         time warning rather than a link error.
59708
59709 2007-02-12  Bruno Haible  <bruno@clisp.org>
59710
59711         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59713         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59714
59715 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59716
59717         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59718         args, not 2.
59719
59720 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         New module 'time', so that apps can include <time.h> as per
59723         POSIX and GNU instead of separate include files like time_r.h
59724         and timegm.h.  This implementation tries out a simpler approach
59725         for replacing decls in standard include files (as compared to
59726         the string module), somewhat as an experiment.
59727
59728         * config/srclist.txt: Comment out mktime.c for now.
59729         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59730         since it doesn't apply any more.  Use generic wording instead.
59731         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59732         'time'.
59733         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59734         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59735         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59736         Don't include <sys/types.h>; no longer needed since we assume C89.
59737         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59738         * lib/strftime.c: Likewise.
59739         * lib/time_r.c: Likewise.
59740         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59741         * lib/nanosleep.c: Include <time.h> first, to check interface.
59742         * lib/strptime.c: Likewise.
59743         * lib/time_r.c: Likewise.
59744         * lib/timegm.c: Likewise.
59745         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59746         needed.
59747         * lib/timegm.c: Don't include timegm.h; no longer needed.
59748         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59749         time.h now handles any problems in that area.
59750         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59751         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59752         that time.h defines struct timespec.
59753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59754         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59755         handles that.
59756         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59757         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59758         needed.  Set REPLACE_LOCALTIME.
59759         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59760         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59761         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59762         nanosleep; time_h.m4 now does that.  Don't require
59763         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59764         module handles this now.
59765         * modules/getdate (Depends-on): Remove timespec.  Add time.
59766         * modules/nanosleep (Depends-on): Likewise.
59767         * modules/stat-time (Depends-on): Likewise.
59768         * modules/nanosleep (Include): Include time.h, not timespec.h.
59769         * modules/strptime (Files): Remove lib/strptime.h.
59770         (Depends-on): Add extensions, time.
59771         (Include): Include time.h, not strptime.h.
59772         * modules/time_r (Files): Remove lib/time_r.h.
59773         (Depends-on): Add time.
59774         (Include): Include time.h, not time_r.h.
59775         * modules/timegm: Likewise.
59776         * modules/timespec (Description): Now does timespec-related decls
59777         of our own, instead of struct timespec itself.
59778         (Depends-on): Add time; remove extensions.
59779         (Maintainer): Add self.
59780         * modules/utimecmp (Depends-on): Add time; remove timespec.
59781         * modules/utimens (Depends-on): Likewise.
59782         * modules/xnanosleep (Depends-on): Likewise.
59783
59784 2007-02-11  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/c-strstr.c: Include allocsa.h.
59787         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59788         * lib/c-strcasestr.c: Include allocsa.h.
59789         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59790         * lib/strcasestr.c: Include allocsa.h.
59791         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59792         * lib/mbsstr.c: Include allocsa.h.
59793         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59794         allocsa/freesa instead of malloc/free.
59795         * lib/mbscasestr.c: Include allocsa.h.
59796         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59797         allocsa/freesa instead of malloc/free.
59798         * modules/c-strstr (Depends-on): Add allocsa.
59799         * modules/c-strcasestr (Depends-on): Likewise.
59800         * modules/strcasestr (Depends-on): Likewise.
59801         * modules/mbsstr (Depends-on): Likewise.
59802         * modules/mbscasestr (Depends-on): Likewise.
59803
59804 2007-02-11  Bruno Haible  <bruno@clisp.org>
59805
59806         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59807
59808         * modules/mbsspn-tests: New file.
59809         * tests/test-mbsspn.sh: New file.
59810         * tests/test-mbsspn.c: New file.
59811
59812 2007-02-11  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59815
59816         * modules/mbspbrk-tests: New file.
59817         * tests/test-mbspbrk.sh: New file.
59818         * tests/test-mbspbrk.c: New file.
59819
59820 2007-02-11  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59823         unneeded cast.
59824
59825         * modules/mbscspn-tests: New file.
59826         * tests/test-mbscspn.sh: New file.
59827         * tests/test-mbscspn.c: New file.
59828
59829 2007-02-11  Bruno Haible  <bruno@clisp.org>
59830
59831         * modules/mbscasecmp-tests: New file.
59832         * tests/test-mbscasecmp.sh: New file.
59833         * tests/test-mbscasecmp.c: New file.
59834
59835 2007-02-11  Bruno Haible  <bruno@clisp.org>
59836
59837         Ensure O(n) worst-case complexity of mbscasestr.
59838         * lib/mbscasestr.c: Include stdbool.h.
59839         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59840         functions.
59841         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59842         the bookkeeping indicates that it's worth it.
59843         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59844
59845         * modules/mbscasestr-tests: New file.
59846         * tests/test-mbscasestr1.c: New file.
59847         * tests/test-mbscasestr2.sh: New file.
59848         * tests/test-mbscasestr2.c: New file.
59849         * tests/test-mbscasestr3.sh: New file.
59850         * tests/test-mbscasestr3.c: New file.
59851         * tests/test-mbscasestr4.sh: New file.
59852         * tests/test-mbscasestr4.c: New file.
59853         * m4/locale-tr.m4: New file.
59854
59855 2007-02-11  Bruno Haible  <bruno@clisp.org>
59856
59857         Ensure O(n) worst-case complexity of mbsstr.
59858         * lib/mbsstr.c: Include stdbool.h.
59859         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59860         functions.
59861         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59862         bookkeeping indicates that it's worth it.
59863         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59864
59865         * modules/mbsstr-tests: New file.
59866         * tests/test-mbsstr1.c: New file.
59867         * tests/test-mbsstr2.sh: New file.
59868         * tests/test-mbsstr2.c: New file.
59869         * tests/test-mbsstr3.sh: New file.
59870         * tests/test-mbsstr3.c: New file.
59871         * m4/locale-fr.m4: New file.
59872
59873 2007-02-11  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/mbsrchr.c (mbsrchr): Fix bug.
59876
59877         * modules/mbsrchr-tests: New file.
59878         * tests/test-mbsrchr.sh: New file.
59879         * tests/test-mbsrchr.c: New file.
59880
59881 2007-02-11  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/mbschr.c (mbschr): Fix bug.
59884
59885         * modules/mbschr-tests: New file.
59886         * tests/test-mbschr.sh: New file.
59887         * tests/test-mbschr.c: New file.
59888         * m4/locale-zh.m4: New file.
59889
59890 2007-02-11  Bruno Haible  <bruno@clisp.org>
59891
59892         Support for copying multibyte string iterators.
59893         * lib/mbiter.h: Include <string.h>.
59894         (mbiter_multi_copy): New function.
59895         (mbi_copy): New macro.
59896         * lib/mbuiter.h: Include <string.h>.
59897         (mbuiter_multi_copy): New function.
59898         (mbui_copy): New macro.
59899
59900 2007-02-11  Bruno Haible  <bruno@clisp.org>
59901
59902         New module mbslen.
59903         * modules/mbslen: New file.
59904         * lib/mbslen.c: New file.
59905         * lib/string_.h (mbslen): New declaration.
59906         * m4/mbslen.m4: New file.
59907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59908         GNULIB_MBSLEN.
59909         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59910         * MODULES.html.sh (Internationalization functions): Add mbslen.
59911
59912 2007-02-11  Bruno Haible  <bruno@clisp.org>
59913
59914         Ensure O(n) worst-case complexity of strcasestr substitute.
59915         * lib/strcasestr.c: Include stdbool.h.
59916         (knuth_morris_pratt): New function.
59917         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59918         bookkeeping indicates that it's worth it.
59919         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59920
59921         * modules/strcasestr-tests: New file.
59922         * tests/test-strcasestr.c: New file.
59923
59924 2007-02-11  Bruno Haible  <bruno@clisp.org>
59925
59926         Ensure O(n) worst-case complexity of c_strcasestr.
59927         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59928         (knuth_morris_pratt): New function.
59929         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59930         the bookkeeping indicates that it's worth it.
59931         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59932
59933         * modules/c-strcasestr-tests: New file.
59934         * tests/test-c-strcasestr.c: New file.
59935
59936 2007-02-11  Bruno Haible  <bruno@clisp.org>
59937
59938         Ensure O(n) worst-case complexity of c_strstr.
59939         * lib/c-strstr.c: Include stdbool.h, string.h.
59940         (knuth_morris_pratt): New function.
59941         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59942         bookkeeping indicates that it's worth it.
59943         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59944
59945         * lib/c-strstr.c: Complete rewrite for maintainability.
59946
59947         * modules/c-strstr-tests: New file.
59948         * tests/test-c-strstr.c: New file.
59949
59950 2007-02-11  Bruno Haible  <bruno@clisp.org>
59951
59952         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59953         5.2.1 and earlier, whereby \055 was treated just like the range
59954         delimiter '-'.
59955         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59956
59957 2007-02-08  Bruno Haible  <bruno@clisp.org>
59958
59959         * modules/regex (Depends-on): Add stdbool.
59960         Reported by Dalibor Topic <robilad@kaffe.org>.
59961
59962 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59963
59964         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59965         Prefer returning from main to exiting from it.
59966         Remove unnecessary parens after sizeof.
59967
59968 2007-02-05  Bruno Haible  <bruno@clisp.org>
59969
59970         New module mbssep.
59971         * modules/mbssep: New file.
59972         * lib/mbssep.c: New file.
59973         * lib/string_.h (strsep): Add a conditional link warning.
59974         (mbssep): New declaration.
59975         * m4/mbssep.m4: New file.
59976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59977         GNULIB_MBSSEP.
59978         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59979         * MODULES.html.sh (Internationalization functions): Add mbssep.
59980
59981 2007-02-05  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59984         Optimize search in case of 1 delimiter.
59985
59986 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59987
59988         * lib/acl.h: Include sys/types.h before sys/acl.h.
59989
59990 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59991
59992         Merge upstream fix for glibc bugzilla #3957:
59993
59994         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59995
59996         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59997         bit for RE_HAT_LISTS_NOT_NEWLINE.
59998         (build_charclass_op): Remove bogus comment.
59999
60000 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60001
60002         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60003
60004 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60007         * lib/memmem.c [!defined _LIBC]: Include config.h.
60008
60009 2007-02-04  Bruno Haible  <bruno@clisp.org>
60010
60011         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60012         warning message.
60013
60014 2007-02-04  Bruno Haible  <bruno@clisp.org>
60015
60016         New module mbstok_r.
60017         * modules/mbstok_r: New file.
60018         * lib/mbstok_r.c: New file.
60019         * lib/string_.h (strtok_r): Change argument names to match the
60020         comments. Add a conditional link warning.
60021         (mbstok_r): New declaration.
60022         * m4/mbstok_r.m4: New file.
60023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60024         GNULIB_MBSTOK_R.
60025         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60026         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60027
60028 2007-02-04  Bruno Haible  <bruno@clisp.org>
60029
60030         New module mbsspn.
60031         * modules/mbsspn: New file.
60032         * lib/mbsspn.c: New file.
60033         * lib/string_.h (strspn): Add a conditional link warning.
60034         (mbsspn): New declaration.
60035         * m4/mbsspn.m4: New file.
60036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60037         GNULIB_MBSSPN.
60038         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60039         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60040
60041 2007-02-04  Bruno Haible  <bruno@clisp.org>
60042
60043         New module mbspbrk.
60044         * modules/mbspbrk: New file.
60045         * lib/mbspbrk.c: New file.
60046         * lib/string_.h (strpbrk): Add a conditional link warning.
60047         (mbspbrk): New declaration.
60048         * m4/mbspbrk.m4: New file.
60049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60050         GNULIB_MBSPBRK.
60051         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60052         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60053
60054 2007-02-04  Bruno Haible  <bruno@clisp.org>
60055
60056         New module mbscspn.
60057         * modules/mbscspn: New file.
60058         * lib/mbscspn.c: New file.
60059         * lib/string_.h (strcspn): Add a conditional link warning.
60060         (mbscspn): New declaration.
60061         * m4/mbscspn.m4: New file.
60062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60063         GNULIB_MBSCSPN.
60064         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60065         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60066
60067 2007-02-04  Bruno Haible  <bruno@clisp.org>
60068
60069         New module mbscasestr, reduced goal of strcasestr.
60070         * modules/mbscasestr: New file.
60071         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60072         (mbscasestr): Renamed from strcasestr.
60073         * lib/strcasestr.c: Don't include mbuiter.h.
60074         (strcasestr): Remove support for multibyte locales.
60075         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60076         Change the conditional link warning.
60077         (mbscasestr): New declaration.
60078         * m4/mbscasestr.m4: New file.
60079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60080         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60081         REPLACE_STRCASESTR.
60082         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60084         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60086         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60087         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60088         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60089         (Depends-on): Remove mbuiter.
60090         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60091
60092 2007-02-04  Bruno Haible  <bruno@clisp.org>
60093
60094         Simplify handling of strncasecmp.
60095         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60096         the conditional link warning.
60097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60098         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60099         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60100         * modules/strcase (configure.ac): Don't invoke
60101         gl_STRING_MODULE_INDICATOR.
60102         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60103
60104 2007-02-04  Bruno Haible  <bruno@clisp.org>
60105
60106         New module mbscasecmp, reduced goal of strcasecmp.
60107         * modules/mbscasecmp: New file.
60108         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60109         (mbscasecmp): Renamed from strcasecmp.
60110         * lib/strcasecmp.c: Don't include mbuiter.h.
60111         (strcasecmp): Remove support for multibyte locales.
60112         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60113         Change the conditional link warning.
60114         (mbscasecmp): New declaration.
60115         * m4/mbscasecmp.m4: New file.
60116         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60117         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60118         REPLACE_STRCASECMP.
60119         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60121         GNULIB_MBSCASECMP.
60122         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60123         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60124         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60125         (Depends-on): Remove mbuiter.
60126         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60127
60128 2007-02-04  Bruno Haible  <bruno@clisp.org>
60129
60130         New module mbsstr. Remove module strstr.
60131         * modules/mbsstr: New file.
60132         * modules/strstr: Remove file.
60133         * lib/mbsstr.c: Renamed from lib/strstr.c.
60134         (mbsstr): Renamed from strstr.
60135         * lib/string_.h (strstr): Remove declaration. Change the conditional
60136         link warning.
60137         (mbsstr): New declaration.
60138         * m4/mbsstr.m4: New file.
60139         * m4/strstr.m4: Remove file.
60140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60141         REPLACE_STRSTR.
60142         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60143         Don't initialize GNULIB_STRSTR.
60144         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60145         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60146         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60147         (Support for systems lacking ANSI C 89): Remove strstr.
60148
60149 2007-02-04  Bruno Haible  <bruno@clisp.org>
60150
60151         New module mbsrchr.
60152         * modules/mbsrchr: New file.
60153         * lib/mbsrchr.c: New file.
60154         * lib/string_.h (strrchr): Add a conditional link warning.
60155         (mbsrchr): New declaration.
60156         * m4/mbsrchr.m4: New file.
60157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60158         GNULIB_MBSRCHR.
60159         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60160         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60161
60162 2007-02-04  Bruno Haible  <bruno@clisp.org>
60163
60164         New module mbschr.
60165         * modules/mbschr: New file.
60166         * lib/mbschr.c: New file.
60167         * lib/string_.h (strchr): Add a conditional link warning.
60168         (mbschr): New declaration.
60169         * m4/mbschr.m4: New file.
60170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60171         GNULIB_MBSCHR.
60172         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60173         * MODULES.html.sh (Internationalization functions): Add mbschr.
60174
60175 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60178
60179         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60180
60181 2007-02-04  Bruno Haible  <bruno@clisp.org>
60182
60183         New module description section 'configure.ac-early'.
60184         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60185         (func_get_autoconf_early_snippet): New function.
60186         (func_import, func_create_testdir): Use it. Remove special cases for
60187         modules 'extensions' and 'lock'.
60188         * modules/extensions (configure.ac-early): Require
60189         gl_USE_SYSTEM_EXTENSIONS.
60190         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60191
60192 2007-02-04  Bruno Haible  <bruno@clisp.org>
60193
60194         Make use of gcj-4.3's -fsource and -ftarget option.
60195         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60196         and if so try the options -fsource and -ftarget.
60197         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60198         source_version, ftarget_option, target_version arguments.
60199         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60200         (is_envjavac_oldgcj_14_14_usable): Renamed from
60201         is_envjavac_gcj_14_14_usable.
60202         (is_envjavac_oldgcj_14_13_usable): Renamed from
60203         is_envjavac_gcj_14_13_usable.
60204         (is_gcj_present): Update.
60205         (is_gcj_43, is_gcj43_usable): New functions.
60206         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60207         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60208         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60209         try the options -fsource and -ftarget.
60210
60211 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60212
60213         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60214         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60215         larger value.
60216
60217 2007-02-03  Jim Meyering  <jim@meyering.net>
60218
60219         Give tools a better chance to allocate space for very large buffers.
60220         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60221
60222         Make pwd and readlink work also when run with an unreadable parent dir
60223         on systems with openat support.
60224         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60225         provided getcwd function, even when we have openat support.
60226         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60227
60228 2007-02-02  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60231         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60232         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60233         portability problems if one of these functions is only used on specific
60234         platforms.
60235         Reported by Paul Eggert.
60236
60237 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60240         is causing more trouble than it's curing.
60241         * lib/regex_internal.h (__mempcpy): Remove.
60242         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60243         (and make the code a tad smaller to boot).
60244         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60245
60246 2007-02-02  Jim Meyering  <jim@meyering.net>
60247
60248         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60249         section, not in the Makefile.am: one.
60250
60251 2007-02-02  Eric Blake  <ebb9@byu.net>
60252
60253         * lib/strchrnul.c: Always include config.h first.
60254
60255         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60256         gnulib strstr is not necessary here.
60257
60258 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60259
60260         * m4/socklen.m4: Fix typo.
60261
60262 2007-02-02  Eric Blake  <ebb9@byu.net>
60263
60264         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60265         * modules/netinet_in (Makefile.am): Likewise.
60266
60267 2007-02-01  Bruno Haible  <bruno@clisp.org>
60268
60269         * lib/string_.h (GL_LINK_WARNING): New macro.
60270         (strcasecmp, strstr, strcasestr): If provided by the system,
60271         conditionally define as a macro that leads to a warning instead of to
60272         an error.
60273         (strncasecmp): Conditionally define as a macro that leads to a warning.
60274
60275 2007-02-01  Karl Berry  <karl@gnu.org>
60276
60277         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60278
60279 2007-02-01  Bruno Haible  <bruno@clisp.org>
60280
60281         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60282         renamings.
60283
60284 2007-02-01  Eric Blake  <ebb9@byu.net>
60285
60286         * modules/regex (Depends-on): Revert dependence on mempcpy.
60287         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60288         module's definition of mempcpy.
60289         Reported by Paul Eggert.
60290
60291 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60292
60293         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60294         the symbol XYZ before redefining it.  This fixes a problem with
60295         programs that don't use XYZ, when compiled on systems that define
60296         XYZ to something else.
60297
60298 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60301         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60302         writeable to group or other and (2) is intended to have a special
60303         mode bit that is set or cleared.  In such a case, the directory
60304         should be neither group- nor other-writeable until the special
60305         mode bits are right.
60306
60307 2007-01-31  Eric Blake  <ebb9@byu.net>
60308
60309         * modules/mountlist (Depends-on): Add strstr.
60310
60311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60312         bug.
60313         * modules/string (Makefile.am): Remove redundant replacement.
60314         * modules/regex (Depends-on): Add mempcpy.
60315
60316 2007-01-31  Bruno Haible  <bruno@clisp.org>
60317
60318         New module description field 'Link'.
60319         * gnulib-tool (func_usage): Document --extract-link-directive.
60320         (sed_extract_prog): Recognize 'Link' directive.
60321         (func_get_link_directive): New function.
60322         (func_import): Show summary of link directives.
60323         Handle --extract-link-directive option.
60324         * modules/acl (Link): New section.
60325         * modules/clock-time (Link): New section.
60326         * modules/euidaccess (Link): New section.
60327         * modules/gettext (Link): New section.
60328         * modules/iconv (Link): New section.
60329         * modules/lock (Link): New section.
60330         * modules/nanosleep (Link): New section.
60331         * modules/readline (Link): New section.
60332
60333 2007-01-27  Bruno Haible  <bruno@clisp.org>
60334
60335         Enforce the use of gnulib modules for unportable <string.h> functions.
60336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60337         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60338         (gl_HEADER_STRING_H_BODY): Require it.
60339         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60340         the symbol XYZ to one that gives a link error.
60341         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60342         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60343         * modules/mempcpy (configure.ac): Likewise.
60344         * modules/memrchr (configure.ac): Likewise.
60345         * modules/stpcpy (configure.ac): Likewise.
60346         * modules/stpncpy (configure.ac): Likewise.
60347         * modules/strcase (configure.ac): Likewise.
60348         * modules/strcasestr (configure.ac): Likewise.
60349         * modules/strchrnul (configure.ac): Likewise.
60350         * modules/strdup (configure.ac): Likewise.
60351         * modules/strndup (configure.ac): Likewise.
60352         * modules/strnlen (configure.ac): Likewise.
60353         * modules/strpbrk (configure.ac): Likewise.
60354         * modules/strsep (configure.ac): Likewise.
60355         * modules/strstr (configure.ac): Likewise.
60356         * modules/strtok_r (configure.ac): Likewise.
60357
60358 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60359
60360         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60361
60362 2007-01-30  Jim Meyering  <jim@meyering.net>
60363
60364         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60365
60366 2007-01-29  Bruno Haible  <bruno@clisp.org>
60367
60368         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60369         * lib/execute.c: Likewise.
60370         * lib/pipe.c: Likewise.
60371         * lib/printf-args.h: Likewise.
60372         * lib/printf-args.c: Likewise.
60373         * lib/printf-parse.c: Likewise.
60374         * lib/vasnprintf.c: Likewise.
60375
60376 2007-01-29  Eric Blake  <ebb9@byu.net>
60377
60378         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60379         declaration.
60380
60381 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60382
60383         * lib/strptime.h (strptime): Use 'restrict' for args where
60384         POSIX requires this.
60385         * lib/strptime.c (strptime): Likewise.
60386         Change license notice from LGPL to GPL, since gnulib-tool will
60387         change this as needed.
60388         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60389         defined.
60390         Include "strptime.h" first, to check interface.
60391         Do not #undef _LIBC and _NL_CURRENT.
60392         Do not include <stdlib.h>; no longer needed.
60393         Include "time_r.h" and declare ptime_locale_status
60394         only if _LIBC is not defined.
60395         (__P): Remove unused macro.
60396         (match_string): Bring back glibc version, but use it only if _LIBC
60397         is defined.
60398         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60399         Remove unnecessary assertion and abort() call.
60400         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60401         * m4/strptime.m4: Fix serial number comment.
60402         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60403         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60404         (Depends-on): Add time_r.
60405
60406 2007-01-29  Bruno Haible  <bruno@clisp.org>
60407
60408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60409         strptime.
60410         * modules/strptime (Depends-on): Add stdbool.
60411         * lib/strptime.h: Include <time.h> always. Add comments.
60412
60413 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60414
60415         * modules/strptime: New file.
60416         * lib/strptime.h: New file.
60417         * lib/strptime.c: New file.
60418         * m4/strptime.m4: New file.
60419
60420 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * MODULES.html.sh: New module mpsort.
60423         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60424
60425         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60426         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60428         All uses changed.
60429         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60430         All uses changed.
60431         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60432         to _Restrict_.
60433         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60434         the parameter matches the prototype.
60435
60436 2007-01-28  Jim Meyering  <jim@meyering.net>
60437
60438         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60439         sys/time.h here, reverting that part of the previous patch:
60440         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60441
60442 2007-01-28  Bruno Haible  <bruno@clisp.org>
60443
60444         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60445         value of $(SYS_TIME_H).
60446         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60447         remove it conditionally, too. [added by Jim Meyering]
60448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60449         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60450         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60451         GETTIMEOFDAY_REPLACEMENT to 1.
60452
60453 2007-01-28  Bruno Haible  <bruno@clisp.org>
60454
60455         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60456         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60458         Set UNISTD_H instead of UNISTD_H2.
60459         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60460
60461 2007-01-28  Bruno Haible  <bruno@clisp.org>
60462
60463         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60464         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60465
60466 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60467
60468         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60469         (func_create_testdir): Ensure C locale for `grep' and `tr'
60470         character ranges.
60471         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60472         ACLOCAL_AMFLAGS parsing state machine.
60473
60474 2007-01-27  Bruno Haible  <bruno@clisp.org>
60475
60476         * modules/unistr/base: Update.
60477
60478 2007-01-27  Bruno Haible  <bruno@clisp.org>
60479
60480         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60481         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60482         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60483         modules/unistr/u32-mbtouc.
60484         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60485         * lib/unistr.h: Update.
60486         * lib/linebreak.c: Update.
60487         * modules/unistr/u32-mbtouc: Renamed from
60488         modules/unistr/u32-mbtouc-safe.
60489         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60490         * lib/unistr.h: Update.
60491         * lib/unistr/u32-to-u8.c: Update.
60492         * lib/unistr/u32-to-u16.c: Update.
60493
60494 2007-01-27  Bruno Haible  <bruno@clisp.org>
60495
60496         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60497         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60498         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60499         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60500         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60501         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60502         modules/unistr/u16-mbtouc.
60503         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60504         * lib/unistr.h: Update.
60505         * lib/linebreak.c: Update.
60506         * modules/linebreak: Update.
60507         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60508         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60509         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60510         * modules/unistr/u16-mbtouc: Renamed from
60511         modules/unistr/u16-mbtouc-safe.
60512         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60513         * lib/unistr.h: Update.
60514         * lib/unistr/u16-to-u8.c: Update.
60515         * modules/unistr/u16-to-u8: Update.
60516         * lib/unistr/u16-to-u32.c: Update.
60517         * modules/unistr/u16-to-u32: Update.
60518
60519 2007-01-27  Bruno Haible  <bruno@clisp.org>
60520
60521         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60522         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60523         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60524         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60525         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60526         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60527         modules/unistr/u8-mbtouc.
60528         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60529         * lib/unistr.h: Update.
60530         * lib/striconveh.c: Update.
60531         * modules/striconveh: Update.
60532         * lib/linebreak.c: Update.
60533         * modules/linebreak: Update.
60534         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60535         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60536         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60537         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60538         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60539         * lib/unistr.h: Update.
60540         * lib/striconveh.c: Update.
60541         * modules/striconveh: Update.
60542         * lib/unistr/u8-to-u16.c: Update.
60543         * modules/unistr/u8-to-u16: Update.
60544         * lib/unistr/u8-to-u32.c: Update.
60545         * modules/unistr/u8-to-u32: Update.
60546
60547 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60548
60549         Sync from Libtool.
60550         * lib/argz.c: Do not include strings.h nor memory.h, include
60551         string.h unconditionally.  Patch by Simon Josefsson.
60552
60553 2007-01-27  Bruno Haible  <bruno@clisp.org>
60554
60555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60556         from gl_HEADER_STRING_H_BODY.
60557         (gl_HEADER_STRING_H_BODY): Require it.
60558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60561         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60563         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60566         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60568         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60569         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60570         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60571         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60572         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60573
60574 2007-01-27  Bruno Haible  <bruno@clisp.org>
60575
60576         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60577         check_PROGRAMS into noinst_PROGRAMS.
60578         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60579         check_PROGRAMS in this case.
60580         (func_import): Set for_test to false.
60581         (func_create_testdir): Set for_test to true.
60582
60583 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60584             Bruno Haible  <bruno@clisp.org>
60585
60586         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60587         (Depends-on): Add string.
60588         (Includes): Use <string.h> instead of strcasestr.h.
60589         * modules/string (Makefile.am): Also substitute the value of
60590         REPLACE_STRCASESTR.
60591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60592         assume strcasestr is declared in <string.h> not <strings.h>. Also
60593         set REPLACE_STRCASESTR.
60594         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60595         REPLACE_STRCASESTR.
60596         * lib/strcasestr.h: Remove file.
60597         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60598         * lib/string_.h (strcasestr): New declaration.
60599
60600 2007-01-27  Bruno Haible  <bruno@clisp.org>
60601
60602         * lib/string_.h: Use 'extern'.
60603
60604 2007-01-27  Jim Meyering  <jim@meyering.net>
60605
60606         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60607         of set-but-not-used local, "q".
60608
60609         * lib/mempcpy.c: Include <config.h> before <string.h>.
60610         This fixes a compilation error on HP-UX, due to the system's
60611         "restrict"-using mempcpy prototype.
60612
60613 2007-01-26  Bruno Haible  <bruno@clisp.org>
60614
60615         Small optimization.
60616         * lib/javacomp.c: Include c-strstr.h.
60617          (is_envjavac_gcj): Use c_strstr instead of strstr.
60618         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60619
60620 2007-01-26  Bruno Haible  <bruno@clisp.org>
60621
60622         * MODULES.html.sh (Unicode string functions): Add the new modules.
60623
60624         * modules/uniconv/u32-strconv-to-locale: New file.
60625         * lib/uniconv/u32-strconv-to-locale.c: New file.
60626
60627         * modules/uniconv/u16-strconv-to-locale: New file.
60628         * lib/uniconv/u16-strconv-to-locale.c: New file.
60629
60630         * modules/uniconv/u8-strconv-to-locale: New file.
60631         * lib/uniconv/u8-strconv-to-locale.c: New file.
60632
60633         * modules/uniconv/u32-strconv-from-locale: New file.
60634         * lib/uniconv/u32-strconv-from-locale.c: New file.
60635
60636         * modules/uniconv/u16-strconv-from-locale: New file.
60637         * lib/uniconv/u16-strconv-from-locale.c: New file.
60638
60639         * modules/uniconv/u8-strconv-from-locale: New file.
60640         * lib/uniconv/u8-strconv-from-locale.c: New file.
60641
60642         * modules/uniconv/u32-strconv-to-enc: New file.
60643         * lib/uniconv/u32-strconv-to-enc.c: New file.
60644         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60645         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60646
60647         * modules/uniconv/u16-strconv-to-enc: New file.
60648         * lib/uniconv/u16-strconv-to-enc.c: New file.
60649         * lib/uniconv/u-strconv-to-enc.h: New file.
60650         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60651         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60652
60653         * modules/uniconv/u8-strconv-to-enc: New file.
60654         * lib/uniconv/u8-strconv-to-enc.c: New file.
60655         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60656         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60657
60658         * modules/uniconv/u32-strconv-from-enc: New file.
60659         * lib/uniconv/u32-strconv-from-enc.c: New file.
60660         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60661         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60662
60663         * modules/uniconv/u16-strconv-from-enc: New file.
60664         * lib/uniconv/u16-strconv-from-enc.c: New file.
60665         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60666         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60667
60668         * modules/uniconv/u8-strconv-from-enc: New file.
60669         * lib/uniconv/u8-strconv-from-enc.c: New file.
60670         * lib/uniconv/u-strconv-from-enc.h: New file.
60671         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60672         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60673
60674         * modules/uniconv/u32-conv-from-enc: New file.
60675         * lib/uniconv/u32-conv-from-enc.c: New file.
60676         * modules/uniconv/u32-conv-from-enc-tests: New file.
60677         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60678
60679         * modules/uniconv/u16-conv-from-enc: New file.
60680         * lib/uniconv/u16-conv-from-enc.c: New file.
60681         * lib/uniconv/u-conv-from-enc.h: New file.
60682         * modules/uniconv/u16-conv-from-enc-tests: New file.
60683         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60684
60685         * modules/uniconv/u8-conv-from-enc: New file.
60686         * lib/uniconv/u8-conv-from-enc.c: New file.
60687         * modules/uniconv/u8-conv-from-enc-tests: New file.
60688         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60689
60690         * modules/uniconv/base: New file.
60691         * lib/uniconv.h: New file.
60692
60693 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * doc/gnulib-tool.texi (Initial import): Update to match current
60696         behavior with strdup module.
60697         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60698         * lib/memmem.h: Remove; all uses removed.  This is now done
60699         by <string.h>.
60700         * lib/mempcpy.h: Likewise.
60701         * lib/memrchr.h: Likewise.
60702         * lib/stpcpy.h: Likewise.
60703         * lib/stpncpy.h: Likewise.
60704         * lib/strcase.h: Likewise.
60705         * lib/strchrnul.h: Likewise.
60706         * lib/strdup.h: Likewise.
60707         * lib/strndup.h: Likewise.
60708         * lib/strnlen.h: Likewise.
60709         * lib/strpbrk.h: Likewise.
60710         * lib/strsep.h: Likewise.
60711         * lib/strstr.h: Likewise.
60712         * lib/strtok_r.h: Likewise.
60713         * lib/string_.h: New file.
60714         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60715         Rely on <string.h> instead.
60716         * lib/canon-host.c: Likewise.
60717         * lib/chdir-long.c: Likewise.
60718         * lib/concatpath.c: Likewise.
60719         * lib/exclude.c: Likewise.
60720         * lib/fchdir.c: Likewise.
60721         * lib/getaddrinfo.c: Likewise.
60722         * lib/getcwd.c: Likewise.
60723         * lib/getsubopt.c: Likewise.
60724         * lib/glob.c: Likewise.
60725         * lib/hard-locale.c: Likewise.
60726         * lib/iconvme.c: Likewise.
60727         * lib/javacomp.c: Likewise.
60728         * lib/mempcpy.c: Likewise.
60729         * lib/memrchr.c: Likewise.
60730         * lib/regex_internal.h: Likewise.
60731         * lib/stpncpy.c: Likewise.
60732         * lib/strcasecmp.c: Likewise.
60733         * lib/strchrnul.c: Likewise.
60734         * lib/strdup.c: Likewise.
60735         * lib/striconv.c: Likewise.
60736         * lib/striconveh.c: Likewise.
60737         * lib/striconveha.c: Likewise.
60738         * lib/strncasecmp.c: Likewise.
60739         * lib/strndup.c: Likewise.
60740         * lib/strnlen.c: Likewise.
60741         * lib/strsep.c: Likewise.
60742         * lib/strstr.c: Likewise.
60743         * lib/strtok_r.c: Likewise.
60744         * lib/userspec.c: Likewise.
60745         * lib/w32spawn.h: Likewise.
60746         * lib/xstrndup.c: Likewise.
60747         * lib/mountlist.c (strstr): Remove decl.
60748         * m4/string_h.m4: New file.
60749         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60750         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60751         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60752         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60753         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60754         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60755         Set REPLACE_STRCASECMP if necessary.
60756         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60757         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60758         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60759         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60760         HAVE_DECL_STRDUP if necessary.
60761         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60762         since gl_FUNC_STRNDUP does that now.
60763         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60764         Check for decl here...
60765         (gl_PREREQ_STRNLEN): ... not here.
60766         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60767         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60768         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60769         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60770         necessary.
60771         * modules/string: New file.
60772         * modules/memmem (Files): Remove special-purpose include file.
60773         (Depends-on): Add string.
60774         (Include): Include <string.h>, not the removed file.
60775         * modules/mempcpy: Likewise.
60776         * modules/memrchr: Likewise.
60777         * modules/stpcpy: Likewise.
60778         * modules/stpncpy: Likewise.
60779         * modules/strcase: Likewise.
60780         * modules/strchrnul: Likewise.
60781         * modules/strdup: Likewise.
60782         * modules/strndup: Likewise.
60783         * modules/strnlen: Likewise.
60784         * modules/strpbrk: Likewise.
60785         * modules/strsep: Likewise.
60786         * modules/strstr: Likewise.
60787         * modules/strtok_r: Likewise.
60788         * tests/test-dirname.c: Don't include "strdup.h", since
60789         <string.h> now suffices.
60790         * tests/test-memmem.c: Don't include "memmem.h", since
60791         <string.h> now suffices.
60792
60793 2007-01-25  Bruno Haible  <bruno@clisp.org>
60794
60795         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60796         *resultp is 0.
60797
60798         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60799         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60800         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60801         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60802
60803         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60804         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60805         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60806         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60807         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60808         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60809
60810 2007-01-24  Bruno Haible  <bruno@clisp.org>
60811
60812         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60814         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60815         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60816         gl_FUNC_FTS_CORE.
60817         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60818         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60820         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60821         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60822         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60823         gl_FUNC_FCHOWNAT.
60824         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60825         gl_FUNC_STRFTIME.
60826         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60827         Reported by Ralf Wildenhues.
60828
60829 2007-01-24  Bruno Haible  <bruno@clisp.org>
60830
60831         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60832         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60833         gl_GETADDRINFO.
60834         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60835         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60836         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60837
60838 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60839
60840         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60841         Don't use 'exit'; just return from 'main'.
60842         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60843
60844         * lib/fnmatch_.h: Readjust white space and comments to match
60845         glibc, to avoid spurious diffs.
60846
60847 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60848
60849         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60850         2004-12-01 change by Jakub Jelinek, since this code won't compile
60851         if !LIBC.  Problem reported by Bob Proulx.
60852
60853 2007-01-23  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/striconveh.c: Include c-strcaseeq.h.
60856         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60857         * modules/striconveh (Depends-on): Add c-strcaseeq.
60858
60859 2007-01-23  Bruno Haible  <bruno@clisp.org>
60860
60861         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60862
60863         * modules/c-strcaseeq: New file.
60864         * lib/c-strcaseeq.h: New file.
60865
60866         * modules/streq: New file.
60867         * lib/streq.h: New file.
60868
60869 2007-01-23  Bruno Haible  <bruno@clisp.org>
60870
60871         * modules/striconveha-tests: New file.
60872         * tests/test-striconveha.c: New file.
60873
60874         * lib/striconveha.h: Include <stdbool.h>.
60875         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60876         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60877         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60878         (mem_iconveha): New function.
60879         (str_iconveha_notranslit): Renamed from str_iconveha.
60880         (str_iconveha): New function.
60881         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60882         c-strcase.
60883
60884 2007-01-23  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60887         encodings without forgiving before trying any encoding with handler.
60888         (str_iconveha): Try all encodings without forgiving before trying any
60889         encoding with handler.
60890
60891 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         Import the following changes from libc.
60894
60895         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60896
60897         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60898
60899         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60900
60901         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60902         normal_bracket label.
60903
60904         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60905
60906         [BZ #361]
60907         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60908         to normal_bracket after fetching the next character.
60909
60910 2007-01-22  Bruno Haible  <bruno@clisp.org>
60911
60912         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60913         argument.
60914         * lib/striconveh.c (iconv_carefully_1): New function.
60915         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60916         argument.
60917         (str_cd_iconveh): Update.
60918         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60919         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60920         * tests/test-striconveh.c (MAGIC): New macro.
60921         (new_offsets): New function.
60922         (main): Test call with and without offsets.
60923
60924 2007-01-22  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60927         * modules/sys_select (Makefile.am): Likewise.
60928         * modules/sys_socket (Makefile.am): Likewise.
60929         * modules/sys_time (Makefile.am): Likewise.
60930
60931 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         * modules/gettimeofday (License): Change from GPL to LGPL, since
60934         gettimeofday is a library function.
60935
60936 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60937
60938         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60939
60940 2007-01-21  Bruno Haible  <bruno@clisp.org>
60941
60942         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60943
60944 2007-01-21  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/striconveha: New file.
60947         * lib/striconveha.h: New file.
60948         * lib/striconveha.c: New file.
60949         * MODULES.html.sh (Internationalization functions): Add striconveha.
60950         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60951         string.
60952         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60953
60954 2007-01-21  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60957         * lib/striconveh.c (str_iconveh): Likewise.
60958
60959 2007-01-21  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/striconveh.h (mem_iconveh): New declaration.
60962         * lib/striconveh.c (mem_iconveh): New function.
60963         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60964
60965 2007-01-21  Bruno Haible  <bruno@clisp.org>
60966
60967         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60968
60969         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60970         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60971         original result buffer.
60972         (str_cd_iconveh): Update.
60973         * tests/test-striconveh.c (main): Update.
60974
60975         * lib/striconv.h (mem_cd_iconv): Change specification.
60976         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60977         result buffer.
60978         (str_cd_iconv): Update.
60979         * tests/test-striconv.c (main): Update.
60980
60981 2007-01-21  Bruno Haible  <bruno@clisp.org>
60982
60983         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60984
60985 2007-01-20  Jim Meyering  <jim@meyering.net>
60986
60987         * lib/userspec.c (parse_with_separator): If a user or group string
60988         starts with "+", skip the corresponding name-to-ID look-up, since
60989         such a look-up must fail: user and group names may not include "+".
60990
60991 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60994         since we now assume the sys_time module.
60995         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60996         check for sys/time.h; no longer needed.
60997         * modules/poll (Depends-on): Depend on sys_time.
60998
60999 2007-01-18  Bruno Haible  <bruno@clisp.org>
61000
61001         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61003
61004         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61005         gettimeofday.
61006
61007         * tests/test-gettimeofday.c: Include <time.h>.
61008         (dummy): Remove variable.
61009
61010         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61011         gl_HEADER_SYS_TIME_H.
61012         (gl_HEADER_SYS_TIME_H): New macro.
61013
61014         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61015         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61017         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61018         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61019         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61020         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61021         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61022         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61023         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61024         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61025
61026         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61027         last change; it caused a compilation error when cross-compiling to
61028         Cygwin.
61029
61030 2007-01-18  Jim Meyering  <jim@meyering.net>
61031
61032         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61033         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61034         than the race-prone "test -d sys || mkdir sys".
61035         (configure.ac): Use AC_PROG_MKDIR_P.
61036         * modules/sys_select: Likewise.
61037         * modules/sys_socket: Likewise.
61038         * modules/sys_time: Likewise.
61039
61040 2007-01-18  Eric Blake  <ebb9@byu.net>
61041
61042         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61043         replace gettimeofday.
61044         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61045         name, to avoid infinite recursion.
61046
61047 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61050         module sys_time.
61051         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61052         assume timespec.h defines struct timeval.
61053         * lib/settime.c: Likewise.
61054         * lib/utimens.c: Likewise.
61055         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61056         since we now assume the gettimeofday module.
61057         * lib/tempname.c (__gen_tempname): Likewise.
61058         * lib/gettimeofday.h: Remove.
61059         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61060         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61061         Include <time.h>, for 'time()'.
61062         (localtime_buffer_addr): Also use this workaround if
61063         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61064         to simplify the uses.  All uses changed.
61065         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61066         that #undef is inside {}, and 'const' follows type name consistently.
61067         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61068         (gettimeofday): Do not use the maximum possible value for
61069         tv->tv_usec, since that might break usages other than ls.c.
61070         Instead, we'll leave ls.c alone.  This undoes today's patch
61071         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61072         we've never observed the problem but might as well keep the
61073         canary.
61074         * lib/nanosleep.c: Include timespec.h first, for interface check.
61075         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61076         now assume the sys_time module.
61077         * lib/tempname.c: Likewise.
61078         * lib/timespec.h: Likewise.
61079         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61080         needed.
61081         * lib/strftime.c: Likewise.
61082         * lib/timespec.h: Likewise.
61083         * lib/posixtm.c: Include posixtm.h first, for interface check.
61084         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61085         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61086         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61087         * lib/sys_time_.h: New file.
61088         * lib/timespec.h (struct timespec): Use long int, not long.
61089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61090         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61091         Remove obsolescent call to AC_HEADER_TIME.
61092         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61095         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61096         Likewise.
61097         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61098         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61099         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61100         into the sys_time module.  Check for gettimeofday just once.
61101         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61102         for gettimeofday signature to just check the signature.  Merely
61103         compile it, since linking doesn't test signature.  Improve test for
61104         whether gettimeofday.o is actually needed.
61105         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61106         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61107         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61108         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61109         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61110         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61111         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61112         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61113         than worrying about sys/time.h.
61114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61115         Don't bother worrying about TIME_WITH_SYS_TIME.
61116         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61117         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61118         * m4/sys_time_h.m4: New file.
61119         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61120         Don't include sys/time.h.  Return from main rather than exiting.
61121         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61122         all uses changed.
61123         * modules/gethrxtime (Depends-on): Add sys_time.
61124         * modules/gettime (Depends-on): Likewise.
61125         * modules/gettimeofday (Depends-on): Likewise.
61126         * modules/nanosleep (Depends-on): Likewise.
61127         * modules/settime (Depends-on): Likewise.
61128         * modules/tempname (Depends-on): Likewise.
61129         * modules/utimens (Depends-on): Likewise.
61130         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61131         (Include): Change back to <sys/time.h>.
61132         (Maintainer): Add self.
61133         * modules/sys_time: New file.
61134         * modules/tempname (Depends-on): Add gettimeofday.
61135         * tests/test-gettimeofday.c: Include <sys/time.h>
61136         rather than gettimeofday.h.
61137
61138 2007-01-17  Bruno Haible  <bruno@clisp.org>
61139
61140         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61141         the license default to GPL.
61142         (func_create_testdir): Don't complain if a module is LGPL and its
61143         tests module depends on GPLed modules.
61144
61145 2007-01-17  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/gettimeofday.c (gettimeofday): Add code for the case
61148         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61149         maximum possible value for tv->tv_usec, rather than the minimum one.
61150
61151 2005-10-08  Martin Lambers  <marlam@marlam.de>
61152 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61153 2007-01-16  Bruno Haible  <bruno@clisp.org>
61154
61155         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61156         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61157         gl_FUNC_GETTIMEOFDAY.
61158         (Include): Add gettimeofday.h.
61159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61160         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61161         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61162         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61163         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61164         * lib/gettimeofday.h: New file.
61165         * lib/gettimeofday.c: Include <sys/timeb.h>.
61166         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61167         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61168         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61169         fall back on time().
61170
61171         * tests/test-gettimeofday.c: New file.
61172         * modules/gettimeofday-tests: New file.
61173
61174 2007-01-16  Eric Blake  <ebb9@byu.net>
61175
61176         * modules/fnmatch (Depends-on): Depend on wchar.
61177         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61178         * m4/fnmatch.m4: Likewise.
61179         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61180         * m4/mbchar.m4: Likewise.
61181         * modules/mbswidth (Depends-on): Depend on wchar.
61182         * lib/mbswidth.c: Assume <wchar.h>.
61183         * m4/mbswidth.m4: Likewise.
61184         * modules/quotearg (Depends-on): Depend on wchar.
61185         * lib/quotearg.c: Assume <wchar.h>.
61186         * m4/quotearg.m4: Likewise.
61187         * modules/regex (Depends-on): Depend on wchar.
61188         * lib/regex_internal.h: Assume <wchar.h>.
61189         * m4/regex.m4: Likewise.
61190         * modules/stdint (Depends-on): Depend on wchar.
61191         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61192         * m4/stdint.m4: Likewise.
61193         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61194         * modules/strftime (Depends-on): Depend on wchar.
61195         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61196         * modules/strtol (Depends-on): Depend on wchar.
61197         * lib/strtol.c: Assume <wchar.h>.
61198         * modules/wcwidth (Depends-on): Depend on wchar.
61199         * lib/wcwidth.h: Assume <wchar.h>.
61200         * m4/wcwidth.m4: Likewise.
61201
61202 2007-01-16  Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/csharpexec-script: New, created from...
61205         * modules/csharpexec: ... this.
61206
61207 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61208
61209         * modules/javaexec-script: New, created from...
61210         * modules/javaexec: ... this.
61211
61212 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61213
61214         * modules/poll (Dependencies): Add sys_select.
61215
61216 2007-01-15  Jim Meyering  <jim@meyering.net>
61217
61218         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61219         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61220         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61221         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61222
61223 2007-01-15  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/striconveh: New file.
61226         * lib/striconveh.h: New file.
61227         * lib/striconveh.c: New file.
61228         * MODULES.html.sh (Internationalization functions): Add striconveh.
61229
61230         * modules/striconveh-tests: New file.
61231         * tests/test-striconveh.c: New file.
61232
61233 2007-01-15  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61236         not from GNU libiconv or GNU libc.
61237
61238 2007-01-15  Bruno Haible  <bruno@clisp.org>
61239
61240         * doc/gnulib-intro.texi (Copyright): Explain the different license
61241         terms for module descriptions, autoconf macros, tests, documentation.
61242
61243 2007-01-14  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/striconv-tests: New file.
61246         * tests/test-striconv.c: New file.
61247
61248 2007-01-14  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/iconv-tests: New file.
61251         * tests/test-iconv.c: New file.
61252
61253 2007-01-14  Bruno Haible  <bruno@clisp.org>
61254
61255         * gnulib-tool (func_get_license): For test modules, use the license of
61256         the main module.
61257
61258 2007-01-14  Bruno Haible  <bruno@clisp.org>
61259
61260         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61261         if iconv is found to exist.
61262
61263 2007-01-14  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/c-ctype-tests: New file.
61266         * tests/test-c-ctype.c: New file.
61267
61268 2007-01-14  Bruno Haible  <bruno@clisp.org>
61269
61270         * modules/binary-io-tests: New file.
61271         * tests/test-binary-io.sh: New file.
61272         * tests/test-binary-io.c: New file.
61273
61274 2007-01-14  Bruno Haible  <bruno@clisp.org>
61275
61276         * modules/array-oset-tests: New file.
61277         * tests/test-array_oset.c: New file.
61278
61279 2007-01-14  Bruno Haible  <bruno@clisp.org>
61280
61281         * modules/array-list-tests: New file.
61282         * tests/test-array_list.c: New file.
61283
61284 2007-01-14  Bruno Haible  <bruno@clisp.org>
61285
61286         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61287         and make.
61288         Reported by Simon Josefsson in
61289         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61290
61291 2007-01-14  Bruno Haible  <bruno@clisp.org>
61292
61293         * modules/allocsa-tests: New file.
61294         * tests/test-allocsa.c: New file.
61295
61296 2007-01-14  Bruno Haible  <bruno@clisp.org>
61297
61298         * modules/fchdir (Depends-on): Add absolute-header.
61299         * modules/unistd (Depends-on): Likewise.
61300
61301 2006-12-30  Bruno Haible  <bruno@clisp.org>
61302
61303         * modules/fchdir: New file.
61304         * modules/unistd (Files): Add lib/unistd_.h.
61305         (Makefile.am): Generate unistd.h from unistd_.h.
61306         * lib/fchdir.c: New file.
61307         * lib/dirent_.h: New file.
61308         * lib/unistd_.h: New file.
61309         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61310         * m4/fchdir.m4: New file.
61311         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61312         (gl_HEADER_UNISTD): Invoke it.
61313         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61314         function.
61315         * lib/backupfile.c (opendir, closedir): Undefine.
61316         * lib/chown.c (open, close): Undefine.
61317         * lib/clean-temp.c (open, close): Undefine.
61318         * lib/copy-file.c (open, close): Undefine.
61319         * lib/execute.c (open, close): Undefine.
61320         * lib/fsusage.c (open, close): Undefine.
61321         * lib/gc-gnulib.c (open, close): Undefine.
61322         * lib/getcwd.c (opendir, closedir): Undefine.
61323         * lib/glob.c (opendir, closedir): Undefine.
61324         * lib/javacomp.c (open, close): Undefine.
61325         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61326         * lib/openat-proc.c (open, close): Undefine.
61327         * lib/pagealign_alloc.c (open, close): Undefine.
61328         * lib/pipe.c (open, close): Undefine.
61329         * lib/progreloc.c (open, close): Undefine.
61330         * lib/savedir.c (opendir, closedir): Undefine.
61331         * lib/utime.c (open, close): Undefine.
61332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61333
61334 2007-01-10  Bruno Haible  <bruno@clisp.org>
61335
61336         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61337
61338 2007-01-12  Eric Blake  <ebb9@byu.net>
61339
61340         Provide a robust <wchar.h>.  Further simplifications are now
61341         possible in other modules, but not included here.
61342         * modules/wchar: New module.
61343         * m4/wchar.m4: New file.
61344         * lib/wchar_.h: Likewise.
61345         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61346         of the new module.
61347         * MODULES.html.sh (Extended multibyte and wide character utilities):
61348         New section.
61349
61350 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61353         to a reasonable default for memory allocation.
61354         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61355         file system that reports garbage st_size values for symlinks.
61356         Problem reported by Liyang Hu.
61357
61358 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61359
61360         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61361         Emacs .#* auto-save files).
61362
61363 2007-01-11  Bruno Haible  <bruno@clisp.org>
61364
61365         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61366         directory.
61367
61368 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61369
61370         Use @...@ consistently in lib/wctype_.h.
61371         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61372         on it being set to 1 or 0.
61373         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61374         go back to AC_SUBSTing it.
61375         * modules/wctype (Makefile.am): Undo previous change.
61376
61377 2007-01-10  Eric Blake  <ebb9@byu.net>
61378
61379         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61380         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61381         * modules/wctype (Makefile.am): Likewise.
61382         Reported by Chris McGuire.
61383
61384 2007-01-10  Jim Meyering  <jim@meyering.net>
61385
61386         fts.c: a small readability/maintainability improvement
61387         * lib/fts.c (fts_read): Make this code slightly more readable and
61388         maintainable by hoisting the "sp->fts_cur = p" assignments to
61389         immediately follow the statements that set P.  Derived from
61390         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61391
61392 2007-01-10  Eric Blake  <ebb9@byu.net>
61393
61394         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61395         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61397         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61398         Reported by Chris McGuire.
61399
61400 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61401
61402         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61403         in sed script.
61404
61405 2007-01-09  Bruno Haible  <bruno@clisp.org>
61406
61407         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61408         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61409         variables.
61410         (func_module): Use them.
61411
61412 2007-01-09  Bruno Haible  <bruno@clisp.org>
61413
61414         * modules/unistr/base: New file.
61415         * lib/unistr.h: New file.
61416
61417         * modules/unistr/u8-to-u16: New file.
61418         * lib/unistr/u8-to-u16.c: New file.
61419
61420         * modules/unistr/u8-to-u32: New file.
61421         * lib/unistr/u8-to-u32.c: New file.
61422
61423         * modules/unistr/u16-to-u8: New file.
61424         * lib/unistr/u16-to-u8.c: New file.
61425
61426         * modules/unistr/u16-to-u32: New file.
61427         * lib/unistr/u16-to-u32.c: New file.
61428
61429         * modules/unistr/u32-to-u8: New file.
61430         * lib/unistr/u32-to-u8.c: New file.
61431
61432         * modules/unistr/u32-to-u16: New file.
61433         * lib/unistr/u32-to-u16.c: New file.
61434
61435         * modules/unistr/u8-check: New file.
61436         * modules/unistr/u16-check: New file.
61437         * modules/unistr/u32-check: New file.
61438         * lib/unistr/u8-check.c: New file.
61439         * lib/unistr/u16-check.c: New file.
61440         * lib/unistr/u32-check.c: New file.
61441
61442         * modules/unistr/u8-chr: New file.
61443         * modules/unistr/u16-chr: New file.
61444         * modules/unistr/u32-chr: New file.
61445         * lib/unistr/u8-chr.c: New file.
61446         * lib/unistr/u16-chr.c: New file.
61447         * lib/unistr/u32-chr.c: New file.
61448
61449         * modules/unistr/u8-cmp: New file.
61450         * modules/unistr/u16-cmp: New file.
61451         * modules/unistr/u32-cmp: New file.
61452         * lib/unistr/u8-cmp.c: New file.
61453         * lib/unistr/u16-cmp.c: New file.
61454         * lib/unistr/u32-cmp.c: New file.
61455
61456         * modules/unistr/u8-cpy: New file.
61457         * modules/unistr/u16-cpy: New file.
61458         * modules/unistr/u32-cpy: New file.
61459         * lib/unistr/u8-cpy.c: New file.
61460         * lib/unistr/u16-cpy.c: New file.
61461         * lib/unistr/u32-cpy.c: New file.
61462         * lib/unistr/u-cpy.h: New file.
61463
61464         * modules/unistr/u8-cpy-alloc: New file.
61465         * modules/unistr/u16-cpy-alloc: New file.
61466         * modules/unistr/u32-cpy-alloc: New file.
61467         * lib/unistr/u8-cpy-alloc.c: New file.
61468         * lib/unistr/u16-cpy-alloc.c: New file.
61469         * lib/unistr/u32-cpy-alloc.c: New file.
61470         * lib/unistr/u-cpy-alloc.h: New file.
61471
61472         * modules/unistr/u8-endswith: New file.
61473         * modules/unistr/u16-endswith: New file.
61474         * modules/unistr/u32-endswith: New file.
61475         * lib/unistr/u8-endswith.c: New file.
61476         * lib/unistr/u16-endswith.c: New file.
61477         * lib/unistr/u32-endswith.c: New file.
61478         * lib/unistr/u-endswith.h: New file.
61479
61480         * modules/unistr/u8-mblen: New file.
61481         * modules/unistr/u16-mblen: New file.
61482         * modules/unistr/u32-mblen: New file.
61483         * lib/unistr/u8-mblen.c: New file.
61484         * lib/unistr/u16-mblen.c: New file.
61485         * lib/unistr/u32-mblen.c: New file.
61486
61487         * modules/unistr/u8-mbtouc: New file.
61488         * modules/unistr/u16-mbtouc: New file.
61489         * modules/unistr/u32-mbtouc: New file.
61490         * lib/unistr/u8-mbtouc.c: New file.
61491         * lib/unistr/u16-mbtouc.c: New file.
61492         * lib/unistr/u32-mbtouc.c: New file.
61493
61494         * modules/unistr/u8-mbtouc-safe: New file.
61495         * modules/unistr/u16-mbtouc-safe: New file.
61496         * modules/unistr/u32-mbtouc-safe: New file.
61497         * lib/unistr/u8-mbtouc-safe.c: New file.
61498         * lib/unistr/u16-mbtouc-safe.c: New file.
61499         * lib/unistr/u32-mbtouc-safe.c: New file.
61500
61501         * modules/unistr/u8-move: New file.
61502         * modules/unistr/u16-move: New file.
61503         * modules/unistr/u32-move: New file.
61504         * lib/unistr/u8-move.c: New file.
61505         * lib/unistr/u16-move.c: New file.
61506         * lib/unistr/u32-move.c: New file.
61507         * lib/unistr/u-move.h: New file.
61508
61509         * modules/unistr/u8-next: New file.
61510         * modules/unistr/u16-next: New file.
61511         * modules/unistr/u32-next: New file.
61512         * lib/unistr/u8-next.c: New file.
61513         * lib/unistr/u16-next.c: New file.
61514         * lib/unistr/u32-next.c: New file.
61515
61516         * modules/unistr/u8-prev: New file.
61517         * modules/unistr/u16-prev: New file.
61518         * modules/unistr/u32-prev: New file.
61519         * lib/unistr/u8-prev.c: New file.
61520         * lib/unistr/u16-prev.c: New file.
61521         * lib/unistr/u32-prev.c: New file.
61522
61523         * modules/unistr/u8-set: New file.
61524         * modules/unistr/u16-set: New file.
61525         * modules/unistr/u32-set: New file.
61526         * lib/unistr/u8-set.c: New file.
61527         * lib/unistr/u16-set.c: New file.
61528         * lib/unistr/u32-set.c: New file.
61529         * lib/unistr/u-set.h: New file.
61530
61531         * modules/unistr/u8-startswith: New file.
61532         * modules/unistr/u16-startswith: New file.
61533         * modules/unistr/u32-startswith: New file.
61534         * lib/unistr/u8-startswith.c: New file.
61535         * lib/unistr/u16-startswith.c: New file.
61536         * lib/unistr/u32-startswith.c: New file.
61537         * lib/unistr/u-startswith.h: New file.
61538
61539         * modules/unistr/u8-stpcpy: New file.
61540         * modules/unistr/u16-stpcpy: New file.
61541         * modules/unistr/u32-stpcpy: New file.
61542         * lib/unistr/u8-stpcpy.c: New file.
61543         * lib/unistr/u16-stpcpy.c: New file.
61544         * lib/unistr/u32-stpcpy.c: New file.
61545         * lib/unistr/u-stpcpy.h: New file.
61546
61547         * modules/unistr/u8-stpncpy: New file.
61548         * modules/unistr/u16-stpncpy: New file.
61549         * modules/unistr/u32-stpncpy: New file.
61550         * lib/unistr/u8-stpncpy.c: New file.
61551         * lib/unistr/u16-stpncpy.c: New file.
61552         * lib/unistr/u32-stpncpy.c: New file.
61553         * lib/unistr/u-stpncpy.h: New file.
61554
61555         * modules/unistr/u8-strcat: New file.
61556         * modules/unistr/u16-strcat: New file.
61557         * modules/unistr/u32-strcat: New file.
61558         * lib/unistr/u8-strcat.c: New file.
61559         * lib/unistr/u16-strcat.c: New file.
61560         * lib/unistr/u32-strcat.c: New file.
61561         * lib/unistr/u-strcat.h: New file.
61562
61563         * modules/unistr/u8-strchr: New file.
61564         * modules/unistr/u16-strchr: New file.
61565         * modules/unistr/u32-strchr: New file.
61566         * lib/unistr/u8-strchr.c: New file.
61567         * lib/unistr/u16-strchr.c: New file.
61568         * lib/unistr/u32-strchr.c: New file.
61569
61570         * modules/unistr/u8-strcmp: New file.
61571         * modules/unistr/u16-strcmp: New file.
61572         * modules/unistr/u32-strcmp: New file.
61573         * lib/unistr/u8-strcmp.c: New file.
61574         * lib/unistr/u16-strcmp.c: New file.
61575         * lib/unistr/u32-strcmp.c: New file.
61576
61577         * modules/unistr/u8-strcpy: New file.
61578         * modules/unistr/u16-strcpy: New file.
61579         * modules/unistr/u32-strcpy: New file.
61580         * lib/unistr/u8-strcpy.c: New file.
61581         * lib/unistr/u16-strcpy.c: New file.
61582         * lib/unistr/u32-strcpy.c: New file.
61583         * lib/unistr/u-strcpy.h: New file.
61584
61585         * modules/unistr/u8-strcspn: New file.
61586         * modules/unistr/u16-strcspn: New file.
61587         * modules/unistr/u32-strcspn: New file.
61588         * lib/unistr/u8-strcspn.c: New file.
61589         * lib/unistr/u16-strcspn.c: New file.
61590         * lib/unistr/u32-strcspn.c: New file.
61591         * lib/unistr/u-strcspn.h: New file.
61592
61593         * modules/unistr/u8-strdup: New file.
61594         * modules/unistr/u16-strdup: New file.
61595         * modules/unistr/u32-strdup: New file.
61596         * lib/unistr/u8-strdup.c: New file.
61597         * lib/unistr/u16-strdup.c: New file.
61598         * lib/unistr/u32-strdup.c: New file.
61599         * lib/unistr/u-strdup.h: New file.
61600
61601         * modules/unistr/u8-strlen: New file.
61602         * modules/unistr/u16-strlen: New file.
61603         * modules/unistr/u32-strlen: New file.
61604         * lib/unistr/u8-strlen.c: New file.
61605         * lib/unistr/u16-strlen.c: New file.
61606         * lib/unistr/u32-strlen.c: New file.
61607         * lib/unistr/u-strlen.h: New file.
61608
61609         * modules/unistr/u8-strmblen: New file.
61610         * modules/unistr/u16-strmblen: New file.
61611         * modules/unistr/u32-strmblen: New file.
61612         * lib/unistr/u8-strmblen.c: New file.
61613         * lib/unistr/u16-strmblen.c: New file.
61614         * lib/unistr/u32-strmblen.c: New file.
61615
61616         * modules/unistr/u8-strmbtouc: New file.
61617         * modules/unistr/u16-strmbtouc: New file.
61618         * modules/unistr/u32-strmbtouc: New file.
61619         * lib/unistr/u8-strmbtouc.c: New file.
61620         * lib/unistr/u16-strmbtouc.c: New file.
61621         * lib/unistr/u32-strmbtouc.c: New file.
61622
61623         * modules/unistr/u8-strncat: New file.
61624         * modules/unistr/u16-strncat: New file.
61625         * modules/unistr/u32-strncat: New file.
61626         * lib/unistr/u8-strncat.c: New file.
61627         * lib/unistr/u16-strncat.c: New file.
61628         * lib/unistr/u32-strncat.c: New file.
61629         * lib/unistr/u-strncat.h: New file.
61630
61631         * modules/unistr/u8-strncmp: New file.
61632         * modules/unistr/u16-strncmp: New file.
61633         * modules/unistr/u32-strncmp: New file.
61634         * lib/unistr/u8-strncmp.c: New file.
61635         * lib/unistr/u16-strncmp.c: New file.
61636         * lib/unistr/u32-strncmp.c: New file.
61637
61638         * modules/unistr/u8-strncpy: New file.
61639         * modules/unistr/u16-strncpy: New file.
61640         * modules/unistr/u32-strncpy: New file.
61641         * lib/unistr/u8-strncpy.c: New file.
61642         * lib/unistr/u16-strncpy.c: New file.
61643         * lib/unistr/u32-strncpy.c: New file.
61644         * lib/unistr/u-strncpy.h: New file.
61645
61646         * modules/unistr/u8-strnlen: New file.
61647         * modules/unistr/u16-strnlen: New file.
61648         * modules/unistr/u32-strnlen: New file.
61649         * lib/unistr/u8-strnlen.c: New file.
61650         * lib/unistr/u16-strnlen.c: New file.
61651         * lib/unistr/u32-strnlen.c: New file.
61652         * lib/unistr/u-strnlen.h: New file.
61653
61654         * modules/unistr/u8-strpbrk: New file.
61655         * modules/unistr/u16-strpbrk: New file.
61656         * modules/unistr/u32-strpbrk: New file.
61657         * lib/unistr/u8-strpbrk.c: New file.
61658         * lib/unistr/u16-strpbrk.c: New file.
61659         * lib/unistr/u32-strpbrk.c: New file.
61660         * lib/unistr/u-strpbrk.h: New file.
61661
61662         * modules/unistr/u8-strrchr: New file.
61663         * modules/unistr/u16-strrchr: New file.
61664         * modules/unistr/u32-strrchr: New file.
61665         * lib/unistr/u8-strrchr.c: New file.
61666         * lib/unistr/u16-strrchr.c: New file.
61667         * lib/unistr/u32-strrchr.c: New file.
61668
61669         * modules/unistr/u8-strspn: New file.
61670         * modules/unistr/u16-strspn: New file.
61671         * modules/unistr/u32-strspn: New file.
61672         * lib/unistr/u8-strspn.c: New file.
61673         * lib/unistr/u16-strspn.c: New file.
61674         * lib/unistr/u32-strspn.c: New file.
61675         * lib/unistr/u-strspn.h: New file.
61676
61677         * modules/unistr/u8-strstr: New file.
61678         * modules/unistr/u16-strstr: New file.
61679         * modules/unistr/u32-strstr: New file.
61680         * lib/unistr/u8-strstr.c: New file.
61681         * lib/unistr/u16-strstr.c: New file.
61682         * lib/unistr/u32-strstr.c: New file.
61683         * lib/unistr/u-strstr.h: New file.
61684
61685         * modules/unistr/u8-strtok: New file.
61686         * modules/unistr/u16-strtok: New file.
61687         * modules/unistr/u32-strtok: New file.
61688         * lib/unistr/u8-strtok.c: New file.
61689         * lib/unistr/u16-strtok.c: New file.
61690         * lib/unistr/u32-strtok.c: New file.
61691         * lib/unistr/u-strtok.h: New file.
61692
61693         * modules/unistr/u8-uctomb: New file.
61694         * modules/unistr/u16-uctomb: New file.
61695         * modules/unistr/u32-uctomb: New file.
61696         * lib/unistr/u8-uctomb.c: New file.
61697         * lib/unistr/u16-uctomb.c: New file.
61698         * lib/unistr/u32-uctomb.c: New file.
61699
61700         * MODULES.html.sh (Unicode string functions): Add the new modules.
61701
61702 2007-01-08  Bruno Haible  <bruno@clisp.org>
61703
61704         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61705         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61706         subdirectories.
61707
61708 2007-01-08  Karl Berry  <karl@gnu.org>
61709
61710         * doc/error.texi: mention that main() fns must set program_name
61711         when progname is used.
61712
61713 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61716         WCTYPE_H is empty, for the benefit of builds from non-distclean
61717         directories.  Problem reported by Eric Blake in
61718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61719
61720 2007-01-08  Bruno Haible  <bruno@clisp.org>
61721
61722         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61723         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61724         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61725         PROVIDE_CANONICALIZE_FILENAME_MODE.
61726         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61727
61728 2007-01-08  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61731         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61732         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61733         * lib/fts.c: Likewise.
61734         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61735
61736 2006-12-25  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/utf8-ucs4-safe: New file.
61739         * lib/utf8-ucs4-safe.h: New file.
61740         * lib/unistr/utf8-ucs4-safe.c: New file.
61741
61742         * modules/utf16-ucs4-safe: New file.
61743         * lib/utf16-ucs4-safe.h: New file.
61744         * lib/unistr/utf16-ucs4-safe.c: New file.
61745
61746         * MODULES.html.sh (Unicode string functions): Add the new modules.
61747
61748 2007-01-08  Bruno Haible  <bruno@clisp.org>
61749
61750         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61751         (Depends-on): Add unitypes.
61752         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61753         (u8_mbtouc_aux): Move out to separate file.
61754         (u8_mbtouc): Use ucs4_t, uint8_t types.
61755         * lib/unistr/utf8-ucs4.c: New file.
61756
61757         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61758         (Depends-on): Add unitypes.
61759         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61760         (u16_mbtouc_aux): Move out to separate file.
61761         (u16_mbtouc): Use ucs4_t, uint16_t types.
61762         * lib/unistr/utf16-ucs4.c: New file.
61763
61764         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61765         (Depends-on): Add unitypes.
61766         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61767         (u8_uctomb_aux): Move out to separate file.
61768         (u8_uctomb): Use ucs4_t, uint8_t types.
61769         * lib/unistr/ucs4-utf8.c: New file.
61770
61771         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61772         (Depends-on): Add unitypes.
61773         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61774         (u16_uctomb_aux): Move out to separate file.
61775         (u16_uctomb): Use ucs4_t, uint16_t types.
61776         * lib/unistr/ucs4-utf16.c: New file.
61777
61778 2006-12-25  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/unitypes: New file.
61781         * lib/unitypes.h: New file.
61782         * MODULES.html.sh (func_all_modules): New section "Unicode string
61783         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61784         this section. Add unitypes.
61785
61786 2007-01-08  Bruno Haible  <bruno@clisp.org>
61787
61788         Avoid variable names that conflict with those from libtool.
61789         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61790         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61791         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61792         library_names_spec to acl_library_names_spec, hardcode_* to
61793         acl_hardcode_*.
61794         Reported by Ralf Wildenhues.
61795
61796 2007-01-08  Bruno Haible  <bruno@clisp.org>
61797
61798         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61799         definition.
61800         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61801         definition.
61802         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61803         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61804         definition.
61805         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61806         definition.
61807         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61808         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61809         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61810         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61811         definition.
61812         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61813         definition.
61814         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61815         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61816         GC_USE_<algorithm>.
61817         * lib/gc-libgcrypt.c: Likewise.
61818         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61819         * modules/gc-arctwo (configure.ac): Likewise.
61820         * modules/gc-des (configure.ac): Likewise.
61821         * modules/gc-hmac-md5 (configure.ac): Likewise.
61822         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61823         * modules/gc-md2 (configure.ac): Likewise.
61824         * modules/gc-md4 (configure.ac): Likewise.
61825         * modules/gc-md5 (configure.ac): Likewise.
61826         * modules/gc-random (configure.ac): Likewise.
61827         * modules/gc-rijndael (configure.ac): Likewise.
61828         * modules/gc-sha1 (configure.ac): Likewise.
61829
61830 2007-01-08  Bruno Haible  <bruno@clisp.org>
61831
61832         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61833         macro definition.
61834         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61835         definition.
61836         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61837         definition.
61838         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61839         * modules/fcntl-safer (configure.ac): Likewise.
61840         * modules/fopen-safer (configure.ac): Likewise.
61841         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61842         GNULIB_FWRITEERROR macro definition.
61843
61844 2007-01-08  Bruno Haible  <bruno@clisp.org>
61845
61846         * m4/gnulib-common.m4: New file.
61847         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61848         (func_get_filelist): Add m4/gnulib-common.m4.
61849
61850 2007-01-08  Bruno Haible  <bruno@clisp.org>
61851
61852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61853         command.
61854
61855 2007-01-08  Jim Meyering  <jim@meyering.net>
61856
61857         Use a more robust test for a "can't happen" condition.
61858         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61859         narrowed the st_size value.  Presuming the "can't happen" condition
61860         is true, that narrowing could conceivably convert an invalid st_size
61861         value into a valid one.  Instead, use a change based on Matthew
61862         Woehlke's original patch.
61863
61864         Slight readability improvement: use an assert-like macro
61865         in place of literal "abort ()" uses.
61866         * lib/fts.c (fts_assert): Define.
61867         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61868         Use this macro instead of a bare 'abort'.
61869
61870 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61873         simply work around them.
61874         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61875         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61876         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61877         declaring.
61878         Don't bother to define as macros, since the standard doesn't require it.
61879         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61880         longer worry about IRIX 5.3.
61881         (HAVE_WCTYPE_CTMP_BUG): Remove.
61882
61883 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61884
61885         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61886         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61887         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61888         Problems reported by Georg Schwarz for IRIX 5.3.
61889
61890         * gnulib-tool (autoconf_minversion): Take the maximum version number
61891         found, not the minimum.  Problem reported by James Youngman.
61892
61893 2007-01-03  Karl Berry  <karl@gnu.org>
61894
61895         * doc/error.texi: new file, explaining interaction with progname.
61896         * doc/gnulib.texi: include it.  Update copyright.
61897
61898 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61899
61900         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61901         AC_CANONICAL_HOST, to improve autobuild outputs.
61902
61903 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61904             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61905
61906         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61907         sockets, server sockets, and other file descriptors.  Count errors
61908         to compute the return value.  Reorder the code a bit to be easier
61909         to follow.  Don't set event bits that were not requested (except
61910         POLLERR and POLLHUP).
61911
61912 2007-01-01  Bruno Haible  <bruno@clisp.org>
61913
61914         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61915
61916 2007-01-03  Jim Meyering  <jim@meyering.net>
61917
61918         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61919
61920 2007-01-02  Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/settime (Include): Require timespec.h.
61923         * modules/nanosleep (Include): Likewise.
61924
61925 2007-01-01  Bruno Haible  <bruno@clisp.org>
61926
61927         * gnulib-tool (func_emit_copyright_notice): Bump year.
61928         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61929
61930 2007-01-01  Bruno Haible  <bruno@clisp.org>
61931
61932         Improve support for OpenBSD.
61933         * build-aux/config.rpath (libname_spec): Export.
61934         (library_names_spec): New variable. Export.
61935         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61936         library_names_spec from the config.rpath output. Locate shared library
61937         through the name pattern in library_names_spec.
61938
61939 2007-01-01  Eric Blake  <ebb9@byu.net>
61940
61941         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61942
61943 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61946         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61947         assume the C locale, and avoid an "eval" that could cause trouble.
61948         Problem with SORT reported by Bob Proulx.
61949
61950         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61951         Define.  Trivial patch from Henning Nielsen Lund, originally
61952         sent to bug-grep@gnu.org today.
61953
61954 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61957         struct stat.  Problem reported by Henning Nielsen Lund.
61958         * lib/acl.c: Include acl.h first, to check interface.  Don't
61959         bother to include sys/types.h and sys/stat.h again.
61960
61961 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         Import the following change from libc; problem reported by
61964         Sven Verdoolaege.
61965
61966         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61967
61968         [BZ #1373]
61969         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61970
61971 2006-12-28  Jim Meyering  <jim@meyering.net>
61972
61973         * build-aux/announce-gen: Do not assume that the package
61974         builds any of tar.gz, tar.bz2, and .xdelta files.
61975         Suggestion from Simon Josefsson.
61976
61977 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61978
61979         * modules/announce-gen: New file.
61980
61981 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61982
61983         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61984         handles its gotchas now.
61985         * lib/mbswidth.c: Likewise.
61986         * lib/wcwidth.h: Likewise.
61987         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61988         and iswcntrl; the wctype module does this stuff now.
61989         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61991         * modules/mbchar (Depends-on): Add wctype.
61992         * modules/mbswidth (Depends-on): Likewise.
61993         * modules/wcwidth (Depends-on): Likewise.
61994
61995 2006-12-27  Eric Blake  <ebb9@byu.net>
61996
61997         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61998         module uses more than what <wctype.h> is required to provide.
61999
62000 2006-12-26  Eric Blake  <ebb9@byu.net>
62001
62002         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62003
62004 2006-12-26  Eric Blake  <ebb9@byu.net>
62005
62006         * modules/absolute-header: New module.
62007         * modules/fcntl (Depends-on): Depend on it.
62008         * modules/inttypes (Depends-on): Likewise.
62009         * modules/stdint (Depends-on): Likewise.
62010         * modules/sys_stat (Depends-on): Likewise.
62011         * modules/wctype (Depends-on): Likewise.
62012         * MODULES.html.sh (Support for building libraries and
62013         executables): Document it.
62014
62015 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62016
62017         * gnulib-tool (SED): Remove, undoing previous change.
62018         The problem was that it broke coreutils on Solaris, because
62019         "sed --posix" leaked into a makefile.
62020         (sed): New alias, if 'alias' and GNU sed.
62021
62022 2006-12-24  Jim Meyering  <jim@meyering.net>
62023
62024         Work around an fchownat bug in glibc-2.4:
62025         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62026         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62027         in spite of the -P option.
62028         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62029         New macros.
62030         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62031         * modules/openat (Files): Add lib/fchownat.c.
62032         * lib/openat.c (fchownat): Don't define here.  Move to...
62033         * lib/fchownat.c: ...this new file.
62034
62035 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62036
62037         Fix bug reported by Bruno Haible in
62038         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62039         where quotearg.c didn't compile on Mac OS X 10.2 because it
62040         lacks <wchar.h> and wint_t.
62041         * lib/wctype_.h (__wctype_wint_t): New type.
62042         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62043         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62044         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62045         Arg is now of type __wctype_wint_t, not wint_t.
62046         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62047         substitute HAVE_WINT_T.
62048         * modules/wctype (Files): Add m4/wint_t.m4.
62049         (wctype.h): Substitute HAVE_WINT_T.
62050
62051 2006-12-23  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62054
62055 2006-12-23  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62058         S_ISLNK.
62059         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62060         mingw.
62061
62062 2006-12-22  Bruno Haible  <bruno@clisp.org>
62063
62064         * lib/copy-file.c: Include acl.h.
62065         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62066         Close the file descriptors only after being done with copy_acl.
62067         * modules/copy-file (Depends-on): Add acl.
62068
62069 2006-12-22  Bruno Haible  <bruno@clisp.org>
62070
62071         * gnulib-tool (SED): New variable.
62072         Use $SED instead of sed everywhere.
62073
62074 2006-12-22  Bruno Haible  <bruno@clisp.org>
62075
62076         * modules/no-c++: New file.
62077         * m4/no-c++.m4: New file.
62078         * MODULES.html.sh (Support for building libraries and executables):
62079         Add no-c++.
62080
62081 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62084         Include <limits.h>, and use its INT_MAX to rewrite the
62085         j loop so that it does not overflow 'int'.  Problem reported by
62086         Ralf Wildenhues in
62087         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62088         Play it safe by shifting left by 1 rather than multiplying by 2,
62089         as GCC is less likely to optimize this away when the value
62090         is signed (when it assumes overflow leads to undefined behavior).
62091         Also, don't assume time_t uses two's complement.
62092
62093 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         * MODULES.html.sh: New module wctype.
62096         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62097         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62098         <wctype.h>, since the new wctype module should fix this.
62099         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62100         the wctype module should arrange for it.
62101         * lib/regex_internal.h: Likewise.
62102         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62103         since the wctype module should handle this now.
62104         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62105         * modules/fnmatch (Depends-on): Add wctype.
62106         * modules/quotearg (Depends-on): Likewise.
62107         * modules/regex (Depends-on): Likewise.
62108
62109 2006-12-19  Bruno Haible  <bruno@clisp.org>
62110
62111         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62112         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62113
62114 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62115
62116         * modules/savewd (Depends-on): Fix dependency on fcntl.
62117
62118 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62121         conforms to C99, rather than relying on the user's environment
62122         setting of STDINT_H.
62123
62124 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62125         and Eric Blake  <ebb9@byu.net>
62126
62127         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62128         This is more consistent with the other defines here.
62129         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62130         Port to z/OS.  Problem reported by Paul Gilmartin.
62131         Change local vars to use gl_ prefix rather than ac_.
62132         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62133         with other defines.
62134         * modules/double-slash-root: New module.
62135         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62136         (Depends-on): Add double-slash-root.
62137         * MODULES.html.sh (File system functions): Mention new module.
62138
62139 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62142         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62143         This is for the benefit of gzip, which doesn't do i18n.
62144
62145 2006-12-12  Jim Meyering  <jim@meyering.net>
62146
62147         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62148         Reported by Andreas Schwab <schwab@suse.de>.
62149
62150 2006-12-12  Bruno Haible  <bruno@clisp.org>
62151
62152         Merge these changes.
62153         2006-09-05  Bruno Haible  <bruno@clisp.org>
62154         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62155         iconv_alloc succeeded.
62156         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62157         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62158         test for " && dest " at the end - dest is always != NULL there. Call
62159         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62160         with 2xNULL arguments, also to flush the state storage. Handle the
62161         IRIX iconv behaviour. Realloc the final result, to throw away unused
62162         memory.
62163
62164 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62167         and fchmodat unconditionally, since glibc 2.4 has them.
62168         Problem reported by Arkadiusz Miskiewicz.
62169
62170 2006-12-10  Bruno Haible  <bruno@clisp.org>
62171
62172         * gnulib-tool (func_import): Show the include files only for those
62173         modules that are copied and specified.
62174         Reported by Karl Berry.
62175
62176 2006-12-08  Jim Meyering  <jim@meyering.net>
62177
62178         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62179         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62180
62181         * build-aux/announce-gen: Add two new options, both optional:
62182         --bootstrap-tools=TOOL_LIST
62183               a comma-separated list of tools, e.g.,
62184               autoconf,automake,bison,gnulib
62185         --gnulib-snapshot-date=DATE
62186               if gnulib is in the bootstrap tool list,
62187               then report this as the snapshot date.
62188               If not specified, use the current date/time.
62189               If you specify a date here, be sure it's UTC.
62190
62191 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62192
62193         * tests/test-argp-2.sh: Fix test to match actual output.
62194         (func_compare): Fix sed script to be portable.
62195
62196 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62197
62198         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62199         workaround for this case.  It is not autoconfigured now; offhand
62200         it's hard to see how to autoconfigure it.
62201
62202 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62205         a directory that is about to be chowned.  Such a directory's
62206         initial file permissions should permit the owner only and this
62207         should not be changed until after the chown, since the group and
62208         other bits would be incorrect if they granted permission before
62209         the chown.
62210
62211         Fix porting problem for iswctype reported by Georg Schwarz in:
62212         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62213         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62214         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62215         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62216         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62217
62218 2006-12-03  Jim Meyering  <jim@meyering.net>
62219
62220         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62221         p->fts_statp may not yet be defined.
62222         (fts_read): Instead, set it in the caller, once p->fts_statp is
62223         sure to be defined, and corresponds to a top-level directory.
62224         This bug made du -x fail.  Here's the coreutils test case:
62225         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62226         Reported by Mike Frysinger.
62227
62228 2006-12-01  Jim Meyering  <jim@meyering.net>
62229
62230         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62231         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62232         Reported by Simon Josefsson.
62233
62234 2006-11-30  Jim Meyering  <jim@meyering.net>
62235
62236         * m4/warning.m4: Use the all-permissive copyright notice
62237         recommended by RMS (rather than LGPL).
62238         * m4/vararrays.m4: Likewise.
62239         * m4/flexmember.m4: Likewise.
62240
62241 2006-11-29  Bruno Haible  <bruno@clisp.org>
62242
62243         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62244         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62245         using +=.
62246         Reported by Simon Josefsson <simon@josefsson.org>.
62247
62248 2006-11-28  James Youngman <jay@gnu.org>
62249
62250         * README: Advise users that they might find the bug-gnulib@gnu.org
62251         and autotools-announce@gnu.org mailing lists useful.
62252
62253 2006-11-28  Bruno Haible  <bruno@clisp.org>
62254
62255         * m4/ptrdiff_max.m4: Remove file.
62256
62257 2006-11-21  Bruno Haible  <bruno@clisp.org>
62258
62259         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62260         _AC_COMPUTE_INT.
62261         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62262         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62263         _AC_COMPUTE_INT.
62264         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62265         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62266         _AC_COMPUTE_INT.
62267         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62268
62269 2006-11-28  Jim Meyering  <jim@meyering.net>
62270
62271         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62272         warning from "gcc -Wshadow" about shadowing the builtin.
62273
62274 2006-11-27  Bruno Haible  <bruno@clisp.org>
62275
62276         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62277         _AC_COMPUTE_INT.
62278         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62279
62280 2006-11-27  Bruno Haible  <bruno@clisp.org>
62281             Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62284
62285 2006-11-26  Bruno Haible  <bruno@clisp.org>
62286
62287         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62288         noinst_LTLIBRARIES.
62289
62290 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62291             Bruno Haible  <bruno@clisp.org>
62292
62293         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62294         if compiling with "gcc -ansi".
62295
62296 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         Fix some incompatibilities with gcc -ansi -pedantic.
62299         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62300         if compiling pedantically with GCC, unless it's C99 or later.
62301         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62302         it mishandles gcc -ansi -pedantic as well.
62303         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62304         if gcc -pedantic.
62305         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62306         initializers for struct if -pedantic, unless it's C99 or later.
62307
62308 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62309
62310         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62311         Don't close an fd more than once. Identical atimes indicate
62312         success, not failure.
62313
62314 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62315
62316         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62317
62318 2006-11-23  Jim Meyering  <jim@meyering.net>
62319
62320         * build-aux/announce-gen: New file.  From coreutils.
62321
62322 2006-11-22  Jim Meyering  <jim@meyering.net>
62323
62324         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62325         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62326         (fts_read): Use a temporary to narrow the overused st_size member
62327         before using it in a switch statement.  Reported by Matthew Woehlke.
62328
62329         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62330         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62331
62332 2006-11-20  Bruno Haible  <bruno@clisp.org>
62333
62334         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62335         changequote instead of pairs of brackets.
62336         Reported by Andreas Schwab <schwab@suse.de>.
62337
62338 2006-11-21  Jim Meyering  <jim@meyering.net>
62339
62340         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62341         so as to remain compatible with older compilers.
62342         Patch from Michael Deutschmann.
62343
62344 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         * MODULES.html.sh (File system functions): Add openat.
62347
62348         * lib/openat.h (rpl_fstatat): New macro, if
62349         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62350         (fstatat): Define to rpl_fstatat under the same conditions,
62351         unless COMPILING_FSTATAT.
62352         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62353         seems to have the bug.
62354         * lib/fstatat.c: New file.
62355         * modules/openat (Files): Add it.
62356
62357 2006-11-20  Bruno Haible  <bruno@clisp.org>
62358
62359         * Makefile: New file.
62360
62361 2006-11-20  Jim Meyering  <jim@meyering.net>
62362
62363         The beginnings of syntax-related checks for gnulib.
62364         * lib/Makefile: New file.
62365         * lib/t-idcache: New script.  Ensure that the two halves of
62366         idcache.c stay in sync.
62367
62368         * lib/idcache.c: Adjust comments in user- and group- portions to
62369         be more accurate, and to be consistent with one another.
62370
62371 2006-11-20  Jim Meyering  <jim@meyering.net>
62372
62373         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62374         continue using the flexible array member (thus, this module performs
62375         half as many malloc calls), with the addition that...
62376         (getgroup, getuser): Consistently record a non-match via an empty
62377         "name" string, and map an empty string match to a NULL return value.
62378         * modules/idcache (Depends-on): Re-add flexmember.
62379
62380         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62381         (getuidbyname, getgroup, getgidbyname): Likewise.
62382
62383         Use cleaner syntax: NULL rather than 0.
62384         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62385
62386 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62387
62388         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62389         It mishandled the case where the group was missing.
62390         Problem reported by Greg Schafer.
62391         * modules/idcache: Likewise.
62392
62393 2006-11-18  Jim Meyering  <jim@meyering.net>
62394
62395         * check-module (%exempt_header): Add exception for some
62396         conditionally-included headers.
62397
62398         * modules/i-ring (Depends-on): Add verify.
62399         (License): Change to LGPL.
62400
62401 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62404         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62405         and inttostr.h.  Use snprintf rather than uinttostr, so that
62406         LGPLed code doesn't depend on GPLed.
62407
62408 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62409
62410         * modules/inline (License): Change from GPL to LGPL.
62411
62412 2006-11-17  Jim Meyering  <jim@meyering.net>
62413
62414         * modules/d-type (License): Switch to LGPL.
62415
62416 2006-11-15  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62419
62420 2006-11-15  Eric Blake  <ebb9@byu.net>
62421
62422         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62423         the module dependency.
62424
62425 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62426             Bruno Haible  <bruno@clisp.org>
62427
62428         * gnulib-tool (func_create_testdir): Add license consistency check.
62429
62430 2006-11-15  Eric Blake  <ebb9@byu.net>
62431
62432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62433         random "(cached)" in configure output.
62434
62435 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62436
62437         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62438         test for conforming inttypes.h is both announced and cached.
62439
62440         * MODULES.html.sh (seen_modules, seen_files): New variables.
62441         (func_module): Rewrite to use a few less gnulib-tool and sed
62442         invocations.  Avoid a couple of quadratic algorithms for ...
62443         (missed_modules, missed_files): ... these, with ...
62444         (func_append, func_tmpdir): ... these new functions, from
62445         gnulib-tool.  Analogously, install traps for cleanup.
62446
62447         * tests/test-gc.c (main): Remove unused variables.
62448         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62449
62450 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * modules/inttostr (License): Change to LGPL.
62453
62454 2006-11-14  Eric Blake  <ebb9@byu.net>
62455
62456         * modules/tempname (License): Change to LGPL.
62457
62458 2006-11-14  Eric Blake  <ebb9@byu.net>
62459
62460         * doc/functions.texi (Function Portability): *printf functions on
62461         Cygwin now understand all POSIX size specifiers.
62462
62463 2006-11-14  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/c-ctype (License): Change to LGPL.
62466
62467 2006-11-12  Bruno Haible  <bruno@clisp.org>
62468
62469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62470         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62471         for GNOME libraries, for which the include files are installed in
62472         subdirectories of $prefix/include.
62473
62474 2006-11-12  Bruno Haible  <bruno@clisp.org>
62475
62476         * m4/lib-link.m4: Require at least autoconf-2.54.
62477         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62478         name to underscores for the --with option.
62479
62480 2006-11-13  Bruno Haible  <bruno@clisp.org>
62481
62482         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62483         the tests directory.
62484         Reported by Ralf Wildenhues.
62485
62486 2006-11-13  Bruno Haible  <bruno@clisp.org>
62487
62488         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62489         (func_emit_initmacro_end): Undo the override here.
62490         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62491         Works around the famous automake error in coreutils.
62492
62493 2006-11-13  Eric Blake  <ebb9@byu.net>
62494
62495         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62496         element, not its node.
62497
62498 2006-11-12  Bruno Haible  <bruno@clisp.org>
62499
62500         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62501         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62502
62503 2006-11-12  Bruno Haible  <bruno@clisp.org>
62504
62505         * gnulib-tool: New option --local-symlink.
62506         (func_usage): Document it.
62507         (lsymbolic): New variable.
62508         (func_import, func_create_testdir): If --symlink was not specified,
62509         test whether --local-symlink was specified and the file comes from
62510         the local_gnulib_dir.
62511
62512 2006-11-12  Bruno Haible  <bruno@clisp.org>
62513
62514         * gnulib-tool (func_ln): New function.
62515         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62516
62517 2006-11-12  Bruno Haible  <bruno@clisp.org>
62518
62519         Finish support for source files in subdirectories.
62520         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62521         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62522         AUTOMAKE_OPTIONS.
62523         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62524
62525 2006-11-12  Bruno Haible  <bruno@clisp.org>
62526
62527         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62528         EXTRA_lib_SOURCES augmentation.
62529         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62530
62531 2006-11-12  Jim Meyering  <jim@meyering.net>
62532
62533         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62534         file descriptors.  This also averts a failure on systems with
62535         native openat support when a traversed directory lacks "x" access.
62536         * lib/fts_.h: Include "i-ring.h"
62537         (struct FTS) [fts_fd_ring]: New member.
62538         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62539         (FCHDIR): Add parentheses.
62540         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62541         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62542         When descending, rather than simply closing the previous
62543         fts_cwd_fd value, push that file descriptor onto the ring.
62544         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62545         (fts_open): Initialize the new fd_ring member.
62546         (fts_close): Clear the ring.
62547         (fts_safe_changedir): When possible, use our new fd_ring to skip
62548         the diropen and fstat and dev/ino comparison that would normally
62549         accompany a virtual `chdir ("..")'.
62550
62551         * modules/fts (Depends-on): Add i-ring.
62552         * modules/i-ring: New module.
62553         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62554         * m4/i-ring.m4: New file.
62555
62556 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62557
62558         * gnulib-tool (func_create_testdir): Fix replacement of
62559         `build-aux' in configure.ac.  Run autotools in gltests
62560         subdirectory.
62561         (func_create_testdir, func_create_megatestdir, test): There is
62562         no need for '--force' in most autotool invocations in a new
62563         tree.  Actually fail the whole test if any of the tools, or the
62564         configure or make stages fail.
62565
62566         Sync from Automake.
62567         * build-aux/gnupload: Revert last change.  Add pointer to upload
62568         instructions of the GNU Maintenance Instructions.
62569         Suggestion by Karl Berry.
62570
62571 2006-11-10  Jim Meyering  <jim@meyering.net>
62572
62573         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62574
62575 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62576
62577         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62578         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62579         (bind_textdomain_codeset) [! ENABLE_NLS]:
62580         Evaluate all the arguments.  That way, callers get compatible behavior
62581         if the arguments have side effects.  Also, it avoids some GCC
62582         diagnostics in some cases; Joel E. Denny reported problems when Bison
62583         was configured with --enable-gcc-warnigs.
62584
62585 2006-11-10  Jim Meyering  <jim@meyering.net>
62586
62587         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62588         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62589         account.
62590
62591 2006-11-10  Jim Meyering  <jim@meyering.net>
62592
62593         * modules/inline: New file/module.
62594         * modules/xalloc (Files): Remove m4/inline.m4.
62595         (Depends-on): Add inline, instead.
62596         * modules/oset: Likewise.
62597         * modules/list: Likewise.
62598
62599 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62602         Problem reported by Matthew Woehlke.
62603
62604 2006-11-09  Bruno Haible  <bruno@clisp.org>
62605
62606         * lib/tempname.c (gen_tempname): Remove variant that invokes
62607         __gen_tempname.
62608         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62609         __gen_tempname.
62610
62611 2006-11-08  Bruno Haible  <bruno@clisp.org>
62612
62613         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62614         to 'yes' instead of 'cross-compiling'.
62615
62616 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * lib/quotearg.h (quotearg_free): New decl.
62619         * lib/quotearg.c (quotearg_free): New function.
62620         (slot0, nslots, slotvec0, slotvec):
62621         Now file-scope so that quotearg_free can get at them.
62622
62623 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62624
62625         Sync from Automake.
62626         * build-aux/gnupload: Add missing 'gnu' to example URL.
62627         Report by Karl Berry.
62628
62629 2006-11-08  Bruno Haible  <bruno@clisp.org>
62630
62631         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62632         Suggested by Paul Eggert.
62633
62634 2006-11-08  Jim Meyering  <jim@meyering.net>
62635
62636         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62637         It's already included if !_LIBC.
62638         (fts_safe_changedir): Add a comment.
62639
62640 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62643         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62644         Matthew Woehlke.
62645
62646         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62647         definitions up, to avoid colliding with change below.
62648         (static_inline) [HAVE_INLINE]: New macro.
62649         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62650         Provide extern decls when !HAVE_INLINE.  Do not define unless
62651         static_inline is defined, either by us or by xmalloc.c.  Use
62652         static_inline rather than static inline.
62653         (XCALLOC): Optimize sizeof(T) = 1 case.
62654         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62655
62656 2006-11-07  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62659         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62660         AC_C_INLINE.
62661         * modules/xalloc (Files): Add m4/inline.m4.
62662
62663 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62664
62665         * README: Fix typo.
62666         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62667         (Miscellanous Notes): ...from this.
62668
62669 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62672         Mention that offsetof should be used instead of sizeof.
62673         From Bruno Haible.
62674
62675 2006-11-07  Bruno Haible  <bruno@clisp.org>
62676
62677         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62678
62679 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62682         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62683         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62684         (gl_tree_add_before, gl_tree_add_after):
62685         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62686         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62687         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62688         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62689         (gl_linked_add_after, gl_linked_add_at): Likewise.
62690         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62691         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62692         (gl_tree_add_before, gl_tree_add_after): Likewise.
62693         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62694         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62695         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62696
62697 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62698
62699         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62700
62701 2006-11-06  Bruno Haible  <bruno@clisp.org>
62702
62703         * m4/inline.m4: New file.
62704         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62705         * modules/list (Files): Add m4/inline.m4.
62706         * modules/oset (Files): Likewise.
62707
62708 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62709
62710         * lib/idcache.c: Include <stddef.h>, for offsetof.
62711         (struct userid.name): Change from char * to a flexible array member.
62712         All uses changed.
62713         * modules/idcache (Depends-on): Add flexmember.
62714
62715         * MODULES.html.sh (Core language properties): New module flexmember.
62716         * modules/flexmember, m4/flexmember.m4: New files.
62717
62718         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62719         inline functions that are identical with the old xnmalloc_inline,
62720         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62721         that we can avoid some unnecessary integer multiplications and
62722         divisions in the common case where the element size is known at
62723         compile time.
62724         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62725         needed.
62726         (xnboundedmalloc): Remove.
62727         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62728         arguments, for consistency with rest of this header.
62729         (xcharalloc): Rewrite using XNMALLOC.
62730         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62731         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62732         versions have been moved to lib/xalloc.h and renamed to be the
62733         non-*_inline versions.
62734         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62735         and xnrealloc functions, since those functions are now inline and
62736         now call us.
62737         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62738         renaming described above.
62739         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62740         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62741         captures the dependency in AC_C_INLINE.
62742
62743         New module canonicalize-lgpl, proposed by Charles Wilson in
62744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62745         with a few small changes afterwards.
62746         * MODULES.html.sh (File system functions): New module
62747         canonicalize-lgpl.
62748         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62749         and canonicalize_file_name.
62750         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62751         * modules/canonicalize-lgpl: New files.
62752
62753 2006-11-05  Bruno Haible  <bruno@clisp.org>
62754
62755         * gnulib-tool (func_import, func_create_testdir): Create directories
62756         also for files in subdirectories of lib/.
62757
62758 2006-11-05  Bruno Haible  <bruno@clisp.org>
62759
62760         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62761         ANSI C compliant.
62762
62763 2006-11-03  Bruno Haible  <bruno@clisp.org>
62764
62765         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62766         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62767         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62768         (xnboundedmalloc): New inline function.
62769         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62770         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62771         xmalloc.
62772         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62773         xmalloc.
62774         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62775         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62776         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62777         xmalloc.
62778         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62779         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62780         xmalloc.
62781         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62782         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62783         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62784         xmalloc.
62785         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62786         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62787         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62788         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62789         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62790         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62791         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62792
62793 2006-11-03  Bruno Haible  <bruno@clisp.org>
62794
62795         * lib/c-ctype.h [C++]: Define functions without name mangling.
62796         * lib/fwriteerror.h [C++]: Likewise.
62797         * lib/gcd.h [C++]: Likewise.
62798         * lib/linebreak.h [C++]: Likewise.
62799
62800 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62803         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62804         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62805         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62806         Check for functions and headers just once.
62807         Check for declaration of canonicalize_file_name.
62808         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62809
62810 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62811
62812         * gnulib-tool (func_import): Fix typo in actioncmd.
62813
62814 2006-11-02  Bruno Haible  <bruno@clisp.org>
62815
62816         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62817         newline sequence in the Makefile.am snippet as a space, like "make"
62818         does.
62819         Reported by Roger Persson <perrog@gmail.com>.
62820
62821 2006-11-01  Bruno Haible  <bruno@clisp.org>
62822
62823         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62824         already declared in <string.h>.
62825         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62826
62827 2006-11-01  Bruno Haible  <bruno@clisp.org>
62828
62829         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62830         * lib/strcase.h: Include <string.h>.
62831         (strcasecmp): Define to rpl_strcasecmp here.
62832
62833 2006-11-01  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62836
62837 2006-11-01  Eric Blake  <ebb9@byu.net>
62838
62839         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62840
62841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62842
62843 2006-10-29  Bruno Haible  <bruno@clisp.org>
62844
62845         Make it compile in C++ mode.
62846         * lib/full-write.c (full_rw): Add a cast.
62847
62848 2006-11-01  Bruno Haible  <bruno@clisp.org>
62849
62850         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62851         be POSIX compliant.
62852         Reported by Roger Persson <perrog@gmail.com>.
62853
62854 2006-11-01  Eric Blake  <ebb9@byu.net>
62855
62856         * lib/getopt_.h: Fix comments.
62857
62858 2006-10-31  Eric Blake  <ebb9@byu.net>
62859
62860         * modules/tmpdir (Depends-on): Add sys_stat.
62861         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62862         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62863         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62864         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62865         tempname.
62866
62867 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         Avoid some C++ diagnostics reported by Bruno Haible.
62870         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62871         xmalloc.
62872         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62873         (struct slotvec): Move to top level.
62874         (quotearg_n_options): Rewrite to avoid xmalloc.
62875         * lib/xalloc.h (xcharalloc): New function.
62876         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62877         [defined __cplusplus]: Add function template that provides result
62878         type propagation.  This part of the change is from Bruno Haible.
62879
62880 2006-10-29  Bruno Haible  <bruno@clisp.org>
62881
62882         Make it compile in C++ mode.
62883         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62884         * lib/strnlen1.c (strnlen1): Cast memchr result.
62885         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62886         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62887         (create_temp_dir): Rename local variable 'template'.
62888         (compile_csharp_using_sscli): Add cast.
62889         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62890         * lib/findprog.c (find_in_path): Likewise.
62891         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62892         * lib/wait-process.c (register_slave_subprocess): Likewise.
62893
62894 2006-10-22  Bruno Haible  <bruno@clisp.org>
62895
62896         * modules/tsearch: New file.
62897         * lib/tsearch.h: New file.
62898         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62899         * m4/tsearch.m4: New file.
62900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62901
62902 2006-10-29  Eric Blake  <ebb9@byu.net>
62903
62904         * lib/arcfour.c: Assume config.h.
62905         * lib/arctwo.c: Likewise.
62906         * lib/base64.c: Likewise.
62907         * lib/check-version.c: Likewise.
62908         * lib/crc.c: Likewise.
62909         * lib/des.c: Likewise.
62910         * lib/gc-gnulib.c: Likewise.
62911         * lib/gc-libgcrypt.c: Likewise.
62912         * lib/gc-pbkdf2-sha1.c: Likewise.
62913         * lib/getaddrinfo.c: Likewise.
62914         * lib/getdelim.c: Likewise.
62915         * lib/getline.c: Likewise.
62916         * lib/hmac-md5.c: Likewise.
62917         * lib/hmac-sha1.c: Likewise.
62918         * lib/iconvme.c: Likewise.
62919         * lib/md2.c: Likewise.
62920         * lib/md4.c: Likewise.
62921         * lib/memxor.c: Likewise.
62922         * lib/read-file.c: Likewise.
62923         * lib/readline.c: Likewise.
62924         * lib/rijndael-alg-fst.c: Likewise.
62925         * lib/rijndael-api-fst.c: Likewise.
62926         * lib/xgetdomainname.c: Likewise.
62927
62928 2006-10-28  Eric Blake  <ebb9@byu.net>
62929
62930         * lib/xstrndup.c: Assume config.h.
62931
62932 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62935         stat-macros.h is now for our own macros, whereas stat_h is for
62936         macros in the <sys/stat.h> name space.
62937         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62938         (STAT_MACROS_H): Remove.
62939         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62940         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62941         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62942         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62943         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62944         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62945         Move these macros to ...
62946         * lib/stat_.h: here.  Don't include stat-macros.h.
62947         * lib/canonicalize.c: Don't include stat-macros.h.
62948         * lib/chown.c: Likewise.
62949         * lib/euidaccess.c: Likewise.
62950         * lib/file-type.c: Likewise.
62951         * lib/filemode.c: Likewise.
62952         * lib/glob.c: Likewise.
62953         * lib/isapipe.c: Likewise.
62954         * lib/lchown.c: Likewise.
62955         * lib/lstat.c: Likewise.
62956         * lib/mkdir-p.c: Likewise.
62957         * lib/rmdir.c: Likewise.
62958         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62960         unless mkdir isn't declared, to speed up 'configure'.
62961         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62962         would define all the S_* symbols.
62963         * modules/canonicalize (Depends-on):
62964         Depend on sys_stat, not stat-macros.
62965         * modules/chown: Likewise.
62966         * modules/euidaccess: Likewise.
62967         * modules/filemode: Likewise.
62968         * modules/file-type: Likewise.
62969         * modules/glob: Likewise.
62970         * modules/isapipe: Likewise.
62971         * modules/lchown: Likewise.
62972         * modules/lstat: Likewise.
62973         * modules/mkancesdirs: Likewise.
62974         * modules/rmdir: Likewise.
62975         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62976         * modules/modechange: Likewise.
62977         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62978         (configure.ac): Remove gl_STAT_MACROS.
62979         * modules/sys_stat (Depends-on): Remove stat-macros.
62980
62981 2006-10-27  Bruno Haible  <bruno@clisp.org>
62982
62983         * m4/signed.m4: Remove file.
62984         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62985         invocation.
62986         * modules/vasnprintf (Files): Remove m4/signed.m4.
62987
62988 2006-10-27  Bruno Haible  <bruno@clisp.org>
62989
62990         Update to GNU gettext 0.16.
62991         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62992         m4/inttypes-h.m4, m4/signed.m4.
62993         * m4/gettext.m4: Update to GNU gettext 0.16.
62994         * m4/intl.m4: New file, from GNU gettext.
62995         * m4/intldir.m4: New file, from GNU gettext.
62996         * config/srclist.txt: Update
62997
62998 2006-10-27  Eric Blake  <ebb9@byu.net>
62999
63000         * MODULES.html.sh: Document tempname.
63001         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63002         dependencies.
63003         (Files): Move lib/tempname.c...
63004         * modules/tempname: ...to this new module.
63005         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63006         (gl_PREREQ_TEMPNAME): Move...
63007         * m4/tempname.m4: ...to this new file.
63008         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63009         * modules/sys_stat (Depends-on): Add stat-macros.
63010         * lib/stat_.h (includes): Pick up stat macros.
63011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63012         if stat macros are broken.
63013         * lib/tempname.c (includes): No need to include "stat-macros.h".
63014         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63015         (direxists, __path_search) [!_LIBC]: Don't compile these in
63016         gnulib; the tmpdir module covers that.
63017         * lib/tempname.h: New file.
63018
63019 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63020
63021         * COPYING: Explain how gnulib-tool converts licence headers.
63022         Almost all wording by Eric Blake.
63023
63024 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         * lib/mbchar.h (is_basic_table): Make read-only.
63027         * lib/mbchar.c (is_basic_table): Likewise.
63028         Reported by John Darrington.
63029
63030 2006-10-25  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/progname.h (set_program_name): Undefine before defining.
63033
63034 2006-10-25  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63037         false for non-gcc C++ compilers.
63038         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63039
63040 2006-10-24  Bruno Haible  <bruno@clisp.org>
63041
63042         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63043         iconv implementations like Irix iconv.
63044
63045 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63046
63047         * modules/vararrays: New file.
63048         * m4/vararrays.m4: New file, taken from diffutils.
63049         * MODULES.html.sh: New module vararrays.
63050
63051 2006-10-24  Karl Berry  <karl@gnu.org>
63052
63053         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63054         Don't call GNU Unix.
63055
63056 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63057
63058         * users.txt: Add Libtool.
63059
63060         Sync from Libtool:
63061
63062         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63065         to gnulib's policy of including config.h unconditionally.
63066
63067 2006-10-24  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/wcwidth (Files): Add m4/wint_t.m4.
63070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63071         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63072
63073 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63074
63075         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63076         to pacify GCC with some -W flags enabled.  Problem reported by
63077         Bruno Haible.
63078
63079 2006-10-24  Jim Meyering  <jim@meyering.net>
63080
63081         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63082         Reported by Karl Berry.
63083
63084 2006-10-23  Bruno Haible  <bruno@clisp.org>
63085
63086         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63087
63088 2006-10-24  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/gl_list.h: Use C comment style, not C++ comment style.
63091
63092 2006-10-23  Eric Blake  <ebb9@byu.net>
63093
63094         * lib/getaddrinfo.c (includes): Add missing include.
63095
63096 2006-10-23  Bruno Haible  <bruno@clisp.org>
63097             Paul Eggert  <eggert@cs.ucla.edu>
63098
63099         Ability to rename obstack_free.
63100         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63101         obstack_free.
63102         (obstack_free): Invoke the __obstack_free macro.
63103         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63104
63105 2006-10-23  Bruno Haible  <bruno@clisp.org>
63106             Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63109         __argc, __argv from the declaration. (They are defined as macros on
63110         mingw.)
63111
63112 2006-10-22  Bruno Haible  <bruno@clisp.org>
63113
63114         * doc/gnulib-intro.texi: New file.
63115         * doc/gnulib.texi: Include it.
63116
63117 2006-10-21  Bruno Haible  <bruno@clisp.org>
63118
63119         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63120         "Introduction", "Miscellanous Notes", "Particular Modules".
63121
63122 2006-10-21  Bruno Haible  <bruno@clisp.org>
63123
63124         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63125         Change mostlyclean-local rule to avoid sh syntax error from bash
63126         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63127
63128 2006-10-23  Jim Meyering  <jim@meyering.net>
63129
63130         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63131         in place of snprintf.
63132
63133         * modules/inttostr (Files): Add lib/uinttostr.c.
63134         * lib/uinttostr.c (inttostr): New file/function.
63135         * lib/inttostr.h (uinttostr): Declare.
63136         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63137         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63138         Add uinttostr.
63139         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63140
63141 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * lib/canonicalize.c (ELOOP): Define if not already defined.
63144         Problem reported by Bruno Haible in
63145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63146
63147 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63150         Problem reported by Perry Smith and Ville Laurikari.
63151
63152         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63153         uses.
63154
63155 2006-10-19  Bruno Haible  <bruno@clisp.org>
63156
63157         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63158         for mingw.
63159
63160 2006-10-19  Bruno Haible  <bruno@clisp.org>
63161
63162         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63163         Needed for mingw.
63164
63165 2006-10-19  Bruno Haible  <bruno@clisp.org>
63166
63167         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63168
63169 2006-10-19  Bruno Haible  <bruno@clisp.org>
63170
63171         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63172         it.
63173
63174 2006-10-19  Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63177         invocation.
63178
63179 2006-10-19  Bruno Haible  <bruno@clisp.org>
63180
63181         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63182         mountlist by default.
63183
63184 2006-10-16  Bruno Haible  <bruno@clisp.org>
63185
63186         * lib/c-strstr.c: Include c-strstr.h.
63187
63188 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63189
63190         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63191         in a slash.
63192
63193 2006-10-18  Bruno Haible  <bruno@clisp.org>
63194
63195         * lib/lock.h [C++]: Wrap definitions in extern "C".
63196
63197 2006-10-18  Bruno Haible  <bruno@clisp.org>
63198
63199         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63200         gl_LIBOBJS list.
63201
63202 2006-10-18  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63205
63206 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         * lib/xstrtol.h: Include gettext.h.
63209         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63210         Problem reported by Eric Blake.
63211         * modules/xstrtol (Depends-on): Add gettext-h.
63212
63213 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63214
63215         * lib/strftime.c (advance): New macro.
63216         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63217         incomplete type, so you can't add 0 to it.  Problem and patch
63218         reported by Eelco Dolstra for dietlibc.
63219
63220 2006-10-18  Jim Meyering  <jim@meyering.net>
63221
63222         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63223         type for a local, and rename it: s/up/user_proc/.
63224
63225 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63226
63227         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63228         READ_UTMP_USER_PROCESS.
63229         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63230
63231 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63234         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63235
63236 2006-10-17  Eric Blake  <ebb9@byu.net>
63237
63238         * lib/sigprocmask.c (sigprocmask): Fix typo.
63239
63240         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63241
63242         * modules/clean-temp (Makefile.am): Don't add to make output...
63243         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63244         config.h.
63245
63246 2006-10-17  Bruno Haible  <bruno@clisp.org>
63247
63248         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63249         differently if DEFAULT_TEXT_DOMAIN is set.
63250
63251 2006-10-16  Bruno Haible  <bruno@clisp.org>
63252
63253         * lib/clean-temp.c: Include fwriteerror.h.
63254
63255 2006-10-16  Bruno Haible  <bruno@clisp.org>
63256
63257         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63258
63259 2006-10-16  Bruno Haible  <bruno@clisp.org>
63260
63261         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63262         * lib/sigprocmask.h: Include <sys/types.h>.
63263         (sigset_t): Use the system's definition if present.
63264
63265 2006-10-17  Eric Blake  <ebb9@byu.net>
63266
63267         * lib/xvasprintf.c (includes): Assume config.h.
63268         * lib/xasprintf.c (includes): Likewise.
63269
63270 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63273         at least as wide as intmax_t.
63274
63275 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63276
63277         (Imported from Automake.)
63278         * build-aux/gnupload: Update to version 1.1 of directive file.
63279
63280 2006-10-16  Eric Blake  <ebb9@byu.net>
63281
63282         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63283         match Automake 1.10a.
63284
63285 2006-10-14  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/sigprocmask: New file.
63288         * lib/sigprocmask.h: New file.
63289         * lib/sigprocmask.c: New file.
63290         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63291         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63292         request sigprocmask.o.
63293         (gl_PREREQ_SIGPROCMASK): New macro.
63294         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63295         (Depends-on): Add sigprocmask.
63296         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63297         gt_SIGNALBLOCKING. Test for 'raise' only once.
63298         * lib/fatal-signal.c: Include sigprocmask.h.
63299         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63300         unblock_fatal_signals): Define always.
63301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63302         sigprocmask.
63303
63304 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63305
63306         Sync from Automake.
63307         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63308         which incorrectly sets the mode of an existing destination
63309         directory.  In some cases the unpatched install-sh could do the
63310         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63311         system.  We hope this is rare in practice, but it's clearly worth
63312         fixing.  Problem reported by Alex Unleashed in
63313         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63314         Also, don't bother to check for -m bugs unless we're using -m;
63315         suggested by Stepan Kasal.
63316
63317 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63318
63319         Sync from Automake.
63320         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63321         `-c' flag, so they appear at the same position as in %FASTDEP%
63322         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63323         which ignores unknown options only after the first non-option.
63324         Bug report against M4 by Nelson H. F. Beebe.
63325
63326 2006-10-13  Jim Meyering  <jim@meyering.net>
63327
63328         Fix a bug in yesterday's change.
63329         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63330         p->fts_statp->st_dev would be used uninitialized.
63331         Ensures that we always call fts_stat on the very first entry.
63332         Miklos Szeredi reported that find -xdev stopped working.
63333
63334 2006-10-12  Bruno Haible  <bruno@clisp.org>
63335
63336         * gnulib-tool (func_get_automake_snippet): Append an automatically
63337         computed EXTRA_DIST augmentation.
63338         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63339         * modules/alloca-opt (Makefile.am): Likewise.
63340         * modules/allocsa (Makefile.am): Likewise.
63341         * modules/arcfour (Makefile.am): Likewise.
63342         * modules/arctwo (Makefile.am): Likewise.
63343         * modules/argmatch (Makefile.am): Likewise.
63344         * modules/argz (Makefile.am): Likewise.
63345         * modules/atexit (Makefile.am): Likewise.
63346         * modules/backupfile (Makefile.am): Likewise.
63347         * modules/byteswap (Makefile.am): Likewise.
63348         * modules/c-strtod (Makefile.am): Likewise.
63349         * modules/c-strtold (Makefile.am): Likewise.
63350         * modules/calloc (Makefile.am): Likewise.
63351         * modules/canon-host (Makefile.am): Likewise.
63352         * modules/canonicalize (Makefile.am): Likewise.
63353         * modules/chdir-long (Makefile.am): Likewise.
63354         * modules/chdir-safer (Makefile.am): Likewise.
63355         * modules/check-version (Makefile.am): Likewise.
63356         * modules/chown (Makefile.am): Likewise.
63357         * modules/cloexec (Makefile.am): Likewise.
63358         * modules/close-stream (Makefile.am): Likewise.
63359         * modules/closeout (Makefile.am): Likewise.
63360         * modules/crc (Makefile.am): Likewise.
63361         * modules/csharpexec (Makefile.am): Likewise.
63362         * modules/cycle-check (Makefile.am): Likewise.
63363         * modules/des (Makefile.am): Likewise.
63364         * modules/dev-ino (Makefile.am): Likewise.
63365         * modules/dirfd (Makefile.am): Likewise.
63366         * modules/dirname (Makefile.am): Likewise.
63367         * modules/dup2 (Makefile.am): Likewise.
63368         * modules/eealloc (Makefile.am): Likewise.
63369         * modules/error (Makefile.am): Likewise.
63370         * modules/euidaccess (Makefile.am): Likewise.
63371         * modules/exclude (Makefile.am): Likewise.
63372         * modules/exitfail (Makefile.am): Likewise.
63373         * modules/fcntl-safer (Makefile.am): Likewise.
63374         * modules/fcntl (Makefile.am): Likewise.
63375         * modules/file-type (Makefile.am): Likewise.
63376         * modules/fileblocks (Makefile.am): Likewise.
63377         * modules/filemode (Makefile.am): Likewise.
63378         * modules/filenamecat (Makefile.am): Likewise.
63379         * modules/fnmatch (Makefile.am): Likewise.
63380         * modules/fopen-safer (Makefile.am): Likewise.
63381         * modules/fpending (Makefile.am): Likewise.
63382         * modules/fprintftime (Makefile.am): Likewise.
63383         * modules/free (Makefile.am): Likewise.
63384         * modules/fsusage (Makefile.am): Likewise.
63385         * modules/ftruncate (Makefile.am): Likewise.
63386         * modules/fts (Makefile.am): Likewise.
63387         * modules/gc-arcfour (Makefile.am): Likewise.
63388         * modules/gc-des (Makefile.am): Likewise.
63389         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63390         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63391         * modules/gc-md4 (Makefile.am): Likewise.
63392         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63393         * modules/gc-sha1 (Makefile.am): Likewise.
63394         * modules/gc (Makefile.am): Likewise.
63395         * modules/getaddrinfo (Makefile.am): Likewise.
63396         * modules/getcwd (Makefile.am): Likewise.
63397         * modules/getdelim (Makefile.am): Likewise.
63398         * modules/getdomainname (Makefile.am): Likewise.
63399         * modules/getgroups (Makefile.am): Likewise.
63400         * modules/gethostname (Makefile.am): Likewise.
63401         * modules/gethrxtime (Makefile.am): Likewise.
63402         * modules/getline (Makefile.am): Likewise.
63403         * modules/getloadavg (Makefile.am): Likewise.
63404         * modules/getlogin_r (Makefile.am): Likewise.
63405         * modules/getndelim2 (Makefile.am): Likewise.
63406         * modules/getopt (Makefile.am): Likewise.
63407         * modules/getpagesize (Makefile.am): Likewise.
63408         * modules/getpass-gnu (Makefile.am): Likewise.
63409         * modules/getpass (Makefile.am): Likewise.
63410         * modules/getsubopt (Makefile.am): Likewise.
63411         * modules/gettime (Makefile.am): Likewise.
63412         * modules/gettimeofday (Makefile.am): Likewise.
63413         * modules/getugroups (Makefile.am): Likewise.
63414         * modules/getusershell (Makefile.am): Likewise.
63415         * modules/glob (Makefile.am): Likewise.
63416         * modules/group-member (Makefile.am): Likewise.
63417         * modules/hard-locale (Makefile.am): Likewise.
63418         * modules/hash (Makefile.am): Likewise.
63419         * modules/hmac-md5 (Makefile.am): Likewise.
63420         * modules/hmac-sha1 (Makefile.am): Likewise.
63421         * modules/human (Makefile.am): Likewise.
63422         * modules/idcache (Makefile.am): Likewise.
63423         * modules/imaxabs (Makefile.am): Likewise.
63424         * modules/imaxdiv (Makefile.am): Likewise.
63425         * modules/inet_ntop (Makefile.am): Likewise.
63426         * modules/inet_pton (Makefile.am): Likewise.
63427         * modules/intprops (Makefile.am): Likewise.
63428         * modules/inttostr (Makefile.am): Likewise.
63429         * modules/inttypes (Makefile.am): Likewise.
63430         * modules/isapipe (Makefile.am): Likewise.
63431         * modules/javaversion (Makefile.am): Likewise.
63432         * modules/lchmod (Makefile.am): Likewise.
63433         * modules/lchown (Makefile.am): Likewise.
63434         * modules/localcharset (Makefile.am): Likewise.
63435         * modules/long-options (Makefile.am): Likewise.
63436         * modules/lstat (Makefile.am): Likewise.
63437         * modules/malloc (Makefile.am): Likewise.
63438         * modules/mathl (Makefile.am): Likewise.
63439         * modules/mbchar (Makefile.am): Likewise.
63440         * modules/md2 (Makefile.am): Likewise.
63441         * modules/md4 (Makefile.am): Likewise.
63442         * modules/md5 (Makefile.am): Likewise.
63443         * modules/memcasecmp (Makefile.am): Likewise.
63444         * modules/memchr (Makefile.am): Likewise.
63445         * modules/memcmp (Makefile.am): Likewise.
63446         * modules/memcoll (Makefile.am): Likewise.
63447         * modules/memcpy (Makefile.am): Likewise.
63448         * modules/memmem (Makefile.am): Likewise.
63449         * modules/memmove (Makefile.am): Likewise.
63450         * modules/mempcpy (Makefile.am): Likewise.
63451         * modules/memrchr (Makefile.am): Likewise.
63452         * modules/memset (Makefile.am): Likewise.
63453         * modules/memxor (Makefile.am): Likewise.
63454         * modules/mkancesdirs (Makefile.am): Likewise.
63455         * modules/mkdir-p (Makefile.am): Likewise.
63456         * modules/mkdir (Makefile.am): Likewise.
63457         * modules/mkdtemp (Makefile.am): Likewise.
63458         * modules/mkstemp (Makefile.am): Likewise.
63459         * modules/mktime (Makefile.am): Likewise.
63460         * modules/modechange (Makefile.am): Likewise.
63461         * modules/mountlist (Makefile.am): Likewise.
63462         * modules/nanosleep (Makefile.am): Likewise.
63463         * modules/obstack (Makefile.am): Likewise.
63464         * modules/openat (Makefile.am): Likewise.
63465         * modules/pagealign_alloc (Makefile.am): Likewise.
63466         * modules/pathmax (Makefile.am): Likewise.
63467         * modules/physmem (Makefile.am): Likewise.
63468         * modules/poll (Makefile.am): Likewise.
63469         * modules/posixtm (Makefile.am): Likewise.
63470         * modules/posixver (Makefile.am): Likewise.
63471         * modules/putenv (Makefile.am): Likewise.
63472         * modules/quote (Makefile.am): Likewise.
63473         * modules/quotearg (Makefile.am): Likewise.
63474         * modules/raise (Makefile.am): Likewise.
63475         * modules/read-file (Makefile.am): Likewise.
63476         * modules/readline (Makefile.am): Likewise.
63477         * modules/readlink (Makefile.am): Likewise.
63478         * modules/readtokens (Makefile.am): Likewise.
63479         * modules/readutmp (Makefile.am): Likewise.
63480         * modules/realloc (Makefile.am): Likewise.
63481         * modules/regex (Makefile.am): Likewise.
63482         * modules/rename-dest-slash (Makefile.am): Likewise.
63483         * modules/rename (Makefile.am): Likewise.
63484         * modules/rijndael (Makefile.am): Likewise.
63485         * modules/rmdir (Makefile.am): Likewise.
63486         * modules/rpmatch (Makefile.am): Likewise.
63487         * modules/safe-read (Makefile.am): Likewise.
63488         * modules/safe-write (Makefile.am): Likewise.
63489         * modules/same-inode (Makefile.am): Likewise.
63490         * modules/same (Makefile.am): Likewise.
63491         * modules/save-cwd (Makefile.am): Likewise.
63492         * modules/savedir (Makefile.am): Likewise.
63493         * modules/setenv (Makefile.am): Likewise.
63494         * modules/settime (Makefile.am): Likewise.
63495         * modules/sha1 (Makefile.am): Likewise.
63496         * modules/sig2str (Makefile.am): Likewise.
63497         * modules/snprintf (Makefile.am): Likewise.
63498         * modules/stat-macros (Makefile.am): Likewise.
63499         * modules/stat-time (Makefile.am): Likewise.
63500         * modules/stdbool (Makefile.am): Likewise.
63501         * modules/stdint (Makefile.am): Likewise.
63502         * modules/stdlib-safer (Makefile.am): Likewise.
63503         * modules/stpcpy (Makefile.am): Likewise.
63504         * modules/stpncpy (Makefile.am): Likewise.
63505         * modules/strcase (Makefile.am): Likewise.
63506         * modules/strcasestr (Makefile.am): Likewise.
63507         * modules/strchrnul (Makefile.am): Likewise.
63508         * modules/strcspn (Makefile.am): Likewise.
63509         * modules/strdup (Makefile.am): Likewise.
63510         * modules/strerror (Makefile.am): Likewise.
63511         * modules/strftime (Makefile.am): Likewise.
63512         * modules/strndup (Makefile.am): Likewise.
63513         * modules/strnlen (Makefile.am): Likewise.
63514         * modules/strpbrk (Makefile.am): Likewise.
63515         * modules/strsep (Makefile.am): Likewise.
63516         * modules/strstr (Makefile.am): Likewise.
63517         * modules/strtod (Makefile.am): Likewise.
63518         * modules/strtoimax (Makefile.am): Likewise.
63519         * modules/strtok_r (Makefile.am): Likewise.
63520         * modules/strtol (Makefile.am): Likewise.
63521         * modules/strtoll (Makefile.am): Likewise.
63522         * modules/strtoul (Makefile.am): Likewise.
63523         * modules/strtoull (Makefile.am): Likewise.
63524         * modules/strtoumax (Makefile.am): Likewise.
63525         * modules/strverscmp (Makefile.am): Likewise.
63526         * modules/sys_socket (Makefile.am): Likewise.
63527         * modules/sys_stat (Makefile.am): Likewise.
63528         * modules/sysexits (Makefile.am): Likewise.
63529         * modules/time_r (Makefile.am): Likewise.
63530         * modules/timegm (Makefile.am): Likewise.
63531         * modules/timespec (Makefile.am): Likewise.
63532         * modules/tmpfile-safer (Makefile.am): Likewise.
63533         * modules/trim (Makefile.am): Likewise.
63534         * modules/unistd-safer (Makefile.am): Likewise.
63535         * modules/unlinkdir (Makefile.am): Likewise.
63536         * modules/unlocked-io (Makefile.am): Likewise.
63537         * modules/userspec (Makefile.am): Likewise.
63538         * modules/utime (Makefile.am): Likewise.
63539         * modules/utimecmp (Makefile.am): Likewise.
63540         * modules/utimens (Makefile.am): Likewise.
63541         * modules/vasnprintf (Makefile.am): Likewise.
63542         * modules/vasprintf (Makefile.am): Likewise.
63543         * modules/vsnprintf (Makefile.am): Likewise.
63544         * modules/xalloc (Makefile.am): Likewise.
63545         * modules/xgetcwd (Makefile.am): Likewise.
63546         * modules/xnanosleep (Makefile.am): Likewise.
63547         * modules/xreadlink (Makefile.am): Likewise.
63548         * modules/xstrtod (Makefile.am): Likewise.
63549         * modules/xstrtol (Makefile.am): Likewise.
63550         * modules/xstrtold (Makefile.am): Likewise.
63551         * modules/yesno (Makefile.am): Likewise.
63552         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63553
63554 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * modules/error (Makefile.am): Distribute files through
63557         EXTRA_DIST, not lib_SOURCES.
63558
63559 2006-10-12  Eric Blake  <ebb9@byu.net>
63560
63561         * modules/error (Makefile.am): Distribute files in /lib.
63562         * modules/obstack (Makefile.am): Likewise.
63563
63564 2006-10-12  Bruno Haible  <bruno@clisp.org>
63565
63566         * modules/acl (Makefile.am): Distribute all files in lib/ through
63567         EXTRA_DIST.
63568         * modules/arcfour (Makefile.am): Likewise.
63569         * modules/arctwo (Makefile.am): Likewise.
63570         * modules/argmatch (Makefile.am): Likewise.
63571         * modules/argz (Makefile.am): Likewise.
63572         * modules/atexit (Makefile.am): Likewise.
63573         * modules/backupfile (Makefile.am): Likewise.
63574         * modules/c-strtod (Makefile.am): Likewise.
63575         * modules/c-strtold (Makefile.am): Likewise.
63576         * modules/calloc (Makefile.am): Likewise.
63577         * modules/canon-host (Makefile.am): Likewise.
63578         * modules/canonicalize (Makefile.am): Likewise.
63579         * modules/chdir-long (Makefile.am): Likewise.
63580         * modules/chdir-safer (Makefile.am): Likewise.
63581         * modules/check-version (Makefile.am): Likewise.
63582         * modules/chown (Makefile.am): Likewise.
63583         * modules/cloexec (Makefile.am): Likewise.
63584         * modules/close-stream (Makefile.am): Likewise.
63585         * modules/closeout (Makefile.am): Likewise.
63586         * modules/crc (Makefile.am): Likewise.
63587         * modules/cycle-check (Makefile.am): Likewise.
63588         * modules/des (Makefile.am): Likewise.
63589         * modules/dirfd (Makefile.am): Likewise.
63590         * modules/dirname (Makefile.am): Likewise.
63591         * modules/dup2 (Makefile.am): Likewise.
63592         * modules/euidaccess (Makefile.am): Likewise.
63593         * modules/exclude (Makefile.am): Likewise.
63594         * modules/exitfail (Makefile.am): Likewise.
63595         * modules/fcntl-safer (Makefile.am): Likewise.
63596         * modules/file-type (Makefile.am): Likewise.
63597         * modules/fileblocks (Makefile.am): Likewise.
63598         * modules/filemode (Makefile.am): Likewise.
63599         * modules/filenamecat (Makefile.am): Likewise.
63600         * modules/fnmatch (Makefile.am): Likewise.
63601         * modules/fopen-safer (Makefile.am): Likewise.
63602         * modules/fpending (Makefile.am): Likewise.
63603         * modules/fprintftime (Makefile.am): Likewise.
63604         * modules/free (Makefile.am): Likewise.
63605         * modules/fsusage (Makefile.am): Likewise.
63606         * modules/ftruncate (Makefile.am): Likewise.
63607         * modules/fts (Makefile.am): Likewise.
63608         * modules/gc (Makefile.am): Likewise.
63609         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63610         * modules/getaddrinfo (Makefile.am): Likewise.
63611         * modules/getcwd (Makefile.am): Likewise.
63612         * modules/getdelim (Makefile.am): Likewise.
63613         * modules/getdomainname (Makefile.am): Likewise.
63614         * modules/getgroups (Makefile.am): Likewise.
63615         * modules/gethostname (Makefile.am): Likewise.
63616         * modules/gethrxtime (Makefile.am): Likewise.
63617         * modules/getline (Makefile.am): Likewise.
63618         * modules/getloadavg (Makefile.am): Likewise.
63619         * modules/getlogin_r (Makefile.am): Likewise.
63620         * modules/getopt (Makefile.am): Likewise.
63621         * modules/getpass (Makefile.am): Likewise.
63622         * modules/getpass-gnu (Makefile.am): Likewise.
63623         * modules/getsubopt (Makefile.am): Likewise.
63624         * modules/gettime (Makefile.am): Likewise.
63625         * modules/gettimeofday (Makefile.am): Likewise.
63626         * modules/getugroups (Makefile.am): Likewise.
63627         * modules/getusershell (Makefile.am): Likewise.
63628         * modules/glob (Makefile.am): Likewise.
63629         * modules/group-member (Makefile.am): Likewise.
63630         * modules/hard-locale (Makefile.am): Likewise.
63631         * modules/hash (Makefile.am): Likewise.
63632         * modules/hmac-md5 (Makefile.am): Likewise.
63633         * modules/hmac-sha1 (Makefile.am): Likewise.
63634         * modules/human (Makefile.am): Likewise.
63635         * modules/idcache (Makefile.am): Likewise.
63636         * modules/imaxabs (Makefile.am): Likewise.
63637         * modules/imaxdiv (Makefile.am): Likewise.
63638         * modules/inet_ntop (Makefile.am): Likewise.
63639         * modules/inet_pton (Makefile.am): Likewise.
63640         * modules/inttostr (Makefile.am): Likewise.
63641         * modules/isapipe (Makefile.am): Likewise.
63642         * modules/lchown (Makefile.am): Likewise.
63643         * modules/long-options (Makefile.am): Likewise.
63644         * modules/lstat (Makefile.am): Likewise.
63645         * modules/malloc (Makefile.am): Likewise.
63646         * modules/mathl (Makefile.am): Likewise.
63647         * modules/mbchar (Makefile.am): Likewise.
63648         * modules/md2 (Makefile.am): Likewise.
63649         * modules/md4 (Makefile.am): Likewise.
63650         * modules/md5 (Makefile.am): Likewise.
63651         * modules/memcasecmp (Makefile.am): Likewise.
63652         * modules/memchr (Makefile.am): Likewise.
63653         * modules/memcmp (Makefile.am): Likewise.
63654         * modules/memcoll (Makefile.am): Likewise.
63655         * modules/memcpy (Makefile.am): Likewise.
63656         * modules/memmem (Makefile.am): Likewise.
63657         * modules/memmove (Makefile.am): Likewise.
63658         * modules/mempcpy (Makefile.am): Likewise.
63659         * modules/memrchr (Makefile.am): Likewise.
63660         * modules/memset (Makefile.am): Likewise.
63661         * modules/memxor (Makefile.am): Likewise.
63662         * modules/mkancesdirs (Makefile.am): Likewise.
63663         * modules/mkdir (Makefile.am): Likewise.
63664         * modules/mkdir-p (Makefile.am): Likewise.
63665         * modules/mkdtemp (Makefile.am): Likewise.
63666         * modules/mkstemp (Makefile.am): Likewise.
63667         * modules/mktime (Makefile.am): Likewise.
63668         * modules/modechange (Makefile.am): Likewise.
63669         * modules/mountlist (Makefile.am): Likewise.
63670         * modules/nanosleep (Makefile.am): Likewise.
63671         * modules/openat (Makefile.am): Likewise.
63672         * modules/pagealign_alloc (Makefile.am): Likewise.
63673         * modules/physmem (Makefile.am): Likewise.
63674         * modules/poll (Makefile.am): Likewise.
63675         * modules/posixtm (Makefile.am): Likewise.
63676         * modules/posixver (Makefile.am): Likewise.
63677         * modules/putenv (Makefile.am): Likewise.
63678         * modules/quote (Makefile.am): Likewise.
63679         * modules/quotearg (Makefile.am): Likewise.
63680         * modules/raise (Makefile.am): Likewise.
63681         * modules/read-file (Makefile.am): Likewise.
63682         * modules/readline (Makefile.am): Likewise.
63683         * modules/readlink (Makefile.am): Likewise.
63684         * modules/readtokens (Makefile.am): Likewise.
63685         * modules/readutmp (Makefile.am): Likewise.
63686         * modules/realloc (Makefile.am): Likewise.
63687         * modules/regex (Makefile.am): Likewise.
63688         * modules/rename (Makefile.am): Likewise.
63689         * modules/rename-dest-slash (Makefile.am): Likewise.
63690         * modules/rijndael (Makefile.am): Likewise.
63691         * modules/rmdir (Makefile.am): Likewise.
63692         * modules/rpmatch (Makefile.am): Likewise.
63693         * modules/safe-read (Makefile.am): Likewise.
63694         * modules/safe-write (Makefile.am): Likewise.
63695         * modules/same (Makefile.am): Likewise.
63696         * modules/save-cwd (Makefile.am): Likewise.
63697         * modules/savedir (Makefile.am): Likewise.
63698         * modules/setenv (Makefile.am): Likewise.
63699         * modules/settime (Makefile.am): Likewise.
63700         * modules/sha1 (Makefile.am): Likewise.
63701         * modules/sig2str (Makefile.am): Likewise.
63702         * modules/snprintf (Makefile.am): Likewise.
63703         * modules/stdlib-safer (Makefile.am): Likewise.
63704         * modules/stpcpy (Makefile.am): Likewise.
63705         * modules/stpncpy (Makefile.am): Likewise.
63706         * modules/strcase (Makefile.am): Likewise.
63707         * modules/strcasestr (Makefile.am): Likewise.
63708         * modules/strchrnul (Makefile.am): Likewise.
63709         * modules/strcspn (Makefile.am): Likewise.
63710         * modules/strdup (Makefile.am): Likewise.
63711         * modules/strerror (Makefile.am): Likewise.
63712         * modules/strftime (Makefile.am): Likewise.
63713         * modules/strndup (Makefile.am): Likewise.
63714         * modules/strnlen (Makefile.am): Likewise.
63715         * modules/strpbrk (Makefile.am): Likewise.
63716         * modules/strsep (Makefile.am): Likewise.
63717         * modules/strstr (Makefile.am): Likewise.
63718         * modules/strtod (Makefile.am): Likewise.
63719         * modules/strtoimax (Makefile.am): Likewise.
63720         * modules/strtok_r (Makefile.am): Likewise.
63721         * modules/strtol (Makefile.am): Likewise.
63722         * modules/strtoll (Makefile.am): Likewise.
63723         * modules/strtoul (Makefile.am): Likewise.
63724         * modules/strtoull (Makefile.am): Likewise.
63725         * modules/strtoumax (Makefile.am): Likewise.
63726         * modules/strverscmp (Makefile.am): Likewise.
63727         * modules/time_r (Makefile.am): Likewise.
63728         * modules/timegm (Makefile.am): Likewise.
63729         * modules/tmpfile-safer (Makefile.am): Likewise.
63730         * modules/unistd-safer (Makefile.am): Likewise.
63731         * modules/unlinkdir (Makefile.am): Likewise.
63732         * modules/userspec (Makefile.am): Likewise.
63733         * modules/utime (Makefile.am): Likewise.
63734         * modules/utimecmp (Makefile.am): Likewise.
63735         * modules/utimens (Makefile.am): Likewise.
63736         * modules/vasnprintf (Makefile.am): Likewise.
63737         * modules/vasprintf (Makefile.am): Likewise.
63738         * modules/vsnprintf (Makefile.am): Likewise.
63739         * modules/xalloc (Makefile.am): Likewise.
63740         * modules/xgetcwd (Makefile.am): Likewise.
63741         * modules/xnanosleep (Makefile.am): Likewise.
63742         * modules/xreadlink (Makefile.am): Likewise.
63743         * modules/xstrtod (Makefile.am): Likewise.
63744         * modules/xstrtol (Makefile.am): Likewise.
63745         * modules/xstrtold (Makefile.am): Likewise.
63746         * modules/yesno (Makefile.am): Likewise.
63747
63748 2006-10-12  Jim Meyering  <jim@meyering.net>
63749
63750         * m4/getloadavg.m4: Revert the change below.
63751
63752         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63753         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63754         fail with a symlink, which is what coreutils' ./bootstrap now
63755         creates by default.
63756
63757 2006-10-12  Bruno Haible  <bruno@clisp.org>
63758
63759         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63760         mingw.
63761         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63762         MSVC and mingw explicitly.
63763
63764 2006-10-11  Simon Josefsson  <jas@extundo.com>
63765             Bruno Haible  <bruno@clisp.org>
63766
63767         Add support for multiple gnulib-tool invocations in the scope of a
63768         single configure.ac file.
63769         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63770         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63771         with the same contents as the _LIBADD variable.
63772         (func_emit_initmacro_start, func_emit_initmacro_end,
63773         func_emit_initmacro_done): New functions.
63774         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63775         gl_LIBOBJS and gl_LTLIBOBJS.
63776
63777 2006-10-11  Bruno Haible  <bruno@clisp.org>
63778
63779         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63780         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63781         autoreconf. Instead, invoke autopoint explicitly but move back the
63782         *.m4 files from gnulib.
63783
63784 2006-10-11  Bruno Haible  <bruno@clisp.org>
63785
63786         * gnulib-tool (func_usage): Make module names after --create-testdir
63787         optional.
63788         (func_create_testdir): If no module was specified, use nearly all
63789         modules.
63790
63791 2006-10-12  Jim Meyering  <jim@meyering.net>
63792
63793         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63794         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63795         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63796         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63797         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63798         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63799         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63800         (fts_set_stat_required): New function.
63801         (fts_open): Defer the calls to fts_stat, if possible or requested.
63802         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63803         into fts_stat itself.
63804         (fts_read): Perform any required (deferred) fts_stat call.
63805         (fts_build): Likewise, for the directory we're about to open and read.
63806         In the readdir loop, carefully decide whether each entry will require
63807         an eventual call to fts_stat, using dirent.d_type info if available.
63808         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63809         a command line argument into this function.  Update all callers.
63810         Map a return value of FTS_DOT to FTS_D for a command line argument.
63811         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63812         Thanks to Miklos Szeredi for his tenacity and for the initial
63813         bug report about "find" failing on a FUSE-based file system.
63814
63815         * lib/fts.c (fts_open): Use consistent indentation.
63816
63817 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63818
63819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63820         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63821         reported by Jim Meyering.  All uses of cache variables renamed
63822         to match Autoconf's.
63823         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63824         the other one.
63825
63826         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63827         Fix misspelling in diagnostic.
63828
63829 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63832         defined.  Problem reported by Matthew Woehlke.
63833
63834         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63835         Add support for Tandem NonStop R series.
63836         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63837         Use new macro.
63838
63839         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63840         (has_trailing_slash): Omit size arg; all callers changed.
63841         Omit 'inline', since it doesn't help performance and we'd
63842         need to configure it.
63843         Don't count //, ///, etc. as having a trailing slash.
63844         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63845         (rpl_rename_dest_slash): On failure, use rename's errno rather
63846         than (in some cases) an incorrect or junk errno.
63847         Simplify code by removing need to compute length; this does
63848         cause it to make two passes instead of one over the file name,
63849         but it's worth it.
63850
63851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63852         change, since Autoconf's version may no longer be appropriate now
63853         that we are using CVS Autoconf's version.  Add support for Tandem.
63854
63855 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63856             Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63859         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63860         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63861         gl_AC_TYPE_LONG_LONG.
63862
63863         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63864         instead of HAVE_LONG_LONG.
63865         * lib/printf-args.c (printf_fetchargs): Likewise.
63866         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63867         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63869         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63870         gl_AC_TYPE_LONG_LONG.
63871
63872 2006-10-11  Bruno Haible  <bruno@clisp.org>
63873
63874         * m4/longlong.m4: Add comments.
63875         * m4/ulonglong.m4: Likewise.
63876
63877 2006-10-10  Bruno Haible  <bruno@clisp.org>
63878
63879         Make it possible to #define stpcpy, strdup to aliases.
63880         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63881         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63882
63883 2006-10-10  Bruno Haible  <bruno@clisp.org>
63884
63885         Make it possible to #define gcd to an alias.
63886         * lib/gcd.c: Include config.h.
63887
63888 2006-10-10  Bruno Haible  <bruno@clisp.org>
63889
63890         Make it possible to #define c_isascii to an alias.
63891         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63892         defined. Undefine the macros before defining them, to avoid gcc
63893         warnings.
63894         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63895         define NO_C_CTYPE_MACROS early.
63896
63897 2006-10-10  Bruno Haible  <bruno@clisp.org>
63898
63899         Make it possible to #define set_program_name to an alias.
63900         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63901         ENABLE_RELOCATABLE early.
63902
63903 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63904
63905         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63906         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63907         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63908         More generally, don't assume that 64-bit signed int is available
63909         if unsigned int is, and vice versa.
63910         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63911         unsigned symbols, not on their signed counterparts.
63912         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63913         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63914         (UINT64_C, UINTMAX_C):
63915         Likewise.
63916         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63917         unsigned counterparts.
63918         (Have_long_long, Unsigned): New macros.
63919         (Int): Renamed from INT.
63920         (strtoimax): Use the new macros.
63921         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63922         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63923         * modules/inttypes (inttypes.h): Substitute
63924         HAVE_UNSIGNED_LONG_LONG_INT.
63925         * modules/stdint (stdint.h): Likewise.
63926         (Files): Add m4/ulonglong.m4.
63927
63928 2006-10-10  Bruno Haible  <bruno@clisp.org>
63929
63930         Fix a gcc -Wshadow warning.
63931         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63932         to 'bucket'.
63933         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63934         gl_linked_indexof_from_to): Likewise.
63935         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63936         Likewise.
63937         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63938         Likewise.
63939         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63940         Reported by Eric Blake.
63941
63942 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63943
63944         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63945         for NetBSD.  Problem reported by Bruno Haible.
63946
63947 2006-10-09  Jim Meyering  <jim@meyering.net>
63948
63949         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63950         Patch from Bruno Haible.
63951
63952 2006-10-09  Jim Meyering  <jim@meyering.net>
63953
63954         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63955         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63956         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63957
63958 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63959
63960         Don't include <config.h> twice; this doesn't work in some cases,
63961         e.g., when config.h has "#define intmax_t long long int" and
63962         we include <config.h>, <inttypes.h>, <config.h> in that order.
63963         Problem reported by Matthew Woehlke in:
63964         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63965         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63966         * lib/fts-cycle.c: Don't include config.h.
63967         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63968         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63969         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63970         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63971         inttypes.h.
63972         * lib/xstrtoumax.c: Likewise.
63973         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63974         __strtol and the like, so that this module is more like its siblings.
63975         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63976         Remove; no longer needed now that we assume gnulib inttypes.h.
63977
63978 2006-10-08  Bruno Haible  <bruno@clisp.org>
63979
63980         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63981         option.
63982
63983 2006-10-07  Jim Meyering  <jim@meyering.net>
63984
63985         * modules/inttypes (inttypes.h): Revert what seems to have been
63986         an inadvertent part of today's change: use "|", not "/" in the
63987         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63988
63989 2006-10-07  Bruno Haible  <bruno@clisp.org>
63990
63991         * modules/sublist: New file.
63992
63993 2006-10-07  Bruno Haible  <bruno@clisp.org>
63994
63995         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63996         * modules/argz (argz.h): Likewise.
63997         * modules/arpa_inet (arpa/inet.h): Likewise.
63998         * modules/byteswap (byteswap.h): Likewise.
63999         * modules/configmake (configmake.h): Likewise.
64000         * modules/fcntl (fcntl.h): Likewise.
64001         * modules/fnmatch (fnmatch.h): Likewise.
64002         * modules/getopt (getopt.h): Likewise.
64003         * modules/glob (glob.h): Likewise.
64004         * modules/inttypes (inttypes.h): Likewise.
64005         * modules/netinet_in (netinet/in.h): Likewise.
64006         * modules/poll (poll.h): Likewise.
64007         * modules/stdbool (stdbool.h): Likewise.
64008         * modules/stdint (stdint.h): Likewise.
64009         * modules/sys_select (sys/select.h): Likewise.
64010         * modules/sys_socket (sys/socket.h): Likewise.
64011         * modules/sys_stat (sys/stat.h): Likewise.
64012         * modules/sysexits (sysexits.h): Likewise.
64013         * modules/unistd (unistd.h): Likewise.
64014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64015         Add a "DO NOT EDIT" comment to the generated file.
64016         (func_import): Likewise for gnulib-comp.m4.
64017
64018 2006-10-07  Bruno Haible  <bruno@clisp.org>
64019
64020         * lib/gl_sublist.h: New file.
64021         * lib/gl_sublist.c: New file.
64022
64023 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64024
64025         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64026         name (relative to the original working directory) and the file
64027         name component (relative to the temporary working directory).  All
64028         callers changed.
64029         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64030         * lib/mkdir-p.c (make_dir_parents): Likewise.
64031         * lib/mkdir-p.h (make_dir_parents): Likewise.
64032
64033 2006-10-06  Eric Blake  <ebb9@byu.net>
64034
64035         Define several macros for use by the clean-temp module.
64036         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64037         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64038         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64039
64040         * lib/clean-temp.h (close_stream_temp): New declaration.
64041         * lib/clean-temp.c (includes): Pull in headers according to what
64042         other modules are in use.
64043         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64044
64045 2006-10-06  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64048         instead of fopen, fwriteerror.
64049
64050 2006-10-06  Bruno Haible  <bruno@clisp.org>
64051
64052         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64053         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64054         int.
64055         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64056         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64057         Return an error indicator.
64058         Suggested by Eric Blake.
64059
64060 2006-10-06  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64063         Reported by Eric Blake.
64064
64065 2006-10-06  Bruno Haible  <bruno@clisp.org>
64066
64067         * modules/closeout (Description): Mention stderr too.
64068
64069 2006-10-06  Bruno Haible  <bruno@clisp.org>
64070         and Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * lib/closeout.c (close_stdout): Also close stderr.
64073         * lib/closeout.h: Update comment.
64074
64075 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64078         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64079         * lib/dirchownmod.c: Include lchown.h.
64080         * lib/lchown.c: Don't include files that lchown.h now includes.
64081         Don't declare chown, since lchown.h now does that.
64082         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64083         (lchown): Define to rpl_chown if lchown is declared but
64084         does not exist.  Declare using a prototype if lchown is not
64085         declared.  Add a copyright notice.
64086         * lib/mkstemp.h: Include <unistd.h>.
64087         * lib/openat.c: Include lchown.h.
64088
64089         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64090         we now test for that separately.
64091         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64092         rather than O_NOFOLLOW, when testing whether it's possible to
64093         avoid a race condition reliably.
64094         * lib/savewd.c (savewd_chdir): Likewise.
64095
64096         Remove macros that are no longer needed now that stdint.h is
64097         reliable.
64098         * lib/fsusage.c (UINTMAX_MAX): Remove.
64099         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64100         * lib/utimecmp.c (SIZE_MAX): Remove.
64101
64102         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64103
64104         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64105         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64106         O_NOATIME works.
64107
64108 2006-10-05  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/gl_list.h (gl_sortedlist_search_from_to,
64111         gl_sortedlist_indexof_from_to): New declarations.
64112         (gl_list_implementation): New fields sortedlist_search_from_to,
64113         sortedlist_indexof_from_to.
64114         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64115         inline functions.
64116         * lib/gl_list.c (gl_sortedlist_search_from_to,
64117         gl_sortedlist_indexof_from_to): New functions.
64118         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64119         function.
64120         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64121         (gl_array_sortedlist_search_from_to): New function.
64122         (gl_array_list_implementation): Update.
64123         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64124         function.
64125         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64126         (gl_carray_sortedlist_search_from_to): New function.
64127         (gl_carray_list_implementation): Update.
64128         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64129         gl_linked_sortedlist_indexof_from_to): New functions.
64130         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64131         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64132         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64133         gl_tree_sortedlist_indexof_from_to): New functions.
64134         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64135         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64136         Update.
64137         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64138         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64139         Update.
64140
64141 2006-10-05  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64144         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64145         (struct gl_list_implementation): Add fields search_from_to,
64146         indexof_from_to. Remove fields search, indexof.
64147         (gl_list_search): Use the search_from_to method.
64148         (gl_list_search_from, gl_list_search_from_to): New functions.
64149         (gl_list_indexof): Use the indexof_from_to method.
64150         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64151         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64152         (gl_list_search_from, gl_list_search_from_to): New functions.
64153         (gl_list_indexof): Use the indexof_from_to method.
64154         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64155         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64156         gl_array_indexof. Add start_index, end_index arguments.
64157         (gl_array_search_from_to): Renamed from gl_array_search. Add
64158         start_index, end_index arguments.
64159         (gl_array_remove, gl_array_list_implementation): Update.
64160         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64161         gl_carray_indexof. Add start_index, end_index arguments.
64162         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64163         start_index, end_index arguments.
64164         (gl_carray_remove, gl_carray_list_implementation): Update.
64165         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64166         gl_linked_search. Add start_index, end_index arguments.
64167         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64168         start_index, end_index arguments.
64169         (gl_linked_remove): Update.
64170         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64171         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64172         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64173         field to 'size_t'.
64174         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64175         gl_tree_search. Add start_index, end_index arguments.
64176         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64177         start_index, end_index arguments.
64178         (gl_tree_remove): Update.
64179         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64180         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64181         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64182         function.
64183         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64184         gl_tree_search. Add start_index, end_index arguments.
64185         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64186         start_index, end_index arguments.
64187         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64188         Update.
64189         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64190
64191 2006-10-05  Bruno Haible  <bruno@clisp.org>
64192
64193         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64194
64195         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64196         fwriteerror_temp): New declarations.
64197         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64198         (descriptors): New variable.
64199         (cleanup): First, close the descriptors.
64200         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64201         fclose_temp, fwriteerror_temp): New functions.
64202
64203 2006-10-04  Jim Meyering  <jim@meyering.net>
64204
64205         * lib/fts.c (fts_open): Tiny comment change.
64206
64207 2006-10-04  Bruno Haible  <bruno@clisp.org>
64208
64209         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64210         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64211         gl_LOCK_BODY.
64212         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64213         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64214         gl_LOCK_EARLY_BODY.
64215         (gl_LOCK): Require gl_LOCK_BODY.
64216
64217 2006-10-04  Bruno Haible  <bruno@clisp.org>
64218
64219         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64220         (gl_oset_search_atleast): New declaration.
64221         (struct gl_oset_implementation): Add field 'search_atleast'.
64222         (gl_oset_search_atleast): New inline function.
64223         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64224         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64225         (gl_array_oset_implementation): Update.
64226         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64227         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64228         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64229
64230 2006-10-04  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64233
64234 2006-10-03  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64237         from gl_avltreehash_list_implementation.
64238
64239 2006-10-03  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/gl_oset.c (gl_oset_add): Fix return type.
64242
64243 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64244
64245         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64246
64247 2006-10-02  Eric Blake  <ebb9@byu.net>
64248
64249         * modules/strnlen (Depends-on): Add extensions.
64250
64251 2006-10-02  Eric Blake  <ebb9@byu.net>
64252
64253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64254         definition in 2.60+.
64255
64256 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64257
64258         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64259         checks.
64260
64261 2006-10-02  Bruno Haible  <bruno@clisp.org>
64262
64263         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64264         to the AUTOMAKE_OPTIONS.
64265         Reported by Jim Meyering.
64266
64267 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         Work around bug in Solaris 10 /proc file system:
64270         /proc/self/fd/NNN/.. isn't the parent directory of
64271         the directory whose file descriptor is NNN.  This needs to
64272         be worked around at run time, not compile time, since a
64273         program might be built on Solaris 8, where things work, and
64274         run on Solaris 10.
64275         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64276         to use the following interface instead:
64277         (OPENAT_BUFFER_SIZE): New macro.
64278         (openat_proc_name): New function.
64279         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64280         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64281         Likewise.
64282         * lib/openat-proc.c: New file.
64283         * modules/openat (Files): Add lib/openat-proc.c.
64284         (Depends-on): Add same-inode, stdbool.
64285         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64286
64287 2006-09-29  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64290         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64291         argument. Set stdout_closed before testing for ferror, not after.
64292         (fwriteerror, fwriteerror_no_ebadf): New functions.
64293
64294 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64295
64296         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64297
64298 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64299
64300         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64301         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64302
64303 2006-09-28  Jim Meyering  <jim@meyering.net>
64304
64305         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64306         Include <unistd.h>.
64307
64308 2006-09-28  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64311         * modules/linkedhash-list (Depends-on): Likewise.
64312         * modules/rbtreehash-list (Depends-on): Likewise.
64313
64314 2006-09-28  Bruno Haible  <bruno@clisp.org>
64315
64316         * lib/strndup.h: Simplify the redefinition of strndup.
64317         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64319
64320 2006-09-28  Bruno Haible  <bruno@clisp.org>
64321
64322         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64323         * lib/gl_linkedhash_list.c: Likewise.
64324         * lib/gl_rbtreehash_list.c: Likewise.
64325
64326 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64329         getaddrinfo.
64330
64331         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64332         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64333         it causes <stdio_ext.h> to cause a compile-time error.
64334         Problem reported by Nelson H. F. Beebe.
64335         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64336         of HAVE_DECL___PENDING.
64337
64338         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64339         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64340         declaration.
64341
64342 2006-09-27  Jim Meyering  <jim@meyering.net>
64343
64344         This file could end up with a definition for a function
64345         named __strndup, rather than rpl_strndup on a system with
64346         incomplete weak_alias support.
64347         * lib/strndup.c (strndup): Rename from __strndup.
64348         Remove #defines that used to map __strndup to strndup.
64349         Don't use K&R prototypes.
64350         Remove LIBC-related code, since this file is not sync'd with glibc.
64351         * lib/strndup.h: Revamp, accordingly.
64352         * m4/strndup.m4: Modernize.
64353
64354 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64355
64356         * modules/savewd (Depends-on): Add 'raise'.
64357         * lib/savewd.c: Include <signal.h>, for 'raise'.
64358
64359 2006-09-26  Jim Meyering  <jim@meyering.net>
64360
64361         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64362         when we detect Darwin 8.7.0's acl_get_file bug.
64363         Rearrange to perform the new (below) run-test while $LIBS
64364         contains any acl-related library.  Set USE_ACL at the end.
64365         (gl_ACL_GET_FILE): New function.
64366
64367 2006-09-26  Eric Blake  <ebb9@byu.net>
64368
64369         * lib/verror.c: Include <config.h> unconditionally.
64370
64371 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64372
64373         * modules/clock-time (Maintainer): Add self.
64374         * modules/getlogin_r (Depends-on): Add extensions.
64375
64376 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64377
64378         * modules/clock-time: New module.
64379         * modules/nanosleep (Depends-on): Add clock-time.
64380         * modules/gethrxtime (Depends-on): Likewise.
64381         * modules/gettime (Depends-on): Likewise.
64382         * modules/settime (Depends-on): Likewise.
64383
64384         * modules/fts-lgpl: Depend on openat.
64385         * modules/mkancesdirs: Depend on savewd.
64386         * modules/mkdir-p: Likewise.
64387
64388 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64389
64390         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64391
64392         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64393         `gl_have_arbitrary_file_name_length_limit' to
64394         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64395         actually works between configure runs.
64396
64397 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64398             Bruno Haible  <bruno@clisp.org>
64399
64400         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64401
64402 2006-09-25  Jim Meyering  <jim@meyering.net>
64403
64404         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64405         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64406
64407 2006-09-25  Eric Blake  <ebb9@byu.net>
64408
64409         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64410         exec's in 2006-09-18 patch when shuffling fds.
64411
64412 2006-09-25  Bruno Haible  <bruno@clisp.org>
64413
64414         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64415         Reported by Jim Meyering.
64416
64417 2006-09-24  Jim Meyering  <jim@meyering.net>
64418
64419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64420         compare a pointer against a literal "0".  That caused failures with
64421         at least HP-UX's hpcc.
64422
64423 2006-09-22  Simon Josefsson  <jas@extundo.com>
64424
64425         * modules/gc-sha1:
64426         * modules/gc-md4:
64427         * modules/gc-hmac-sha1:
64428         * modules/gc-hmac-md5:
64429         * modules/gc-des:
64430         * modules/gc-arcfour: Distribute more files.
64431
64432 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64433
64434         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64435         (gl_linked_iterator_from_to): Initialize struct completely.
64436         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64437         (gl_tree_iterator_from_to): Likewise
64438         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64439         * lib/gl_array_list.c [lint] (gl_array_iterator)
64440         (gl_array_iterator_from_to): Likewise.
64441         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64442         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64443         (gl_carray_iterator_from_to): Likewise.
64444
64445         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64446         * lib/md4.c (md4_process_block): Remove unused variable.
64447         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64448         parentheses for clarity.
64449
64450 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64451
64452         * modules/bison-i18n (Depends-on): Add gettext.
64453
64454 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64455
64456         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64457         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64458         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64459         also add missing comma that caused broken test.
64460         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64461         stdlib.h, for `abort'.
64462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64463         variables.
64464         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64465         include unistd.h if present, for `rmdir'.
64466         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64467         variables.
64468         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64469         in the process include standard headers for prototypes.
64470         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64471         gets declared on GNU/Linux.
64472         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64473         unistd.h, for `rmdir'.
64474         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64475
64476         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64477         always true.
64478         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64479
64480         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64481
64482 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64483
64484         * gnulib-tool (func_version): Create output all at once.  This
64485         may help avoid triggering unnecessary SIGPIPEs, and at any
64486         rate it doesn't hurt.
64487
64488 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64489             Bruno Haible  <bruno@clisp.org>
64490
64491         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64492         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64493         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64494
64495         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64496         (gl_FUNC_VASPRINTF): Invoke it.
64497
64498 2006-09-22  Bruno Haible  <bruno@clisp.org>
64499
64500         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64501         getloadavg.c as first argument.
64502
64503 2006-09-22  Bruno Haible  <bruno@clisp.org>
64504
64505         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64506         at the beginning of the gl_INIT macro.
64507         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64508         gl_GETLOADAVG.
64509
64510 2006-09-22  Bruno Haible  <bruno@clisp.org>
64511
64512         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64513         module.
64514         Suggested by Ralf Wildenhues.
64515
64516 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64517
64518         Import this patch from libc:
64519
64520         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64521
64522         * lib/regex_internal.c (re_string_reconstruct): Handle
64523         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64524         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64525         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64526         re_string_context_at.
64527
64528         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64529         now requires it.
64530         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64531         gl_REGEX now does it for us.
64532         (gl_REGEX): Add test taken from
64533         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64534
64535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64536         Check that large offsets work.  Modernize Autoconf usages.
64537         Prefer "yes" to mean a good thing rather than a bad.
64538         Don't put "#define mkstemp" in config.h, as this might interfere
64539         with standard system headers that "#define mkstemp mkstemp64".
64540
64541         * modules/mkstemp (Depends-on): Add extensions, so that
64542         mkstemp is visible on some platforms.
64543         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64544         (Include): Change to "mkstemp.h" from <stdlib.h>.
64545         (Files): Add mkstemp.h.
64546
64547         * lib/mkstemp.h: New file, since some standard headers
64548         #define mkstemp.
64549         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64550         Include "mkstemp.h".
64551         Make the _LIBC code resemble glibc original more,
64552         e.g., use K&R style.
64553         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64554         (mkstemp): Remove, since mkstemp.h does this for us.
64555         * lib/stdlib--.h: Include mkstemp.h.
64556
64557         Import this patch from libc:
64558
64559         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64560
64561         * lib/tempname.c (__gen_tempname): Change attempts_min
64562         into a macro.  Use preprocessor to decide how to initialize
64563         attempts [Coverity CID 67].
64564
64565 2006-09-20  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/mkdtemp.c: Import from libc.
64568         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64569                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64570                 attempts_min into a macro.  Use preprocessor to decide how to
64571                 initialize attempts [Coverity CID 67].
64572         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64573                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64574                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64575
64576 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64577
64578         * gnulib-tool (func_exit): New function, to allow to pass the
64579         exit status portably through the trap.  Use everywhere.
64580         (--help, --version): Signal a write error.
64581         (trap): catch SIGPIPE, for write errors.
64582         Exit at the end of the trap, with the correct exit status.
64583
64584 2006-09-19  Karl Berry  <karl@gnu.org>
64585
64586         * doc/gnulib.texi: note about the license texinfo files.
64587
64588 2006-09-19  Eric Blake  <ebb9@byu.net>
64589
64590         * gnulib-tool: Avoid space-tab.
64591
64592 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64593
64594         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64595         that prevented coreutils 6.1 from building.  Problem reported
64596         by Petter Reinholdtsen.
64597
64598 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * gnulib-tool (avoidlist): Fix typo that broke options like
64601         --avoid=lock that are used by coreutils bootstrap.
64602
64603 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64604
64605         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64606         more systematically.
64607
64608 2006-09-18  Jim Meyering  <jim@meyering.net>
64609
64610         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64611
64612 2006-09-18  Bruno Haible  <bruno@clisp.org>
64613
64614         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64615
64616 2006-09-18  Bruno Haible  <bruno@clisp.org>
64617
64618         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64619         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64620         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64621         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64622         * m4/gettext.m4: Require autoconf >= 2.52.
64623         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64624         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64625         of gl_cv_header_inttypes_h.
64626
64627 2006-09-18  Bruno Haible  <bruno@clisp.org>
64628
64629         * lib/javaversion.c: Include configmake.h.
64630
64631 2006-09-18  Bruno Haible  <bruno@clisp.org>
64632
64633         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64634         avoid that the while loops be executed in a subshell.
64635
64636 2006-09-18  Bruno Haible  <bruno@clisp.org>
64637
64638         * MODULES.html.sh (func_module): Break long lines.
64639         Suggested by Bruce Korb <bkorb@gnu.org>.
64640
64641 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64642
64643         Speed up by a factor of 1.12.
64644         * gnulib-tool (nl): New variable.
64645         (func_import): Rewrite include directive extraction to only read each
64646         directive once.
64647
64648 2006-09-17  Bruno Haible  <bruno@clisp.org>
64649
64650         * modules/javaversion (Makefile.am): Remove DEFS setting.
64651         (Depends-on): Add configmake, for PKGDATADIR definition.
64652
64653 2006-09-17  Bruno Haible  <bruno@clisp.org>
64654
64655         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64656
64657 2006-09-17  Bruno Haible  <bruno@clisp.org>
64658
64659         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64660         (func_modules_transitive_closure, func_modules_add_dummy,
64661         func_modules_to_filelist, func_import, func_create_testdir,
64662         func_create_megatestdir, ...): Use it wherever possible.
64663         Suggested by Ralf Wildenhues.
64664
64665 2006-09-16  Karl Berry  <karl@gnu.org>
64666
64667         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64668         to avoid sectioning errors.
64669         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64670         [ifinfo]: blank line after @center-ed titles.
64671         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64672         Spell FSF address consistently with others.
64673         (These changes approved by rms.)
64674
64675 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64676
64677         Speed up by a factor of 1.61.
64678         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64679         already checked module names again.
64680
64681 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64682
64683         Speed up by a factor of 1.13.
64684         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64685         for new_files, and the input to func_add_or_update.
64686
64687 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64688
64689         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64690         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64691
64692 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         * modules/mkancesdirs (Depends-on): Add fcntl.
64695         * modules/savewd: New file.
64696         * MODULES.html.sh (File system functions): Add savewd.
64697
64698         * modules/configmake (Makefile.am): Add support for the
64699         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64700
64701 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64702
64703         * m4/savewd.m4: New file.
64704
64705 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64708         (dirchownmod): New arg FD.  All callers changed.
64709         Use FD rather than opening the directory ourself, as opening is
64710         now the caller's responsibility.
64711         * lib/dirchownmod.h: Likewise.
64712         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64713         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64714         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64715         (test_dir): Remove.
64716         (mkancesdirs): Return length of prefix of FILE that has already
64717         been made, or -2 if there is a child doing the work.  Redo
64718         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64719         ".", and treat ".." specially since it might stray back into
64720         already-created areas.  Use a subprocess if necessary.  New arg
64721         WD; all users changed.  MAKE_DIR function should now return 1
64722         if it creates a directory that is not readable.  Return -2 if
64723         a child process is spun off.
64724         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64725         Adjust signature to match code.
64726         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64727         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64728         all users changed.
64729         * lib/savewd.c, lib/savewd.h: New files.
64730
64731 2006-09-15  Jim Meyering  <jim@meyering.net>
64732
64733         * modules/rename-dest-slash: New module.
64734         * MODULES.html.sh (posix_compat): Add it here.
64735
64736         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64737
64738 2006-09-15  Jim Meyering  <jim@meyering.net>
64739
64740         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64741         file.
64742
64743         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64744
64745 2006-09-15  Jim Meyering  <jim@meyering.net>
64746
64747         * lib/rename-dest-slash.c (has_trailing_slash): Use
64748         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64749         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64750         test before testing whether SRC is a directory.
64751         Suggestions from Bruno Haible.
64752
64753         Avoid a warning about an unused variable.
64754         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64755         into the #ifdef block where it's used.
64756
64757         * lib/rename-dest-slash.c: New file.
64758
64759 2006-09-14  Bruno Haible  <bruno@clisp.org>
64760
64761         * lib/allocsa.c: Include <config.h> unconditionally.
64762         * lib/asnprintf.c: Likewise.
64763         * lib/asprintf.c: Likewise.
64764         * lib/c-strcasecmp.c: Likewise.
64765         * lib/c-strcasestr.c: Likewise.
64766         * lib/c-strncasecmp.c: Likewise.
64767         * lib/c-strstr.c: Likewise.
64768         * lib/classpath.c: Likewise.
64769         * lib/clean-temp.c: Likewise.
64770         * lib/concatpath.c: Likewise.
64771         * lib/copy-file.c: Likewise.
64772         * lib/csharpcomp.c: Likewise.
64773         * lib/csharpexec.c: Likewise.
64774         * lib/execute.c: Likewise.
64775         * lib/fatal-signal.c: Likewise.
64776         * lib/findprog.c: Likewise.
64777         * lib/fwriteerror.c: Likewise.
64778         * lib/gl_array_list.c: Likewise.
64779         * lib/gl_array_oset.c: Likewise.
64780         * lib/gl_avltree_list.c: Likewise.
64781         * lib/gl_avltree_oset.c: Likewise.
64782         * lib/gl_avltreehash_list.c: Likewise.
64783         * lib/gl_carray_list.c: Likewise.
64784         * lib/gl_linked_list.c: Likewise.
64785         * lib/gl_linkedhash_list.c: Likewise.
64786         * lib/gl_list.c: Likewise.
64787         * lib/gl_oset.c: Likewise.
64788         * lib/gl_rbtree_list.c: Likewise.
64789         * lib/gl_rbtree_oset.c: Likewise.
64790         * lib/gl_rbtreehash_list.c: Likewise.
64791         * lib/imaxabs.c: Likewise.
64792         * lib/imaxdiv.c: Likewise.
64793         * lib/javacomp.c: Likewise.
64794         * lib/javaexec.c: Likewise.
64795         * lib/javaversion.c: Likewise.
64796         * lib/linebreak.c: Likewise.
64797         * lib/localcharset.c: Likewise.
64798         * lib/lock.c: Likewise.
64799         * lib/mbchar.c: Likewise.
64800         * lib/mbswidth.c: Likewise.
64801         * lib/mkdtemp.c: Likewise.
64802         * lib/pipe.c: Likewise.
64803         * lib/printf-args.c: Likewise.
64804         * lib/printf-parse.c: Likewise.
64805         * lib/progname.c: Likewise.
64806         * lib/progreloc.c: Likewise.
64807         * lib/readlink.c: Likewise.
64808         * lib/sh-quote.c: Likewise.
64809         * lib/stpcpy.c: Likewise.
64810         * lib/stpncpy.c: Likewise.
64811         * lib/strcasecmp.c: Likewise.
64812         * lib/strcasestr.c: Likewise.
64813         * lib/strcspn.c: Likewise.
64814         * lib/striconv.c: Likewise.
64815         * lib/strncasecmp.c: Likewise.
64816         * lib/strnlen1.c: Likewise.
64817         * lib/strstr.c: Likewise.
64818         * lib/strtok_r.c: Likewise.
64819         * lib/tls.c: Likewise.
64820         * lib/tmpdir.c: Likewise.
64821         * lib/unicodeio.c: Likewise.
64822         * lib/unsetenv.c: Likewise.
64823         * lib/vasnprintf.c: Likewise.
64824         * lib/vasprintf.c: Likewise.
64825         * lib/wait-process.c: Likewise.
64826         * lib/xallocsa.c: Likewise.
64827         * lib/xsetenv.c: Likewise.
64828         * lib/xstriconv.c: Likewise.
64829
64830 2006-09-13  Simon Josefsson  <jas@extundo.com>
64831
64832         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64833         that internally, suggested by Ralf Wildenhues
64834         <Ralf.Wildenhues@gmx.de>.
64835
64836 2006-09-13  Simon Josefsson  <jas@extundo.com>
64837
64838         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64839         @LIBOBJS@.
64840         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64841
64842 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64845         longer worry about uses that don't define HAVE_CONFIG_H.
64846         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64847         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64848         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64849         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64850         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64851         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64852         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64853         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64854         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64855         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64856         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64857         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64858         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64859         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64860         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64861         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64862         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64863         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64864         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64865         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64866         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64867         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64868         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64869         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64870         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64871         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64872         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64873         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64874         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64875         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64876         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64877         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64878         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64879         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64880         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64881         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64882         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64883         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64884         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64885         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64886         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64887         Likewise.
64888
64889 2006-09-13  Eric Blake  <ebb9@byu.net>
64890
64891         * lib/getopt.c: Fix typo in last commit.
64892
64893 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64894
64895         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64896         dgettext.
64897
64898 2006-09-12  Jim Meyering  <jim@meyering.net>
64899
64900         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64901         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64902         Reported by Nelson H. F. Beebe.
64903
64904 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64905
64906         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64907         program_invocation_name and program_invocation_short_name are
64908         initialized.
64909         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64910         and program_invocation_short_name to argp.h, so they are visible
64911         to user programs.
64912         * lib/argp.h: Likewise
64913
64914 2006-09-10  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64917         m4/inttypes_h.m4, m4/uintmax_t.m4.
64918
64919 2006-09-10  Bruno Haible  <bruno@clisp.org>
64920
64921         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64922         gl_AC_TYPE_UINTMAX_T.
64923
64924 2006-09-10  Bruno Haible  <bruno@clisp.org>
64925
64926         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64927
64928 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64929
64930         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64931         convention.  Text proposed by Bruno Haible.
64932         (struct argp_option): Document the use of N_() wrappers.
64933
64934         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64935         '\v', and translate the two parts separately, instead of feeding
64936         the whole string to gettext.  This allows to exclude
64937         '\v' from the strings visible to the translator by writing doc
64938         strings as N_("..") "\v" N_("..").
64939
64940 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * config/srclist.txt: Undo latest change; the bug was fixed.
64943
64944 2006-09-09  Bruno Haible  <bruno@clisp.org>
64945
64946         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64947         assignments if building a library without libtool.
64948         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64949         in func_emit_lib_Makefile_am.
64950         (func_import): When building a static library libfoo.a, arrange to
64951         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64952         (func_create_testdir): Likewise.
64953         * modules/gc (configure.ac, Makefile.am): If building statically,
64954         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64955         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64956         * modules/striconv (configure.ac, Makefile.am): Likewise.
64957         Based on a suggestion by Ralf Wildenhues.
64958
64959 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64960
64961         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64962         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64963         Also:
64964
64965         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64966         Add year_2050_test to catch glibc bug 2821
64967         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64968
64969         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64970         Prefer #ifdef to #if.
64971
64972         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64973         Return from 'main' instead of calling 'exit'.
64974
64975 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64978         returned the maximum time_t value rather than (time_t) -1.
64979         Problem originally reported by William Bardwell
64980         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64981
64982         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64983         Moved to here ...
64984         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64985         ... from here.
64986
64987 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64988
64989         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64990         2821 is fixed.
64991
64992 2006-09-08  Jim Meyering  <jim@meyering.net>
64993
64994         Don't make generated files read-only.  That would bother too many
64995         people.  However, do retain the ability to work when targets are
64996         read-only: remove the destination and temporary files before writing
64997         them (when generated via sed or echo), or by using the -f option for
64998         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64999         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65000         * modules/byteswap, modules/configmake, modules/fcntl:
65001         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65002         * modules/localcharset, modules/netinet_in, modules/poll:
65003         * modules/stdbool, modules/stdint, modules/sys_select:
65004         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65005
65006 2006-09-08  Jim Meyering  <jim@meyering.net>
65007
65008         Avoid new build failure on FreeBSD 6.0.
65009         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65010         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65011         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65012
65013 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65014
65015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65016
65017 2006-09-07  Jim Meyering  <jim@meyering.net>
65018
65019         Fix global typo in last change: use chmod u-w, not chmod u-x.
65020         Spotted by Paul Eggert and Bruce Korb.
65021         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65022         * modules/byteswap, modules/configmake, modules/fcntl:
65023         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65024         * modules/localcharset, modules/netinet_in, modules/poll:
65025         * modules/stdbool, modules/stdint, modules/sys_select:
65026         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65027
65028 2006-09-06  Jim Meyering  <jim@meyering.net>
65029
65030         Make generated files be read-only.
65031         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65032         Ensure that each generated file is now read-only.
65033         * modules/argz: Likewise.
65034         * modules/arpa_inet: Likewise.
65035         * modules/byteswap: Likewise.
65036         * modules/configmake: Likewise.
65037         * modules/fcntl: Likewise.
65038         * modules/fnmatch: Likewise.
65039         * modules/getopt: Likewise.
65040         * modules/glob: Likewise.
65041         * modules/inttypes: Likewise.
65042         * modules/netinet_in: Likewise.
65043         * modules/poll: Likewise.
65044         * modules/stdbool: Likewise.
65045         * modules/stdint: Likewise.
65046         * modules/sys_select: Likewise.
65047         * modules/sys_socket: Likewise.
65048         * modules/sys_stat: Likewise.
65049         * modules/sysexits: Likewise.
65050         * modules/localcharset: Same as above, but continue using temporary
65051         file named "t-$@" (why different?) rather than the "$@-t" used
65052         everywhere else.
65053
65054         * modules/sysexits (Makefile.am): Replace literal occurrences
65055         of "sysexit.h" more readable, and more consistent, "$@".
65056
65057 2006-09-06  Bruno Haible  <bruno@clisp.org>
65058
65059         * modules/striconv: New file.
65060         * modules/xstriconv: New file.
65061         * MODULES.html.sh (Internationalization functions): Add striconv,
65062         xstriconv.
65063
65064 2006-09-06  Bruno Haible  <bruno@clisp.org>
65065
65066         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65067         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65068         not using libtool correctly.
65069
65070 2006-09-06  Bruno Haible  <bruno@clisp.org>
65071
65072         * lib/striconv.h: New file.
65073         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65074         iconvstring.c.
65075         * lib/xstriconv.h: New file.
65076         * lib/xstriconv.c: New file.
65077
65078 2006-09-06  Bruno Haible  <bruno@clisp.org>
65079
65080         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65081         lib_..._LDFLAGS.
65082
65083 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65084
65085         * lib/argz_.h: Sync from Libtool.
65086
65087         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65088                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65089
65090         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65091
65092 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65093
65094         * modules/trim: New file.
65095
65096 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65097
65098         * lib/trim.h: New file.
65099         * lib/trim.c: New file.
65100
65101 2006-09-05  Bruno Haible  <bruno@clisp.org>
65102
65103         * MODULES.html.sh (String handling): Add trim.
65104
65105 2006-09-04  Karl Berry  <karl@gnu.org>
65106
65107         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65108         until next release.
65109
65110 2006-09-03  Bruno Haible  <bruno@clisp.org>
65111
65112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65113         correctly.
65114
65115 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65116
65117         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65118         not gl_GETLOADAVG.  Omit unneeded semicolons.
65119         Problems reported by Ralf Wildenhues in
65120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65121         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65122         at the end, which is the usual gnulib style.
65123
65124         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65125         of doing all the work ourselves.
65126         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65127         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65128
65129 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65130
65131         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65132         Problem reported by Ralf Wildenhues in
65133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65134
65135         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65136         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65137
65138 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65141         yesterday's patch by changing test -n to test -z.
65142
65143 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65146         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65147         the former is now obsolescent.
65148
65149         * modules/chdir-long (Depends-on): Add fcntl.
65150
65151 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65154         obsolescent, and programs should use gnulib instead.
65155         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65156         but with prefixes changed.
65157
65158 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65161         or stdbool.h, because they might not exist while configuring.
65162
65163         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65164         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65165         does that for us.
65166         (O_DIRECTORY): Remove.
65167
65168 2006-08-31  Eric Blake  <ebb9@byu.net>
65169
65170         * gnulib-tool: Don't let emacs change spaces to TAB.
65171
65172 2006-08-31  Bruno Haible  <bruno@clisp.org>
65173
65174         * gnulib-tool: When calling func_import more than once, do it in a
65175         subshell.
65176         Reported by Eric Blake <ebb9@byu.net>.
65177
65178 2006-08-31  Bruno Haible  <bruno@clisp.org>
65179
65180         * gnulib-tool (nl): Remove variable.
65181         (sed_transform_lib_file): Use more robust test for config-h module.
65182         (func_import): Fix typo in 2006-08-25 patch.
65183
65184 2006-08-31  Bruno Haible  <bruno@clisp.org>
65185
65186         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65187         specified, augment Makefile.am variables instead of assigning them.
65188
65189 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         Work around a bug in both the Linux and SunOS 64-bit kernels:
65192         nanosleep mishandles sleeps for longer than 2**31 seconds.
65193         Problem reported by Frank v Waveren in
65194         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65196         Check for nanosleep bug.
65197         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65198
65199 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         Work around a bug in both the Linux and SunOS 64-bit kernels:
65202         nanosleep mishandles sleeps for longer than 2**31 seconds.
65203         Problem reported by Frank v Waveren in
65204         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65205         * lib/nanosleep.c (BILLION): New constant.
65206         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65207         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65208         implementation.
65209
65210 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65211
65212         * modules/nanosleep (Depends-on): Add gettime.
65213
65214 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65215         and Simon Josefsson  <jas@extundo.com>
65216         and Oskar Liljeblad  <oskar@osk.mine.nu>
65217
65218         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65219         * gnulib-tool (func_import): New license type 'unmodifiable license
65220         text'.
65221         * modules/fdl: Use it.  Longer description.
65222         * module/gpl, module/lgpl: New files.
65223
65224 2006-08-30  Jim Meyering  <jim@meyering.net>
65225
65226         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65227         shadowing the parameter.
65228
65229 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65230
65231         Sync from Libtool:
65232
65233         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65234
65235         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65236         sharing with gnulib.  Report by Eric Blake.
65237
65238 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65239
65240         * modules/isapipe: New file.
65241         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65242
65243 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * modules/configmake (Makefile.am): Add a comment, and omit
65246         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65247         by Bruno Haible.
65248
65249 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65250
65251         * m4/isapipe.m4: New file.
65252
65253 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65254
65255         * lib/isapipe.c, lib/isapipe.h: New files.
65256
65257 2006-08-29  Jim Meyering  <jim@meyering.net>
65258
65259         * modules/configmake (Makefile.am): Make configmake.h depend on
65260         Makefile.  Otherwise, a stale configmake.h could hang around.
65261
65262 2006-08-29  Eric Blake  <ebb9@byu.net>
65263
65264         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65265         resolution of upstream bug 3044.
65266
65267 2006-08-29  Bruno Haible  <bruno@clisp.org>
65268
65269         * modules/localcharset (Depends-on): Add configmake.
65270         (Makefile.am): Remove setting of LIBDIR through DEFS.
65271
65272 2006-08-29  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65275         defined.
65276
65277 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65278
65279         * modules/fcntl: New file.
65280         * modules/chdir-safer (Depends-on): Add fcntl.
65281         * modules/fts: Likewise.
65282         * modules/mkdir-p: Likewise.
65283
65284         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65285         This undoes the most recent change, since we're now addressing the
65286         problem in a different way.
65287
65288         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65289         into output, since the output might be called Makefile.am even
65290         if $makefile_name is something different.
65291         (func_import): Use $makefile_am rather than
65292         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65293         empty.
65294
65295         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65296
65297 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65298
65299         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65300         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65301         recent change to stdint.m4, since we're now addressing the problem in a
65302         different way.
65303
65304 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         * m4/fcntl_h.m4: New file.
65307
65308 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * lib/fcntl_.h: New file.
65311         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65312         the fcntl module.
65313         * lib/dirchownmod.c: Likewise.
65314         * lib/fts.c: Likewise.
65315
65316         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65317         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65318         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65319         just before including <inttypes.h>, to avoid circular inclusion.
65320
65321 2006-08-28  Jim Meyering  <jim@meyering.net>
65322
65323         * doc/visibility.texi: Actually read and correct the grammar of the
65324         sentence affected by yesterday's change.
65325
65326 2006-08-28  Eric Blake  <ebb9@byu.net>
65327
65328         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65329         needs wrapper.
65330
65331 2006-08-28  Eric Blake  <ebb9@byu.net>
65332
65333         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65334
65335 2006-08-28  Eric Blake  <ebb9@byu.net>
65336
65337         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65338
65339 2006-08-28  Bruno Haible  <bruno@clisp.org>
65340
65341         * modules/c-strstr: New file, from GNU gettext.
65342         * MODULES.html.sh (String handling): Add c-strstr.
65343
65344 2006-08-28  Bruno Haible  <bruno@clisp.org>
65345
65346         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65347         macros.
65348         Reported by Eric Blake.
65349
65350 2006-08-28  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65353         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65354         * lib/vasprintf.c: Include errno.h, limits.h.
65355         (EOVERFLOW): New fallback definition.
65356         (vasprintf): Test here whether the string length is > INT_MAX.
65357         * lib/vsnprintf.c: Include errno.h, limits.h.
65358         (EOVERFLOW): New fallback definition.
65359         (vsnprintf): Fix bug when generated string was too long for the buffer.
65360         Test here whether the string length is > INT_MAX.
65361
65362 2006-08-28  Bruno Haible  <bruno@clisp.org>
65363
65364         * lib/inttypes_.h (SCNX*): Remove definitions.
65365         Reported by Eric Blake.
65366
65367 2006-08-28  Bruno Haible  <bruno@clisp.org>
65368
65369         * lib/c-strstr.h: New file, from GNU gettext.
65370         * lib/c-strstr.c: New file, from GNU gettext.
65371
65372 2006-08-28  Bruno Haible  <bruno@clisp.org>
65373
65374         * gnulib-tool: Reorder some statements.
65375
65376 2006-08-28  Bruno Haible  <bruno@clisp.org>
65377
65378         * gnulib-tool: New option --makefile-name.
65379         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65380         $makefile_name.
65381         (func_import): Write $makefile_name to the cache file, and read it from
65382         there unless explicitly specified. Use $makefile_name as file name
65383         instead of Makefile.am. Adjust the recommendations accordingly.
65384
65385 2006-08-28  Bruno Haible  <bruno@clisp.org>
65386
65387         * gnulib-tool (func_verify_module): Check against misapplying patch.
65388
65389 2006-08-28  Bruno Haible  <bruno@clisp.org>
65390
65391         * gnulib-tool (func_relativize, func_relconcat): New functions.
65392         Give an error if --local-dir is given with --update.
65393         Remove trailing slashes from $local_gnulib_dir.
65394         (func_import): Store the relativized $local_gnulib_dir in
65395         gnulib-cache.m4, and read it from there if not specified explicitly.
65396
65397 2006-08-28  Bruno Haible  <bruno@clisp.org>
65398
65399         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65400         is the current directory. Respect also $local_gnulib_dir.
65401
65402 2006-08-28  Bruno Haible  <bruno@clisp.org>
65403             Simon Josefsson  <jas@extundo.com>
65404
65405         BeOS portability.
65406         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65407
65408 2006-08-27  Jim Meyering  <jim@meyering.net>
65409
65410         * doc/visibility.texi: Remove duplicate word: "pointer".
65411
65412 2006-08-26  Bruno Haible  <bruno@clisp.org>
65413
65414         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65415         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65416         (Makefile.am): Create inttypes.h from inttypes_.h.
65417         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65418
65419         * modules/imaxabs: New file.
65420
65421         * modules/imaxdiv: New file.
65422
65423 2006-08-26  Bruno Haible  <bruno@clisp.org>
65424
65425         * m4/inttypes.m4: New file.
65426         * m4/_inttypes_h.m4: Remove file.
65427         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65428         PRI_MACROS_BROKEN.
65429         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65430
65431         * m4/imaxabs.m4: New file.
65432
65433         * m4/imaxdiv.m4: New file.
65434
65435 2006-08-26  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/inttypes_.h: New file.
65438         * lib/inttypes.h: Remove file.
65439         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65440
65441         * lib/imaxabs.c: New file.
65442
65443         * lib/imaxdiv.c: New file.
65444
65445 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65446
65447         New config-h module, so that "make" output needn't be cluttered
65448         by -DHAVE_CONFIG_H.
65449         * MODULES.html.sh (Support for building libraries and executables):
65450         Add config-h.
65451         * modules/config-h: New file.
65452         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65453         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65454         the config-h module is used.
65455
65456         New configmake module, so that "make" output needn't be cluttered
65457         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65458         * MODULES.html.sh (Support for building libraries and executables):
65459         Add configmake.
65460         * modules/configmake: New file.
65461
65462 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * m4/config-h.m4: New file.
65465
65466 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * config/srclist.txt: Add elisp-comp.
65469
65470 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         * MODULES.html.sh (Support for building libraries and executables):
65473         Add elisp-comp.
65474         * build-aux/elisp-comp: New file.
65475         * modules/elisp-comp: New file.
65476
65477 2006-08-24  Bruno Haible  <bruno@clisp.org>
65478
65479         * gnulib-tool (func_create_testdir): Use non-default values of
65480         sourcebase and m4base.
65481
65482 2006-08-24  Bruno Haible  <bruno@clisp.org>
65483
65484         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65485         HTML structure.
65486
65487 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * modules/openat (Depends-on): Add lchown.
65490
65491 2006-08-23  Bruno Haible  <bruno@clisp.org>
65492
65493         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65494         of gl_LOCK_EARLY instead of gl_LOCK.
65495
65496 2006-08-23  Bruno Haible  <bruno@clisp.org>
65497
65498         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65499         on OSF/1 to no.
65500         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65501
65502 2006-08-23  Bruno Haible  <bruno@clisp.org>
65503
65504         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65505         as unusable.
65506
65507         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65508         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65509         (gl_LOCK): New macro.
65510
65511 2006-08-22  Simon Josefsson  <jas@extundo.com>
65512
65513         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65514         to md5 module.
65515
65516 2006-08-22  Simon Josefsson  <jas@extundo.com>
65517
65518         * MODULES.html.sh: Add "Support for maintaining and release
65519         projects".
65520
65521         * build-aux/gnupload: New file, from coreutils.
65522
65523 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65524
65525         Avoid the need for AC_LIBSOURCES in m4 macros.
65526         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65527         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65528         * modules/check-version (EXTRA_DIST): Add check-version.h.
65529         * modules/crc (EXTRA_DIST): Add crc.h.
65530         * modules/des (EXTRA_DIST): Add des.h.
65531         * modules/gc (EXTRA_DIST): Add gc.h.
65532         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65533         * modules/getline (EXTRA_DIST): Add getline.h.
65534         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65535         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65536         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65537         * modules/md2 (EXTRA_DIST): Add md2.h.
65538         * modules/md4 (EXTRA_DIST): Add md4.h.
65539         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65540         * modules/read-file (EXTRA_DIST): Add read-file.h.
65541         * modules/readline (EXTRA_DIST): Add readline.h.
65542         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65543         rijndael-api-fst.h.
65544
65545 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * m4/rijndael.m4 (gl_ARCFOUR):
65548         * m4/arctwo.m4 (gl_ARCTWO):
65549         * m4/check-version.m4 (gl_CHECK_VERSION):
65550         * m4/crc.m4 (gl_CRC):
65551         * m4/des.m4 (gl_DES):
65552         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65553         * m4/gc.m4 (gl_GC):
65554         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65555         * m4/getline.m4 (gl_FUNC_GETLINE):
65556         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65557         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65558         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65559         * m4/md2.m4 (gl_MD2):
65560         * m4/md4.m4 (gl_MD4):
65561         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65562         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65563         * m4/readline.m4 (gl_FUNC_READLINE):
65564         * m4/rijndael.m4 (gl_RIJNDAEL):
65565         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65566         to get the necessary .h files and whatnot.
65567
65568 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65571         gnulib rather than the other way around.
65572         * config/srclistvars.sh (COREUTILS): Remove.
65573
65574 2006-08-22  Jim Meyering  <jim@meyering.net>
65575
65576         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65577
65578         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65579
65580 2006-08-22  Eric Blake  <ebb9@byu.net>
65581
65582         * modules/regexprops-generic: New file.
65583         * MODULES.html.sh (Support for building documentation): List it.
65584
65585 2006-08-22  Eric Blake  <ebb9@byu.net>
65586
65587         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65588         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65589         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65590         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65591
65592 2006-08-22  Bruno Haible  <bruno@clisp.org>
65593
65594         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65595         and lib_LTLIBRARIES like the other lib_* variables.
65596
65597 2006-08-22  Bruno Haible  <bruno@clisp.org>
65598
65599         * build-aux/x-to-1.in: New file, from GNU gettext.
65600
65601 2006-08-22  Bruno Haible  <bruno@clisp.org>
65602
65603         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65604         <utmpx.h> exists.
65605
65606 2006-08-22  Bruno Haible  <bruno@clisp.org>
65607
65608         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65609         <utmpx.h> exists.
65610
65611 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         BeOS portability.
65614         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65615         exist.
65616         Problem reported by Bruno Haible.
65617
65618 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65619
65620         Avoid the need for AC_LIBSOURCES in m4 macros.
65621         * modules/acl (EXTRA_DIST): Add acl.h.
65622         * modules/argmatch (Files): Add m4/argmatch.m4.
65623         (configure.ac): Add gl_ARGMATCH.
65624         (EXTRA_DIST): Renamed from lib_SOURCES, for
65625         consistency with the other modules.  Remove argmatch.c.
65626         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65627         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65628         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65629         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65630         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65631         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65632         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65633         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65634         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65635         * modules/closeout (EXTRA_DIST): Add closeout.h.
65636         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65637         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65638         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65639         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65640         dirname.h; remove basename.c and stripslash.c.
65641         * modules/exclude (EXTRA_DIST): Add exclude.h.
65642         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65643         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65644         * modules/file-type (EXTRA_DIST): Add file-type.h.
65645         * modules/filemode (EXTRA_DIST): Add filemode.h.
65646         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65647         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65648         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65649         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65650         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65651         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65652         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65653         * modules/getdate (EXTRA_DIST): Add getdate.c.
65654         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65655         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65656         * modules/getpass (EXTRA_DIST): Add getpass.h.
65657         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65658         * modules/group-member (EXTRA_DIST): Add group-member.h.
65659         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65660         * modules/hash (EXTRA_DIST): Add hash.h.
65661         * modules/human (EXTRA_DIST): Add human.h.
65662         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65663         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65664         * modules/lchown (EXTRA_DIST): Add lchown.h.
65665         * modules/long-options (EXTRA_DIST): Add long-options.h.
65666         * modules/lstat (EXTRA_DIST): Add lstat.h.
65667         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65668         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65669         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65670         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65671         * modules/memxor (EXTRA_DIST): Add memxor.h.
65672         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65673         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65674         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65675         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65676         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65677         * modules/physmem (EXTRA_DIST): Add physmem.h.
65678         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65679         * modules/posixver (EXTRA_DIST): Add posixver.h.
65680         * modules/quote (EXTRA_DIST): Add quote.h.
65681         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65682         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65683         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65684         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65685         regex_internal.h regexec.c.
65686         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65687         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65688         * modules/same (EXTRA_DIST): Add same.h.
65689         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65690         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65691         * modules/savedir (EXTRA_DIST): Add savedir.h.
65692         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65693         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65694         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65695         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65696         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65697         * modules/strdup (EXTRA_DIST): Add strdup.h.
65698         * modules/strftime (EXTRA_DIST): Add strftime.h.
65699         * modules/strndup (EXTRA_DIST): Add strndup.h.
65700         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65701         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65702         * modules/time_r (EXTRA_DIST): Add time_r.h.
65703         * modules/timespec (EXTRA_DIST): Add timespec.h.
65704         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65705         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65706         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65707         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65708         * modules/userspec (EXTRA_DIST): Add userspec.h.
65709         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65710         * modules/utimens (EXTRA_DIST): Add utimens.h.
65711         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65712         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65713         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65714         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65715         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65716         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65717         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65718         * modules/yesno (EXTRA_DIST): Add yesno.h.
65719
65720 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65723
65724         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65725         * m4/dev-ino.m4, same-inode.m4: Remove.
65726
65727         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65728         * m4/acl.m4 (AC_FUNC_ACL):
65729         * m4/backupfile.m4 (gl_BACKUPFILE):
65730         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65731         * m4/canon-host.m4 (gl_CANON_HOST):
65732         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65733         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65734         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65735         * m4/cloexec.m4 (gl_CLOEXEC):
65736         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65737         * m4/closeout.m4 (gl_CLOSEOUT):
65738         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65739         * m4/dirname.m4 (gl_DIRNAME):
65740         * m4/exclude.m4 (gl_EXCLUDE):
65741         * m4/exitfail.m4 (gl_EXITFAIL):
65742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65743         * m4/file-type.m4 (gl_FILE_TYPE):
65744         * m4/filemode.m4 (gl_FILEMODE):
65745         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65746         * m4/fpending.m4 (gl_FUNC_FPENDING):
65747         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65748         * m4/fts.m4 (gl_FUNC_FTS):
65749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65750         * m4/getdate.m4 (gl_GETDATE):
65751         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65752         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65753         * m4/getpass.m4 (gl_FUNC_GETPASS):
65754         * m4/gettime.m4 (gl_GETTIME):
65755         * m4/getugroups.m4 (gl_GETUGROUPS):
65756         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65757         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65758         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65759         * m4/hash.m4 (gl_HASH):
65760         * m4/idcache.m4 (gl_IDCACHE):
65761         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65762         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65763         * m4/long-options.m4 (gl_LONG_OPTIONS):
65764         * m4/lstat.m4 (gl_FUNC_LSTAT):
65765         * m4/md5.m4 (gl_MD5):
65766         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65767         * m4/memcoll.m4 (gl_MEMCOLL):
65768         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65769         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65770         * m4/memxor.m4 (gl_MEMXOR):
65771         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65772         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65773         * m4/modechange.m4 (gl_MODECHANGE):
65774         * m4/mountlist.m4 (gl_MOUNTLIST):
65775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65776         * m4/openat.m4 (gl_FUNC_OPENAT):
65777         * m4/pathmax.m4 (gl_PATHMAX):
65778         * m4/physmem.m4 (gl_PHYSMEM):
65779         * m4/posixtm.m4 (gl_POSIXTM):
65780         * m4/posixver.m4 (gl_POSIXVER):
65781         * m4/quote.m4 (gl_QUOTE):
65782         * m4/quotearg.m4 (gl_QUOTEARG):
65783         * m4/readtokens.m4 (gl_READTOKENS):
65784         * m4/readutmp.m4 (gl_READUTMP):
65785         * m4/regex.m4 (gl_REGEX):
65786         * m4/safe-read.m4 (gl_SAFE_READ):
65787         * m4/safe-write.m4 (gl_SAFE_WRITE):
65788         * m4/same.m4 (gl_SAME):
65789         * m4/save-cwd.m4 (gl_SAVE_CWD):
65790         * m4/savedir.m4 (gl_SAVEDIR):
65791         * m4/settime.m4 (gl_SETTIME):
65792         * m4/sha1.m4 (gl_SHA1):
65793         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65794         * m4/stat-macros.m4 (gl_STAT_MACROS):
65795         * m4/stat-time.m4 (gl_STAT_TIME):
65796         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65797         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65798         * m4/strdup.m4 (gl_FUNC_STRDUP):
65799         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65800         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65801         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65802         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65803         * m4/time_r.m4 (gl_TIME_R):
65804         * m4/timespec.m4 (gl_TIMESPEC):
65805         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65806         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65807         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65808         * m4/userspec.m4 (gl_USERSPEC):
65809         * m4/utimecmp.m4 (gl_UTIMECMP):
65810         * m4/utimens.m4 (gl_UTIMENS):
65811         * m4/xalloc.m4 (gl_XALLOC):
65812         * m4/xgetcwd.m4 (gl_XGETCWD):
65813         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65814         * m4/xreadlink.m4 (gl_XREADLINK):
65815         * m4/xstrtod.m4 (gl_XSTRTOD):
65816         * m4/yesno.m4 (gl_YESNO):
65817         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65818         to get the necessary .h files and whatnot.
65819
65820 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65821             Bruno Haible  <bruno@clisp.org>
65822
65823         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65824         /bin/sh understanding of '!' conditional negation.
65825
65826 2006-08-21  Jim Meyering  <jim@meyering.net>
65827
65828         * modules/openat (Depends-on): Really alphabetize.
65829
65830         * modules/acl (Depends-on): Add error and quote.
65831
65832         * check-module (find_included_lib_files): Add at-func.c to the
65833         ok-to-include-more-than-once white list.
65834
65835         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65836
65837 2006-08-21  Bruno Haible  <bruno@clisp.org>
65838
65839         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65840         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65841         Reported by Martin Lambers <marlam@marlam.de>.
65842
65843 2006-08-21  Bruno Haible  <bruno@clisp.org>
65844
65845         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65846         specify an installation location, don't emit a noinst_LIBRARIES or
65847         noinst_LTLIBRARIES assignment.
65848
65849 2006-08-21  Bruno Haible  <bruno@clisp.org>
65850
65851         BeOS portability.
65852         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65853         BeOS has mbrtowc() but no <wctype.h>.
65854
65855 2006-08-21  Bruno Haible  <bruno@clisp.org>
65856
65857         BeOS portability.
65858         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65859         exist.
65860
65861 2006-08-21  Bruno Haible  <bruno@clisp.org>
65862
65863         BeOS portability.
65864         * lib/mbchar.h: Include <wctype.h> only if it exists.
65865
65866 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         Remove files that are no longer needed by their respective modules.
65869         * m4/obstack.m4: Remove.
65870         * m4/strerror_r.m4: Remove.
65871         * m4/uint32_t.m4: Remove.
65872         * m4/uintptr_t.m4: Remove.
65873         * m4/ullong_max.m4: Remove.
65874         * m4/xstrtoimax.m4: Remove.
65875         * m4/xstrtoumax.m4: Remove.
65876
65877         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65878         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65879         dependencies now capture this.
65880
65881         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65882         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65883         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65884         * m4/human.m4 (gl_HUMAN): Likewise.
65885         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65886         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65887
65888         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65889
65890         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65891         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65892         stdint.
65893         * m4/human.m4 (gl_HUMAN): Likewise.
65894         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65895         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65896         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65897         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65898         * m4/xstrtol (gl_XSTRTOL): Likewise.
65899
65900         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65901         AC_TYPE_LONG_LONG_INT.
65902         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65903         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65904         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65905         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65906
65907         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65908         on stdbool.
65909
65910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65911         (gl_PREREQ_XSTRTOUL): Remove.
65912
65913         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65914
65915         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65916         mode.
65917
65918 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         Add and change modules to make it easier for coreutils to use
65921         gnulib-tool.
65922         * modules/backupfile (Files): Remove m4/d-ino.m4.
65923         (Depends-on): Add d-ino.
65924         * modules/cycle-check (Depends-on): Add stdint.
65925         (lib_SOURCES): Add cycle-check.h.
65926         * modules/d-ino: New module.
65927         * modules/d-type: New module.
65928         * modules/error (Files): Remove m4/strerror_r.m4.
65929         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65930         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65931         m4/inttypes_h.m4, m4/uintmax_t.m4.
65932         (Depends-on): Add stdint.
65933         (lib_SOURCES): Add fsusage.h.
65934         * modules/getcwd (Files): Remove d-ino.m4.
65935         (Depends-on): Add d-ino.
65936         * modules/getndelim2 (Depends-on): Add stdint.
65937         * modules/glob (Files): Remove m4/d-type.m4.
65938         (Depends-on): Add d-type.
65939         * modules/host-os: New module.
65940         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65941         m4/inttypes_h.m4, m4/uintmax_t.m4.
65942         * Depends-on: Add stdint.
65943         (lib_SOURCES): Add human.h.
65944         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65945         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65946         m4/uintmax_t.m4, m4/ulonglong.m4.
65947         (Depends-on): Add stdint.
65948         (EXTRA_DIST): Add inttostr.h.
65949         * modules/lchmod: New module.
65950         * modules/link-follow: New module.
65951         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65952         (Depends-on): Add lchmod.
65953         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65954         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65955         (Depends-on): Add stdint.
65956         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65957         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65958         (Depends-on): Add stdint.
65959         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65960         * modules/perl: New module.
65961         * modules/regex (Depends-on): Add stdint.
65962         * modules/rmdir-errno: New module.
65963         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65964         m4/intmax_t.m4.
65965         (Depends-on): Add stdint.
65966         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65967         m4/uintmax_t.m4.
65968         (Depends-on): Add stdint.
65969         * modules/unlink-busy: New module.
65970         * modules/utimecmp (Depends-on): Add stdint.
65971         * modules/uptime: New module.
65972         * modules/winsz-ioctl: New module.
65973         * modules/winsz-termios: New module.
65974         * modules/xnanosleep (Depends-on): Add nanosleep.
65975         * modules/ullong_max: Remove.
65976         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65977         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65978         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65979         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65980         (Depends-on): Add inttypes.
65981         (lib_SOURCES): Add xstrtol.h.
65982         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65983         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65984         * MODULES.html.sh: Move 'assert' into the assert section.
65985         Move 'dummy' into the linking section.
65986         Remove ullong_max.
65987         Add section for compatibility checks for POSIX:2001 functions,
65988         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65989         winsz-ioctl, and winsz-termios into it.
65990         Add lchmod.
65991         Add top-level Misc section and put host-os, perl, and uptime
65992         into it.
65993
65994 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65995
65996         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65997         now assume the stdint module.  Do not include inttypes.h.
65998         * lib/fsusage.h: Likewise.
65999         * lib/getndelim2.c: Likewise.
66000         * lib/human.h: Likewise.
66001         * lib/inttostr.h: Likewise.
66002         * lib/obstack.c: Likewise.
66003         * lib/regex_internal.h: Likewise.
66004         * lib/tempname.c: Likewise.
66005         * lib/utimecmp.c: Likewise.
66006         * lib/xstrtol.h: Likewise.
66007
66008         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66009
66010         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66011         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66012         * lib/xtime.h: Likewise.
66013
66014 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * modules/openat (Files): Add lib/fchmodat.c.
66017         Fixes problem reported by Jay Youngman.
66018
66019 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66022         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66023
66024 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66025             Bruno Haible  <bruno@clisp.org>
66026
66027         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66028         and is a script that invokes bison. Tighten the code. Add comments.
66029
66030 2006-08-18  Jim Meyering  <jim@meyering.net>
66031
66032         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66033         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66034         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66035         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66036
66037 2006-08-18  Bruno Haible  <bruno@clisp.org>
66038
66039         * modules/bison-i18n: New file.
66040         * MODULES.html.sh (Internationalization functions): Add it.
66041
66042 2006-08-18  Bruno Haible  <bruno@clisp.org>
66043
66044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66045         sys/statvfs.h. When getmntinfo was found, check its declaration and
66046         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66047
66048 2006-08-18  Bruno Haible  <bruno@clisp.org>
66049
66050         * m4/bison-i18n.m4: New file, from bison.
66051
66052 2006-08-18  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66055         (ME_DUMMY): Treat "kernfs" as a dummy.
66056         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66057
66058 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66059
66060         Update from coreutils.
66061
66062         2006-08-15  Jim Meyering  <jim@meyering.net>
66063
66064         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66065
66066         2006-01-17  Jim Meyering  <jim@meyering.net>
66067
66068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66069
66070         2006-01-11  Jim Meyering  <jim@meyering.net>
66071
66072         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66073         Check for the lchmod function.
66074
66075 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66076
66077         Update from coreutils.
66078
66079         * lib/__fpending.h: Add copyright notice.
66080         * lib/fprintftime.h: Likewise.
66081         * lib/savedir.c: Use (C) in copyright notice.
66082         * lib/savedir.h: Likewise.
66083
66084         2006-08-15  Jim Meyering  <jim@meyering.net>
66085
66086         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66087         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66088         in support of the EXPECTED_ERRNO macro.
66089         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66090         definitions.  Instead, define the appropriate symbols and include
66091         "at-func.c".
66092         * lib/mkdirat.c (mkdirat): Likewise.
66093         * lib/fchmodat.c (fchmodat): Likewise.
66094         (ENOSYS): Remove definition.
66095         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66096         it.  Don't include "unistd--.h" -- it wasn't ever used.
66097
66098         2006-01-17  Jim Meyering  <jim@meyering.net>
66099
66100         Rewrite fts.c not to change the current working directory,
66101         by using openat, fstatat, fdopendir, etc..
66102
66103         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66104         (HAVE_OPENAT_SUPPORT): Define.
66105         [_LIBC] (fchdir): Don't undef or define; no longer used.
66106         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66107         Now, this `function' always succeeds, and consumes its file descriptor
66108         parameter -- so callers must not close such FDs.  Update callers.
66109         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66110         (diropen): Add parameter, SP.  Adjust all callers.
66111         Implement using diropen_fd, rather than open.
66112         (fts_open): Initialize new member, fts_cwd_fd.
66113         Remove fts_rft-setting code.
66114         (fts_close): Close fts_cwd_fd, if necessary.
66115         (__opendir2): Define in terms of opendir or opendirat,
66116         depending on whether the FST_NOCHDIR flag is set.
66117         (fts_build): Since fts_safe_changedir consumes its FD, and since
66118         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66119         and close the dup'd file descriptor upon failure.
66120         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66121         (fts_safe_changedir): Tweak semantics to reflect that this function
66122         now calls cwd_advance_fd and hence consumes its FD argument.
66123         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66124         [struct FTS] (fts_rft): Remove now-unused member.
66125         [struct FTS] (fts_cycle.state): Improve comment.
66126
66127         * lib/openat.c (openat_needs_fchdir): New function.
66128         * lib/openat.h (openat_needs_fchdir): Declare it.
66129
66130 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66133         Problem and fix reported by Pádraig Brady in
66134         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66135
66136 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66137
66138         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66139
66140 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * lib/memcoll.c (memcoll): Optimize for the common case where the
66143         arguments are bytewise equal.
66144
66145 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66146
66147         * doc/regexprops-generic.texi: Add a copyright notice.
66148
66149 2006-08-15  Bruno Haible  <bruno@clisp.org>
66150
66151         * modules/tmpdir (License): Change to LGPL.
66152
66153 2006-08-15  Bruno Haible  <bruno@clisp.org>
66154
66155         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66156         module.
66157
66158 2006-08-14  Simon Josefsson  <jas@extundo.com>
66159
66160         * config/srclist.txt: Add gnupload.
66161
66162 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         Change copyright notice from LGPL 2 to GPL 2, since that's the
66165         standard form used in the gnulib repository.
66166         * tests/test-lock.c: Likewise.
66167         * tests/test-stdint.c: Likewise.
66168         * tests/test-tls.c: Likewise.
66169
66170         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66171         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66172         Add copyright notice.
66173
66174         * check-module: Add copyright notice.  Output a copyright
66175         notice if "--version" is specified.
66176         * modules/COPYING: New file.
66177         * tests/test-getaddrinfo.c: Add copyright notice.
66178         * tests/test-verify.c: Likewise.
66179
66180 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         Change copyright notice from LGPL 2 to GPL 2, since that's the
66183         standard form used in the gnulib repository.
66184         * lib/lock.c: LGPL -> GPL.
66185         * lib/lock.h: Likewise.
66186         * lib/strnlen1.c: Likewise.
66187         * lib/strnlen1.h: Likewise.
66188         * lib/tls.c: Likewise.
66189         * lib/tls.h: Likewise.
66190         * lib/tmpdir.c: Likewise.
66191
66192         * lib/TODO: Remove; this belongs only in coreutils.
66193
66194 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         Add copyright notices to long-enough files that lack them, since
66197         otherwise the files aren't clearly free.  Use the same notice that
66198         getdate.texi already uses.
66199         * doc/alloca-opt.texi: Add copyright notice.
66200         * doc/alloca.texi: Likewise.
66201         * doc/ctime.texi: Likewise.
66202         * doc/functions.texi: Likewise.
66203         * doc/gcd.texi: Likewise.
66204         * doc/gnulib-tool.texi: Likewise.
66205         * doc/inet_ntoa.texi: Likewise.
66206         * doc/visibility.texi: Likewise.
66207
66208         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66209         * doc/quote.texi: Add copyright notice.
66210
66211         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66212         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66213         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66214         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66215         is now obsolete, and give a pointer to the Sun list.
66216         Add copyright notice.
66217
66218 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         * config/srclistvars.sh: Add copyright notice.
66221
66222 2006-08-14  Eric Blake  <ebb9@byu.net>
66223
66224         Import the following change from libc:
66225
66226         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66227
66228         Upstream bug 2997.
66229         * lib/misc/error.c: Add space between program name and message if file
66230         name is missing.
66231
66232 2006-08-12  Karl Berry  <karl@gnu.org>
66233
66234         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66235         remove, these originate in gnulib now.
66236
66237 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66238
66239         * doc/Makefile (standards.info standards.html standards.dvi):
66240         Also depend on make-stds.texi.
66241
66242 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66243
66244         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66245         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66246
66247         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66248         in wchar_t.  Problem reported by Eric Blake.
66249
66250         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66251         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66252         Also, help the compiler to keep LEN in a register.
66253
66254 2006-08-11  Eric Blake  <ebb9@byu.net>
66255
66256         * users.txt: Sort.  Add tar.
66257
66258 2006-08-11  Bruno Haible  <bruno@clisp.org>
66259
66260         * users.txt: New file.
66261
66262 2006-08-11  Bruno Haible  <bruno@clisp.org>
66263
66264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66265         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66266
66267 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * modules/snprintf (Depends-on): Remove minmax.
66270         (Maintainer): Add self and Bruno.
66271
66272 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66273
66274         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66275         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66276         (EOVERFLOW): Define if the system does not.
66277         Do not include "minmax.h"; it wasn't used.
66278         (snprintf): Don't assume size_t promotes to an unsigned type.
66279         Fix bug when generated string was too long for the buffer: the
66280         buffer's contents are supposed to be the initial prefix of the
66281         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66282         exceeds INT_MAX; do the check ourselves.
66283
66284         Import the following changes from libc:
66285
66286         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66287
66288         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66289         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66290         set wc to the byte which couldn't be converted.
66291         (re_string_reconstruct): Don't clear valid_raw_len before calling
66292         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66293         tip_context using re_string_context_at.
66294
66295         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66296
66297         * lib/posix/regex.h: g++ still cannot handled [restrict].
66298
66299         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66300
66301         * lib/posix/regex.h: Remove special handling for VMS.
66302
66303 2006-08-10  Jim Meyering  <jim@meyering.net>
66304
66305         * modules/same-inode: New module.
66306         * modules/dev-ino: New module.
66307         * modules/cycle-check: Depend on these modules, rather than simply
66308         including their .h files.
66309         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66310         required via m4/cycle-check.m4.
66311         * modules/same: Depend on new same-inode module, rather than
66312         including same-inode.h.
66313         * modules/chdir-safer: New file.
66314
66315         * modules/chown (Depends-on): Add stat-macros.
66316
66317 2006-08-10  Jim Meyering  <jim@meyering.net>
66318
66319         * m4/cycle-check.m4: New file.
66320         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66321         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66322
66323 2006-08-10  Eric Blake  <ebb9@byu.net>
66324
66325         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66326         in from original proposal.
66327
66328 2006-08-10  Eric Blake  <ebb9@byu.net>
66329         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66330
66331         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66332         namespace.
66333
66334 2006-08-10  Bruno Haible  <bruno@clisp.org>
66335
66336         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66337         as well.
66338
66339 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         Sync from coreutils.
66342
66343         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66344
66345         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66346         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66347
66348 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         * modules/restrict: Remove; no longer needed now that we assume
66351         Autoconf 2.59 or later.
66352         * MODULES.html.sh: Remove 'restrict'.
66353         * modules/argp (Depends-on): Remove 'restrict'.
66354         * modules/base64 (Depends-on): Likewise.
66355         * modules/gc (Depends-on): Likewise.
66356         * modules/getaddrinfo (Depends-on): Likewise.
66357         * modules/glob (Depends-on): Likewise.
66358         * modules/inet_ntop (Depends-on): Likewise.
66359         * modules/inet_pton (Depends-on): Likewise.
66360         * modules/memxor (Depends-on): Likewise.
66361         * modules/regex (Depends-on): Likewise.
66362         * modules/strtok_r (Depends-on): Likewise.
66363         * modules/time_r (Depends-on): Likewise.
66364
66365 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66368         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66369         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66370         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66371         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66372         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66373         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66374         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66375
66376         Merge from coreutils.
66377         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66378         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66379         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66380         * m4/time_r.m4 (gl_TIME_R): Likewise.
66381
66382 2006-08-09  Karl Berry  <karl@gnu.org>
66383
66384         * config/srclist.txt: no more gettext-tools, per Bruno.
66385
66386 2006-08-08  Eric Blake  <ebb9@byu.net>
66387
66388         * modules/verror: New module.
66389         * MODULES.html.sh: Document it.
66390
66391 2006-08-08  Eric Blake  <ebb9@byu.net>
66392
66393         * lib/verror.h, lib/verror.c: New files.
66394
66395 2006-08-08  Eric Blake  <ebb9@byu.net>
66396
66397         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66398         verror_at_line output complies with GNU Coding Standards even when
66399         file is NULL.
66400
66401 2006-08-07  Bruno Haible  <bruno@clisp.org>
66402
66403         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66404         versions of AIX.
66405         Reported by Ralf Wildenhues.
66406
66407 2006-08-07  Bruno Haible  <bruno@clisp.org>
66408
66409         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66410         in an AC_DEFUN. Needed so that the autoconf snippets can use
66411         AC_REQUIRE.
66412
66413 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66414
66415         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66416         Initialize pkgdata_DATA.
66417         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66418         overriding it.
66419
66420 2006-08-06  Eric Blake  <ebb9@byu.net>
66421
66422         * lib/error.h: Fold in some upstream changes from glibc.
66423         * lib/error.c: Likewise.
66424
66425 2006-08-04  Bruno Haible  <bruno@clisp.org>
66426
66427         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66428         Make the mostlyclean-local rule depend on mostlyclean-generic.
66429         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66430
66431 2006-07-31  Bruno Haible  <bruno@clisp.org>
66432
66433         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66434         <stdlib.h>, <string.h>.
66435
66436 2006-07-30  Bruno Haible  <bruno@clisp.org>
66437
66438         * modules/readlink (License): Change to LGPL.
66439
66440 2006-07-30  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66443         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66444         set PKGDATADIR to point to it.
66445
66446 2006-07-30  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/csharpexec (configure.ac): Comment out macro invocation.
66449         * modules/javaexec (configure.ac): Likewise.
66450         * modules/javacomp-script (configure.ac): Likewise.
66451
66452         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66453
66454 2006-07-30  Bruno Haible  <bruno@clisp.org>
66455
66456         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66457         linked-list.
66458
66459 2006-07-30  Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66462
66463 2006-07-30  Bruno Haible  <bruno@clisp.org>
66464
66465         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66466         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66467         get removed.
66468
66469 2006-07-29  Bruno Haible  <bruno@clisp.org>
66470
66471         Make it possible for gnulib-tool to work with locally modified or
66472         augmented gnulib repositories.
66473         * gnulib-tool (func_usage): Document --local-dir option.
66474         (local_gnulib_dir): New variable.
66475         Handle --local-dir option.
66476         (func_lookup_file): New function.
66477         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66478         (func_get_description, func_get_filelist, func_get_description,
66479         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66480         func_get_automake_snippet, func_get_include_directive,
66481         func_get_license, func_get_maintainer): Use func_lookup_file.
66482         (func_import, func_create_testdir): Use func_lookup_file.
66483
66484 2006-07-29  Bruno Haible  <bruno@clisp.org>
66485
66486         * modules/setenv (Depends-on): Add unistd.
66487
66488 2006-07-29  Bruno Haible  <bruno@clisp.org>
66489
66490         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66491
66492 2006-07-29  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66495
66496 2006-07-29  Bruno Haible  <bruno@clisp.org>
66497
66498         * gnulib-tool (import, update): If there is no Makefile.am, look at
66499         aclocal.m4, instead of bailing out.
66500
66501 2006-07-29  Bruno Haible  <bruno@clisp.org>
66502
66503         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66504         Categorize the options by when they are useful.
66505
66506 2006-07-29  Bruno Haible  <bruno@clisp.org>
66507
66508         * gnulib-tool (func_usage): Document option --no-libtool.
66509         Handle option --no-libtool.
66510         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66511         for changed semantics of $libtool variable.
66512         (func_import): Likewise. If libtool is not used, show this through
66513         an option --no-libtool.
66514         (func_create_testdir): Update.
66515
66516 2006-07-29  Bruno Haible  <bruno@clisp.org>
66517
66518         * gnulib-tool (func_import): Extend error message about missing
66519         --doc-base.
66520
66521 2006-07-29  Bruno Haible  <bruno@clisp.org>
66522
66523         * gnulib-tool (func_import): Don't create the $docbase directory if
66524         there is no file to store there.
66525
66526 2006-07-29  Bruno Haible  <bruno@clisp.org>
66527
66528         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66529         relevant, look for configure.ac there, not in the current directory.
66530         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66531
66532 2006-07-29  Bruno Haible  <bruno@clisp.org>
66533
66534         * gnulib-tool (SORT): New variable.
66535         (func_usage): Undocument --assume-autoconf option.
66536         Remove --assume-autoconf option handling.
66537         (autoconf_minversion): Determine from the contents of configure.ac.
66538         (func_import): Remove autoconf_minversion handling.
66539         Suggested by Eric Blake.
66540
66541 2006-07-29  Bruno Haible  <bruno@clisp.org>
66542
66543         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66544
66545 2006-07-29  Bruno Haible  <bruno@clisp.org>
66546
66547         * config/srclist.txt (*setenv.[ch]): Remove rules.
66548
66549 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66550
66551         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66552
66553 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66554
66555         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66556         arpa/inet.h.
66557
66558 2006-07-28  Simon Josefsson  <jas@extundo.com>
66559
66560         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66561         * modules/inet_pton (Depends-on): Likewise.
66562
66563 2006-07-28  Simon Josefsson  <jas@extundo.com>
66564
66565         * m4/netinet_in_h.m4: New file.
66566
66567 2006-07-28  Simon Josefsson  <jas@extundo.com>
66568
66569         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66570         #include's.
66571
66572 2006-07-28  Simon Josefsson  <jas@extundo.com>
66573
66574         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66575         #include's.
66576
66577 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66580         setgid on directories only if they set these bits.
66581         * lib/modechange.h: Remove obsolete comment about masks.
66582
66583 2006-07-28  Eric Blake  <ebb9@byu.net>
66584
66585         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66586         macro expansion.
66587
66588 2006-07-28  Bruno Haible  <bruno@clisp.org>
66589
66590         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66591
66592 2006-07-28  Bruno Haible  <bruno@clisp.org>
66593
66594         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66595
66596 2006-07-28  Bruno Haible  <bruno@clisp.org>
66597
66598         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66599         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66600         Define fallbacks.
66601         Avoids link error on FreeBSD 4.x.
66602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66603
66604         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66605         encoding.
66606         * lib/mbswidth.c (iswcntrl): Likewise.
66607
66608 2006-07-27  Bruno Haible  <bruno@clisp.org>
66609
66610         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66611         test.
66612
66613 2006-07-27  Bruno Haible  <bruno@clisp.org>
66614
66615         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66616         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66617         defined.
66618
66619 2006-07-26  Eric Blake  <ebb9@byu.net>
66620
66621         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66622
66623 2006-07-26  Eric Blake  <ebb9@byu.net>
66624
66625         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66626         like mingw that lack mkstemp.
66627         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66628         avoid compilation warning on mingw.
66629
66630 2006-07-26  Bruno Haible  <bruno@clisp.org>
66631
66632         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66633         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66634         INT_FAST*_MIN, INTPTR_MIN.
66635
66636 2006-07-25  Bruno Haible  <bruno@clisp.org>
66637
66638         * modules/version-etc (Depends-on): Add stdarg.
66639
66640 2006-07-25  Bruno Haible  <bruno@clisp.org>
66641
66642         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66643         complex commands.
66644
66645 2006-07-25  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66648         defined in <stdarg.h> or config.h.
66649
66650 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66653         (gl_STDIO_SAFER): Remove.
66654
66655 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66656
66657         * MODULES.html.sh (File stream based Input/Output):
66658         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66659         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66660         * modules/fopen-safer, modules/tmpfile-safer: New files.
66661         * modules/stdio-safer: Remove.
66662
66663 2006-07-24  Bruno Haible  <bruno@clisp.org>
66664
66665         * modules/tmpdir: New file.
66666         * MODULES.html.sh (File system functions): Add it.
66667
66668 2006-07-24  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66671         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66672
66673 2006-07-24  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/clean-temp: New file.
66676
66677 2006-07-24  Bruno Haible  <bruno@clisp.org>
66678
66679         * m4/tmpdir.m4: New file, from GNU gettext.
66680
66681 2006-07-24  Bruno Haible  <bruno@clisp.org>
66682
66683         * lib/tmpdir.h: New file, from GNU gettext.
66684         * lib/tmpdir.c: New file, from GNU gettext.
66685
66686 2006-07-24  Bruno Haible  <bruno@clisp.org>
66687
66688         * lib/clean-temp.h: New file, from GNU gettext.
66689         * lib/clean-temp.c: New file, from GNU gettext.
66690
66691 2006-07-23  Eric Blake  <ebb9@byu.net>
66692
66693         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66694         (Depends-on): Add binary-io.
66695
66696 2006-07-23  Eric Blake  <ebb9@byu.net>
66697
66698         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66699
66700 2006-07-23  Eric Blake  <ebb9@byu.net>
66701
66702         * lib/tmpfile-safer.c: New file.
66703         * lib/stdio-safer.h (fopen_safer): Add prototype.
66704         * lib/stdio--.h (tmpfile): Make safer.
66705
66706 2006-07-23  Bruno Haible  <bruno@clisp.org>
66707
66708         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66709         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66710         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66711         gl_linked_remove_at): Use it.
66712
66713 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66714         and Simon Josefsson <jas@extundo.com>
66715
66716         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66717
66718         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66719
66720 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * modules/close-stream: New file.
66723         * modules/closeout (Description): Make it clear that it exits
66724         with a diagnostic on error.
66725         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66726         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66727
66728 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * m4/close-stream.m4: New file.
66731
66732 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * lib/close-stream.c, lib/close-stream.h: New files.
66735
66736 2006-07-22  Bruno Haible  <bruno@clisp.org>
66737
66738         Merge from GNU gettext 0.15.
66739
66740         2006-05-01  Bruno Haible  <bruno@clisp.org>
66741
66742                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66743
66744         2006-07-22  Bruno Haible  <bruno@clisp.org>
66745
66746                 * modules/javaversion: New file.
66747                 * MODULES.html.sh (Java): Add javaversion.
66748
66749         2006-03-12  Bruno Haible  <bruno@clisp.org>
66750
66751                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66752
66753         2005-12-04  Bruno Haible  <bruno@clisp.org>
66754
66755                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66756                 (untested).
66757
66758         2006-06-21  Bruno Haible  <bruno@clisp.org>
66759
66760                 Avoid warnings from recent versions of mcs.
66761                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66762                 -o, -L, -r any more. Use options documented since mcs-1.0
66763                 instead. Similarly for -g.
66764
66765         2005-12-04  Bruno Haible  <bruno@clisp.org>
66766
66767                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66768                 .resources, not .resource.
66769
66770         2005-07-09  Bruno Haible  <bruno@clisp.org>
66771
66772                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66773                 add a .dll suffix.
66774                 Reported by Mark Junker <mjscod@gmx.de>.
66775
66776         2006-07-22  Bruno Haible  <bruno@clisp.org>
66777
66778                 * modules/gettext: Upgrade to gettext-0.15.
66779                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66780                 m4/visibility.m4.
66781                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66782
66783 2006-07-22  Bruno Haible  <bruno@clisp.org>
66784
66785         Merge from GNU gettext 0.15.
66786
66787         2006-03-25  Bruno Haible  <bruno@clisp.org>
66788
66789                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66790
66791         2006-07-21  Bruno Haible  <bruno@clisp.org>
66792
66793                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66794                 "1.1".
66795
66796         2006-05-09  Bruno Haible  <bruno@clisp.org>
66797
66798                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66799                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66800                 for the conftestver execution.
66801
66802         2006-05-01  Bruno Haible  <bruno@clisp.org>
66803
66804                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66805                 optional target-version argument. Verify that the compiler
66806                 groks source of the specified source-version, or add -source
66807                 option as necessary. Verify that the compiler produces
66808                 bytecode in the specified target-version, or add -target and
66809                 -source options as necessary. Make the result of the test
66810                 available as variable CONF_JAVAC. Also log error output in
66811                 config.log.
66812
66813         2006-03-11  Bruno Haible  <bruno@clisp.org>
66814
66815                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66816
66817         2006-05-09  Bruno Haible  <bruno@clisp.org>
66818
66819                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66820                 CLASSPATH_SEPARATOR to a semicolon.
66821
66822         2006-03-12  Bruno Haible  <bruno@clisp.org>
66823
66824                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66825                 available as variable CONF_JAVA, for subsequent autoconf
66826                 tests. Also log error output in config.log.
66827
66828         2006-07-19  Bruno Haible  <bruno@clisp.org>
66829
66830                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66831                 that getline works on glibc2 systems. Needed to avoid trouble
66832                 in relocatable.c.
66833                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66834
66835         2005-12-04  Bruno Haible  <bruno@clisp.org>
66836
66837                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66838                 launcher (untested).
66839
66840         2005-12-04  Bruno Haible  <bruno@clisp.org>
66841
66842                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66843
66844         2006-07-22  Bruno Haible  <bruno@clisp.org>
66845
66846                 * gettext.m4: Update from GNU gettext-0.15.
66847                 * nls.m4: Likewise.
66848                 * po.m4: Likewise.
66849                 * inttypes-pri.m4: Likewise.
66850                 * inttypes-h.m4: Renamed from inttypes.m4.
66851                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66852
66853 2006-07-22  Bruno Haible  <bruno@clisp.org>
66854
66855         Merge from GNU gettext 0.15.
66856
66857         2005-07-05  Bruno Haible  <bruno@clisp.org>
66858
66859                 * printf-args.c (printf_fetchargs): Work around broken
66860                 definition of wint_t on mingw.
66861
66862         2005-02-12  Bruno Haible  <bruno@clisp.org>
66863
66864                 * xallocsa.h: Add extern "C" for C++.
66865
66866         2006-05-17  Bruno Haible  <bruno@clisp.org>
66867
66868                 Cygwin portability.
66869                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66870
66871         2006-04-30  Bruno Haible  <bruno@clisp.org>
66872
66873                 * progreloc.c: Include <mach-o/dyld.h> if available.
66874                 (find_executable): Use _NSGetExecutablePath when possible.
66875
66876         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66877
66878                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66879                 function.
66880
66881         2005-12-29  Bruno Haible  <bruno@clisp.org>
66882
66883                 * progreloc.c (set_program_name_and_installdir): Fix
66884                 compilation error.
66885
66886         2005-12-04  Bruno Haible  <bruno@clisp.org>
66887
66888                 Cygwin portability.
66889                 * progreloc.c: Include <windows.h> also on Cygwin.
66890                 (find_executable): Add support for Cygwin.
66891                 (set_program_name_and_installdir): Handle also platforms with
66892                 nonempty EXEEXT.
66893
66894         2006-07-11  Bruno Haible  <bruno@clisp.org>
66895
66896                 * javacomp.c: Fix a comment.
66897                 Reported by Jim Meyering.
66898
66899         2006-04-30  Bruno Haible  <bruno@clisp.org>
66900
66901                 * javacomp.h (compile_java_class): Add source_version,
66902                 target_version arguments.
66903                 * javacomp.c: Rewritten to choose only a compiler that
66904                 respects the specified source_version and target_version.
66905
66906         2006-06-27  Bruno Haible  <bruno@clisp.org>
66907
66908                 Assume correct S_ISDIR macro.
66909                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66910
66911         2006-07-22  Bruno Haible  <bruno@clisp.org>
66912
66913                 * javaversion.h: New file, from GNU gettext.
66914                 * javaversion.c: New file, from GNU gettext.
66915                 * javaversion.java: New file, from GNU gettext.
66916                 * javaversion.class: New file, from GNU gettext.
66917
66918         2006-05-17  Bruno Haible  <bruno@clisp.org>
66919
66920                 Cygwin portability.
66921                 * javaexec.c (execute_java_class): Test for jview program
66922                 also on Cygwin.
66923
66924         2006-04-09  Bruno Haible  <bruno@clisp.org>
66925
66926                 * fatal-signal.c: Don't include string.h.
66927                 (at_fatal_signal): Use a copying loop instead of memcpy.
66928
66929         2005-12-04  Bruno Haible  <bruno@clisp.org>
66930
66931                 * csharpexec.c: Add support for 'clix' launcher (untested).
66932                 (execute_csharp_using_sscli): New function.
66933                 (execute_csharp_program): Call it.
66934
66935         2006-06-21  Bruno Haible  <bruno@clisp.org>
66936
66937                 Avoid warnings from recent versions of mcs.
66938                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66939                 -o, -L, -r any more. Use options documented since mcs-1.0
66940                 instead. Similarly for -g.
66941
66942         2005-07-09  Bruno Haible  <bruno@clisp.org>
66943
66944                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66945                 add a .dll suffix.
66946                 Reported by Mark Junker <mjscod@gmx.de>.
66947
66948         2006-06-17  Bruno Haible  <bruno@clisp.org>
66949
66950                 * config.charset: Update for NetBSD 3.0.
66951
66952         2006-05-17  Bruno Haible  <bruno@clisp.org>
66953
66954                 Cygwin portability.
66955                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66956
66957         2006-05-16  Bruno Haible  <bruno@clisp.org>
66958
66959                 * localcharset.c [CYGWIN]: Include <windows.h>.
66960                 (get_charset_aliases): For Cygwin, return the same CPxxx
66961                 aliases list as under WIN32.
66962                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66963                 the environment variables. Fall back to GetACP().
66964
66965         2006-04-05  Bruno Haible  <bruno@clisp.org>
66966
66967                 * config.charset: Update Juan Manuel Guerrero's address.
66968
66969         2005-02-12  Bruno Haible  <bruno@clisp.org>
66970
66971                 * allocsa.h: Add extern "C" for C++.
66972
66973         2005-02-10  Bruno Haible  <bruno@clisp.org>
66974
66975                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66976                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66977
66978         2006-07-22  Bruno Haible  <bruno@clisp.org>
66979
66980                 * gettext.h: Update to GNU gettext-0.15.
66981
66982 2006-07-22  Bruno Haible  <bruno@clisp.org>
66983
66984         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66985         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66986         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66987
66988 2006-07-21  Eric Blake  <ebb9@byu.net>
66989
66990         * modules/stdlib-safer: New file.
66991         * MODULES.html.sh (File stream based Input/Output): Add
66992         stdlib-safer.
66993
66994 2006-07-21  Eric Blake  <ebb9@byu.net>
66995
66996         * lib/stdlib-safer.h: New file from coreutils, required by
66997         stdlib--.h.
66998
66999 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67002
67003 2006-07-20  Bruno Haible  <bruno@clisp.org>
67004
67005         * gnulib-tool: Recognize new option --assume-autoconf.
67006         (autoconf_minversion): New variable.
67007         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67008
67009 2006-07-20  Bruno Haible  <bruno@clisp.org>
67010
67011         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67012
67013 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67014
67015         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67016         Reindent and repaginate.
67017
67018 2006-07-19  Derek Price  <derek@ximbiot.com>
67019
67020         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67021         Correct grammar.
67022
67023 2006-07-17  Bruno Haible  <bruno@clisp.org>
67024
67025         * modules/list: New file.
67026         * modules/array-list: New file.
67027         * modules/carray-list, modules/carray-list-tests: New files.
67028         * modules/linked-list, modules/linked-list-tests: New files.
67029         * modules/avltree-list, modules/avltree-list-tests: New files.
67030         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67031         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67032         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67033         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67034         * modules/oset: New file.
67035         * modules/array-oset: New file.
67036         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67037         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67038         * tests/test-carray_list.c: New file.
67039         * tests/test-linked_list.c: New file.
67040         * tests/test-avltree_list.c: New file.
67041         * tests/test-rbtree_list.c: New file.
67042         * tests/test-linkedhash_list.c: New file.
67043         * tests/test-avltreehash_list.c: New file.
67044         * tests/test-rbtreehash_list.c: New file.
67045         * tests/test-avltree_oset.c: New file.
67046         * tests/test-rbtree_oset.c: New file.
67047         * MODULES.html.sh (Container data structures): New section.
67048
67049 2006-07-17  Bruno Haible  <bruno@clisp.org>
67050
67051         * m4/gl_list.m4: New file.
67052
67053 2006-07-17  Bruno Haible  <bruno@clisp.org>
67054
67055         * lib/gl_list.h: New file.
67056         * lib/gl_list.c: New file.
67057         * lib/gl_array_list.h: New file.
67058         * lib/gl_array_list.c: New file.
67059         * lib/gl_carray_list.h: New file.
67060         * lib/gl_carray_list.c: New file.
67061         * lib/gl_linked_list.h: New file.
67062         * lib/gl_linked_list.c: New file.
67063         * lib/gl_anylinked_list1.h: New file.
67064         * lib/gl_anylinked_list2.h: New file.
67065         * lib/gl_avltree_list.h: New file.
67066         * lib/gl_avltree_list.c: New file.
67067         * lib/gl_anyavltree_list1.h: New file.
67068         * lib/gl_anyavltree_list2.h: New file.
67069         * lib/gl_rbtree_list.h: New file.
67070         * lib/gl_rbtree_list.c: New file.
67071         * lib/gl_anyrbtree_list1.h: New file.
67072         * lib/gl_anyrbtree_list2.h: New file.
67073         * lib/gl_anytree_list1.h: New file.
67074         * lib/gl_anytree_list2.h: New file.
67075         * lib/gl_linkedhash_list.h: New file.
67076         * lib/gl_linkedhash_list.c: New file.
67077         * lib/gl_anyhash_list1.h: New file.
67078         * lib/gl_anyhash_list2.h: New file.
67079         * lib/gl_avltreehash_list.h: New file.
67080         * lib/gl_avltreehash_list.c: New file.
67081         * lib/gl_rbtreehash_list.h: New file.
67082         * lib/gl_rbtreehash_list.c: New file.
67083         * lib/gl_anytreehash_list1.h: New file.
67084         * lib/gl_anytreehash_list2.h: New file.
67085
67086         * lib/gl_oset.h: New file.
67087         * lib/gl_oset.c: New file.
67088         * lib/gl_array_oset.h: New file.
67089         * lib/gl_array_oset.c: New file.
67090         * lib/gl_avltree_oset.h: New file.
67091         * lib/gl_avltree_oset.c: New file.
67092         * lib/gl_rbtree_oset.h: New file.
67093         * lib/gl_rbtree_oset.c: New file.
67094         * lib/gl_anytree_oset.h: New file.
67095
67096 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67097
67098         * m4/mkancesdirs.m4: New file.
67099         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67100         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67101         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67102         it.
67103
67104 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67105
67106         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67107         * lib/mkancesdirs.h: New files.
67108         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67109         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67110         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67111         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67112         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67113         callers changed.  Revamp internals significantly, by not
67114         attempting to create directories that are temporarily more
67115         permissive than the final results.  Do not attempt to use
67116         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67117         This removes some race conditions, fixes some bugs, and simplifies
67118         things.  Use new dirchownmod function to do owner and mode changes.
67119         * lib/mkdir-p.h: Likewise.
67120         * lib/modechange.c (octal_to_mode): New function.
67121         (struct mode_change): New member mentioned.
67122         (make_node_op_equals): New arg mentioned.  All callers changed.
67123         (mode_compile): Keep track of which mode bits the user has explicitly
67124         mentioned.
67125         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67126         New arg PMODE_BITS, to keep track of which mode bits the user
67127         mentioned; it treats S_ISUID and S_ISGID speciall.
67128         All callers changed.
67129         * lib/modechange.h: Likewise.
67130
67131 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67132
67133         * MODULES.html.sh: Add mkancestors.
67134         * modules/mkancesdirs: New module.
67135         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67136         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67137         The chdir-safer and afs files are now orphans; I'll remove them
67138         unless someone speaks up.
67139         Add lib/dirchownmod.c, lib/dirchownmod.h.
67140         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67141         Add lchown, mkancesdirs.
67142         (Maintainer): Add self.
67143
67144 2006-07-15  Karl Berry  <karl@gnu.org>
67145
67146         * gnulib-tool: help message wording/arrangement.
67147
67148 2006-07-14  Simon Josefsson  <jas@extundo.com>
67149
67150         * doc/gnulib.texi (Libtool and Windows): New section.
67151
67152 2006-07-12  Simon Josefsson  <jas@extundo.com>
67153
67154         * modules/gendocs (License): Fix license, approved by Karl.
67155
67156 2006-07-12  Eric Blake  <ebb9@byu.net>
67157
67158         * MODULES.html.sh: Add gendocs.
67159
67160 2006-07-11  Eric Blake  <ebb9@byu.net>
67161
67162         * modules/fdl: New module, to install doc/fdl.texi.
67163         * MODULES.html.sh: Add new section for documentation modules.
67164         * gnulib-tool: Avoid space-tab.
67165         (--doc-base): New option, to manage files from doc.
67166
67167 2006-07-11  Eric Blake  <ebb9@byu.net>
67168
67169         * m4/absolute-header.m4: Fix comments to match recent change.
67170
67171 2006-07-11  Eric Blake  <ebb9@byu.net>
67172
67173         * gnulib-tool: List --doc-base before --tests-base.
67174
67175 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67176
67177         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67178
67179 2006-07-11  Bruno Haible  <bruno@clisp.org>
67180
67181         * README: Mention where to put documentation.
67182
67183 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67184
67185         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67186
67187 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67190         to stdint.m4.
67191
67192 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67193
67194         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67195         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67196         "no/such/file/stdint.h" when there is no such file, so that
67197         the resulting C code can be parsed by dodgy compilers.
67198         Problems reported by Bob Proulx.
67199
67200 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67201
67202         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67203         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67204         macros into the GNU _D_EXACT_NAMLEN.
67205         * lib/savedir.c:  Likewise.
67206         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67207
67208 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67209         and Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67212         * m4/savedir.m4:
67213         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67214         macros into the GNU _D_EXACT_NAMLEN.
67215
67216 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67219         around the absolute name, to work around a problem with the HP-UX
67220         11.23 native C compiler, reported by Bob Proulx.
67221
67222 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67223
67224         * doc/maintain.texi, make-stds.texi: Sync from
67225         <http://savannah.gnu.org/projects/gnustandards>.
67226
67227 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67230
67231 2006-07-09  Jim Meyering  <jim@meyering.net>
67232
67233         * m4/glob.m4: Remove a doubled word in a comment.
67234
67235 2006-07-09  Jim Meyering  <jim@meyering.net>
67236
67237         * lib/argp-pv.c: Remove a doubled word in a comment.
67238         * lib/check-version.c (check_version): Likewise.
67239         * lib/javacomp.c (compile_java_class): Likewise.
67240
67241 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67244         for the benefit of people using Autoconf 2.60.  If you want to
67245         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67246         (or m4/onceonly.m4, if pre-2.57) manually.
67247
67248 2006-07-08  Jim Meyering  <jim@meyering.net>
67249
67250         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67251         comment.
67252         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67253         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67254         comment.
67255
67256 2006-07-08  Jim Meyering  <jim@meyering.net>
67257
67258         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67259
67260 2006-07-07  Simon Josefsson  <jas@extundo.com>
67261
67262         * tests/test-crc.c: Change expected crc value, the test vector
67263         were probably computed using the old broken crc.c?
67264
67265 2006-07-06  Simon Josefsson  <jas@extundo.com>
67266
67267         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67268         now the canonical place for the M4 file).
67269
67270         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67271         from the sys_socket dependency now.
67272
67273         * modules/inet_pton (Files): Ditto.
67274
67275         * modules/inet_ntop (Files): Ditto.
67276
67277 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67278
67279         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67280         not gl_PREREQ_GETUSERSHELL.
67281
67282 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67283
67284         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67285         with only one argument, for Autoconf 2.60.
67286         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67287         expand to nothing, so add a shell command to avoid syntax error.
67288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67289
67290 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67291
67292         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67293
67294 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67295
67296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67297         no longer needed.  Check for isblank decl.
67298         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67299         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67300         of existence.
67301
67302 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * lib/getloadavg.c: Use __VMS, not VMS.
67305         * lib/getopt.c: Likewise.
67306         * lib/getpagesize.h: Likewise.
67307         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67308         and probably does not work.
67309
67310 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * lib/.cppi-disable: Add wcwidth.
67313         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67314         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67315         (ISGRAPH): Remove.  All uses changed to isgraph.
67316         (FOLD) [!defined _LIBC]: Remove special case.
67317         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67318         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67319         HAVE_ISBLANK.
67320         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67321         case.
67322
67323 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67324
67325         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67326         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67327         brackets.  Other minor changes to suppress some compiler
67328         warnings.
67329
67330 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67331         and Paul Eggert  <eggert@cs.ucla.edu>
67332
67333         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67334         of invoking obsolescent AC_HEADER_DIRENT macro.
67335         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67336         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67337         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67339         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67340         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67341         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67342         * m4/readdir.m4: Remove; no longer needed.
67343
67344 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67345         and Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67348         Don't worry about this obsolete case any more.
67349         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67350         directories.
67351         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67352         worry about this obsolete case any more.
67353         * lib/fts.c: Likewise.
67354         * lib/getcwd.c: Likewise.
67355         * lib/glob.h: Likewise.
67356         * lib/savedir.c: Likewise.
67357
67358 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67361         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67362         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67363         needed.
67364         All uses removed.
67365         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67366         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67367         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67368         needed.
67369         * m4/getdate.m4 (gl_GETDATE): Likewise.
67370         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67371         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67372         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67373         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67374         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67375         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67376         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67377         needed.
67378
67379 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * lib/memcasecmp.c: Include <limits.h>.
67382         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67383         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67384         Don't assume isdigit succeeds only on '0' through '9'.
67385
67386 2006-07-05  Eric Blake  <ebb9@byu.net>
67387
67388         * modules/getaddrinfo (Depends-on): Add snprintf.
67389
67390 2006-07-05  Eric Blake  <ebb9@byu.net>
67391
67392         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67393         to avoid 'header present but could not be compiled' on cygwin.
67394
67395 2006-07-05  Eric Blake  <ebb9@byu.net>
67396
67397         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67398         missing from netdb.h.
67399         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67400
67401 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67402
67403         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67404         no longer needed.
67405         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67406         * m4/getdate.m4 (gl_GETDATE): Likewise.
67407         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67408         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67409         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67410         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67411         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67412
67413 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67414
67415         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67416         All uses of is_space replaced by isspace.
67417         * lib/exit.h: Don't talk about STDC_HEADERS.
67418         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67419         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67420         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67421         replaced by isprint etc.
67422         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67423         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67424         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67425         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67426         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67427         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67428
67429 2006-07-05  Bruno Haible  <bruno@clisp.org>
67430
67431         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67432         the function exists, before testing against AIX.
67433         Reported by Martin Lambers <marlam@marlam.de>.
67434
67435 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67438         From Mark D. Baushke.
67439
67440 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67443         to the absolute name, not just one, to bypass Sun C 5.8's
67444         "warning: #include of /usr/include/... may be non-portable".
67445
67446 2006-07-04  Eric Blake  <ebb9@byu.net>
67447
67448         * modules/dirname-tests: New test module.
67449         * tests/test-dirname.c: New file, replacing dirname.c
67450         TEST_DIRNAME section that was recently deleted.
67451
67452 2006-07-04  Bruno Haible  <bruno@clisp.org>
67453
67454         Assume ANSI C header files and <ctype.h> functions.
67455         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67456         (mbsnwidth): Use isprint, iscntrl instead.
67457
67458 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         Merge from coreutils.
67461         * MODULES.html.sh: Add xstrtold.
67462         * modules/xstrtold: New file.
67463         * modules/cycle-check (Files): Add lib/same-inode.h.
67464         * modules/dirname (Files): Add m4/double-slash-root.m4.
67465         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67466         * modules/mkdir-p (Files): Add lib/same-inode.h.
67467         * modules/same (Files): Add lib/same-inode.h.
67468
67469 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67472         This is to keep the terminology clean; POSIX talks about
67473         "absolute pathnames", not "full pathnames", but the GNU
67474         Coding Standards say to use "path" for something else;
67475         so use "absolute" to keep both sides happy.
67476         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67477         Set gl_absolute_header, not gl_full_header_path.
67478         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67479         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67480         All uses changed.
67481
67482         Merge from coreutils.
67483
67484         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67487         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67488         want to require the building of c-strtod.o.
67489         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67490         needs -lm directly.
67491         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67492
67493         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67496         --as-needed option if available.  Problem reported by Albert Chin in
67497         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67498         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67499         cc merely issues a bunch of annoying warnings for --as-needed
67500         (this problem was reported by Bob Proulx).  Also, try linking with
67501         -lm to detect a bug in binutils 2.16 (this problem was reported
67502         by Ralf Wildenhues).
67503
67504         2006-06-18  Jim Meyering  <jim@meyering.net>
67505
67506         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67507         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67508         macro.
67509         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67510         also check for glibc-2.4's abort-inducing bug.
67511
67512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67513         Low-probability clean-up should be to use rmdir to get rid of
67514         the just-created directory, not unlink.
67515
67516         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67517         configure fail, and request a bug report to inform us about it.
67518         Add a comment that, barring reports to the contrary, in 2007 we'll
67519         assume ftruncate is universally available.
67520
67521         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67524
67525         2006-03-12  Jim Meyering  <jim@meyering.net>
67526
67527         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67528         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67529         * m4/same.m4 (gl_SAME): Likewise.
67530         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67531
67532         2006-03-11  Eric Blake  <ebb9@byu.net>
67533
67534         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67535         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67536         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67537         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67538
67539 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67542         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67543         reported by Mark D. Baushke, one in
67544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67545
67546         Merge from coreutils.
67547
67548         * lib/.cppi-disable: Add stdint_.h.
67549         * lib/.cvsignore: Add stdint.h.
67550
67551         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67552
67553         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67554         both double and long double versions.
67555         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67556         * lib/xstrtold.c: New file.
67557         * lib/xstrtod.h (xstrtold): New decl.
67558
67559         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * lib/filemode.c (setst): Remove.
67562         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67563         (arguably) clearer, and the generated code is a bit smaller on my
67564         Debian GNU/Linux stable x86 host.
67565
67566         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67567
67568         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67569         Assume that filemode.h includes sys/types.h and sys/stat.h.
67570         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67571         (ftypelet): Reorder to put common cases first, for efficiency.
67572         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67573         to do 'M'.
67574         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67575         of 10, for compatibility with FreeBSD.  All callers changed.
67576         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67577         types that can't be deduced solely from st_mode.  First arg is now a
67578         const pointer.
67579         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67580         (strmode): Renamed from mode_string.
67581         (filemodestring): New decl.
67582         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67583         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67584         needed.
67585         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67586
67587         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67588
67589         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67590         fsusage.h now does that.  Include fsusage.h first, to test interface.
67591         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67592         at most one method (the old code could have generated decls that
67593         didn't conform to C89, not that this was ever exercised).
67594         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67595
67596         2006-03-19  Jim Meyering  <jim@meyering.net>
67597
67598         Work even in a chroot where d_ino values for entries in "/"
67599         don't match the stat.st_ino values for the same names.
67600         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67601         number, iterate through all entries again, using lstat instead.
67602         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67603         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67604
67605         * lib/getcwd.c (__getcwd): Clarify a comment.
67606         Use memcpy in place of a call to strcpy.
67607
67608         2006-03-12  Jim Meyering  <jim@meyering.net>
67609
67610         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67611         matches that of the current directory (which we're about to chdir ".."
67612         out of), then save the dev-ino of the parent, instead.
67613
67614         * lib/same-inode.h (SAME_INODE): New file/macro.
67615         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67616         Include "same-inode.h", instead.
67617         * lib/same.c: Likewise.
67618         * lib/cycle-check.h: Include "same-inode.h".
67619         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67620         * lib/cycle-check.c (SAME_INODE): Remove definition.
67621         * lib/root-dev-ino.h: Include "same-inode.h".
67622
67623         2006-03-11  Eric Blake  <ebb9@byu.net>
67624
67625         * lib/same.c (same_name): s/base_name/last_component/
67626         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67627         * lib/filenamecat.c (file_name_concat): Likewise.
67628
67629         2006-03-11  Eric Blake  <ebb9@byu.net>,
67630                     Paul Eggert  <eggert@cs.ucla.edu>
67631
67632         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67633         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67634         drive prefix.
67635         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67636         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67637         (last_component): New method.
67638         * lib/dirname.c (dir_len): Determine when drive letters need a
67639         subsequent slash.  Preserve // when it is special.
67640         (dir_name): Don't append dot when drive letter is absolute.
67641         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67642         * lib/basename.c (base_name): New semantics - malloc the result.
67643         Preserve // when it is special.  Preserve relative files that look
67644         like drive letters.
67645         (base_len): Preserve // when it is special.
67646         (last_component): New method, similar to old base_name semantics.
67647         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67648         base_name.  Strip redundant slashes from ///.
67649
67650 2006-07-03  Jim Meyering  <jim@meyering.net>
67651
67652         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67653         macro is used before the first cycle_check call.
67654
67655 2006-07-03  Eric Blake  <ebb9@byu.net>
67656
67657         * modules/dirname (Depends-on): Add xstrndup.
67658
67659 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67662         test cases, so that config.log is a bit easier to follow.
67663
67664 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67667         both are 64 bits, since this seems to be the tradition, and this
67668         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67669         we ever run into a host that prefers long long to long in this
67670         case, we'll need another configure-time test.  Problem reported by
67671         Jim Meyering.
67672
67673 2006-07-02  Eric Blake  <ebb9@byu.net>
67674
67675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67676
67677 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         * modules/inttypes (Depends-on): No longer depends on stdint.
67680         * modules/stdint (Description): Say more about assumptions.
67681         Say that the fast types might differ.  Say macros are used.
67682         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67683         (Makefile.am): Revise list of substituted symbols to match
67684         new stdint.m4.
67685         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67686         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67687         * tests/test-stdint.c (verify_same_types)
67688         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67689         the code conforms to C99/C89.
67690         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67691         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67692
67693 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67696         but fix a bug, by requiring at least 64 bits.
67697         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67698         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67699         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67700         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67701
67702         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67703         changes.  Make 2.59 a prerequisite.  Check and substitute for
67704         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67705         inttypes.h.  Do not use special include files; just use the
67706         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67707         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67708         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67709         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67710         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67711         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67712         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67713         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67714         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67715         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67716         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67717         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67718         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67719         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67720         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67721         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67722         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67723         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67724         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67725         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67726         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67727         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67728         not check for things that C99 does not require, e.g., int8_t.  If
67729         a test isn't needed unless <stdint.h> isn't working, and is
67730         unlikely to be needed for any other reason, then don't do it
67731         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67732         size_t, since we assume C89 freestanding at least.  Do not check
67733         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67734         the right thing even if the types are not defined.  Instead use:
67735         (gl_STDINT_TYPE_PROPERTIES): New macro.
67736         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67737         testing whether <sys/types.h> clashes, as Autoconf does this for
67738         us now.  All uses removed.
67739         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67740         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67741         (gl_CHECK_TYPE_SAME):
67742         Remove; no longer needed.
67743         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67744         exists, since we'll return 0 anyway in that case.
67745         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67746
67747 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67750         possible collision with system files.
67751         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67752         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67753         WCHAR_MIN and WCHAR_MAX in this case.
67754         (<stddef.h>): Do not include; no longer needed.
67755         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67756         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67757         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67758         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67759         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67760         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67761         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67762         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67763         !defined(__c99))]: Include in this case too, since it's harmless
67764         now.
67765         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67766         dangerous to do so.
67767         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67768         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67769         (_STDINT_MIN, _STDINT_MAX): New macros.
67770         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67771         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67772         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67773         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67774         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67775         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67776         macros, not typedefs; this simplifies things quite a bit.
67777         Use long int for all types narrower than int64_t.
67778         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67779         Define in terms of long long int or int64_t or long int,
67780         not int64_t or int32_t.  This saves some compile-time testing.
67781         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67782         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67783         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67784         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67785         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67786         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67787         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67788         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67789         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67790         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67791         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67792         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67793         undef any previous version and define our own version, for
67794         simplicity and consistency with the new macros for types.
67795         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67796         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67797         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67798         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67799         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67800         @WINT_T_SUFFIX@ to keep things simple here.
67801         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67802         Simplify by assuming typical 8/16/32/64 host, since we're
67803         already doing that elsewhere anyway.
67804         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67805         and assume long long int is 64 bits if available.  This
67806         speeds up 'configure'.
67807
67808 2006-07-01  Eric Blake  <ebb9@byu.net>
67809
67810         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67811         Reported by Andreas Buening.
67812
67813 2006-07-01  Eric Blake  <ebb9@byu.net>
67814
67815         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67816
67817 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67818
67819         * lib/getaddrinfo.c: fixed typo
67820
67821 2006-06-29  Jim Meyering  <jim@meyering.net>
67822
67823         * modules/strftime (Maintainer): Add my name, since with the
67824         FPRINTFTIME changes strftime.c has forked from glibc.
67825
67826 2006-06-29  Eric Blake  <ebb9@byu.net>
67827
67828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67829
67830 2006-06-29  Eric Blake  <ebb9@byu.net>
67831
67832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67833
67834 2006-06-29  Eric Blake  <ebb9@byu.net>
67835
67836         * lib/stat_.h: New file.
67837
67838 2006-06-29  Eric Blake  <ebb9@byu.net>
67839
67840         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67841         unused static function.
67842
67843 2006-06-29  Eric Blake  <ebb9@byu.net>
67844
67845         * doc/functions.texi (Function Portability): Document missing lstat
67846         on mingw.
67847
67848 2006-06-29  Eric Blake  <ebb9@byu.net>
67849
67850         * MODULES.html.sh: Add sys_stat.
67851         * modules/sys_stat: New module.
67852         * modules/mkstemp (Depends-on): Add sys_stat.
67853
67854 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67855
67856         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67857
67858 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67859
67860         * m4/c-bs-a.m4: Removed.
67861
67862 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67863
67864         * lib/strftime.c: Assume strftime() exists.
67865
67866 2006-06-29  Derek Price  <derek@ximbiot.com>
67867
67868         * modules/c-bs-a: Removed - \a is C89.
67869         * MODULES.html.sh: Remove c-bs-a.
67870
67871 2006-06-29  Bruno Haible  <bruno@clisp.org>
67872
67873         * modules/wcwidth (License): Change to LGPL.
67874
67875 2006-06-28  Simon Josefsson  <jas@extundo.com>
67876
67877         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67878         on _WIN32.
67879
67880         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67881         getnameinfo.
67882
67883 2006-06-28  Simon Josefsson  <jas@extundo.com>
67884
67885         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67886
67887 2006-06-28  Simon Josefsson  <jas@extundo.com>
67888
67889         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67890         functions there.  It will succeed on Windows XP, but on Windows
67891         2000 and (presumably) earlier, it will fail, and use the internal
67892         re-implementation.
67893         (use_win32_p): New function.
67894         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67895         Support AI_NUMERICSERV to disable getservbyname.
67896         (getnameinfo): New function, only supports
67897         NI_NUMERICHOST|NI_NUMERICSERV for now.
67898
67899         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67900         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67901         getnameinfo.
67902
67903 2006-06-28  Eric Blake  <ebb9@byu.net>
67904
67905         * modules/wcwidth: New file.
67906         * modules/mbchar (Depends-on): Add wcwidth.
67907         * modules/mbswidth (Depends-on): Add wcwidth.
67908         * MODULES.html.sh: Add wcwidth.
67909
67910 2006-06-28  Eric Blake  <ebb9@byu.net>
67911
67912         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67914
67915 2006-06-28  Eric Blake  <ebb9@byu.net>
67916
67917         * lib/xvasprintf.h: Fix comments.
67918
67919 2006-06-28  Eric Blake  <ebb9@byu.net>
67920
67921         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67922         * lib/mbswidth.c (wcwidth): Move from here...
67923         * lib/wcwidth.h: ...to this new file.
67924
67925 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67926
67927         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67928
67929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67930         it's obsolete.
67931         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67932
67933 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67934
67935         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67936         Autoconf 2.60 says this stuff was obsolete.
67937
67938 2006-06-28  Bruno Haible  <bruno@clisp.org>
67939
67940         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67941
67942 2006-06-28  Bruno Haible  <bruno@clisp.org>
67943
67944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67945         gt_TYPE_WCHAR_T.
67946
67947 2006-06-28  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67950         declaration for wcwidth.
67951         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67952
67953 2006-06-28  Bruno Haible  <bruno@clisp.org>
67954
67955         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67956         (mkdir): Define using _mkdir.
67957
67958 2006-06-28  Bruno Haible  <bruno@clisp.org>
67959
67960         * lib/getaddrinfo.h: Fix POSIX URL.
67961         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67962         _WIN32.
67963         (use_win32_p): Make static.
67964         (getaddrinfo): Reject service name if it is empty or does not consist
67965         solely of decimal digits, or if its value is > 65535.
67966         (getnameinfo): Remove useless casts.
67967
67968 2006-06-27  Simon Josefsson  <jas@extundo.com>
67969
67970         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67971         Eggert and Martin Lambers.
67972
67973 2006-06-27  Simon Josefsson  <jas@extundo.com>
67974
67975         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67976         Eggert and Martin Lambers.
67977
67978 2006-06-27  Bruno Haible  <bruno@clisp.org>
67979
67980         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67981         result to 0, not to empty.
67982         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67983
67984 2006-06-27  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67987
67988 2006-06-26  Simon Josefsson  <jas@extundo.com>
67989
67990         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67991         present.
67992
67993 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67996         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67998
67999 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68000
68001         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68002
68003 2006-06-26  Bruno Haible  <bruno@clisp.org>
68004
68005         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68006
68007 2006-06-26  Bruno Haible  <bruno@clisp.org>
68008
68009         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68010
68011 2006-06-26  Bruno Haible  <bruno@clisp.org>
68012
68013         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68014         SGI C compiler in pre-C99 mode.
68015         Suggested by Mark D. Baushke and Larry Jones.
68016
68017 2006-06-26  Bruno Haible  <bruno@clisp.org>
68018
68019         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68020         WCHAR_MAX.
68021         Reported by Mark D. Baushke and Larry Jones.
68022
68023 2006-06-26  Bruno Haible  <bruno@clisp.org>
68024
68025         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68026         in pre-C99 mode.
68027         Suggested by Mark D. Baushke and Larry Jones.
68028
68029 2006-06-23  Simon Josefsson  <jas@extundo.com>
68030             Bruno Haible  <bruno@clisp.org>
68031
68032         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68033         Emit mostlyclean-local rule.
68034         (func_emit_tests_Makefile_am): Likewise.
68035         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68036
68037 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68038
68039         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68040
68041 2006-06-23  Bruno Haible  <bruno@clisp.org>
68042
68043         * tests/test-stdint.c: Update to match ISO C 99 Technical
68044         Corrigendum 1.
68045
68046 2006-06-23  Bruno Haible  <bruno@clisp.org>
68047
68048         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68049
68050 2006-06-23  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/stdint_.h: Treat IRIX like OpenBSD.
68053
68054 2006-06-23  Bruno Haible  <bruno@clisp.org>
68055
68056         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68057         ISO C 99 Technical Corrigendum 1.
68058
68059 2006-06-22  Simon Josefsson  <jas@extundo.com>
68060
68061         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68062         MinGW.
68063
68064 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68067         needed.  Some compiler complained about some of them.  Problem reported
68068         by Larry Jones in
68069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68070
68071 2006-06-21  Simon Josefsson  <jas@extundo.com>
68072
68073         * tests/test-getaddrinfo.c: New file.
68074
68075         * modules/getaddrinfo-tests: New file.
68076
68077         * MODULES.html.sh: Add inet_pton.
68078
68079         * modules/inet_pton: New file.
68080
68081 2006-06-21  Simon Josefsson  <jas@extundo.com>
68082
68083         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68084         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68085         of using the (limited) gnulib implementation on Windows XP.
68086
68087         * m4/inet_pton.m4: New file.
68088
68089 2006-06-21  Simon Josefsson  <jas@extundo.com>
68090
68091         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68092         variable.
68093
68094         * lib/socket_.h: Don't define WINVER.
68095
68096         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68097         slightly modified to work in gnulib.
68098
68099 2006-06-21  Simon Josefsson  <jas@extundo.com>
68100
68101         * doc/gnulib.texi (Windows sockets): Add.
68102
68103 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * lib/read-file.c (fread_file): Start with buffer allocation of
68106         0 bytes rather than 1 byte; this simplifies the code.
68107         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68108         code to free buffer and save/restore errno.
68109         (internal_read_file): Remove unused local.
68110
68111 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68114         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68115         Problem reported by Denis Excoffier in
68116         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68117
68118 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68119
68120         * modules/sys_socket, modules/socklen: Include sys/types since
68121         FreeBSD 4.x's sys/socket.h needs it.
68122
68123 2006-06-19  Simon Josefsson  <jas@extundo.com>
68124
68125         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68126
68127 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68130
68131 2006-06-19  Bruno Haible  <bruno@clisp.org>
68132
68133         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68134         and FULL_PATH_INTTYPES_H in angle brackets.
68135         Reported by Mark D. Baushke <mdb@gnu.org>.
68136
68137 2006-06-17  Eric Blake  <ebb9@byu.net>
68138
68139         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68140         errno.
68141
68142 2006-06-17  Bruno Haible  <bruno@clisp.org>
68143
68144         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68145         <sys/inttypes.h>.
68146
68147 2006-06-17  Bruno Haible  <bruno@clisp.org>
68148
68149         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68150         whether errno is declared. Assume <errno.h> declares errno.
68151
68152 2006-06-17  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68155
68156 2006-06-17  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68159         problem on Solaris 2.5.1.
68160
68161 2006-06-16  Eric Blake  <ebb9@byu.net>
68162
68163         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68164         * lib/unicodeio.c [!defined errno]: Likewise.
68165         * lib/strtol.c [!defined errno]: Likewise.
68166         * lib/strtod.c [!defined errno]: Likewise.
68167
68168 2006-06-15  Eric Blake  <ebb9@byu.net>
68169
68170         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68171
68172 2006-06-15  Eric Blake  <ebb9@byu.net>
68173
68174         * config/srclist.txt (ssize_t.m4): Lose sync.
68175
68176 2006-06-15  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/stdint (Files): Include m4/full-header-path.m4,
68179         m4/size_max.m4, m4/wchar_t.m4.
68180         (Makefile.am): Many more substitutions.
68181         * modules/stdint-tests: New file.
68182         * tests/test-stdint.c: New file.
68183
68184 2006-06-15  Bruno Haible  <bruno@clisp.org>
68185
68186         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68187         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68188         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68189         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68190         gl_CHECK_TYPE_SAME): New macros.
68191
68192 2006-06-15  Bruno Haible  <bruno@clisp.org>
68193
68194         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68195
68196 2006-06-15  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/stdint_.h: Rewritten to be fully auto-configured.
68199         Fixes bug on HP-UX/IA64.
68200
68201 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         * lib/getdate.y (__attribute__): Don't define if already defined.
68204         Problem reported by Larry Jones.
68205         * lib/utimens.c (__attribute__): Likewise.
68206
68207 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68210         reported by Andreas Schwab.
68211
68212 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68213             Bruno Haible  <bruno@clisp.org>
68214
68215         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68216         check for the declaration of strnlen and a run test that exposes the
68217         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68218         rpl_strndup.
68219
68220 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68221             Bruno Haible  <bruno@clisp.org>
68222
68223         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68224
68225 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68226
68227         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68228         compile test, for Tru64 4.0D.
68229
68230 2006-05-28  Karl Berry  <karl@gnu.org>
68231
68232         * config/srclist.txt (printf-args.c): lose sync.
68233
68234 2006-05-26  Martin Lambers  <marlam@marlam.de>
68235
68236         * lib/getpass.c: Updates the test for the native W32 API, and adds
68237         missing includes, thus fixing compilation warnings.
68238
68239 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68240
68241         * lib/exclude.c (exclude_fnmatch): New function.
68242         (excluded_file_name): Call exclude_fnmatch.
68243         * lib/exclude.h (excluded_file_name): New prototype
68244
68245 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68246
68247         * lib/tempname.c (small_open, large_open): New macros.
68248         (__open, __open64) [!_LIBC]: Remove.
68249         (__gen_tempname): Use small_open and large_open instead of __open
68250         and __open64.  This fixes a portability bug on HP-UX 11.11i
68251         reported by Simon Wing-Tang in
68252         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68253
68254 2006-05-24  Bruno Haible  <bruno@clisp.org>
68255
68256         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68257         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68258         Reported by Thorsten Maerz <torte@netztorte.de> via
68259         Aaron Stone <aaron@serendipity.cx>.
68260
68261 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68264         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68265         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68266         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68267         not really conditional on the cache.
68268         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68269
68270 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68273         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68274         (my_usleep): Don't mishandle maximum value.
68275
68276 2006-05-19  Jim Meyering  <jim@meyering.net>
68277
68278         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68279
68280 2006-05-17  Bruno Haible  <bruno@clisp.org>
68281
68282         Cygwin portability.
68283         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68284
68285 2006-05-17  Bruno Haible  <bruno@clisp.org>
68286
68287         * lib/stdint_.h: Fix recognition of Cygwin.
68288
68289 2006-05-15  Bruno Haible  <bruno@clisp.org>
68290
68291         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68292         on libtool patch by Ralf Wildenhues.
68293
68294 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68295
68296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68297         test for C99 conformance; (bool) 0.5 is an integer constant
68298         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68299         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68300
68301 2006-05-11  Simon Josefsson  <jas@extundo.com>
68302
68303         * m4/xvasprintf.m4: Fix obvious typo.
68304
68305 2006-05-11  Jim Meyering  <jim@meyering.net>
68306
68307         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68308         James Lemley.
68309
68310 2006-05-10  Simon Josefsson  <jas@extundo.com>
68311
68312         * lib/md4.c: Typo fix, update copyright years.
68313         (K1, K2): Don't use L because it turn computations into 64-bit on
68314         64-bit platforms.
68315
68316 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68319         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68320         unwanted sign propagation, e.g., on hosts with 64-bit int.
68321         There still are some problems with reeelly weird theoretical hosts
68322         (e.g., 33-bit int) but it's not worth worrying about now.
68323         * lib/sha1.c (rol): Likewise.
68324         (K1, K2, K3, K4): Remove unnecessary L suffix.
68325
68326 2006-05-10  Bruno Haible  <bruno@clisp.org>
68327
68328         * lib/des.c: Cast to avoid warnings.
68329
68330 2006-05-09  Bruno Haible  <bruno@clisp.org>
68331
68332         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68333         (Depends-on): Depend also on xsize, stdarg.
68334         (configure.ac): Add gl_XVASPRINTF.
68335
68336 2006-05-09  Bruno Haible  <bruno@clisp.org>
68337
68338         * m4/xvasprintf.m4: New file.
68339
68340 2006-05-09  Bruno Haible  <bruno@clisp.org>
68341
68342         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68343         (EOVERFLOW): Define fallback value.
68344         (xstrcat): New function.
68345         (xvasprintf): Recognize the special case of a string concatenation.
68346
68347 2006-05-08  Eric Blake  <ebb9@byu.net>
68348
68349         * gnulib-tool (func_version): Base copyright year on CVS date.
68350         (func_emit_copyright_notice): New function.
68351         (func_emit_lib_Makefile_am): Use it.
68352         (func_emit_tests_Makefile_am): Likewise.
68353         (func_import): Likewise.
68354
68355 2006-05-08  Bruno Haible  <bruno@clisp.org>
68356
68357         * modules/stdarg: New file.
68358         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68359
68360 2006-05-08  Bruno Haible  <bruno@clisp.org>
68361
68362         * m4/stdarg.m4: New file, from GNU gettext.
68363
68364 2006-05-08  Bruno Haible  <bruno@clisp.org>
68365
68366         * config/srclist.txt (build-aux/config.rpath): different from latest
68367         release.
68368
68369 2006-05-08  Bruno Haible  <bruno@clisp.org>
68370
68371         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68372
68373 2006-05-05  Jim Meyering  <jim@meyering.net>
68374
68375         * m4/warning.m4: New file, derived from bison's file by the same name.
68376
68377 2006-05-03  Bruno Haible  <bruno@clisp.org>
68378
68379         * lib/stdint_.h: Shorter URL.
68380         * lib/inttypes.h: Likewise.
68381
68382 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68385
68386 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * lib/verify.h: Document the internals better.  Most of this change
68389         was written by Bruno Haible.
68390
68391 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68392
68393         * doc/verify.texi: New file, partly based on a proposal by
68394         Bruno Haible.
68395
68396 2006-05-02  Bruno Haible  <bruno@clisp.org>
68397
68398         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68399         test from here...
68400         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68401
68402 2006-04-29  Bruno Haible  <bruno@clisp.org>
68403
68404         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68405         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68406
68407 2006-04-29  Bruno Haible  <bruno@clisp.org>
68408
68409         * gnulib-tool: Make --update option actually work.
68410
68411 2006-04-29  Bruno Haible  <bruno@clisp.org>
68412
68413         * doc/gcd.texi: New file.
68414         * doc/gnulib.texi: Include it.
68415
68416 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * lib/getdate.y (get_date): When adding relative date, start with the
68419         initial time, not with the result of the first mktime call.
68420
68421 2006-04-25  Bruno Haible  <bruno@clisp.org>
68422
68423         * gnulib-tool (func_import): Output the include directives in three
68424         blocks, sorted separately.
68425         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68426
68427 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68428
68429         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68430         to define main with arguments, for C++.  Reported by Eric Blake.
68431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68432         Prefer 'int main ()' to 'int main (void)', for C++.
68433         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68435         for 'main', for C99 and C++.
68436
68437 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68440         Don't assume that exit status -1 is valid.
68441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68442         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68443         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68444         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68445         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68446         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68447         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68448         functions can be used without declaring them, or that you can
68449         exit with status -1.
68450         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68451
68452 2006-04-24  Karl Berry  <karl@gnu.org>
68453
68454         * config/srclist.txt (longdouble.m4): sync lost.
68455
68456 2006-04-24  Eric Blake  <ebb9@byu.net>
68457
68458         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68459
68460 2006-04-24  Bruno Haible  <bruno@clisp.org>
68461
68462         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68463         poll() implementation in AIX.
68464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68465
68466 2006-04-24  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68469         assigned exactly once.
68470
68471 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68472             Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68475         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68476         for AM_CPPFLAGS.
68477
68478 2006-04-23  Bruno Haible  <bruno@clisp.org>
68479
68480         * modules/copy-file: Depend on unistd.
68481         * modules/execute: Likewise.
68482         * modules/fatal-signal: Likewise.
68483         * modules/findprog: Likewise.
68484         * modules/mkdtemp : Likewise.
68485         * modules/pipe: Likewise.
68486         * modules/wait-process: Likewise.
68487
68488 2006-04-23  Bruno Haible  <bruno@clisp.org>
68489
68490         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68491         condition was already detected.
68492         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68493
68494 2006-04-23  Bruno Haible  <bruno@clisp.org>
68495
68496         * lib/copy-file.c: Include <unistd.h> unconditionally.
68497         * lib/execute.c: Likewise.
68498         * lib/fatal-signal.c: Likewise.
68499         * lib/findprog.c: Likewise.
68500         * lib/mkdtemp.c: Likewise.
68501         * lib/pipe.h: Likewise.
68502         * lib/pipe.c: Likewise.
68503         * lib/wait-process.h: Likewise.
68504
68505 2006-04-23  Bruno Haible  <bruno@clisp.org>
68506
68507         * gnulib-tool (func_usage): Fix --import description. Document
68508         --update.
68509         (func_import): Create temporary file in a temporary directory, if
68510         --dry-run is specified. Silence errors from 'grep' when there are no
68511         m4 files in $m4dir.
68512         (func_create_testdir): Silence errors from 'grep' when there are no
68513         m4 files in $m4dir.
68514         Reported by Karl Berry <karl@freefriends.org>.
68515
68516 2006-04-20  Bruno Haible  <bruno@clisp.org>
68517
68518         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68519         one argument, so that the code will be portable to Autoconf 2.60.
68520         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68521         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68522         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68523
68524 2006-04-19  Derek Price  <derek@ximbiot.com>
68525             Eric Blake  <ebb9@byu.net>
68526
68527         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68528         rather than "/full/path.h".  Update comment to match.  Shorten &
68529         generalize m4_translit call via AS_TR_CPP.
68530
68531 2006-04-19  Derek Price  <derek@ximbiot.com>
68532             Eric Blake  <ebb9@byu.net>
68533
68534         * lib/inttypes.h: Correct grammar in comment.
68535
68536 2006-04-18  Derek Price  <derek@ximbiot.com>
68537             Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * modules/inttypes: New file.
68540         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68541
68542 2006-04-18  Derek Price  <derek@ximbiot.com>
68543             Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68546         New files.
68547
68548 2006-04-18  Derek Price  <derek@ximbiot.com>
68549             Paul Eggert  <eggert@cs.ucla.edu>
68550
68551         * lib/inttypes.h: New file.
68552         * lib/strtoimax.c: Assume <inttypes.h>.
68553
68554 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68557         isn't mounted.  Problem reported by Kir Kolyshkin.
68558
68559 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68560
68561         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68562         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68563         Derek R. Price.
68564         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68565         implementation.
68566
68567 2006-04-12  Eric Blake  <ebb9@byu.net>
68568
68569         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68570         is now done automatically by the corresponding Autoconf macro.
68571
68572 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68575         time_r.h.
68576
68577 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         Merge regex changes from libc, removing some of our
68580         POSIX-conformance changes that were rejected and redoing them in a
68581         less-intrusive way.
68582
68583         * lib/regcomp.c (re_compile_internal, init_dfa):
68584         Length arg is now size_t, not Idx.  All uses changed.
68585         (peek_token): Forward decl now says internal_function.
68586         (__re_error_msgid, __re_error_msgid_idx):
68587         Now static rather than extern with attribute_hidden.
68588         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68589         For some reason libc prefers K&R style defns for external functions.
68590         (regerror) [!defined _LIBC]: Likewise.
68591         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68592         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68593         (build_range_exp, build_collating_symbol):
68594         Use K&R-style defn.
68595         (re_compile_fastmap): Use '\0' to memset, not 0.
68596         (utf8_sb_map): Make the calculations more obvious.
68597         (init_dfa, parse_bracket_exp, build_charclass_op):
68598         Call calloc and cast result, as glibc does.
68599         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68600         (build_range_exp, build_collating_symbol):
68601         Now internal functions.
68602
68603         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68604
68605         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68606         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68607         Don't depend on VMS; depend on __VMS instead, for POSIX
68608         namespace cleanness.
68609         (regoff_t): Define to ssize_t, not long int.
68610
68611         Remove the REG_ macros named below.  Instead, make the old names
68612         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68613         __USE_GNU_REGEX.
68614         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68615         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68616         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68617         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68618         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68619         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68620         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68621         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68622         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68623         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68624         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68625         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68626         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68627         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68628         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68629         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68630         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68631         (REG_NREGS):
68632         Remove.  All uses replaced by the old RE_* names.
68633         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68634         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68635         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68636         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68637         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68638         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68639         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68640         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68641         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68642         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68643         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68644         Don't bother having these macros be independent of each others'
68645         values, since they no longer exist in the POSIX name space.
68646
68647         Rename the following member names back to their old names,
68648         unless !__USE_GNU_REGEX.  All uses changed back.
68649         (buffer): Renamed from re_buffer.
68650         (allocated): Renamed from re_allocated.
68651         (used): Renamed from re_used.
68652         (syntax): Renamed from re_syntax.
68653         (fastmap): Renamed from re_fastmap.
68654         (translate): Renamed from re_translate.
68655         (can_be_null): Renamed from re_can_be_null.
68656         (regs_allocated): Renamed from re_regs_allocated.
68657         (fastmap_accurate): Renamed from re_fastmap_accurate.
68658         (no_sub): Renamed from re_no_sub.
68659         (not_bol): Renamed from re_not_bol.
68660         (not_eol): Renamed from re_not_eol.
68661         (newline_anchor): Renamed from re_newline_anchor.
68662         (num_regs): Renamed from rm_num_regs.
68663         (start): Renamed from rm_start.
68664         (end): Renamed from rm_end.
68665
68666         (free_state): Move up a bit.
68667
68668         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68669         #define to be empty.
68670         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68671         when that is what is intended.
68672         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68673         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68674         (MAX): New macro.
68675         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68676         All uses changed back to re_malloc, etc.  It's now the caller's
68677         responsibility to check for overflow; all callers changed.
68678         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68679         (re_x2nrealloc): Remove.
68680         (free_state): Remove decl.
68681
68682         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68683         (re_set_registers, re_exec):
68684         Use K&R-style defn.
68685
68686         2006-01-31  Roland McGrath  <roland@redhat.com>
68687
68688         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68689         Reported by Mike Frysinger <vapier@gentoo.org>.
68690
68691         2006-01-15  Andreas Jaeger  <aj@suse.de>
68692
68693         [BZ #1950]
68694         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68695         build_wcs_upper_buffer change.
68696         (build_wcs_upper_buffer): Change return type.
68697
68698         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68699
68700         * lib/regex_internal.h: Include <stdint.h> if available.
68701
68702         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68703
68704         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68705
68706         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68707
68708         * lib/regcomp.c: Adjust for changed secondary hash function.
68709
68710         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68711
68712         * lib/regex.h: Pretty printing.
68713         Clean up namespace a bit.
68714
68715         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68716
68717         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68718         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68719
68720         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68721                     Ulrich Drepper  <drepper@redhat.com>
68722
68723         [BZ #1302]
68724         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68725         changed.
68726         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68727
68728         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68729
68730         [BZ #281]
68731         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68732         * lib/regcomp.c: Remove unnecessary uses of
68733         unsigned RE_TRANSLATE_TYPE.
68734         * lib/regex_internal.h: Likewise.
68735         * lib/regex_internal.c: Likewise.
68736         * lib/regexec.c: Likewise.
68737         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68738
68739         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68740
68741         * lib/regexec.c (find_recover_state): Remove unnecessary
68742         initialization.
68743         (transit_state_bkref): Make DFA a const pointer.
68744         (get_subexp): Likewise.
68745         (check_arrival): Likewise.
68746         (update_cur_sifted_state): Likewise.
68747         (re_search_internal): Likewise.
68748         (prune_impossible_nodes): Likewise.
68749         (acquire_init_state_context): Likewise.
68750         (proceed_next_node): Likewise.
68751         (set_regs): Likewise.
68752         (free_fail_stack_return): Likewise.
68753         (check_arrival_expand_ecl): Mark DFA parameter as const.
68754         (check_arrival_expand_ecl_sub): Likewise.
68755         (check_subexp_limits): Likewise.
68756         (sub_epsilon_src_nodes):  Likewise.
68757         (add_epsilon_src_nodes):  Likewise.
68758         (merge_state_array): Likewise.
68759         (update_regs): Likewise.
68760         (build_trtable): Likewise.
68761         (sift_states_backward): Mark MCTX parameter as const.
68762         (build_sifted_states): Likewise.
68763         (update_cur_sifted_state): Likewise.
68764         (sift_states_mkref): Likewise.
68765         (check_arrival_expand_ecl): Mark eclosure as const.
68766         (check_dst_limits_calc_pos_1): Likewise.
68767         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68768         pointer.
68769
68770         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68771
68772         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68773         (transit_state_sb): Likewise.
68774         (transit_state_mb): Likewise.
68775         (sift_states_iter_mb): Likewise.
68776         (check_arrival_add_next_nodes): Likewise.
68777         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68778         [_LIBC] (re_search_2_stub): Use mempcpy.
68779
68780         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68781         mbrtowc for very simple UTF-8 case.
68782
68783         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68784         a pointer-to-const.
68785         (re_acquire_state_context): Likewise.
68786         * lib/regex_internal.h: Adjust prototypes.
68787
68788         * lib/regex.c: Prevent using C++ compilers.
68789
68790         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68791         (re_acquire_state_context): Likewise.
68792
68793 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * modules/regex (Depends-on): Add ssize_t.
68796
68797 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68800         translation table.
68801
68802 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68803
68804         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68805
68806 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68807             Bruno Haible  <bruno@clisp.org>
68808
68809         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68810         <sys/types.h> and <inttypes.h>.
68811
68812 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68813
68814         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68815         `__error_t_defined', so argp.h will not typedef the former.
68816
68817 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68820         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68821         glibc names.  Even if glibc is changed to conform to POSIX, the
68822         traditional names will be available anyway, since regex depends on
68823         the extensions module.  Also, fix a longstanding typo in the
68824         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68825         reported by Emanuele Giaquinta.  Also, change sense of cached
68826         variable, so that the message makes sense.
68827
68828 2006-03-24  Simon Josefsson  <jas@extundo.com>
68829
68830         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68831         including some doc fixes.
68832         (base64_encode_alloc): Fix +1 bug on allocation failures.
68833
68834 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68835
68836         * lib/base64.c (base64_encode): Do not read past end of array with
68837         unsanitized input on systems with CHAR_BIT > 8.
68838
68839 2006-03-24  Eric Blake  <ebb9@byu.net>
68840
68841         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68842
68843 2006-03-22  Karl Berry  <karl@gnu.org>
68844
68845         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68846         * config/srclistvars.sh (COREUTILS): new var.
68847
68848 2006-03-17  Jim Meyering  <jim@meyering.net>
68849
68850         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68851         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68852
68853 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68856         no longer needs it.  Instead, check that regoff_t is as least
68857         as wide as ptrdiff_t.
68858
68859         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68860         so that our regex.h stays compatible with the installed regex.
68861         This is helpful for installers who configure --without-included-regex.
68862         Problem reported by Emanuele Giaquinta.
68863
68864 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68867         Typedef to long int, not to off_, as POSIX will likely change
68868         in that direction.
68869
68870 2006-03-15  Eric Blake  <ebb9@byu.net>
68871
68872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68873
68874 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68875
68876         * lib/argp-help.c (validate_uparams): Fix typo
68877         * lib/argp-parse.c (argp_default_options): Consistently begin help
68878         messages with a lowercase letter.
68879
68880 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68883         overrun buffers and shouldn't be used (much as gets shouldn't be
68884         used).
68885         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68886
68887 2006-03-08  Simon Josefsson  <jas@extundo.com>
68888
68889         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68890         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68891
68892 2006-03-08  Simon Josefsson  <jas@extundo.com>
68893
68894         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68895         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68896
68897 2006-03-08  Simon Josefsson  <jas@extundo.com>
68898
68899         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68900         signal that configure disabled the device.
68901
68902 2006-03-08  Simon Josefsson  <jas@extundo.com>
68903
68904         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68905         languages.
68906
68907 2006-03-07  Simon Josefsson  <jas@extundo.com>
68908
68909         * modules/getopt (Depends-on): Add unistd.
68910
68911         * modules/unistd: New file.
68912
68913 2006-03-07  Simon Josefsson  <jas@extundo.com>
68914
68915         * modules/gc-random: New file.
68916
68917 2006-03-07  Simon Josefsson  <jas@extundo.com>
68918
68919         * m4/unistd_h.m4: New file.
68920
68921 2006-03-07  Simon Josefsson  <jas@extundo.com>
68922
68923         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68924         test to be side-effect free by storing the result in the cache
68925         variable gl_cv_lib_readline, and moving the assignment of
68926         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68927         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68928
68929 2006-03-07  Simon Josefsson  <jas@extundo.com>
68930
68931         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68932         error on missing devices (the functions will return an error).
68933
68934         * m4/gc.m4: Move random stuff to gc-random.m4
68935
68936 2006-03-07  Simon Josefsson  <jas@extundo.com>
68937
68938         * lib/unistd_.h: New file.
68939
68940 2006-03-07  Simon Josefsson  <jas@extundo.com>
68941
68942         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68943
68944 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68947         Problem reported by Juan Manuel Guerrero.
68948
68949 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68952         the unistd module.
68953         * lib/getlogin_r.c: Likewise.
68954         * lib/getlogin_r.h: Likewise.
68955         * lib/glob.c: Likewise.
68956         * lib/pagealign_alloc.c: Likewise.
68957         * lib/unistd_.h: Remove; no longer needed.
68958
68959 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68962         Add unistd.
68963         * modules/c-stack (Depends-on): Add unistd.
68964         * modules/getlogin_r: Likewise.
68965         * modules/glob: Likewise.
68966         * modules/pagealign_alloc: Likewise.
68967         * modules/unistd (Files): Remove lib/unistd_.h.
68968         (EXTRA_DIST): Remove.
68969         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68970         need unistd_.h.
68971         (MOSTLYCLEANFILES): Remove unistd.h-t.
68972
68973 2006-03-03  Simon Josefsson  <jas@extundo.com>
68974
68975         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68976
68977 2006-03-03  Simon Josefsson  <jas@extundo.com>
68978
68979         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68980         libidn and bison.
68981
68982 2006-03-03  Simon Josefsson  <jas@extundo.com>
68983
68984         * build-aux/maint.mk: Add indent target.
68985
68986 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68987
68988         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68989         our replacement poll.h in any case, to avoid a differing
68990         declaration from a system header.  Seen on AIX.
68991
68992 2006-03-01  Simon Josefsson  <jas@extundo.com>
68993
68994         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68995         <kasal@ucw.cz>.
68996
68997 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * modules/gettime (Depends-on): Add extensions module.
69000         * modules/nanosleep (Depends-on): Likewise.
69001         * modules/settime (Depends-on): Likewise.
69002
69003 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69006         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69007         pedantically.
69008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69009         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69010
69011         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69012         not "==".  Reported by Ralf Wildenhues.
69013
69014 2006-03-01  Karl Berry  <karl@gnu.org>
69015
69016         * doc/Copyright/request-*: new files, synced from gnuorg.
69017
69018 2006-03-01  Karl Berry  <karl@gnu.org>
69019
69020         * config/srclist.txt (Copyright/*): new entries.
69021
69022 2006-02-28  Simon Josefsson  <jas@extundo.com>
69023
69024         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69025
69026 2006-02-27  Simon Josefsson  <jas@extundo.com>
69027
69028         * lib/base64.h: Indent #define's.  From Jim Meyering
69029         <jim@meyering.net>.
69030
69031 2006-02-27  Jim Meyering  <jim@meyering.net>
69032
69033         Revert the change of 2006-02-24, so these files can continue
69034         to be sync'd from gettext.
69035         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69036         of `config.h'.
69037
69038 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * modules/intprops: New file.
69041         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69042         Add intprops.
69043         * modules/getloadavg (Files): Remove lib/intprops.h.
69044         (Depends-on): Add intprops.
69045         * modules/human: Likewise.
69046         * modules/inttostr: Likewise.
69047         * modules/openat: Likewise.
69048         * modules/sig2str: Likewise.
69049         * modules/userspec: Likewise.
69050         * modules/utimecmp: Likewise.
69051         * modules/xnanosleep: Likewise.
69052         * modules/xstrtol: Likewise.
69053
69054 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69055
69056         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69057         * modules/lock-tests (TESTS): Use $(EXEEXT).
69058         * modules/tls-tests: Likewise.
69059         * modules/argp-tests: Likewise.
69060         (check_PROGRAMS): New var, replacing...
69061         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69062
69063 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69064
69065         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69066         `config.h'.
69067
69068 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69071
69072 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69073
69074         Sync from coreutils.
69075         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69076         gl_CHDIR_SAFER.
69077
69078 2006-02-22  Jim Meyering  <jim@meyering.net>
69079
69080         Sync from coreutils.
69081         * m4/chdir-safer.m4: New file.
69082
69083 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69084
69085         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69086         AT_FDCWD exceeds INT_MAX.
69087         * lib/openat.h (AT_FDCWD): Likewise.
69088
69089 2006-02-17  Eric Blake  <address@hidden>
69090
69091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69092
69093 2006-02-16  Simon Josefsson  <jas@extundo.com>
69094
69095         * modules/getaddrinfo (Depends-on): Add sys_socket.
69096
69097 2006-02-15  Simon Josefsson  <jas@extundo.com>
69098
69099         * build-aux/maint.mk: Add dsyntax-check rule.
69100
69101 2006-02-15  Eric Blake  <ebb9@byu.net>
69102
69103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69104         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69105         'present but cannot compile' warnings on cygwin.
69106         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69107         use ws2tcpip.h if sys/socket.h works.
69108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69109         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69110
69111 2006-02-14  Simon Josefsson  <jas@extundo.com>
69112
69113         * modules/maintainer-makefile (Files): Rename.
69114
69115         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69116         and (the local) Makefile.cfg to maint-cfg.mk.
69117
69118         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69119         to the latter.
69120
69121         * modules/maintainer-makefile: New module.
69122
69123         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69124         severaly stripped to make it possible to build it up from scratch
69125         with reliable tests.
69126
69127         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69128         fixes to permit overriding the default actions when configure and
69129         makefile are not available.
69130
69131 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69132
69133         Sync from coreutils.
69134         * modules/lstat (Depends-on): Don't depend on xalloc.
69135         (License): Change from GPL to LGPL, since this is now simply a
69136         replacement for a libc function.
69137
69138 2006-02-14  Jim Meyering  <jim@meyering.net>
69139
69140         Sync from coreutils.
69141
69142         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69143         failure on deficient systems, and simplify gnulib lgpl dependencies.
69144         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69145         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69146
69147         * lib/xalloc-die.c: Remove unused definition of N_.
69148
69149 2006-02-14  Jim Meyering  <jim@meyering.net>
69150
69151         Sync from coreutils.
69152         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69153         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69154         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69155         double-quote uses of that variable, to accommodate the rare case in
69156         which getmntent is available in none of the libraries checked.  This
69157         happens at least on FreeBSD 5.0.
69158
69159 2006-02-13  Simon Josefsson  <jas@extundo.com>
69160
69161         * gnulib-tool (Usage): Fix --import, from
69162         karl@freefriends.org (Karl Berry).
69163
69164 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69165
69166         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69167
69168 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69169
69170         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69171         "autoupdate" on 2005-12-12.
69172
69173 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * modules/closeout (Depends-on): Remove atexit.
69176
69177 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69178
69179         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69180         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69181
69182 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69183
69184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69185         __EXTENSIONS__ if this causes compilation to fail.  Problem
69186         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69187         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69188
69189 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69190
69191         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69192         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69194         All uses changed.
69195
69196 2006-01-26  Simon Josefsson  <jas@extundo.com>
69197
69198         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69199         prototype is visible on mingw32.
69200
69201         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69202         for mingw32.
69203
69204         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69205         mingw32).
69206
69207 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69208
69209         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69210         attempt to open for write; this always fails, at least on POSIX
69211         hosts.  This reinstates the 2006-01-09 change, which was
69212         inadvertently removed.
69213
69214 2006-01-26  Bruno Haible  <bruno@clisp.org>
69215
69216         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69217         Reported by Paul Eggert.
69218
69219 2006-01-26  Bruno Haible  <bruno@clisp.org>
69220             Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * lib/stdbool_.h (_Bool)
69223         [(! (defined __cplusplus || defined __BEOS__)
69224           && !defined __GNUC__
69225           && !(defined __HP_cc || defined __xlc__
69226                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69227                || defined __sgi))]:
69228         #define to signed char in these cases too; this simplifies
69229         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69230         etc., separately) and makes it more conservative.
69231
69232 2006-01-25  Simon Josefsson  <jas@extundo.com>
69233
69234         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69235         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69236         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69237
69238 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69239
69240         * lib/argp-namefrob.h: Bugfix. Remove stray #
69241
69242 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69243
69244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69245         so that we test the test.
69246         Check for yet another HP-UX cc bug involving *bool |= bool.
69247
69248 2006-01-25  Karl Berry  <karl@gnu.org>
69249
69250         * config/srclist.txt (vasnprintf.c): sync lost.
69251
69252 2006-01-25  Jim Meyering  <jim@meyering.net>
69253
69254         Sync from the stable (b5) branch of coreutils:
69255
69256         * lib/fts.c (fts_children): Don't let close() clobber errno from
69257         failed fchdir().
69258
69259         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69260         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69261         a dangling symlink.  That can also happen at least for ELOOP.
69262         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69263         FYI, this bug predates the inclusion of fts.c in coreutils.
69264
69265         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69266         in their own block, so pre-c99 compilers don't object.
69267
69268         Avoid the double-free (first in fts_read, second in fts_close) that
69269         would occur when an `active' directory is made inaccessible (e.g.,
69270         via chmod a-x) during a traversal.
69271         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69272         before returning.  Reproduce this failure by
69273         mkdir -p a/b; cd a; chmod a-x . b
69274         Reported by Stavros Passas.
69275
69276 2006-01-25  Jim Meyering  <jim@meyering.net>
69277
69278         * lib/fileblocks.c: Remove more useless parentheses.
69279         * lib/readutmp.h: Likewise.
69280
69281 2006-01-25  Bruno Haible  <bruno@clisp.org>
69282
69283         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69284         warnings.
69285         Reported by Paul Eggert.
69286
69287 2006-01-25  Bruno Haible  <bruno@clisp.org>
69288
69289         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69290         rid of a trap command. For Solaris sh.
69291         Reported by Mark D. Baushke <mdb@gnu.org>.
69292
69293 2006-01-24  Simon Josefsson  <jas@extundo.com>
69294
69295         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69296         Bruno.
69297
69298 2006-01-24  Karl Berry  <karl@gnu.org>
69299
69300         * config/srclist.txt (argp-namefrob.h): sync lost.
69301
69302 2006-01-24  Jim Meyering  <jim@meyering.net>
69303
69304         * modules/openat (Files): Add lib/intprops.h.
69305         From Mark D. Baushke.
69306
69307 2006-01-24  Jim Meyering  <jim@meyering.net>
69308
69309         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69310         Reported by Mark D. Baushke.
69311
69312 2006-01-24  Jim Meyering  <jim@meyering.net>
69313
69314         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69315
69316 2006-01-24  Bruno Haible  <bruno@clisp.org>
69317
69318         * modules/strnlen (Maintainer): Change from glibc to all.
69319
69320 2006-01-24  Bruno Haible  <bruno@clisp.org>
69321
69322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69323         Patch by Paul Eggert.
69324
69325 2006-01-24  Bruno Haible  <bruno@clisp.org>
69326
69327         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69328         already has it.
69329         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69330         2005-11-26.
69331
69332         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69333         'signed char' to avoid problems with the built-in _Bool type.
69334         Reported by Paul Eggert on 2005-11-26.
69335
69336 2006-01-24  Bruno Haible  <bruno@clisp.org>
69337
69338         * gnulib-tool (func_import): Avoid constructing complicated sed
69339         expressions inside backquote.
69340         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69341
69342 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69343
69344         These changes imported from libc.
69345         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69346         test and two separate function calls.
69347         * lib/strndup.c (__strndup): Add libc_hidden_def.
69348
69349 2006-01-23  Simon Josefsson  <jas@extundo.com>
69350
69351         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69352         Remove the test_*_SOURCES variable: automake infers it by default.
69353         * modules/tls-tests: Likewise.
69354
69355 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         Work around porting bugs reported by Dieter in
69358         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69359         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69360         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69361         Include "getopt.h" first, to check interface.
69362         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69363         !HAVE_DECL_GETENV.
69364         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69365         (__strndup): Revert to K&R-style function dfns, the glibc style.
69366         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69367         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69368         Include strnlen.h first, to get prototype properly.
69369         (strnlen): Renamed from __strnlen.
69370         Remove weak alias.
69371
69372 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69375
69376 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         * config/srclist.txt: Adjust to reflect glibc reorganization.
69379         This affects only comments.
69380
69381 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69382
69383          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69384          Reported by Bruce Korb <bkorb@gnu.org>.
69385
69386 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69389         to pacify gcc -Wswitch-default.
69390
69391 2006-01-22  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69394         temporary buffer for sprintf, take into account the precision also
69395         for 'd', 'i', 'u', 'o', 'x', 'X'.
69396
69397 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69398
69399         * modules/argp-tests: New module
69400         * tests/test-argp.c: New file
69401         * tests/test-argp-2.sh: New file
69402
69403 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69404
69405         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69406         (__argp_base_name): Removed
69407         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69408         typo.
69409         (__argp_base_name): Provide macro definition or extern declaration
69410         depending on the configuration
69411
69412 2006-01-20  Simon Josefsson  <jas@extundo.com>
69413
69414         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69415
69416 2006-01-20  Simon Josefsson  <jas@extundo.com>
69417
69418         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69419
69420 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69421
69422         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69423         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69424         Suggested by Bruno Haible.
69425
69426 2006-01-20  Karl Berry  <karl@gnu.org>
69427
69428         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69429         until changes propagate, I guess.
69430
69431 2006-01-19  Simon Josefsson  <jas@extundo.com>
69432
69433         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69434
69435 2006-01-19  Simon Josefsson  <jas@extundo.com>
69436
69437         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69438
69439 2006-01-19  Simon Josefsson  <jas@extundo.com>
69440
69441         * gnulib-tool: Set check_PROGRAMS.
69442
69443         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69444         modules/des-tests, modules/gc-arcfour-tests,
69445         modules/gc-arctwo-tests, modules/gc-des-tests,
69446         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69447         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69448         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69449         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69450         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69451         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69452         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69453         test_*_SOURCES.
69454
69455 2006-01-18  Simon Josefsson  <jas@extundo.com>
69456
69457         * modules/socklen (Depends-on): Depend on sys_socket.
69458
69459 2006-01-18  Simon Josefsson  <jas@extundo.com>
69460
69461         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69462         modules/des-tests, modules/gc-arcfour-tests,
69463         modules/gc-arctwo-tests, modules/gc-des-tests,
69464         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69465         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69466         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69467         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69468         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69469         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69470         $(EXEEXT) to automake TESTS variable, for mingw32.
69471
69472 2006-01-17  Simon Josefsson  <jas@extundo.com>
69473
69474         * modules/socklen (Include): Need sys/socket.h.
69475
69476 2006-01-17  Bruno Haible  <bruno@clisp.org>
69477
69478         * modules/ssize_t (Include): Add <sys/types.h>.
69479
69480 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69483         it's not portable and it doesn't work with cross-compiles.
69484         Problem reported by Bruno Haible.  Fix missing-$ typo in
69485         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69486         -zignore from being used with Sun's C compiler.
69487
69488 2006-01-12  Simon Josefsson  <jas@extundo.com>
69489
69490         * lib/base64.c: Fix warning, reported by Bruno Haible
69491         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69492
69493 2006-01-12  Bruno Haible  <bruno@clisp.org>
69494
69495         * modules/ldd: New file.
69496         * build-aux/ldd.sh.in: New file.
69497         * MODULES.html.sh (Support for building libraries and executables): Add
69498         ldd.
69499
69500 2006-01-12  Bruno Haible  <bruno@clisp.org>
69501
69502         * m4/ldd.m4: New file.
69503
69504 2006-01-12  Bruno Haible  <bruno@clisp.org>
69505
69506         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69507         endless loop while replacing $auxdir with build-aux.
69508
69509 2006-01-11  Simon Josefsson  <jas@extundo.com>
69510
69511         * lib/stdint_.h (SIZE_MAX): Add missing (.
69512
69513 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         Sync from coreutils.
69516         * lib/md5.c: Fix commentary typos.
69517         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69518         * lib/md5.h (__attribute__): Remove; unused.
69519         * lib/sha1.c: Fix commentary to match md5 better.
69520         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69521         so that we don't need to worry about alignment.  All uses changed.
69522         This merges the 2005-10-28 md5 change into sha1.
69523
69524 2006-01-11  Jim Meyering  <jim@meyering.net>
69525
69526         Sync from coreutils.
69527         * lib/md5.c (OP): Fix spacing.
69528
69529 2006-01-11  Bruno Haible  <bruno@clisp.org>
69530
69531         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69532         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69533         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69534
69535 2006-01-11  Bruno Haible  <bruno@clisp.org>
69536
69537         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69538         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69539         the "early" section as well.
69540
69541 2006-01-11  Bruno Haible  <bruno@clisp.org>
69542
69543         Avoid "ar: no archive members specified" error on MacOS X.
69544         * gnulib-tool (func_modules_add_dummy): New function.
69545         (func_import, func_create_testdir): Invoke it.
69546
69547 2006-01-11  Bruno Haible  <bruno@clisp.org>
69548
69549         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69550         with $auxdir in AC_CONFIG_FILES statements.
69551
69552 2006-01-11  Bruno Haible  <bruno@clisp.org>
69553
69554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69555         Initialize also noinst_HEADERS to empty.
69556
69557 2006-01-11  Bruno Haible  <bruno@clisp.org>
69558
69559         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69560         variables.
69561         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69562         autoreconf.
69563
69564 2006-01-11  Bruno Haible  <bruno@clisp.org>
69565
69566         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69567         overridable by the user.
69568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69569
69570 2006-01-10  Simon Josefsson  <jas@extundo.com>
69571
69572         * modules/sys_socket: New file.
69573
69574 2006-01-10  Simon Josefsson  <jas@extundo.com>
69575
69576         * m4/sys_socket_h.m4: New file.
69577
69578 2006-01-10  Simon Josefsson  <jas@extundo.com>
69579
69580         * lib/socket_.h: New file.
69581
69582 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * modules/readutmp (Maintainer): Add myself.
69585
69586 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69589         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69590         People who are still concerned with buggy memcmp implementations
69591         can invoke gl_FUNC_MEMCMP themselves.
69592
69593 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69594
69595         * lib/regex_internal.h (BITSET_WORD_BITS):
69596         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69597         preprocessor mishandles large unsigned values as if they were signed.
69598         Problem reported by Claudio Fontana in
69599         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69600
69601 2006-01-10  Jim Meyering  <jim@meyering.net>
69602
69603         Avoid the double-free (first in fts_read, second in fts_close) that
69604         would occur when an `active' directory is made inaccessible (e.g.,
69605         via chmod a-x) during a traversal.
69606         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69607         before returning.  Reproduce this failure by
69608         mkdir -p a/b; cd a; chmod a-x . b
69609         Reported by Stavros Passas.
69610
69611         Sync from coreutils.
69612         * lib/sha1.c: Tweak grammar in a comment.
69613
69614 2006-01-10  Jim Meyering  <jim@meyering.net>
69615
69616         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69617         Patch by Joerg Sonnenberger.
69618
69619 2006-01-10  Bruno Haible  <bruno@clisp.org>
69620
69621         * modules/readutmp: Depend on module free.
69622         * modules/strtok_r: Depend on module restrict.
69623
69624 2006-01-10  Bruno Haible  <bruno@clisp.org>
69625
69626         * modules/gettext (configure.ac): Add an invocation of
69627         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69628
69629 2006-01-10  Bruno Haible  <bruno@clisp.org>
69630
69631         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69632         Reported by Werner Lemberg <wl@gnu.org>.
69633
69634 2006-01-10  Bruno Haible  <bruno@clisp.org>
69635
69636         * lib/localcharset.c: Update from GNU gettext.
69637
69638 2006-01-10  Bruno Haible  <bruno@clisp.org>
69639
69640         * lib/argp.h (__const): Remove macro. Use const instead.
69641         * lib/argp-fmtstream.h (__const): Likewise.
69642         * lib/glob_.h (__const): Remove macro.
69643         * lib/glob-libc.h: Use const instead of __const.
69644
69645 2006-01-10  Bruno Haible  <bruno@clisp.org>
69646
69647         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69648         variable.
69649         Needed to avoid an automake error regarding the 'gettext' module.
69650
69651 2006-01-09  Simon Josefsson  <jas@extundo.com>
69652
69653         * modules/inet_ntop (Depends-on): Add restrict.
69654
69655 2006-01-09  Simon Josefsson  <jas@extundo.com>
69656
69657         * modules/gc-rijndael-tests (License): Put under LGPL.
69658
69659         * modules/gc-des-tests (License): Likewise.
69660
69661         * modules/gc-arcfour-tests (License): Likewise.
69662
69663         * modules/gc-arctwo-tests (License): Likewise.
69664
69665         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69666
69667         * modules/gc-hmac-sha1-tests (Files): Likewise.
69668
69669         * modules/gc-hmac-md5-tests (License): Likewise.
69670
69671         * modules/gc-sha1-tests (License): Likewise.
69672
69673         * modules/gc-md5-tests (License): Likewise.
69674
69675         * modules/gc-md4-tests (License): Likewise.
69676
69677         * modules/gc-md2-tests (License): Likewise.
69678
69679         * modules/gc-tests (License): Likewise.
69680
69681         * modules/des-tests (License): Likewise.
69682
69683         * modules/md4-tests (License): Likewise.
69684
69685         * modules/md2-tests (License): Likewise.
69686
69687 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69688
69689         Sync from coreutils:
69690
69691         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69692         * modules/lib-ignore: New file.
69693         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69694         chdir-safer.m4, lchmod.m4.
69695         * modules/openat: Add mkdirat.c, openat-priv.h.
69696
69697 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         Sync from coreutils.
69700         * m4/lib-ignore.m4: New file.
69701         * m4/lchmod.m4: New file.
69702
69703 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69704
69705         Sync from coreutils.
69706         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69707         for write access: POSIX says that must fail.
69708         * lib/fts.c (diropen): Likewise.
69709         * lib/save-cwd.c (save_cwd): Likewise.
69710         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69711         well, for minor improvements on hosts that lack O_DIRECTORY.
69712         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69713         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69714         Fall back on chown if open failed with EACCES.
69715
69716         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69717         Report an error at compile-time if only a 1-second nominal clock
69718         resolution is found.
69719
69720         * lib/lchmod.h: New file.
69721         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69722         (make_dir_parents): Use lchown rather than chown, and
69723         lchmod rather than chmod.
69724
69725         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69726         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69727         "proc" reported by n0dalus.
69728
69729         * lib/mountlist.c: Include <limits.h>.
69730         (dev_from_mount_options)
69731         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69732         New function.  It no longer assumes "dev=" has the System V meaning
69733         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69734         (read_file_system_list)
69735         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69736         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69737         dev= in that case.
69738
69739         * lib/posixtm.h (PDS_PRE_2000): New macro.
69740         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69741         allow_century.  All usages changed.  Reject dates outside the range
69742         1969-1999 if PDS_PRE_2000 is used.
69743
69744 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         Sync from coreutils.
69747         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69748         (Time of day items): Mention the possibility of leap seconds.
69749         Problem reported by Dr. David Alan Gilbert.
69750
69751 2006-01-09  Jim Meyering  <jim@meyering.net>
69752
69753         Sync from coreutils.
69754
69755         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69756
69757         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69758
69759         * lib/modechange.c (mode_compile): Reject an invalid mode string
69760         that starts with an octal digit.  From Andreas Gruenbacher.
69761
69762         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69763         and dup to open_safer and dup_safer, respectively.
69764         (openat_permissive): Fix typo in comment.
69765
69766         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69767         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69768         (_): Remove; no longer needed.
69769         (openat): Renamed from rpl_openat; no need for rpl_openat
69770         since openat.h renames openat for us.
69771         Replace most of the body with a call to openat_permissive,
69772         to avoid duplicate code.
69773         Port to (probably hypothetical) environments were mode_t is
69774         wider than int.
69775         (openat_permissive): Require mode arg, so that we can check
69776         types better.  Put it just after flags.  Change cwd failure
69777         indicator from pointer-to-bool to pointer-to-errno-value.
69778         All callers changed.
69779         Invoke openat_save_fail and/or openat_restore_fail if
69780         cwd_errno is null, so that openat can call us.
69781         (openat_permissive, fdopendir, fstatat, unlinkat):
69782         Simplify errno handling to avoid some duplicate code,
69783         as it's OK to set errno on success.
69784         * lib/openat.h: Revamp code so that function macros depend on
69785         __OPENAT_PREFIX only, not also on AT_FDCWD.
69786         (openat_ro): Remove.  Caller changed to use openat_permissive.
69787         (openat_permissive): Now a macro, if not a function.
69788         (openat_restore_fail, openat_save_fail): Now always functions,
69789         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69790
69791         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69792         and openat.c.
69793         * lib/mkdirat.c: Include openat-priv.h.
69794         Remove definitions of macros defined therein.
69795         * lib/openat.c: Likewise.
69796
69797         * lib/mkdirat.c (mkdirat): New file and function.
69798         * lib/openat.h (mkdirat): Declare.
69799
69800         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69801
69802         * lib/openat.h (openat_permissive): Declare.
69803         (openat_ro): Define.
69804
69805         * lib/openat.c (EXPECTED_ERRNO): New macro.
69806         (openat_permissive): New function -- used in remove.c rewrite.
69807         (all functions): Set errno just before returning, only if there
69808         was an actual failure.
69809         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69810
69811         Emulate openat-family functions using Linux's procfs, if possible.
69812         Idea and some code based on Ulrich Drepper's glibc changes.
69813
69814         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69815         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69816         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69817         before falling back on save_cwd and restore_cwd.
69818         (fdopendir, fstatat, unlinkat): Likewise.
69819
69820         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69821         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69822
69823         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69824         as second argument to va_arg.  Otherwise, some versions of gcc
69825         warn that `if this code is reached, the program will abort'.
69826
69827 2006-01-09  Jim Meyering  <jim@meyering.net>
69828
69829         Sync from coreutils.
69830         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69831         Require openat-priv.h.
69832
69833 2006-01-09  Bruno Haible  <bruno@clisp.org>
69834
69835         * modules/strnlen (Include): Use strnlen.h.
69836
69837 2006-01-09  Bruno Haible  <bruno@clisp.org>
69838
69839         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69840
69841 2006-01-09  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/sysexit_.h (EX_OK): New macro.
69844         Suggested by Martin Lambers <marlam@marlam.de>.
69845
69846 2006-01-09  Bruno Haible  <bruno@clisp.org>
69847
69848         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69849         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69850
69851 2006-01-09  Bruno Haible  <bruno@clisp.org>
69852
69853         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69854         numbers.
69855
69856 2006-01-09  Bruno Haible  <bruno@clisp.org>
69857
69858         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69859         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69860         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69861         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69862
69863 2006-01-09  Bruno Haible  <bruno@clisp.org>
69864
69865         * build-aux/javacomp.sh.in: New file, moved from lib/.
69866         * modules/javacomp-script (Files): Update.
69867         (configure.ac): Add AC_CONFIG_FILES invocation.
69868         (EXTRA_DIST): Remove variable.
69869
69870         * build-aux/javaexec.sh.in: New file, moved from lib/.
69871         * modules/javaexec (Files): Update.
69872         (configure.ac): Add AC_CONFIG_FILES invocation.
69873         (EXTRA_DIST): Remove javaexec.sh.in.
69874
69875         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69876         * modules/csharpcomp-script (Files): Update.
69877         (configure.ac): Add AC_CONFIG_FILES invocation.
69878         (EXTRA_DIST): Remove variable.
69879
69880         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69881         * modules/csharpexec (Files): Update.
69882         (configure.ac): Add AC_CONFIG_FILES invocation.
69883         (EXTRA_DIST): Remove csharpexec.sh.in.
69884
69885 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69886
69887         Sync from coreutils.
69888
69889         Add POSIX ACL support
69890         * lib/acl.h (copy_acl, set_acl): Add declarations.
69891         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69892         systems other than Linux.
69893         (chmod_or_fchmod): New function: use fchmod when possible,
69894         and chmod otherwise.
69895         (file_has_acl): Add a POSIX ACL implementation, with a
69896         Linux-specific subcase.
69897         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69898         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69899         acls are unsupported.
69900         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69901         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69902         are unsupported.
69903
69904 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69905
69906         Sync from coreutils.
69907         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69908
69909 2006-01-07  Bruno Haible  <bruno@clisp.org>
69910
69911         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69912         gl_EARLY.
69913
69914 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69917         Problem reported for Mingw by Mark Junker.
69918
69919 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * README: Gnulib normally doesn't generate a tarball.
69922
69923 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69926         long int, not int, for nanosecond counts, so that people who are
69927         used to POSIX struct timespec won't be surprised.  Reported by Jim
69928         Meyering.
69929
69930 2005-12-28  Bruno Haible  <bruno@clisp.org>
69931
69932         * build-aux/config.rpath: Update from GNU gettext.
69933
69934 2005-12-16  Jim Meyering  <jim@meyering.net>
69935
69936         * modules/fprintftime: New module.
69937         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69938
69939 2005-12-16  Jim Meyering  <jim@meyering.net>
69940
69941         * m4/fprintftime.m4: New file.
69942
69943 2005-12-16  Jim Meyering  <jim@meyering.net>
69944
69945         * lib/fprintftime.c, lib/fprintftime.h: New files.
69946
69947 2005-12-15  Simon Josefsson  <jas@extundo.com>
69948
69949         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69950         new m4/socklen.m4.
69951
69952 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69953
69954         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69955         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69956
69957 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69958
69959         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69960         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69961         struct uparams is valid. Fall back to the default values if it is
69962         not.
69963
69964 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69965
69966         * modules/argp (Files): Add argp-pin.c
69967         (Depends-on): dirname
69968         (lib_SOURCES): Add argp-pin.c
69969
69970 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69971
69972         * m4/argp.m4:  Check if program_invocation_name and
69973         program_invocation_short_name are declared and define appropriate
69974         macros if they are not.
69975
69976 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69977
69978         * lib/argp-help.c (__argp_base_name): New function
69979         (__argp_short_program_name): Rewrite using __argp_base_name
69980         * lib/argp-namefrob.h: Define program_invocation_name and
69981         program_invocation_short_name if requested
69982         (__argp_base_name): Add prototype
69983         * lib/argp-parse.c (argp_def): Use gettext wrappers
69984         (argp_default_parser): Use __argp_base_name
69985         * lib/argp-pin.c: New file. Defines program_invocation_name and
69986         program_invocation_short_name on systems that lack them.
69987
69988 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69989
69990         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69991         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69992         porting problem reported by Georg Schwarz in
69993         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69994
69995 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69998         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69999         porting problem reported by Georg Schwarz in
70000         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70001
70002 2005-12-05  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70005         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70006         Reported by Mark Junker <mjscod@gmx.de>.
70007
70008 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70011         Use implementation from Albert Chin, with some
70012         comments/corrections by Stepan Kasal and myself.
70013
70014 2005-12-02  Bruno Haible  <bruno@clisp.org>
70015
70016         * gnulib-tool (func_import): Accept GPLed build tool modules when
70017         --lgpl is given.
70018         * modules/csharpcomp-script: New file.
70019         * modules/csharpcomp: Depend on it.
70020         * modules/javacomp-script: New file.
70021         * modules/javacomp: Depend on it.
70022         Suggested by Simon Josefsson.
70023
70024 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70025
70026         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70027         statement, to work around an HP-UX 10.20 compiler bug reported by
70028         Peter O'Gorman.
70029
70030 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         * modules/savedir (Depends-on): Add openat.
70033
70034 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70037         (uintmax_t) [defined uintmax_t]: Do not declare.
70038         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70039         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70040         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70041         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70042         sake of portability to weird hosts that C allows (though we don't
70043         know of any practical examples).
70044
70045         * lib/savedir.h (fdsavedir): New decl.
70046         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70047         contains most of the former guts of savedir.
70048         (savedir): Use savedirstream.
70049         Include "openat.h".
70050
70051 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * modules/obstack (Files): Add m4/ulonglong.m4.
70054         Problem reported by Davide Angelocola.
70055
70056 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70059         coreutils no longer futzes with rounding modes.
70060
70061 2005-11-14  Jim Meyering  <jim@meyering.net>
70062
70063         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70064         replacement of mkstemp.
70065
70066 2005-11-10  Simon Josefsson  <jas@extundo.com>
70067
70068         * lib/readline.c: Remove EOL.
70069
70070 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * modules/gethrxtime (Depends-on): Add gettime.
70073
70074 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70077         or gettimeofday; no longer needed.
70078
70079 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70082         time business.
70083         (gethrxtime) [! (HAVE_NANOUPTIME
70084         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70085         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70086         our own approximation.
70087
70088 2005-11-08  Eric Blake  <ebb9@byu.net>
70089
70090         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70091
70092 2005-11-08  Eric Blake  <ebb9@byu.net>
70093
70094         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70095
70096 2005-11-04  Bruno Haible  <bruno@clisp.org>
70097
70098         * gnulib-tool: Implement --update mode.
70099
70100 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         Fix porting problem reported by Theodoros V. Kalamatianos.
70103         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70104         Don't assume that futimes failing means we must fail.
70105
70106 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70109         variables to suggest the intended function of the PATH_MAX check.
70110
70111 2005-10-30  Kean Johnston  <jkj@sco.com>
70112
70113         Trivial changes to support SCO systems.
70114         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70115         as PATH_MAX.
70116         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70117         where __ptr is null when no I/O is pending.
70118
70119 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70122         leave errno alone.  Problem reported by Dmitry V. Levin.
70123
70124 2005-10-28  Simon Josefsson  <jas@extundo.com>
70125
70126         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70127         Test more.
70128
70129         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70130
70131         * modules/md2, modules/md2-tests: New files.
70132
70133 2005-10-28  Simon Josefsson  <jas@extundo.com>
70134
70135         * m4/inet_ntop.m4: More tests.
70136
70137         * m4/gc-md2.m4, md2.m4: New file.
70138
70139 2005-10-28  Simon Josefsson  <jas@extundo.com>
70140
70141         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70142         "restrict" keywords, as per POSIX.  Protect the function
70143         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70144         Don't use K&R prototypes.  Check the sprintf return values.
70145         Re-define EAFNOSUPPORT if not present.  Indent.
70146
70147         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70148         suggested by Bruno Haible <bruno@clisp.org>.
70149
70150         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70151
70152         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70153
70154         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70155         libgcrypt).
70156
70157         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70158
70159         * lib/md2.h, lib/md2.c: New files.
70160
70161 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70164         errno alone.  Problem reported by Frederic Jolliton.
70165
70166 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70167
70168         * modules/verify (License): Change from GPL to LGPL.  This is a
70169         tiny module and there are apparently near-equivalents that are
70170         under the BSD license.
70171
70172 2005-10-24  Simon Josefsson  <jas@extundo.com>
70173
70174         * modules/sha1: Relicense to LGPL.
70175
70176 2005-10-24  Simon Josefsson  <jas@extundo.com>
70177
70178         * lib/md4.h: Shrink buffer size, now that we changed the type.
70179
70180 2005-10-23  Simon Josefsson  <jas@extundo.com>
70181
70182         * gnulib-tool (func_import): Fix --tests-base.
70183
70184 2005-10-22  Simon Josefsson  <jas@extundo.com>
70185
70186         * modules/arcfour (Depends-on): Need stdint.
70187
70188 2005-10-22  Simon Josefsson  <jas@extundo.com>
70189
70190         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70191         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70192
70193 2005-10-22  Simon Josefsson  <jas@extundo.com>
70194
70195         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70196         suggested by Bruno Haible <bruno@clisp.org>.
70197
70198 2005-10-22  Simon Josefsson  <jas@extundo.com>
70199
70200         * lib/crc.h: Include stddef.h, for size_t.
70201
70202 2005-10-22  Simon Josefsson  <jas@extundo.com>
70203
70204         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70205         arcfour_context struct (simplify test vector testing in GNU
70206         Shishi).
70207
70208 2005-10-21  Simon Josefsson  <jas@extundo.com>
70209
70210         * modules/des, modules/des-tests: New files.
70211
70212         * modules/gc-des, modules/gc-des-tests: New files.
70213
70214         * tests/test-des.c, tests/test-gc-des.c: New file.
70215
70216 2005-10-21  Simon Josefsson  <jas@extundo.com>
70217
70218         * modules/arctwo, modules/arctwo-tests: New files.
70219
70220         * tests/test-arctwo.c: New file.
70221
70222         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70223
70224         * tests/test-gc-arctwo.c: New file.
70225
70226 2005-10-21  Simon Josefsson  <jas@extundo.com>
70227
70228         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70229         Bruno Haible <bruno@clisp.org>.
70230
70231         * m4/gc-des.m4: New file.
70232
70233 2005-10-21  Simon Josefsson  <jas@extundo.com>
70234
70235         * m4/arctwo.m4: New file.
70236
70237         * m4/gc-arctwo.m4: New file.
70238
70239 2005-10-21  Simon Josefsson  <jas@extundo.com>
70240
70241         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70242         block.
70243
70244 2005-10-21  Simon Josefsson  <jas@extundo.com>
70245
70246         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70247         <bruno@clisp.org>.
70248
70249         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70250
70251         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70252         Bruno Haible <bruno@clisp.org>.
70253
70254         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70255         <bruno@clisp.org>.
70256
70257 2005-10-21  Simon Josefsson  <jas@extundo.com>
70258
70259         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70260
70261 2005-10-21  Simon Josefsson  <jas@extundo.com>
70262
70263         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70264
70265 2005-10-21  Simon Josefsson  <jas@extundo.com>
70266
70267         * lib/des.h, lib/des.c: New files.
70268
70269         * lib/gc-gnulib.c: Support DES.c
70270
70271 2005-10-21  Simon Josefsson  <jas@extundo.com>
70272
70273         * lib/arctwo.h, lib/arctwo.c: New files.
70274
70275         * lib/gc-gnulib.c: Support ARCTWO.
70276
70277 2005-10-21  Simon Josefsson  <jas@extundo.com>
70278
70279         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70280         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70281
70282 2005-10-21  Simon Josefsson  <jas@extundo.com>
70283
70284         * gnulib-tool (func_import, func_create_testdir): Define automake
70285         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70286         Makefile.am snippet),
70287         suggested by Bruno Haible <bruno@clisp.org>.
70288
70289         * modules/gc (Makefile.am): Use it.
70290
70291 2005-10-21  Bruno Haible  <bruno@clisp.org>
70292
70293         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70294         patch.
70295
70296 2005-10-19  Simon Josefsson  <jas@extundo.com>
70297
70298         * tests/test-gc-rijndael.c: New file.
70299
70300         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70301
70302 2005-10-19  Simon Josefsson  <jas@extundo.com>
70303
70304         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70305         interface too.
70306
70307 2005-10-19  Simon Josefsson  <jas@extundo.com>
70308
70309         * tests/test-gc-arcfour.c: New file.
70310
70311         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70312
70313 2005-10-19  Simon Josefsson  <jas@extundo.com>
70314
70315         * modules/gc-md4, modules/gc-md4-tests: New file.
70316
70317         * tests/test-gc-md4.c: New file.
70318
70319 2005-10-19  Simon Josefsson  <jas@extundo.com>
70320
70321         * m4/gc-md4.m4: New file.
70322
70323 2005-10-19  Simon Josefsson  <jas@extundo.com>
70324
70325         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70326         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70327         <kasal@ucw.cz>.
70328
70329 2005-10-19  Simon Josefsson  <jas@extundo.com>
70330
70331         * m4/gc-arcfour.m4: New file.
70332
70333         * m4/gc-rijndael.m4: New file.
70334
70335 2005-10-19  Simon Josefsson  <jas@extundo.com>
70336
70337         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70338
70339 2005-10-19  Simon Josefsson  <jas@extundo.com>
70340
70341         * lib/gc-gnulib.c: Support ARCFOUR.
70342
70343 2005-10-19  Simon Josefsson  <jas@extundo.com>
70344
70345         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70346         support.
70347
70348         * lib/gc.h: Add ECB enum type.
70349
70350         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70351
70352 2005-10-18  Simon Josefsson  <jas@extundo.com>
70353
70354         * tests/test-md5.c: New file.
70355
70356         * modules/md5-tests: New file.
70357
70358 2005-10-18  Simon Josefsson  <jas@extundo.com>
70359
70360         * tests/test-md4.c: New file.
70361
70362         * modules/md4, modules/md4-tests: New files.
70363
70364 2005-10-18  Simon Josefsson  <jas@extundo.com>
70365
70366         * m4/md4.m4: New file.
70367
70368 2005-10-18  Simon Josefsson  <jas@extundo.com>
70369
70370         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70371
70372 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70373
70374         * gnulib-tool (func_create_testdir): Omit the second check whether
70375         BUILT_SOURCES in nonempty.
70376
70377 2005-10-17  Simon Josefsson  <jas@extundo.com>
70378
70379         * tests/test-rijndael.c: New file.
70380
70381 2005-10-17  Simon Josefsson  <jas@extundo.com>
70382
70383         * modules/sha1: Depend on stdint instead of md5.
70384
70385         * modules/md5: Depend on stdint, remove uint32_t.
70386
70387 2005-10-17  Simon Josefsson  <jas@extundo.com>
70388
70389         * modules/gc-sha1-tests: New file.
70390
70391         * tests/test-gc-sha1.c: New file.
70392
70393 2005-10-17  Simon Josefsson  <jas@extundo.com>
70394
70395         * m4/md5.m4: Remove call to uint32_t.m4.
70396
70397 2005-10-17  Simon Josefsson  <jas@extundo.com>
70398
70399         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70400
70401         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70402         md5.h.
70403
70404         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70405
70406         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70407
70408 2005-10-17  Simon Josefsson  <jas@extundo.com>
70409
70410         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70411
70412 2005-10-17  Simon Josefsson  <jas@extundo.com>
70413
70414         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70415
70416 2005-10-17  Simon Josefsson  <jas@extundo.com>
70417
70418         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70419
70420         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70421
70422 2005-10-17  Bruno Haible  <bruno@clisp.org>
70423
70424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70425         that it can also be used in a test.
70426
70427 2005-10-16  Bruno Haible  <bruno@clisp.org>
70428
70429         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70430         TESTS_ENVIRONMENT, so that individual tests can augment it.
70431
70432         * gnulib-tool (func_create_testdir): Use an intermediate target for
70433         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70434         macros, like $(ALLOCA_H), which cannot be passed through the command
70435         line.
70436
70437 2005-10-15  Simon Josefsson  <jas@extundo.com>
70438
70439         * modules/rijndael-tests: New file.
70440
70441         * modules/rijndael: New file.
70442
70443 2005-10-15  Simon Josefsson  <jas@extundo.com>
70444
70445         * m4/rijndael.m4: New file.
70446
70447 2005-10-15  Simon Josefsson  <jas@extundo.com>
70448
70449         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70450
70451         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70452
70453 2005-10-14  Simon Josefsson  <jas@extundo.com>
70454
70455         * tests/test-arcfour.c: New file.
70456
70457         * modules/arcfour, modules/arcfour-tests: New files.
70458
70459 2005-10-14  Simon Josefsson  <jas@extundo.com>
70460
70461         * m4/arcfour.m4: New file.
70462
70463 2005-10-14  Simon Josefsson  <jas@extundo.com>
70464
70465         * lib/arcfour.h, lib/arcfour.c: New files.
70466
70467 2005-10-14  Roland McGrath  <roland@redhat.com>
70468
70469         Import from libc.  [BZ #1331]
70470         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70471         macro argument.
70472         Reported by Matej Vela <vela@debian.org>.
70473
70474 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70477         include <wchar.h>; no longer needed.
70478
70479 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70482
70483 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70484         and  Ulrich Drepper  <drepper@redhat.com>
70485
70486         Import from libc.
70487         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70488         instead of inline stream orientation test and two separate
70489         function calls.  Pay no attention to USE_IN_LIBIO.
70490
70491 2005-10-13  Simon Josefsson  <jas@extundo.com>
70492
70493         * modules/gc-hmac-md5-tests: New file.
70494
70495         * tests/test-gc-hmac-sha1.c: New file.
70496
70497         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70498
70499         * modules/gc-hmac-md5-tests: New file.
70500
70501         * tests/test-gc-md5.c: New file.
70502
70503         * modules/gc-md5-tests: New file.
70504
70505 2005-10-13  Simon Josefsson  <jas@extundo.com>
70506
70507         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70508         Move memory allocation outside of loop.
70509
70510 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70513         intermediate directory is in a read-only file system.  Problem
70514         reported by Eric Blake.
70515
70516 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70517
70518         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70519
70520 2005-10-12  Simon Josefsson  <jas@extundo.com>
70521
70522         * tests/test-hmac-sha1.c: New file.
70523
70524         * modules/hmac-sha1-tests: New file.
70525
70526         * modules/hmac-sha1: New file.
70527
70528 2005-10-12  Simon Josefsson  <jas@extundo.com>
70529
70530         * modules/gc-sha1: New file.
70531
70532 2005-10-12  Simon Josefsson  <jas@extundo.com>
70533
70534         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70535
70536         * tests/test-gc-pbkdf2-sha1.c: New file.
70537
70538 2005-10-12  Simon Josefsson  <jas@extundo.com>
70539
70540         * modules/gc-md5, modules/gc-hmac-md5: New files.
70541
70542         * modules/gc (Files): Remove md5, memxor and hmac files.
70543
70544 2005-10-12  Simon Josefsson  <jas@extundo.com>
70545
70546         * m4/gc-pbkdf2-sha1.m4: New file.
70547
70548         * m4/gc-hmac-sha1.m4: New file.
70549
70550         * m4/gc-sha1: New file.
70551
70552         * m4/hmac-sha1.m4: New file.
70553
70554 2005-10-12  Simon Josefsson  <jas@extundo.com>
70555
70556         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70557
70558         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70559
70560 2005-10-12  Simon Josefsson  <jas@extundo.com>
70561
70562         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70563         suggested by Bruno Haible <bruno@clisp.org>.
70564
70565 2005-10-12  Simon Josefsson  <jas@extundo.com>
70566
70567         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70568
70569 2005-10-12  Simon Josefsson  <jas@extundo.com>
70570
70571         * lib/gc-pbkdf2-sha1.c: New file.
70572
70573         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70574
70575 2005-10-12  Simon Josefsson  <jas@extundo.com>
70576
70577         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70578
70579         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70580
70581 2005-10-12  Simon Josefsson  <jas@extundo.com>
70582
70583         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70584         GC_USE_HMAC_MD5, respectively.
70585
70586         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70587         (gc_md5): Fix typo.
70588
70589         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70590
70591         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70592
70593         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70594
70595 2005-10-12  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70598         Reported by Stepan Kasal <kasal@ucw.cz>.
70599
70600 2005-10-11  Simon Josefsson  <jas@extundo.com>
70601
70602         * tests/test-crc.c: New file.
70603
70604         * modules/crc, modules/crc-tests: New files.
70605
70606 2005-10-11  Simon Josefsson  <jas@extundo.com>
70607
70608         * m4/crc.m4: New file.
70609
70610 2005-10-11  Simon Josefsson  <jas@extundo.com>
70611
70612         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70613
70614         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70615
70616         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70617
70618 2005-10-11  Simon Josefsson  <jas@extundo.com>
70619
70620         * lib/crc.h, lib/crc.c: New files.
70621
70622         * lib/gc.h (gc_hash_buffer): Add doc.
70623
70624 2005-10-11  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/c-strcasestr: New file.
70627         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70628
70629 2005-10-11  Bruno Haible  <bruno@clisp.org>
70630
70631         * modules/c-strcase: New file.
70632         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70633
70634 2005-10-11  Bruno Haible  <bruno@clisp.org>
70635
70636         * lib/strcasecmp.c: Include limits.h.
70637         (strcasecmp): Avoid integer overflow on exotic platforms.
70638         * lib/strncasecmp.c: Include limits.h.
70639         (strncasecmp): Avoid integer overflow on exotic platforms.
70640         Reported by Paul Eggert.
70641
70642 2005-10-11  Bruno Haible  <bruno@clisp.org>
70643
70644         * lib/c-strcasestr.h: New file, from GNU gettext.
70645         * lib/c-strcasestr.c: New file, from GNU gettext.
70646
70647 2005-10-11  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/c-strcase.h: New file, from GNU gettext.
70650         * lib/c-strcasecmp.c: New file, from GNU gettext.
70651         * lib/c-strncasecmp.c: New file, from GNU gettext.
70652
70653 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * modules/mempcpy (License): GPL -> LGPL.
70656         * modules/strchrnul (License): Likewise.
70657         * modules/sysexits (License): Likewise.
70658
70659 2005-10-08  Simon Josefsson  <jas@extundo.com>
70660
70661         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70662
70663 2005-10-07  Simon Josefsson  <jas@extundo.com>
70664
70665         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70666
70667 2005-10-06  Simon Josefsson  <jas@extundo.com>
70668
70669         * tests/test-hmac-md5.c: New file.
70670
70671         * modules/hmac-md5-tests: New file.
70672
70673         * modules/hmac-md5: New file.
70674
70675 2005-10-06  Simon Josefsson  <jas@extundo.com>
70676
70677         * m4/hmac-md5.m4: New file.
70678
70679         * m4/memxor.m4: Require gl_C_RESTRICT.
70680
70681 2005-10-06  Simon Josefsson  <jas@extundo.com>
70682
70683         * lib/memxor.c (memxor): Avoid casts and warnings.
70684
70685 2005-10-06  Simon Josefsson  <jas@extundo.com>
70686
70687         * lib/hmac-md5.c: New file.
70688
70689         * lib/hmac.h: New file.
70690
70691 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70692
70693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70694         promotes to int, not unsigned int, to catch the AIX 5.3
70695         compiler bug.
70696
70697 2005-10-05  Simon Josefsson  <jas@extundo.com>
70698
70699         * modules/memxor: New file.
70700
70701         * modules/iconv (Files): Move config.rpath to havelib, it is used
70702         there.
70703
70704         * modules/havelib (Files): Add config.rpath.
70705
70706 2005-10-05  Simon Josefsson  <jas@extundo.com>
70707
70708         * m4/memxor.m4: New file.
70709
70710 2005-10-05  Simon Josefsson  <jas@extundo.com>
70711
70712         * lib/memxor.c (memxor): Fix compiler error.
70713
70714         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70715         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70716
70717         * lib/memxor.h, lib/memxor.c: New files.
70718
70719         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70720         we assume all systems have it, suggested by Jim Meyering
70721         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70722         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70723         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70724         same reasons.
70725
70726 2005-10-05  Simon Josefsson  <jas@extundo.com>
70727
70728         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70729
70730 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70733         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70734         needed, since the source code now assumes these .h files.
70735
70736 2005-10-05  Derek Price  <derek@ximbiot.com>
70737
70738         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70739
70740 2005-10-05  Bruno Haible  <bruno@clisp.org>
70741
70742         * modules/stdint (License): Change to LGPL.
70743
70744 2005-10-04  Simon Josefsson  <jas@extundo.com>
70745
70746         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70747         D. Baushke" <mdb@gnu.org>.
70748
70749 2005-10-04  Bruno Haible  <bruno@clisp.org>
70750
70751         * lib/verify.h (verify_true): Provide alternative definition for C++.
70752
70753 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70756         (SSIZE_MAX): New macro, if not already defined.
70757         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70758         than 2 GiB.
70759
70760 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         Sync from coreutils.
70763         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70764         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70765         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70766         ULLONG_MAX doesn't work with 2.7.2.1.
70767
70768 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70771         From Ben Pfaff.
70772
70773         * modules/exclude (Depends-on): Depend on verify.
70774         * modules/strtoimax (Depends-on): Likewise.
70775         * modules/utimecmp (Depends-on): Likewise.
70776
70777 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70778
70779         * lib/exclude.c: Include verify.h.
70780         (verify): Remove.  All callers changed to use verify.h's version.
70781         * lib/strtoimax.c: Likewise.
70782         * lib/utimecmp.c: Likewis.e
70783
70784         Sync from coreutils.
70785         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70786         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70787         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70788         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70789         bother returning ENOSYS if settimeofday or stime fails; just let
70790         them return whatever errno they want to return.
70791         * lib/utimens.c: Include unistd.h, for dup2.
70792         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70793         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70794
70795 2005-10-02  Jim Meyering  <jim@meyering.net>
70796
70797         Sync from coreutils.
70798         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70799         from glibc-2.2.5 that fails for read-only files.
70800
70801 2005-10-02  Jim Meyering  <jim@meyering.net>
70802
70803         Sync from coreutils.
70804         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70805         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70806         `#if HAVE_CONFIG_H'.
70807         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70808         Remove AT_FDCWD test.
70809         Do not consume the fd unless successful.
70810         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70811         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70812         block, so that we don't even try to compile it if settimeofday is
70813         available.  This works around a compilation failure on OSF1 V5.1,
70814         due to stime requiring a `long int*' while tv_sec is `int'.
70815
70816 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70817
70818         Sync from coreutils.
70819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70820         against `yes', rather than just testing for nonempty.
70821
70822 2005-10-01  Simon Josefsson  <jas@extundo.com>
70823
70824         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70825         and Darwin.
70826
70827         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70828         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70829         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70830         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70831         Check if struct addrinfo is declared.
70832
70833 2005-10-01  Simon Josefsson  <jas@extundo.com>
70834
70835         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70836         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70837         AI_* and EAI_* definitions.  Protect function declarations.
70838
70839 2005-10-01  Jim Meyering  <jim@meyering.net>
70840
70841         Sync from coreutils.
70842
70843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70844         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70845         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70847         in the inet and nsl libraries.  Required on Solaris 5.7.
70848
70849 2005-10-01  Jim Meyering  <jim@meyering.net>
70850
70851         Sync from coreutils.
70852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70853         in the inet and nsl libraries.  Required on Solaris 5.7.
70854
70855 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70856
70857         * lib/getdelim.c (getdelim): Remove unused variables.
70858
70859 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70862         so that the code works even with ancient cpp.  Portability problem
70863         with GCC 2.7.2.1 reported by Thomas M.Ott.
70864
70865 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * modules/regex (Depends-on): Add strcase.
70868
70869         * modules/gethostname (Licence): Change from GPL to LGPL, since
70870         gethostname.c is a trivial implementation of a standard library
70871         function.
70872         * modules/poll (License): Change from GPL to LGPL, since it's
70873         derived from LGPL code.
70874
70875 2005-09-27  Jim Meyering  <jim@meyering.net>
70876
70877         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70878         HAVE_CONFIG_H.
70879
70880         * lib/intprops.h (signed_type_or_expr__): Define.
70881         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70882         for unsigned types.
70883
70884 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * lib/verify.h (verify_expr): Remove, replacing with:
70887         (verify_true): New macro that returns true instead of void.
70888         (verify_type__): Remove.
70889         (verify): Use verify_true rather than verify_type__.
70890
70891 2005-09-26  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70894         is necessary.
70895         (lib_SOURCES): Remove mbchar.c.
70896         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70897         (Files): Add m4/mbrtowc.m4.
70898         * modules/mbiter: Likewise.
70899         * modules/mbuiter: Likewise.
70900
70901 2005-09-26  Bruno Haible  <bruno@clisp.org>
70902
70903         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70904         compile mbchar.c if they are not both present.
70905         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70906         * m4/mbiter.m4 (gl_MBITER): Likewise.
70907         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70908         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70909         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70910
70911 2005-09-25  Jim Meyering  <jim@meyering.net>
70912
70913         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70914         also uses socklen_t.
70915
70916 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * lib/utimens.c (ENOSYS): Define if not already defined.
70919         (futimens): Support having a null PATH if the file descriptor
70920         is nonnegative.
70921
70922         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70923         Remove.
70924         (__attribute): Define to empty unless GCC 3.1 or later.
70925         This works around a core dump on OpenBSD 3.4, which has GCC
70926         2.95.3, which dumps core when given __attribute__(()).  It also
70927         simplifies other tests, since we really don't want to bother with
70928         worrying about which ancient version of GCC supported what.
70929         Original problem reported by Yoann Vandoorselaere, with part of
70930         the fix suggested by Derek Price.
70931
70932 2005-09-24  Jim Meyering  <jim@meyering.net>
70933
70934         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70935         so we can once again use a positive bitfield width of 1 -- now we
70936         don't have to explain why we were using a bitfield width of 2.
70937
70938 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70941         and similarly for the other external symbols.  Problem reported
70942         by James Gallager.
70943
70944         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70945         bug reported by Jim Meyering.
70946
70947         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70949         not needed, since socklen is a prerequisite module.
70950
70951 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70954         Problem reported by Eric Blake.
70955         (getaddrinfo): Initialize se so that it's not garbage.
70956         Redo internal storage allocation so that it doesn't make unportable
70957         assumptions about alignment.
70958         Fix a memory leak.
70959
70960         * lib/utimens.c (futimens): Use futimesat if available.
70961         Prefer it to futimes since it doesn't have the futimes bug.
70962
70963         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70964         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70965         Instead, declare a function that returns a pointer to an array,
70966         and use verify_type__ to declare the size of the array.
70967         Problem and germ of a solution reported by Bruno Haible.
70968         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70969         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70970
70971 2005-09-23  Jim Meyering  <jim@meyering.net>
70972
70973         Sync from coreutils.
70974         Correct build failure (socklen_t not defined) on at least
70975         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70977
70978 2005-09-23  Jim Meyering  <jim@meyering.net>
70979
70980         * modules/getaddrinfo (Depends-on): Add socklen.
70981
70982 2005-09-23  Bruno Haible  <bruno@clisp.org>
70983
70984         * tests/test-verify.c: New file.
70985
70986 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         Sync from coreutils.
70989
70990         * modules/argmatch (Depends-on): Add verify.
70991         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70992         unistd-safer.
70993         * modules/save-cwd (Depends-on): Likewise.
70994
70995         * modules/openat (Files): Add lib/openat-die.c.
70996         (Depends-on): Remove error, exitfail.
70997         Add dirname.
70998
70999         * modules/verify: New file.
71000         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71001         with "verify" module.
71002
71003 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         Sync from coreutils.
71006
71007         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71008         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71009         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71010         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71011         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71012         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71013         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71014         Don't bother checking for string.h, stdlib.h, unistd.h.
71015         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71016         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71017         module's job.
71018         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71019         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71020
71021         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71022         (gl_GETDATE): Use it.
71023
71024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71025
71026 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71027
71028         Sync from coreutils.
71029
71030         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71031         stat-time.h.
71032         * lib/argmatch.h: Include verify.h
71033         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71034         (ARGMATCH_ASSERT): Remove; unused.
71035         * lib/canonicalize.c: Assume STDC_HEADERS.
71036         * lib/exclude.c: Include "strcase.h".
71037         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71038         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71039         and stdio-safer.h.
71040         (getusershell): Call fopen, not fopen_safer.
71041         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71042         Do not include unistd-safer.h.
71043         (save_cwd): Don't call fd_safer; no longer needed
71044         now that we include fcntl--.h.
71045
71046         * lib/getdate.y (relative_time): New type.
71047         (RELATIVE_TIME_0): New constant.
71048         (parser_control): Use relative_time instead of doing it ourselves.
71049         (%union): Add new relative_time rel member.
71050         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71051         Now typeless.
71052         (relunit, relunit_snumber): Now of type rel.
71053         (zone, rel, relunit, get_date): Adjust to above changes.
71054
71055         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71056         Do not include unistd-safer.h.
71057         (getloadavg): Don't call fd_safer; no longer needed
71058         now that we include fcntl--.h.
71059
71060         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71061         (make_dir_parents): Treat ENOSYS like EEXIST.
71062
71063         Improve quality of diagnostics on restore_cwd failure.
71064         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71065         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71066         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71067         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71068         each time through the loop.  Do not diagnose restore_cwd failure;
71069         that is the caller's job (and perhaps the caller does not care).
71070
71071         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71072         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71073         If the file already exists but is not a directory, don't bother
71074         to try to make its parents.
71075         Close potential file descriptor leak if we can't chdir("/") (!).
71076         Don't always return true if chdir($PWD) fails; return true only
71077         if the requested action was done successfully (except for the
71078         chdir($PWD)).
71079         Don't log final directory unless we actually made it.
71080         Refactor to avoid duplicate code to fix up permissions.
71081         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71082
71083         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71084         to make it a bit faster and (I hope) clearer.
71085         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71086         Fix bug in formats like %2N.
71087
71088         * lib/verify.h: New file.
71089
71090 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         Sync from coreutils.
71093         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71094
71095 2005-09-22  Jim Meyering  <jim@meyering.net>
71096
71097         Sync from coreutils.
71098
71099         * m4/lstat.m4 (gl_FUNC_LSTAT):
71100         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71101         Remove obsolete comment.
71102         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71103         * m4/xstrtod.m4: Likewise.
71104
71105         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71106
71107 2005-09-22  Jim Meyering  <jim@meyering.net>
71108
71109         Sync from coreutils.
71110
71111         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71112
71113         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71114         the .tm_year member, since otherwise gcc-4.0 would now warn about
71115         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71116
71117         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71118         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71119
71120         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71121         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71122         when run in a time zone for which daylight savings time is in effect
71123         for the starting date.
71124
71125         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71126         stop us from restricting permissions of just-created absolute-named
71127         directories.
71128         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71129         to restore initial working directory.
71130         * lib/mkdir-p.c (make_dir_parents): New parameter:
71131         different_working_dir, to tell caller if/when we change the working
71132         directory and are unable to return to the initial one.
71133         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71134         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71135         `return false'.  This fixes a bug introduced on 2004-07-30.
71136
71137         * lib/openat.c (fdopendir): Be sure to close the supplied
71138         file descriptor before returning.  This makes our replacement
71139         implementation a little closer to Solaris's, where fdopendir
71140         ties the file descriptor to the returned DIR* pointer.
71141         * lib/openat.c (unlinkat): New function.
71142         * lib/openat.h (unlinkat): Add prototype.
71143         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71144         (openat_restore_fail): Rename from openat_restore_die.
71145         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71146
71147         Provide an alternative to exiting immediately upon save_cwd or
71148         restore_cwd failure.  Now, an application can arrange e.g.,
71149         to perform a longjump in that case.
71150         * lib/openat.c: Include dirname.h.
71151         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71152         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71153         and openat_restore_die rather than calling error directly.
71154         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71155
71156         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71157         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71158         define.
71159
71160         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71161         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71162                             int utc, int nanoseconds);
71163         Background:
71164         date should not have to allocate a megabyte of virtual memory to
71165         handle a format argument like +%1048575T.  When implemented with
71166         strftime, it must allocate such a buffer, use strftime to fill it
71167         in, print it, then free it.
71168         With fprintftime, it simply prints everything and exits.
71169         With no need for memory allocation, that's one fewer way to fail.
71170         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71171         optional field width, not before, so we accept %9:z, not %:9z.
71172         (my_strftime): Be sure to use L_('x') for literals.
71173
71174         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71175         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71176         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71177         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71178         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71179         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71180         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71181         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71182         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71183         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71184         * lib/xgethostname.c, lib/xreadlink.c:
71185         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71186
71187         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71188         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71189         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71190         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71191         and don't include <sys/file.h>).
71192
71193 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71194
71195         Sync from coreutils.
71196
71197         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71198         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71199         [!LDAV_DONE]: Avoid unused variable warning.
71200
71201 2005-09-21  Bruno Haible  <bruno@clisp.org>
71202
71203         * lib/unicodeio.h (unicode_to_mb): New declaration.
71204
71205 2005-09-20  Derek Price  <derek@ximbiot.com>
71206
71207         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71208         getaddrinfo.h.
71209
71210 2005-09-20  Bruno Haible  <bruno@clisp.org>
71211
71212         * gnulib-tool: Remove trailing slashes from the values specified for
71213         --source-base, --m4-base, --tests-base, --aux-dir.
71214         Suggested by Simon Josefsson <jas@extundo.com>.
71215
71216 2005-09-20  Bruno Haible  <bruno@clisp.org>
71217
71218         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71219         func_modules_to_filelist, func_import, func_create_testdir): Make all
71220         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71221         change when gnulib-tool is invoked in a different locale.
71222
71223 2005-09-19  Simon Josefsson  <jas@extundo.com>
71224
71225         * m4/socklen.m4: Fix typo.
71226
71227 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71228
71229         Use a consistent style for including <config.h>.
71230         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71231         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71232         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71233         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71234         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71235         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71236         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71237         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71238         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71239         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71240         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71241         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71242         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71243         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71244         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71245         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71246         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71247         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71248         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71249         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71250         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71251         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71252         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71253         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71254         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71255         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71256         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71257         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71258         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71259         lib/xstrtoumax.c, lib/yesno.c:
71260         Standardize inclusion of config.h.
71261         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71262         lib/inttostr.h:  Removed inclusion of config.h from header files.
71263         * lib/inttostr.c:  Adjusted in-tree users.
71264         * lib/timespec.h: Remove superfluous warning to include config.h.
71265         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71266         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71267         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71268         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71269         config.h with HAVE_CONFIG_H.
71270
71271 2005-09-19  Jim Meyering  <jim@meyering.net>
71272
71273         * modules/pathmax (License): Change to LGPL.
71274
71275 2005-09-19  Derek Price  <derek@ximbiot.com>
71276
71277         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71278
71279 2005-09-19  Bruno Haible  <bruno@clisp.org>
71280
71281         * gnulib-tool (import): Provide default for --tests-base.
71282
71283 2005-09-19  Bruno Haible  <bruno@clisp.org>
71284
71285         * doc/quote.texi: New file, extracted from gnulib.texi.
71286         * doc/ctime.texi: New file, extracted from gnulib.texi.
71287         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71288         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71289         * doc/gnulib.texi: Include them.
71290
71291 2005-09-18  Bruno Haible  <bruno@clisp.org>
71292
71293         Portability fix.
71294         * gnulib-tool (func_readlink): New function.
71295         (func_ln_if_changed): Use it.
71296
71297 2005-09-18  Bruno Haible  <bruno@clisp.org>
71298
71299         * gnulib-tool: Support --with-tests also with --import.
71300         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71301         (func_import): Use variables $testsbase and $inctests. Emit a
71302         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71303         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71304         SUBDIRS += $testsdir.
71305         (func_create_testdir): Update.
71306
71307 2005-09-18  Bruno Haible  <bruno@clisp.org>
71308
71309         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71310         instead of $dry_run.
71311         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71312         (func_ln_if_changed): Don't handle dry-run here.
71313         (func_import): In dry-run mode, detect more precisely which actions
71314         would be performed, and don't use "...ing" verbs.
71315
71316 2005-09-18  Bruno Haible  <bruno@clisp.org>
71317
71318         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71319         (func_import): Use join on two temporary files instead of three nested
71320         loops, in order to determine which files are new or old.
71321
71322 2005-09-18  Bruno Haible  <bruno@clisp.org>
71323
71324         * gnulib-tool (func_import): Comment out code that spits out the
71325         new files with --dry-run.
71326
71327 2005-09-18  Bruno Haible  <bruno@clisp.org>
71328
71329         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71330
71331 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71332
71333         * lib/stat-time.h: New file.
71334         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71335         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71336         in a different way.
71337         (timespec_cmp): New function.
71338         * lib/utimecmp.c: Include stat-time.h.
71339         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71340         members exist, not on the obsolescent ST_MTIM_NSEC.
71341         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71342
71343 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71344
71345         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71346
71347 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         * MODULES.html.sh (File system functions): Add stat-time.
71350         * modules/stat-time: New file.
71351         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71352         is now done in a different way, by the stat-time module.
71353         * modules/utimecmp (Depends-on): Add stat-time.
71354
71355 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         * m4/st_mtim.m4: Remove.  Superseded by...
71358         * m4/stat-time.m4: New file.
71359         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71360         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71361
71362 2005-09-15  Derek Price  <derek@ximbiot.com>
71363
71364         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71365
71366 2005-09-15  Derek Price  <derek@ximbiot.com>
71367
71368         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71369         * lib/regex_internal.c: Ditto, using this...
71370         (__GNUC_PREREQ): ...new macro.
71371         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71372         using...
71373         (__GNUC_PREREQ): ...this new macro.
71374
71375         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71376
71377 2005-09-15  Derek Price  <derek@ximbiot.com>
71378             Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71381         changes, consolidating in...
71382         * lib/regex_internal.h: ...this file.
71383
71384 2005-09-13  Jim Meyering  <jim@meyering.net>
71385
71386         * lib/canon-host.c: Filter through gnu indent and reword comments
71387         slightly.
71388         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71389
71390 2005-09-13  Derek Price  <derek@ximbiot.com>
71391
71392         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71393         failure.
71394         Reported by Jim Meyering  <jim@meyering.net>.
71395
71396 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71397
71398         * lib/base64.c: Typo.
71399         (base64_encode): Put b64str in initialized data section.
71400
71401 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         Merge glibc and coreutils changes into gnulib, plus a few
71404         extra fixes.
71405         * lib/md5.c: Use #error rather than a string.
71406         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71407         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71408         (__attribute__): Define to empty for non recent-GCC.
71409         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71410         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71411         Renamed from their non-__ counterparts, with new macros replacing
71412         them if not _LIBC.  Add __THROW attribute.
71413         (rol): Remove.
71414         (struct md5_ctx): Align buffer if using GCC.
71415         * lib/sha1.h (struct sha1_ctx): Likewise.
71416         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71417         The old name was backwards.
71418         (NOTSWAP): Remove; not used.
71419         (rol): New macro, moved here from md5.h.
71420         (sha1_process_block): Remove a FIXME that doesn't make sense.
71421
71422 2005-09-12  Derek Price  <derek@ximbiot.com>
71423
71424         Return usable errors from canon-host.
71425         * lib/canon-host.h: New file.
71426         * lib/canon-host.c (canon_host): Wrap...
71427         (canon_host_r): ...this new function, which now relies exclusively on
71428         getaddrinfo.
71429         (ch_strerror): New function.
71430         (last_cherror): New global.
71431         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71432         interface.
71433         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71434         void *.
71435         (freeaddrinfo): Free ai->ai_canonname when set.
71436
71437 2005-09-12  Derek Price  <derek@ximbiot.com>
71438
71439         Make canon-host require getaddrinfo.
71440         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71441         AC_LIBSOURCE canon-host.h.  Call...
71442         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71443         gl_GETADDRINFO.
71444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71445
71446 2005-09-12  Derek Price  <derek@ximbiot.com>
71447
71448         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71449         LGPL.
71450         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71451
71452 2005-09-12  Derek Price  <derek@ximbiot.com>
71453
71454         * lib/gai_strerror.c: Include config.h when available.  Include
71455         getaddrinfo.h before other headers to test interface.
71456         Reported by Larry Jones <lawrence.jones@ugs.com>.
71457
71458 2005-09-12  Derek Price  <derek@ximbiot.com>
71459             Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * modules/glob (Files): Add glob-libc.h.
71462
71463 2005-09-12  Derek Price  <derek@ximbiot.com>
71464             Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71467         glob_.h, glob-libc.h.
71468         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71469
71470 2005-09-12  Derek Price  <derek@ximbiot.com>
71471             Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71474         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71475         protecting things that should be done only in gnulib contexts.
71476         * lib/glob_.h: New file, containing only the glob things needed for
71477         gnulib.
71478         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71479         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71480         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71481         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71482         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71483         and to respect the namespace rules better.
71484
71485 2005-09-08  Simon Josefsson  <jas@extundo.com>
71486
71487         * modules/socklen: New file.
71488
71489 2005-09-08  Simon Josefsson  <jas@extundo.com>
71490
71491         * m4/socklen.m4: New file.
71492
71493 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * modules/utimens (Files): Add m4/utimbuf.m4, since
71496         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71497         Reported by Sergey Poznyakoff.
71498
71499 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71502         definitions, since that's the preferred style in glibc.
71503         Fix a minor spacing issue, and update copyright notice to match
71504         glibc's.
71505
71506 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71507
71508         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71509
71510 2005-09-06  Simon Josefsson  <jas@extundo.com>
71511
71512         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71513         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71514
71515 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71518         warning.
71519
71520 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * config/srclist.txt: Add glibc bug 1302.
71523
71524 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         Change bitset word type from unsigned int to unsigned long int,
71527         as this has better performance on typical 64-bit hosts.
71528         Port bitset code to hosts with unusual word sizes.
71529         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71530         (build_collating_symbol):
71531         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71532         argument is a bitset.  This is merely a style issue, but it makes
71533         it clearer that an entire array is expected.
71534         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71535         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71536         Port to the case where bitset_word is not the same as unsigned int.
71537         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71538         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71539         Likewise.
71540         * lib/regexec.c (check_dst_limits_calc_pos_1,
71541         check_subexp_matching_top):
71542         (build_trtable, group_nodes_into_DFAstates):
71543         Likewise.
71544         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71545         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71546         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71547         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71548         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71549         * lib/regcomp.c (optimize_subexps, lower_subexp):
71550         Work even if bitset_word has holes in its bitwise representation.
71551         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71552         * lib/regexec.c (check_dst_limits_calc_pos_1,
71553         check_subexp_matching_top):
71554         Likewise.
71555         * lib/regex_internal.c (re_string_reconstruct):
71556         Don't assume UCHAR_MAX == 255.
71557         * lib/regex_internal.h (bitset_set_all): Likewise.
71558         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71559         All uses changed.
71560         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71561         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71562         All uses changed.
71563         (BITSET_WORD_MAX): New macro.
71564         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71565         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71566         (bitset_empty, bitset_copy):
71567         Prefer sizeof (bitset) to multiplying it out ourselves.
71568         (bitset_not_merge): Remove; unused.
71569         (bitset_contain): Return bool, not unsigned int with one bit on.
71570         All callers changed.
71571         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71572         alignment than re_node_set; do this by defining a new internal
71573         type struct dests_alloc and using it to allocate memory.
71574
71575 2005-09-05  Bruno Haible  <bruno@clisp.org>
71576
71577         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71578         links.
71579
71580 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71581
71582         * modules/size_max (Makefile.am): Add size_max.h
71583
71584 2005-09-04  Derek Price  <derek@ximbiot.com>
71585
71586         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71587
71588 2005-09-03  Simon Josefsson  <jas@extundo.com>
71589
71590         * gnulib-tool: Fix typo.
71591
71592 2005-09-03  Simon Josefsson  <jas@extundo.com>
71593
71594         * config/srclist.txt: Add glibc bug 1293.
71595
71596 2005-09-03  Derek Price  <derek@ximbiot.com>
71597
71598         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71599         From Larry Jones <lawrence.jones@ugs.com>.
71600
71601 2005-09-02  Simon Josefsson  <jas@extundo.com>
71602
71603         * modules/socklen: New file.
71604
71605 2005-09-02  Simon Josefsson  <jas@extundo.com>
71606
71607         * modules/havelib: New module.
71608
71609         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71610         Use havelib.
71611
71612 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         Check for arithmetic overflow when calculating sizes, to prevent
71615         some buffer-overflow issues.  These patches are conservative, in the
71616         sense that when I couldn't determine whether an overflow was possible,
71617         I inserted a run-time check.
71618         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71619         macros.
71620         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71621         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71622         (re_xnrealloc, re_x2nrealloc): New inline functions.
71623         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71624         parse_bracket_exp):
71625         (build_equiv_class, build_charclass): Check for arithmetic overflow
71626         in size expression calculations.
71627         * lib/regex_internal.c (re_string_realloc_buffers):
71628         (build_wcs_upper_buffer, re_node_set_add_intersect):
71629         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71630         (re_dfa_add_node, register_state): Likewise.
71631         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71632         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71633         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71634         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71635
71636 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71639         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71640
71641 2005-09-02  Bruno Haible  <bruno@clisp.org>
71642
71643         Support for lib vs. lib64 distinction on biarch platforms.
71644         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71645         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71646         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71647
71648 2005-09-02  Bruno Haible  <bruno@clisp.org>
71649
71650         * gnulib-tool (import): In the other first-use case, provide defaults
71651         as well.
71652
71653 2005-09-02  Bruno Haible  <bruno@clisp.org>
71654
71655         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71656         patches not yet found in the latest gettext release.
71657
71658 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71661         to avoid a collision with bits/local_lim.h in glibc.
71662         All uses changed.  Problem reported by Dmitry V. Levin in
71663         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71664
71665         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71666         bugs in int versus size_t comparisons.
71667         (re_string_context_at): Fix bug where the code assumed that
71668         Idx is signed.
71669
71670         Use bool where appropriate.
71671         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71672         All callers changed.
71673         (calc_eclosure_iter): Likewise, for ROOT arg.
71674         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71675         (build_charclass_op): Likewise, for NON_MATCH arg.
71676         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71677         (re_string_construct_common): Likewise, for ICASE arg.
71678         * lib/regexec.c (re_search_2_stub, re_search_stub):
71679         Likewise, for RET_LEN arg.
71680         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71681         (set_regs): Likewise, for FL_BACKTRACK arg.
71682         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71683         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71684         (calc_eclosure_iter, parse_bracket_exp):
71685         Use bool for internal variables that are booleans.
71686         * lib/regexec.c (re_search_internal, check_matching,
71687         proceed_next_node):
71688         (set_regs, build_sifted_states, sift_states_bkref):
71689         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71690         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71691         (find_collation_sequence_value):
71692         Likewise.
71693         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71694         (re_node_set_compare):
71695         Return bool, not int. All callers changed.
71696         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71697         (build_trtable, check_node_accept): Likewise.
71698         * lib/regex_internal.h: Include stdbool.h.
71699
71700         Fix bugs uncovered when converting to bool.
71701         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71702         failure instead of charging ahead blindly.
71703         * lib/regex_internal.c (register_state): Likewise.
71704         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71705         for freeing internal storage.
71706         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71707         bitset pieces used as boolean, to avoid undefined behavior
71708         on hosts that do int overflow checking.
71709
71710 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * config/srclist.txt: Add glibc bugs 1285-1287.
71713
71714 2005-09-01  Jim Meyering  <jim@meyering.net>
71715
71716         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71717         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71718         Require gl_STAT_MACROS, too.
71719
71720 2005-09-01  Bruno Haible  <bruno@clisp.org>
71721
71722         * gnulib-tool (import): In the first-use case, provide defaults.
71723
71724 2005-09-01  Bruno Haible  <bruno@clisp.org>
71725
71726         * gnulib-tool (func_import): Remove the .tmp files.
71727
71728 2005-09-01  Bruno Haible  <bruno@clisp.org>
71729
71730         * gnulib-tool (func_import): Fix handling of symbolic links.
71731
71732 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71733
71734         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71735         old glibc regex code mishandles strings longer than 2**31 bytes.
71736         This patch fixes this when the regex code is used in gnulib
71737         (i.e., outside glibc).
71738
71739         This patch should not affect the use of the regex code inside
71740         glibc.  No doubt this problem also needs to be handled for glibc
71741         as well, but the result will be an incompatible change to the
71742         glibc ABI, and the old ABI will have to be supported too.  That
71743         can be the the subject for another patch.
71744
71745         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71746         governing whether the rest of this patch is active.  By default,
71747         the macro is disabled and the patch has no effect.
71748         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71749         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71750         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71751         (re_match_2, re_set_registers): Use the new types.
71752         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71753         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71754         New macros.
71755         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71756         (re_string_context_at, bin_tree_t, re_dfastate_t):
71757         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71758         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71759         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71760         (re_string_char_size_at, re_string_wchar_at):
71761         (re_string_elem_size_at):
71762         Use the new types and macros to port to 64-bit hosts.
71763         Use unsigned types for internal values, so that the code
71764         mostly works even for arrays larger than SSIZE_MAX.
71765         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71766         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71767         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71768         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71769         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71770         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71771         (calc_inveclosure, parse_dup_op, build_range_exp):
71772         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71773         (fetch_number, create_token_tree, mark_opt_subexp):
71774         Likewise.
71775         * lib/regex_internal.c (re_string_construct_common,
71776         create_ci_newstate):
71777         (create_cd_newstate, re_string_allocate, re_string_construct):
71778         (re_string_realloc_buffers, build_wcs_upper_buffer):
71779         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71780         (re_string_reconstruct, re_string_peek_byte_case):
71781         (re_string_fetch_byte_case, re_string_context_at):
71782         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71783         (re_node_set_init_copy, re_node_set_add_intersect):
71784         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71785         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71786         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71787         (re_acquire_state, re_acquire_state_context, register_state):
71788         Likewise.
71789         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71790         search_cur_bkref_entry):
71791         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71792         (re_search_internal, re_search_2_stub, re_search_stub)
71793         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71794         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71795         (update_cur_sifted_state, check_dst_limits):
71796         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71797         (check_subexp_limits, sift_states_bkref, merge_state_array):
71798         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71799         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71800         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71801         (expand_bkref_cache, check_node_accept_bytes):
71802         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71803         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71804         (acquire_init_state_context, check_halt_node_context):
71805         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71806         (sift_states_backward, clean_state_log_if_needed):
71807         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71808         (find_recover_state, transit_state_sb, transit_state_mb):
71809         (transit_state_bkref, build_trtable, match_ctx_clean):
71810         Likewise.
71811         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71812         to work around an assumption that REG_MISSING is negative.
71813
71814         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71815         (seek_collating_symbol_entry) [defined _LIBC]:
71816         (lookup_collation_sequence_value) [defined _LIBC]:
71817         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71818         Use prototypes rather than old-style function definitions.
71819         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71820         (transit_state_sb) [0]:
71821         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71822
71823         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71824         rm_eo.
71825
71826         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71827         (optimize_subexps, lower_subexp):
71828         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71829         since the signed shift might overflow.  Use 1u<<31 instead.
71830         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71831         Likewise.
71832         * lib/regexec.c (check_dst_limits_calc_pos_1,
71833         check_subexp_matching_top): Likewise.
71834
71835         * lib/regcomp.c (optimize_subexps, lower_subexp):
71836         Use CHAR_BIT rather than 8, for clarity.
71837         * lib/regexec.c (check_dst_limits_calc_pos_1):
71838         (check_subexp_matching_top): Likewise.
71839         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71840         have to worry about portability issues when shifting it left.
71841         Remove no-longer-needed test for table_size > 0.
71842         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71843         in a word, as the resulting behavior is undefined.
71844         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71845         in one case, a <= should have been an <, and in another case the
71846         whole test was missing.
71847         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71848         the standard name CHAR_BIT.
71849         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71850         this is not true on one's complement and signed-magnitude hosts.
71851
71852         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71853         next_last_offset.
71854         (struct re_dfa_t): Remove unused member states_alloc.
71855         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71856
71857 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71858
71859         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71860         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71861         and large-file glibc and in 32-bit large-file Solaris.
71862
71863 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71864
71865         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71866         lengths fit in regoff_t; this isn't true if regoff_t is the same
71867         width as size_t.
71868         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71869         (= START + RANGE) instead of RANGE.  This avoids overflow
71870         problems when regoff_t is the same width as size_t.
71871         All callers changed.
71872         (re_search_2_stub): Check for overflow when adding the
71873         sizes of the two strings.
71874         (re_search_stub): Check for overflow when adding START
71875         to RANGE; if it occurs, substitute the extreme value.
71876
71877 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71880
71881 2005-08-31  Jim Meyering  <jim@meyering.net>
71882
71883         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71884         a pointer-to-const.
71885         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71886         (register_state): Likewise.
71887         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71888         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71889         (group_nodes_into_DFAstates): Likewise.
71890
71891 2005-08-31  Jim Meyering  <jim@meyering.net>
71892
71893         * check-module: Add a FIXME comment.
71894
71895 2005-08-31  Eric Blake  <ebb9@byu.net>
71896
71897         * modules/unistd-safer (Files): Add unistd--.h.
71898         * modules/stdio-safer (Files): Add stdio--.h.
71899
71900 2005-08-31  Derek Price  <derek@ximbiot.com>
71901
71902         * lib/getdelim.c (getdelim): Return EOF on EOF.
71903         Reported by Larry Jones <lawrence.jones@ugs.com>.
71904
71905 2005-08-31  Bruno Haible  <bruno@clisp.org>
71906
71907         Avoid unnecessary diffs in the generated lib/Makefile.am.
71908         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71909         the generated files.
71910         (func_import): Don't set cmd.
71911
71912 2005-08-31  Bruno Haible  <bruno@clisp.org>
71913
71914         * lib/strstr.c: Include <stddef.h>, for NULL.
71915         * lib/strcasestr.c: Likewise.
71916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71917
71918 2005-08-31  Bruno Haible  <bruno@clisp.org>
71919
71920         * gnulib-tool: New option --macro-prefix.
71921         (func_import): Use macro_prefix.
71922         (import): Handle option --macro-prefix.
71923
71924 2005-08-31  Bruno Haible  <bruno@clisp.org>
71925
71926         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71927         Also use new variables cached_lgpl, cached_libtool.
71928
71929 2005-08-31  Bruno Haible  <bruno@clisp.org>
71930
71931         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71932         always instantiating them.
71933
71934 2005-08-31  Bruno Haible  <bruno@clisp.org>
71935
71936         * gnulib-tool (func_import): Read the previous cached settings
71937         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71938         earlier added by gnulib but are now dropped. Warn when a gnulib file
71939         overwrites a non-gnulib file.
71940
71941 2005-08-31  Bruno Haible  <bruno@clisp.org>
71942
71943         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71944         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71945         projects that don't keep autogenerated files in CVS. Put into
71946         actioncmd only the specified modules, not the transitive closure.
71947
71948 2005-08-31  Bruno Haible  <bruno@clisp.org>
71949
71950         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71951         Create directories that shall be filled.
71952         (import): Don't look for gl_* macros in configure.ac. Recurse across
71953         all directories containing a gnulib-cache.m4 files, if meaningful.
71954
71955 2005-08-31  Bruno Haible  <bruno@clisp.org>
71956
71957         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71958         (import): Set seen_libtool when we see gl_LIBTOOL.
71959
71960 2005-08-31  Bruno Haible  <bruno@clisp.org>
71961
71962         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71963         declaration macro definitions from generated gnulib.m4.
71964
71965 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71966
71967         * lib/iconvme.h: Add prototype for iconv_alloc.
71968
71969 2005-08-29  Simon Josefsson  <jas@extundo.com>
71970
71971         * lib/iconvme.c: Fix errno.
71972
71973 2005-08-29  Bruno Haible  <bruno@clisp.org>
71974
71975         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71976         that it works when the directory contains spaces.
71977
71978 2005-08-29  Bruno Haible  <bruno@clisp.org>
71979
71980         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71981
71982 2005-08-29  Bruno Haible  <bruno@clisp.org>
71983
71984         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71985         Emit more advice.
71986
71987 2005-08-29  Bruno Haible  <bruno@clisp.org>
71988         and Stepan Kasal  <kasal@ucw.cz>
71989
71990         * check-module: If more parameters are given, check each of them
71991         separately; add more exceptions, as noted by Jim Meyering.
71992         (check_module): New procedure.
71993         (%exempt_header): Now contains all exceptions.
71994
71995 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71996
71997         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71998
71999 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72000
72001         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72002
72003 2005-08-28  Bruno Haible  <bruno@clisp.org>
72004
72005         * m4/gnulib-tool.m4: New file.
72006
72007 2005-08-27  Jim Meyering  <jim@meyering.net>
72008
72009         * modules/unistd-safer (Files): Add pipe-safer.c.
72010         * modules/fcntl-safer (Files): Add creat-safer.c.
72011
72012 2005-08-27  Jim Meyering  <jim@meyering.net>
72013
72014         * m4/stdlib-safer.m4: New file.  From coreutils.
72015         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72016         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72017         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72018         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72019         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72020
72021 2005-08-27  Jim Meyering  <jim@meyering.net>
72022
72023         * lib/fopen-safer.c: Merge minor changes from coreutils.
72024         * lib/dup-safer.c: Likewise.
72025         * lib/fd-safer.c: Likewise.
72026
72027         Merge from coreutils.
72028         * lib/stdio--.h: New file.
72029         * lib/stdlib--.h: New file.
72030         * lib/mkstemp-safer.c: New file.
72031
72032         GNU tar needs these.
72033         * lib/pipe-safer.c: New file.
72034         * lib/creat-safer.c: New file.
72035         * lib/fcntl--.h (creat): Define to creat_safer.
72036         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72037         * lib/unistd--.h (pipe): Define to pipe_safer.
72038         * lib/unistd-safer.h: Declare pipe_safer.
72039
72040 2005-08-26  Simon Josefsson  <jas@extundo.com>
72041
72042         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72043         Haible <bruno@clisp.org>.
72044
72045 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72046
72047         * lib/regex_internal.h: Remove all references to
72048         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72049         or better.
72050         (bitset_not, bitset_merge, bitset_not_merge):
72051         (bitset_mask, re_string_allocate, re_string_construct):
72052         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72053         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72054         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72055         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72056         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72057         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72058         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72059         (re_acquire_state_context):
72060         Remove unnecessary forward decls.
72061         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72062         Put __attribute at function definition,
72063         now that the function decl has been removed.
72064         * lib/regex_internal.c (re_string_peek_byte_case):
72065         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72066         Likewise.
72067
72068 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72069
72070         * m4/regex.m4: Add AC_PREREQ(2.50).
72071         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72072
72073 2005-08-25  Simon Josefsson  <jas@extundo.com>
72074
72075         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72076         __fsetlocking.
72077
72078 2005-08-25  Simon Josefsson  <jas@extundo.com>
72079
72080         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72081         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72082         GLIBC specific code.
72083
72084 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         Make regex safe for g++.  This fixes one real bug (an "err"
72087         that should have been "*err").  g++ problem reported by
72088         Sam Steingold.
72089         * lib/regex_internal.h (re_calloc): New macro, consistent with
72090         re_malloc etc.  All callers of calloc changed to use re_calloc.
72091         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72092         not int.  All callers changed.
72093         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72094         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72095         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72096         (find_recover_state): Change "err" to "*err"; this fixes what
72097         appears to be a real bug.
72098         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72099         versus int.
72100
72101 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * modules/regex (Depends-on): Add malloc, since the code
72104         assumes that !malloc(0) means failure.
72105
72106 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72109
72110         alloca modernization/simplification for regex.
72111         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72112         needs to be at the start of the file, and can be moved into
72113         regex_internal.h and simplified.
72114         * lib/regex_internal.h: Include <alloca.h>.
72115         (__libc_use_alloca) [!defined _LIBC]: New macro.
72116         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72117         now works outside glibc.
72118
72119 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * config/srclist.txt: Add glibc bugs 1241, 1245.
72122
72123 2005-08-25  Jim Meyering  <jim@meyering.net>
72124
72125         * lib/open-safer.c: Include <config.h>.
72126         Otherwise, we'd lose LARGEFILE support in any file using
72127         e.g. "fcntl--.h"
72128
72129 2005-08-25  Bruno Haible  <bruno@clisp.org>
72130
72131         * m4/minmax.m4: Require autoconf 2.52.
72132         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72133         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72134         alternatives of translit over the alphabet.
72135         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72136
72137 2005-08-24  Simon Josefsson  <jas@extundo.com>
72138
72139         * tests/test-getpass.c: New file.
72140
72141 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72144         for GNU regex features.
72145
72146 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72149         * lib/regex.h (regerror): Likewise.
72150
72151         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72152         requires this.  (The code never needed it.)
72153
72154         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72155         All uses of recently-renamed identifiers changed to use the new,
72156         POSIX-compliant names.  The code will build and run just fine
72157         without these changes, but it's better to eat our own dog food
72158         and use the standard-conforming names.
72159
72160         * lib/regex.h: Fix a multitude of POSIX name space violations.
72161         These changes have an effect only for programs that define
72162         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72163         do not change anything for programs compiled in the normal way.
72164         Also, there is no effect on the ABI.
72165
72166         (_REGEX_SOURCE): New macro.
72167         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72168         defined and _GNU_SOURCE is not; this fixes a name space violation.
72169
72170         Rename the following macros to obey POSIX requirements.
72171         The old names are still visible as macros if _REGEX_SOURCE is defined.
72172         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72173         RE_BACKSLASH_ESCAPE_IN_LISTS.
72174         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72175         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72176         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72177         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72178         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72179         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72180         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72181         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72182         (REG_INTERVALS): renamed from RE_INTERVALS.
72183         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72184         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72185         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72186         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72187         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72188         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72189         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72190         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72191         RE_UNMATCHED_RIGHT_PAREN_ORD.
72192         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72193         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72194         (REG_DEBUG): renamed from RE_DEBUG.
72195         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72196         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72197         unusual, since we can't clash with the POSIX REG_ICASE.
72198         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72199         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72200         (REG_NO_SUB): renamed from RE_NO_SUB.
72201         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72202         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72203         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72204         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72205         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72206         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72207         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72208         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72209         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72210         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72211         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72212         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72213         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72214         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72215         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72216         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72217         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72218         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72219         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72220         (REG_FIXED): Renamed from REGS_FIXED.
72221         (REG_NREGS): Renamed from RE_NREGS.
72222
72223         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72224         of other REG_* macros, since POSIX says the user is allowed to
72225         #undef these macros selectively.
72226
72227         (reg_errcode_t): Update comment stating what other tables need
72228         to be consistent.
72229
72230         Rename the following enum values to obey POSIX requirements.
72231         The old names are still visible as macros.
72232         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72233         is not defined, since GNU is supposed to be a superset of POSIX as
72234         much as possible, and since we want reg_errcode_t to be a signed
72235         type for implementation consistency.
72236         (_REG_NOERROR): Renamed from REG_NOERROR.
72237         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72238         (_REG_BADPAT): Renamed from REG_BADPAT.
72239         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72240         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72241         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72242         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72243         (_REG_EBRACK): Renamed from REG_EBRACK.
72244         (_REG_EPAREN): Renamed from REG_EPAREN.
72245         (_REG_EBRACE): Renamed from REG_EBRACE.
72246         (_REG_BADBR): Renamed from REG_BADBR.
72247         (_REG_ERANGE): Renamed from REG_ERANGE.
72248         (_REG_ESPACE): Renamed from REG_ESPACE.
72249         (_REG_BADRPT): Renamed from REG_BADRPT.
72250         (_REG_EEND): Renamed from REG_EEND.
72251         (_REG_ESIZE): Renamed from REG_ESIZE.
72252         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72253         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72254         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72255         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72256         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72257
72258         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72259         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72260         changed.  But support the old name if the new one is not defined
72261         and if _REGEX_SOURCE.
72262
72263         Change the following member names in struct re_pattern_buffer.
72264         The old names are still supported if !_REGEX_SOURCE.
72265         The new names are always supported, regardless of _REGEX_SOURCE.
72266         (re_buffer): Renamed from buffer.
72267         (re_allocated): Renamed from allocated.
72268         (re_used): Renamed from used.
72269         (re_syntax): Renamed from syntax.
72270         (re_fastmap): Renamed from fastmap.
72271         (re_translate): Renamed from translate.
72272         (re_can_be_null): Renamed from can_be_null.
72273         (re_regs_allocated): Renamed from regs_allocated.
72274         (re_fastmap_accurate): Renamed from fastmap_accurate.
72275         (re_no_sub): Renamed from no_sub.
72276         (re_not_bol): Renamed from not_bol.
72277         (re_not_eol): Renamed from not_eol.
72278         (re_newline_anchor): Renamed from newline_anchor.
72279
72280         Change the following member names in struct re_registers.
72281         The old names are still supported if !_REGEX_SOURCE.
72282         The new names are always supported, regardless of _REGEX_SOURCE.
72283         (rm_num_regs): Renamed from num_regs.
72284         (rm_start): Renamed from start.
72285         (rm_end): Renamed from end.
72286
72287         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72288         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72289         Prepend __ to parameter names.
72290
72291         Undo yesterday's changes.
72292
72293 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72296         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72297         lib/regex.c.
72298
72299 2005-08-24  Jim Meyering  <jim@meyering.net>
72300
72301         Sync from coreutils.
72302         * m4/fcntl-safer.m4: New file.
72303
72304         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72305         and object files for this module.
72306
72307 2005-08-24  Jim Meyering  <jim@meyering.net>
72308
72309         Sync from coreutils.
72310         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72311
72312 2005-08-24  Jim Meyering  <jim@meyering.net>
72313
72314         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72315         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72316
72317 2005-08-24  Jim Meyering  <jim@meyering.net>
72318
72319         * modules/fcntl-safer: New module.
72320         * modules/fts (Depends-on): Add fcntl-safer.
72321         * MODULES.html.sh (File descriptor based Input/Output):
72322         Add fcntl-safer.
72323
72324 2005-08-24  Bruno Haible  <bruno@clisp.org>
72325
72326         Support for unit test modules.
72327         * modules/README: Mention tests modules.
72328         * modules/TEMPLATE-TESTS: New file.
72329         * gnulib-tool: New options --extract-tests-module, --with-tests and
72330         --tests-base (unused for the moment).
72331         (testsbase, inctests): New variables.
72332         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72333         (func_verify_module): Exclude TEMPLATE-TESTS.
72334         (func_verify_nontests_module, func_verify_tests_module): New functions.
72335         (func_get_dependencies): Add implicit dependency for tests modules.
72336         (func_get_tests_module): New function.
72337         (func_modules_transitive_closure): When --with-tests was specified,
72338         include the unit tests as well, unless explicitly avoided.
72339         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72340         (func_emit_tests_Makefile_am): New function.
72341         (func_create_testdir): When --with-tests was specified, emit a
72342         tests/ directory.
72343         * MODULES.html.sh (Future developments): Update.
72344
72345 2005-08-24  Bruno Haible  <bruno@clisp.org>
72346
72347         * modules/tls-tests: New file.
72348         * tests/test-tls.c: New file, from GNU gettext.
72349
72350 2005-08-24  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/lock-tests: New file.
72353         * tests/test-lock.c: New file, from GNU gettext.
72354
72355 2005-08-24  Bruno Haible  <bruno@clisp.org>
72356
72357         * lib/lock.h: Add multiple inclusion guard.
72358         * lib/tls.h: Add multiple inclusion guard.
72359
72360 2005-08-24  Bruno Haible  <bruno@clisp.org>
72361
72362         * gnulib-tool: Add support for the --aux-dir option to
72363         --create-testdir, --create-megatestdir, --test, --megatest.
72364         (func_create_testdir, func_create_megatestdir): Optionally emit a
72365         AC_CONFIG_AUX_DIR directive.
72366         (create-testdir, create-megatestdir, test, megatest): Provide a
72367         default value for $auxdir.
72368
72369 2005-08-24  Bruno Haible  <bruno@clisp.org>
72370
72371         * gnulib-tool (import): Use compound statement instead of subshell
72372         where possible.
72373
72374 2005-08-24  Bruno Haible  <bruno@clisp.org>
72375
72376         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72377
72378 2005-08-24  Bruno Haible  <bruno@clisp.org>
72379
72380         * gnulib-tool (func_version): Update.
72381
72382 2005-08-24  Bruno Haible  <bruno@clisp.org>
72383
72384         * gnulib-tool (func_import, func_create_testdir,
72385         func_create_megatestdir): Quote all autoconf macro arguments.
72386
72387 2005-08-24  Bruno Haible  <bruno@clisp.org>
72388
72389         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72390         option --force, because --force causes the aclocal.m4 of each
72391         subdirectory to be newer than the corresponding config.h.in.
72392
72393 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72396         All contents moved to gl_REGEX.
72397         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72398         assume that it does.
72399
72400 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72401
72402         * lib/regex.h (REG_NOSYS)
72403         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72404         Define, since POSIX requires it as of 2001.
72405         (_REG_ENOSYS)
72406         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72407         New private symbol, used to keep the enum signed in all cases.
72408         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72409         Youngman in
72410         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72411
72412         * lib/regex_internal.c (re_string_skip_chars, register_state):
72413         (calc_state_hash):
72414         Remove forward decls; no longer needed now that we use prototypes.
72415         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72416         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72417         (clean_state_log_if_needed): Likewise.
72418
72419 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72420
72421         * config/srclist.txt: Add glibc bugs 1231-1233.
72422
72423 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         Fix problems reported by Sam Steingold in
72426         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72427         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72428         assumed that reg_errcode_t is a signed type, which is not
72429         necessarily true if _XOPEN_SOURCE is not defined.
72430         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72431         since some compilers warn about it otherwise.
72432
72433 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72436         (init_word_char, create_initial_state, duplicate_node_closure):
72437         (fetch_token, peek_token_bracket, build_range_exp):
72438         (build_collating_symbol): Remove forward decls; no longer needed
72439         now that we use prototypes.
72440
72441         * lib/regcomp.c:
72442         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72443         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72444         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72445         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72446         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72447         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72448         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72449         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72450         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72451         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72452         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72453         (build_charclass, build_charclass_op, fetch_number, create_tree):
72454         (create_token_tree, mark_opt_subexp, duplicate_tree):
72455         Use prototypes rather than old-style definitions.
72456
72457         * lib/regex_internal.c:
72458         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72459         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72460         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72461         (re_string_reconstruct, re_string_peek_byte_case):
72462         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72463         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72464         (re_node_set_init_copy, re_node_set_add_intersect):
72465         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72466         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72467         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72468         (re_acquire_state, re_acquire_state_context, register_state):
72469         (create_ci_newstate, create_cd_newstate, free_state):
72470         Likewise.
72471         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72472         re_search_2):
72473         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72474         (re_search_internal, prune_impossible_nodes):
72475         (acquire_init_state_context, check_matching, static):
72476         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72477         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72478         (update_regs, sift_states_backward, build_sifted_states):
72479         (clean_state_log_if_needed, merge_state_array):
72480         (update_cur_sifted_state, add_epsilon_src_nodes):
72481         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72482         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72483         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72484         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72485         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72486         (check_arrival, check_arrival_add_next_nodes):
72487         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72488         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72489         (check_node_accept_bytes, check_node_accept, extend_buffers):
72490         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72491         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72492         (sift_ctx_init):
72493         Likewise.
72494
72495         * lib/regex_internal.h:
72496         (re_string_allocate, re_string_construct, re_string_reconstruct):
72497         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72498         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72499         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72500         (re_string_context_at, re_string_peek_byte_case):
72501         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72502         is defined, since we now use prototypes always.
72503
72504         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72505         C89 or better.  All uses removed.
72506
72507 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * config/srclist.txt: Add glibc bugs 1220-1227.
72510
72511 2005-08-20  Jim Meyering  <jim@meyering.net>
72512
72513         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72514         of unused local, dfa.
72515
72516 2005-08-20  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72519
72520 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72523         (re_node_set_insert_last, re_dfa_add_node):
72524         Rename local variables to avoid GCC shadowing warnings.
72525
72526 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72529         [defined lint]: Suppress bogus uninitialized-variable warnings.
72530
72531         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72532         and let the caller return REG_ESPACE if out of space.  This
72533         removes an uninitialied-variable warning with GCC 4.0.1, and also
72534         avoids taking the address of a local variable.  All callers
72535         changed.
72536
72537 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72540         $LIBCSRC/posix/regexec.c.
72541         Add glibc bug 1217 for regcomp.c.
72542
72543 2005-08-19  Jim Meyering  <jim@meyering.net>
72544
72545         * lib/regexec.c (proceed_next_node): Redo local variables to
72546         avoid GCC shadowing warnings.
72547
72548 2005-08-18  Bruno Haible  <bruno@clisp.org>
72549
72550         * lib/strstr.c (strstr): Fix return value in multibyte case.
72551         * lib/strcasestr.c (strcasestr): Likewise.
72552
72553 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72556
72557 2005-08-17  Jim Meyering  <jim@meyering.net>
72558
72559         Make the %s format (seconds since the epoch) work for a negative
72560         number and when used with a zero-padded field width, e.g. %015s.
72561
72562         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72563         label so that it precedes the code to set `digits'.  Otherwise,
72564         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72565         print `00-22'.  Now, it prints `-0022', as it should.
72566
72567 2005-08-17  Bruno Haible  <bruno@clisp.org>
72568
72569         * modules/strstr (Files): Add m4/mbrtowc.m4.
72570         (Depends-on): Add mbuiter.
72571
72572 2005-08-17  Bruno Haible  <bruno@clisp.org>
72573
72574         * modules/strcasestr: New file.
72575         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72576         strcasestr.
72577
72578 2005-08-17  Bruno Haible  <bruno@clisp.org>
72579
72580         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72581
72582 2005-08-17  Bruno Haible  <bruno@clisp.org>
72583
72584         * modules/mbuiter: New file.
72585         * MODULES.html.sh (Extended multibyte and wide character utilities):
72586         Add mbuiter.
72587
72588 2005-08-17  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72591         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72592
72593 2005-08-17  Bruno Haible  <bruno@clisp.org>
72594
72595         * m4/strcasestr.m4: New file.
72596
72597 2005-08-17  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72600         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72601
72602 2005-08-17  Bruno Haible  <bruno@clisp.org>
72603
72604         * lib/strcasestr.h: New file.
72605         * lib/strcasestr.c: New file.
72606
72607 2005-08-17  Bruno Haible  <bruno@clisp.org>
72608
72609         * lib/strcasecmp.c: Use mbuiter.h.
72610
72611 2005-08-17  Bruno Haible  <bruno@clisp.org>
72612
72613         * lib/mbuiter.h: New file.
72614
72615 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72618         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72619         and gl_GETOPT are both invoked via different paths (as happens
72620         with GNU tar CVS because it uses both argp and getopt), the former
72621         wins.
72622
72623 2005-08-16  Bruno Haible  <bruno@clisp.org>
72624
72625         * modules/tls: New file.
72626         * MODULES.html.sh (Multithreading): Add tls.
72627
72628 2005-08-16  Bruno Haible  <bruno@clisp.org>
72629
72630         * modules/strnlen1: New file.
72631         * MODULES.html.sh (String handling): Add strnlen1.
72632
72633 2005-08-16  Bruno Haible  <bruno@clisp.org>
72634
72635         * modules/strcase (Files): Add m4/mbrtowc.m4.
72636         (Depends-on): Add strnlen1, mbchar.
72637
72638 2005-08-16  Bruno Haible  <bruno@clisp.org>
72639
72640         * modules/mbiter: New file.
72641         * MODULES.html.sh (Extended multibyte and wide character utilities):
72642         Add mbiter.
72643
72644 2005-08-16  Bruno Haible  <bruno@clisp.org>
72645
72646         * modules/mbfile: New file.
72647         * MODULES.html.sh (Extended multibyte and wide character utilities):
72648         Add mbfile.
72649
72650 2005-08-16  Bruno Haible  <bruno@clisp.org>
72651
72652         * modules/mbchar: New file.
72653         * MODULES.html.sh (Extended multibyte and wide character utilities):
72654         New section.
72655
72656 2005-08-16  Bruno Haible  <bruno@clisp.org>
72657
72658         * m4/tls.m4: New file, from GNU gettext.
72659
72660 2005-08-16  Bruno Haible  <bruno@clisp.org>
72661
72662         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72663         always.
72664         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72665
72666 2005-08-16  Bruno Haible  <bruno@clisp.org>
72667
72668         * m4/mbiter.m4: New file.
72669
72670 2005-08-16  Bruno Haible  <bruno@clisp.org>
72671
72672         * m4/mbfile.m4: New file.
72673
72674 2005-08-16  Bruno Haible  <bruno@clisp.org>
72675
72676         * m4/mbchar.m4: New file.
72677
72678 2005-08-16  Bruno Haible  <bruno@clisp.org>
72679
72680         * lib/tls.h: New file, from GNU gettext.
72681         * lib/tls.c: New file, from GNU gettext.
72682
72683 2005-08-16  Bruno Haible  <bruno@clisp.org>
72684
72685         * lib/strnlen1.h: New file.
72686         * lib/strnlen1.c: New file.
72687
72688 2005-08-16  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72691         (mbi_init): Update.
72692         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72693         NUL byte, not after it.
72694
72695 2005-08-16  Bruno Haible  <bruno@clisp.org>
72696
72697         * lib/strcase.h (strcasecmp): Add note in comments.
72698         * lib/strncasecmp.c: Use code from strcasecmp.c.
72699         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72700         (strcasecmp): Work correctly in multibyte locales.
72701
72702 2005-08-16  Bruno Haible  <bruno@clisp.org>
72703
72704         * lib/mbiter.h: New file.
72705
72706 2005-08-16  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/mbfile.h: New file.
72709
72710 2005-08-16  Bruno Haible  <bruno@clisp.org>
72711
72712         * lib/mbchar.h: New file.
72713         * lib/mbchar.c: New file.
72714
72715 2005-08-16  Bruno Haible  <bruno@clisp.org>
72716
72717         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72718         the valid ones. Makes the comparison operations transitive:
72719         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72720         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72721
72722 2005-08-15  Simon Josefsson  <jas@extundo.com>
72723
72724         * modules/ssize_t (License): Change to 'unlimited'.
72725
72726         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72727
72728 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72731         Add comments for each pending glibc patch.
72732
72733 2005-08-15  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72736         __cplusplus is defined.
72737
72738 2005-08-14  Jim Meyering  <jim@meyering.net>
72739
72740         Sync from coreutils.
72741
72742         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72743         Use the hash-table-based cycle-detection code not just when
72744         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72745         Reported by James Youngman in
72746         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72747         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72748         FTS_TIGHT_CYCLE_CHECK.
72749         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72750         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72751         once again.
72752         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72753         * lib/fts.c (fd_safer): Remove decl.
72754         Include fcntl--.h rather than unistd-safer.h
72755         (fts_safe_changedir): Don't call fd_safer; no longer needed
72756         now that we include fcntl--.h.
72757
72758 2005-08-12  Simon Josefsson  <jas@extundo.com>
72759
72760         * modules/getndelim2: Use ssize_t module.
72761         * modules/getnline: Likewise.
72762         * modules/safe-read: Likewise.
72763         * modules/xreadlink: Likewise.
72764
72765         * modules/ssize_t: New file.
72766
72767 2005-08-12  Simon Josefsson  <jas@extundo.com>
72768
72769         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72770
72771 2005-08-12  Simon Josefsson  <jas@extundo.com>
72772
72773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72774         ssize_t.
72775
72776 2005-08-12  Simon Josefsson  <jas@extundo.com>
72777
72778         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72779         readline, getdelim and check_version.
72780         (Support for systems lacking ISO C 99: Sizes of integer types):
72781         Add size_max.
72782
72783 2005-08-12  Bruno Haible  <bruno@clisp.org>
72784
72785         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72786
72787 2005-08-11  Simon Josefsson  <jas@extundo.com>
72788
72789         * modules/readline: New file.
72790
72791         * modules/strnlen (Files): Add strnlen.h.
72792
72793 2005-08-11  Simon Josefsson  <jas@extundo.com>
72794
72795         * m4/readline.m4: New file.
72796
72797 2005-08-11  Simon Josefsson  <jas@extundo.com>
72798
72799         * lib/readline.h, readline.c: New file.
72800
72801 2005-08-11  Simon Josefsson  <jas@extundo.com>
72802
72803         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72804         gl_AVOID.
72805
72806 2005-08-11  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72809
72810 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72811
72812         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72813
72814 2005-08-10  Simon Josefsson  <jas@extundo.com>
72815
72816         * tests/test-iconvme.c: New file.
72817
72818 2005-08-10  Simon Josefsson  <jas@extundo.com>
72819
72820         * m4/strnlen.m4: New file.
72821
72822         * m4/strndup.m4: Don't check for strnlen declaration, done in
72823         strnlen.m4.
72824
72825 2005-08-10  Simon Josefsson  <jas@extundo.com>
72826
72827         * lib/strndup.c: Use strnlen.h.
72828
72829         * lib/strnlen.h: New file.
72830
72831 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72832
72833         * README: Typos.
72834
72835 2005-08-02  Simon Josefsson  <jas@extundo.com>
72836
72837         * modules/readline: New file.
72838
72839 2005-08-02  Simon Josefsson  <jas@extundo.com>
72840
72841         * modules/getdelim: New file.
72842
72843         * modules/getline: Rewrite, don't use getndelim2.
72844
72845 2005-08-02  Simon Josefsson  <jas@extundo.com>
72846
72847         * m4/getline.m4: Separate out getdelim stuff into separate module.
72848
72849         * m4/getdelim.m4: New file.
72850
72851 2005-08-02  Simon Josefsson  <jas@extundo.com>
72852
72853         * lib/getline.h, getline.c: Rewrite.
72854
72855         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72856
72857 2005-07-31  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/lock.h (gl_lock_initializer): New macro.
72860         (gl_lock_define_initialized): Use it.
72861         (gl_rwlock_initializer): New macro.
72862         (gl_rwlock_define_initialized): Use it.
72863         (gl_recursive_lock_initializer): New macro.
72864         (gl_recursive_lock_define_initialized): Use it.
72865
72866 2005-07-30  Karl Berry  <karl@gnu.org>
72867
72868         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72869         Report from Ben Pfaff, regarding getopt.
72870
72871 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72874         normal way.
72875         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72876         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72877         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72878         (gl_GETOPT): Use the new macros.  Most of the implementation
72879         is moved to the new macros.  This is for programs like Emacs
72880         that don't want all the functionality of gl_GETOPT.
72881
72882 2005-07-26  Bruno Haible  <bruno@clisp.org>
72883
72884         * m4/lock.m4: Update from GNU gettext.
72885
72886 2005-07-26  Bruno Haible  <bruno@clisp.org>
72887
72888         * lib/lock.h: Update from GNU gettext.
72889         * lib/lock.c: Update from GNU gettext.
72890
72891 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72894         obsolescent AC_TRY_RUN.  Include the default includes files, for
72895         'exit'.
72896
72897 2005-07-24  Bruno Haible  <bruno@clisp.org>
72898
72899         * modules/visibility: New file.
72900         * MODULES.html.sh (Misc): Add visibility.
72901
72902 2005-07-24  Bruno Haible  <bruno@clisp.org>
72903
72904         * m4/visibility.m4: New file.
72905
72906 2005-07-24  Bruno Haible  <bruno@clisp.org>
72907
72908         * doc/visibility.texi: New file.
72909
72910 2005-07-22  Bruno Haible  <bruno@clisp.org>
72911
72912         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72913         $(ALLOCA_H), redundant through BUILT_SOURCES.
72914         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72915         redundant through BUILT_SOURCES.
72916         * modules/byteswap (Makefile.am): Remove explicit dependency on
72917         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72918         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72919         $(FNMATCH_H), redundant through BUILT_SOURCES.
72920         * modules/getopt (Makefile.am): Remove explicit dependency on
72921         $(GETOPT_H), redundant through BUILT_SOURCES.
72922         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72923         redundant through BUILT_SOURCES.
72924         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72925         redundant through BUILT_SOURCES.
72926         * modules/stdbool (Makefile.am): Remove explicit dependency on
72927         $(STDBOOL_H), redundant through BUILT_SOURCES.
72928         * modules/stdint (Makefile.am): Remove explicit dependency on
72929         $(STDINT_H), redundant through BUILT_SOURCES.
72930         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72931         Remove explicit dependency on $(SYSEXITS_H).
72932         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72933
72934 2005-07-18  Simon Josefsson  <jas@extundo.com>
72935
72936         * lib/check-version.c (check_version): Accept identical versions too.
72937
72938 2005-07-18  Bruno Haible  <bruno@clisp.org>
72939
72940         * modules/lock: New file.
72941         * MODULES.html.sh (Multithreading): New section.
72942
72943 2005-07-18  Bruno Haible  <bruno@clisp.org>
72944
72945         * m4/lock.m4: New file, from GNU gettext.
72946
72947 2005-07-18  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/lock.h: New file, from GNU gettext.
72950         * lib/lock.c: New file, from GNU gettext.
72951
72952 2005-07-18  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/lock.h (gl_once_t): New type.
72955         (gl_once_define, gl_once): New macros.
72956         * lib/lock.c (fresh_once): New variable.
72957         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72958         functions.
72959
72960 2005-07-16  Simon Josefsson  <jas@extundo.com>
72961
72962         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72963         workaround, suggested by Bruno.
72964
72965 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         * modules/xalloc (Depends-on): Add xalloc-die.
72968         * modules/xvasprintf (Depends-on): Add xalloc-die.
72969
72970 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72973         with a minor change.
72974
72975 2005-07-15  Bruno Haible  <bruno@clisp.org>
72976
72977         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72978         When using lib/poll.c, define poll as rpl_poll.
72979
72980 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * modules/argp (Depends-on): Remove unlocked-io.
72983
72984 2005-07-14  Derek Price  <derek@ximbiot.com>
72985
72986         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72987         for glob symlink bug.
72988
72989 2005-07-14  Bruno Haible  <bruno@clisp.org>
72990
72991         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72992         Instead, test for *_unlocked function declarations directly.
72993
72994 2005-07-11  Simon Josefsson  <jas@extundo.com>
72995
72996         * modules/size_max: New file.
72997
72998         * modules/xsize: Depend on size_max module for size_max.m4.
72999
73000 2005-07-11  Simon Josefsson  <jas@extundo.com>
73001
73002         * lib/size_max.h: New file.
73003
73004 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73007         copyright symbol and the year.
73008         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73009         (version_etc_va): Use parameterized copyright notice.
73010         Reword to conform to the current GNU coding standards.
73011
73012 2005-07-11  Karl Berry  <karl@gnu.org>
73013
73014         * doc/gnulib.texi (Quoting): new node.
73015         (Initial import): more info, from Patrice.
73016
73017 2005-07-11  Bruno Haible  <bruno@clisp.org>
73018
73019         * gnulib-tool (func_usage): Document option --avoid.
73020         (Command line options): Handle --avoid.
73021         (func_acceptable): New function.
73022         (func_modules_transitive_closure): Use it.
73023
73024 2005-07-11  Bruno Haible  <bruno@clisp.org>
73025
73026         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73027         Reported by Jim Meyering.
73028
73029 2005-07-10  Bruno Haible  <bruno@clisp.org>
73030
73031         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73032         Needed when size_t is smaller than 'unsigned int'.
73033         Reported by Paul Eggert.
73034
73035 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73036
73037         * modules/argp (Depends-on): Add unlocked-io
73038
73039 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73040
73041         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73042         block of defines.
73043
73044 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73047         fix now.
73048
73049 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73050         and Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73053         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73054
73055 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         * modules/regex (Files): Add lib/regex_internal.c,
73058         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73059         (Depends-on): Add extensions.
73060         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73061
73062 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73065         pathconf.
73066         * m4/same.m4 (gl_SAME): Likewise.
73067         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73068
73069         * m4/regex.m4: Adjust to new libc regex implementation.
73070         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73071         all the .c and .h parts of (the new) regex.
73072         Quote the m4 stuff better.
73073         Check for RE_ICASE bug of old gnulib.
73074         Check for REG_STARTEND of recent libc.
73075         Rename local variables from jm_* to gl_*.
73076         Quote operand of "test -f".
73077         Say "recent enough" version of libc, not "version 2".
73078         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73079         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73080         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73081         Remove check for btowc, isascii.
73082         Require AM_LANGINFO_CODESET.
73083
73084 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * lib/regex.c, regex.h: Sync from libc.
73087         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73088         * lib/regexec.c:
73089         New files, synced from libc, except that regex_internal.h
73090         currently has a small porting fix.
73091
73092 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73093
73094         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73095         regex_internal.c, regexec.c.
73096         Add regex_internal.h too, but as a comment, since the libc version
73097         is currently broken in gnulib mode.
73098
73099 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73100
73101         Support programs like Emacs that use gnulib but not gettext.
73102         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73103         * modules/gettext-h: New file.
73104         * modules/gettext (Files): Remove lib/gettext.h.
73105         (Depends-on): Add gettext-h.
73106         (Makefile.am): Remove lib_SOURCES.
73107         * modules/argmatch, modules/c-stack, modules/closeout:
73108         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73109         * modules/execute, modules/file-type, modules/getaddrinfo:
73110         * modules/getopt, modules/human, modules/javacomp:
73111         * modules/javaexec, modules/mkdir-p, modules/obstack:
73112         * modules/openat, modules/pagealign_alloc, modules/pipe:
73113         * modules/quotearg, modules/regex, modules/rpmatch:
73114         * modules/unicodeio, modules/userspec, modules/version-etc:
73115         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73116         * modules/xsetenv:
73117         Depend on gettext-h, not gettext.
73118
73119 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * gnulib-tool (func_import): Add support for 'public domain' license.
73122         * modules/alloca, modules/atexit, modules/memmove:
73123         Now public domain, not GPL.
73124         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73125         * modules/realloc, modules/strerror, modules/strtod:
73126         Now LGPL, not GPL.
73127
73128 2005-07-05  Bruno Haible  <bruno@clisp.org>
73129
73130         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73131         autoconf CVS. Needed for mingw.
73132
73133 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         Remove the dependency of the strftime module on the tzset module.
73136         * modules/strftime (Depends-on): Remove dependency on tzset.
73137
73138 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         Remove the dependency of the strftime module on the tzset module.
73141         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73142         gl_FUNC_TZSET_CLOBBER.
73143
73144 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         Remove the dependency of the strftime module on the tzset module.
73147         * lib/strftime.c (my_strftime)
73148         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73149         Copy the input structure, to work around some of the bug with
73150         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73151         Solaris releases, you should also use the tzset module, but we won't
73152         require it as a dependency any more since we don't want LGPLed code
73153         to depend on GPLed code.
73154
73155 2005-07-02  Jim Meyering  <jim@meyering.net>
73156
73157         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73158         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73159         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73160         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73161
73162 2005-07-02  Jim Meyering  <jim@meyering.net>
73163
73164         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73165
73166 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73169         declares only 'struct timespec;' (!).
73170
73171 2005-07-01  Jim Meyering  <jim@meyering.net>
73172
73173         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73174         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73175         * lib/save-cwd.c, tempname.c:
73176         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73177         and don't include <sys/file.h>).
73178
73179 2005-06-29  Jim Meyering  <jim@meyering.net>
73180
73181         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73182         type name.  Use the variable name instead.
73183         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73184         Likewise.
73185
73186 2005-06-28  Simon Josefsson  <jas@extundo.com>
73187
73188         * modules/check-version (Files): Add check-version.m4.
73189
73190 2005-06-28  Simon Josefsson  <jas@extundo.com>
73191
73192         * m4/check-version.m4: New file, suggested by Jim Meyering
73193         <jim@meyering.net>.
73194
73195 2005-06-28  Simon Josefsson  <jas@extundo.com>
73196
73197         * lib/check-version.h, lib/check-version.c: New files.
73198
73199 2005-06-28  Simon Josefsson  <jas@extundo.com>
73200
73201         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73202         collision with global variable.  Better indentation.  Don't
73203         increment buffer pointer beyond buffer end.  Based on comments
73204         from Paul Eggert <eggert@cs.ucla.edu>.
73205
73206         * lib/base64.h: Indent.
73207
73208 2005-06-28  Simon Josefsson  <jas@extundo.com>
73209
73210         * doc/gnulib.texi (Library version handling): New section.
73211
73212 2005-06-28  Jim Meyering  <jim@meyering.net>
73213
73214         * check-module (find_included_lib_files): Hard-code another
73215         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73216         but modules/fts-lgpl (correctly) does not list those files.
73217
73218         * modules/canonicalize (Files): Add lib/pathmax.h.
73219
73220 2005-06-25  Simon Josefsson  <jas@extundo.com>
73221
73222         * modules/check-version: New file.
73223
73224 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73227         initializer of struct addrinfo, as an indication that we don't
73228         care how many members the structure has.
73229
73230 2005-06-24  Derek Price  <derek@ximbiot.com>
73231         and Bruno Haible  <bruno@clisp.org>
73232
73233         Remove stat module & update lstat.
73234         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73235         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73236         * m4/stat.m4: Remove this file.
73237
73238 2005-06-24  Derek Price  <derek@ximbiot.com>
73239         and Bruno Haible  <bruno@clisp.org>
73240
73241         Remove stat module & update lstat.
73242         * lib/stat.c: Remove this file...
73243         (slash_aware_lstat): ...moving this content and its support...
73244         * lib/lstat.c (rpl_lstat): ...into here.
73245         * lib/lstat.h: New file.
73246
73247 2005-06-24  Derek Price  <derek@ximbiot.com>
73248         and Bruno Haible  <bruno@clisp.org>
73249
73250         Remove stat module & update lstat.
73251         * config/srclist.txt (libc sources): Remove stat.
73252
73253 2005-06-24  Derek Price  <derek@ximbiot.com>
73254         and Bruno Haible  <bruno@clisp.org>
73255
73256         Remove stat module & update lstat.
73257         * MODULES.html.sh (stat): Remove.
73258         * MODULES.html: Regenerated.
73259         * modules/lstat (Description): Correct function name.
73260         (Files): Add "lstat.h".
73261         (Depends-on): Remove stat, add xalloc, stat-macros.
73262         * modules/stat: Remove this file.
73263         (Include): Add "lstat.h", remove <sys/stat.h>.
73264
73265 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73268         (ranged_convert): Don't save conversion in a temporary struct.
73269         This causes a warning with GCC 4.0.0, and anyway in the typical
73270         case it's not worth the extra 100 bytes or so of code.
73271         (ranged_convert, __mktime_internal): When calling a function via a
73272         pointer P, use P () rather than (*P) (), as we now assume C89 or
73273         better.
73274
73275 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73278         "who -r" failed to give output.  Problem reported by Tim Waugh.
73279
73280         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73281         (xcalloc): Use it to avoid needless tests.
73282         Problem reported by Jim Meyering.
73283
73284 2005-06-20  Derek Price  <derek@ximbiot.com>
73285
73286         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73287         unnecessary for Autoconfs > 2.59c.
73288
73289 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73290
73291         * lib/argp.h (__option_is_short): Check upper limit of
73292         __key. Isprint() requires its argument to have the value
73293         of an unsigned char or EOF.
73294
73295 2005-06-16  Jim Meyering  <jim@meyering.net>
73296
73297         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73298         when either N or S is zero.
73299
73300 2005-06-16  Derek Price  <derek@ximbiot.com>
73301
73302         * m4/bison.m4: Declare YACC & YFLAGS precious.
73303
73304 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73305
73306         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73307         multibyte string or pattern, fall back on unibyte matching.
73308         Problem reported by James Youngman.
73309
73310 2005-06-08  Bruno Haible  <bruno@clisp.org>
73311
73312         * modules/csharpcomp: New file.
73313         * MODULES.html.sh (C#): Add csharpcomp.
73314
73315 2005-06-08  Bruno Haible  <bruno@clisp.org>
73316
73317         * m4/csharpcomp.m4: New file, from GNU gettext.
73318
73319 2005-06-08  Bruno Haible  <bruno@clisp.org>
73320
73321         * lib/csharpcomp.h: New file, from GNU gettext.
73322         * lib/csharpcomp.c: New file, from GNU gettext.
73323         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73324
73325 2005-06-08  Bruno Haible  <bruno@clisp.org>
73326
73327         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73328         warning on mingw.
73329
73330 2005-06-07  Derek Price  <derek@ximbiot.com>
73331
73332         Sync from CVS.
73333         * lib/glob_.h: Indent nested #ifdef.
73334
73335 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         Sync from coreutils.
73338         Use "file name" when talking about file names, instead of "filename"
73339         or "path", as per the GNU coding standards.
73340         * lib/mkdir-p.c: Renamed from makepath.c.
73341         (make_dir_parents): Renamed from make_path.  All callers changed.
73342         * lib/mkdir-p.h: Likewise.  All includers changed.
73343         * lib/filenamecat.c: Renamed from path-concat.c.
73344         (file_name_concat): Renamed from path_concat.  All callers changed.
73345         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73346         * lib/filenamecat.h: Likewise.  All includers changed.
73347         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73348         in comments or local variable names.
73349         * lib/basename.c: Likewise.
73350         * lib/canonicalize.c, canonicalize.h: Likewise.
73351         * lib/dirname.c, dirname.h: Likewise.
73352         * lib/euidaccess.c: Likewise.
73353         * lib/exclude.c: Likewise
73354         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73355         * lib/fsusage.c, fsuage.h: Likewise.
73356         * lib/fts.c, fts_.h: Likewise.
73357         * lib/getcwd.c: Likewise.
73358         * lib/getloadavg.c: Likewise.
73359         * lib/mkstemp.c: Likewise.
73360         * lib/mountlist.c, mountlist.h: Likewise.
73361         * lib/openat.c, openat.h: Likewise.
73362         * lib/readlink-stub.c: Likewise.
73363         * lib/readutmp.c, readutmp.h: Likewise.
73364         * lib/rename.c: Likewise.
73365         * lib/rmdir.c: Likewise.
73366         * lib/same.c: Likewise.
73367         * lib/savedir.c: Likewise.
73368         * lib/stripslash.c: Likewise.
73369         * lib/tempname.c: Likewise.
73370         * lib/xreadlink.c: Likewise.
73371         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73372         All uses changed.
73373         * lib/exclude.h: Likewise.
73374
73375         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73376         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73377         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73378         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73379         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73380         files have been getting away with it for years (MORE/BSD 4.3
73381         is extinct now).
73382         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73383         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73384
73385         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73386         Define to 256, not 255, as per modern POSIX.
73387
73388 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         Sync from coreutils.
73391         Use "file name" when talking about file names, instead of "filename"
73392         or "path", as per the GNU coding standards.
73393         * MODULES.html.sh: mkdir-p renamed from makepath.
73394         filenamecat renamed from path-concat.
73395         * modules/filenamecat: Renamed from modules/path-concat.
73396         (Files): filenamecat.h and filenamecat.c renamed from
73397         path-concat.h and path-concat.c.
73398         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73399         (Include): filenamecat.h, not path-concat.h.
73400         * modules/mkdir-p: Renamed from modules/makepath.
73401         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73402         makepath.c.
73403         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73404         (Include): mkdir-p.h, not makepath.h.
73405
73406 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73407
73408         Sync from coreutils.
73409         * m4/mkdir-p.m4: Renamed from makepath.m4.
73410         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73411         Rename files from makepath.c to mkdir-p.c, and from
73412         makepath.h to mkdir-p.h.
73413         * m4/filenamecat.m4: Renamed from path-concat.m4.
73414         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73415         Rename files from path-concat.c to filenamecat.c,
73416         and from path-concat.h to filenamecat.h.
73417         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73418         "file name" in local variables or comments.
73419         * m4/rename.m4: Likewise.
73420
73421 2005-06-01  Bruno Haible  <bruno@clisp.org>
73422
73423         * modules/csharpexec: New file.
73424         * MODULES.html.sh (C#): New section.
73425
73426 2005-06-01  Bruno Haible  <bruno@clisp.org>
73427
73428         * m4/csharp.m4: New file, from GNU gettext.
73429         * m4/csharpexec.m4: New file, from GNU gettext.
73430
73431 2005-06-01  Bruno Haible  <bruno@clisp.org>
73432
73433         * lib/csharpexec.h: New file, from GNU gettext.
73434         * lib/csharpexec.c: New file, from GNU gettext.
73435         * lib/csharpexec.sh.in: New file, from GNU gettext.
73436
73437 2005-05-31  Derek Price  <derek@ximbiot.com>
73438             Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         Sync from cvs.
73441         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73442
73443 2005-05-31  Derek Price  <derek@ximbiot.com>
73444             Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         Sync from cvs.
73447         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73448
73449 2005-05-29  Derek Price  <derek@ximbiot.com>
73450
73451         * config/srclist.txt (glob_.h, glob.c): Add these files.
73452
73453 2005-05-29  Derek Price  <derek@ximbiot.com>
73454
73455         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73456         * modules/glob: New file.
73457         * modules/getlogin_r: Add link to POSIX spec in description.
73458
73459 2005-05-29  Derek Price  <derek@ximbiot.com>
73460             Paul Eggert  <eggert@cs.ucla.edu>
73461
73462         * m4/glob.m4: New file.
73463
73464 2005-05-29  Derek Price  <derek@ximbiot.com>
73465             Paul Eggert  <eggert@cs.ucla.edu>
73466
73467         * lib/glob_.h, lib/glob.c: New files.
73468
73469 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73472         * modules/fts-lgpl (Depends-on): Remove gettext.
73473
73474 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73477         and don't require gt_INTTYPES_PRI.
73478
73479 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73480
73481         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73482
73483         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73484         the configuration hassle isn't worth it.
73485         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73486         (LONGEST_MODIFIER, PRIuMAX): Remove.
73487
73488 2005-05-27  Bruno Haible  <bruno@clisp.org>
73489
73490         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73491
73492 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73495         _POSIX_PTHREAD_SEMANTICS for Solaris.
73496
73497 2005-05-25  Derek Price  <derek@ximbiot.com>
73498
73499         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73500
73501 2005-05-25  Derek Price  <derek@ximbiot.com>
73502             Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73505         * lib/getlogin_r.c, getlogin_r.h: New files.
73506
73507 2005-05-25  Bruno Haible  <bruno@clisp.org>
73508             Derek Price  <derek@ximbiot.com>
73509
73510         * lib/getlogin_r.h: Simplify API documentation.
73511
73512 2005-05-23  Derek Price  <derek@ximbiot.com>
73513
73514         * modules/minmax (Files): Add m4/minmax.m4.
73515         (configure.ac): Add gl_MINMAX.
73516
73517 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73520         so that unistd-safer.h (GPL'ed code) need not be included.
73521
73522 2005-05-22  Bruno Haible  <bruno@clisp.org>
73523
73524         * m4/minmax.m4: New file.
73525         Based on a patch by Derek Price <derek@ximbiot.com>.
73526
73527 2005-05-22  Bruno Haible  <bruno@clisp.org>
73528
73529         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73530         (INT64_MIN): Fix definition.
73531         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73532
73533         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73534         NEED_SIGNED_INT_TYPES.
73535
73536         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73537         HAVE_SYSTEM_INTTYPES.
73538
73539 2005-05-22  Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73542         Also include <sys/param.h> if it defines MIN, MAX.
73543         Based on a patch by Derek Price <derek@ximbiot.com>.
73544
73545 2005-05-21  Jim Meyering  <jim@meyering.net>
73546
73547         * modules/fts (Files): Add m4/inttypes-pri.m4.
73548         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73549
73550 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         New fts module.
73553         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73554         (setup_dir, free_dir): New functions.
73555         (enter_dir, leave_dir): Define trivial
73556         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73557         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73558         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73559         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73560         Move to fts-cycle.c.
73561         (fts_open): Use setup_dir.
73562         (fts_close): Use free_dir.
73563         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73564         This adds a label and some gotos, but the alternatives were messier.
73565         Check for memory allocation failure when entering a dir.
73566         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73567         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73568         (FTS): New member fts_cycle, that is a union that contains the
73569         old active_dir_ht and cycle_state.  All uses changed to mention
73570         fts_cycle.ht and fts_cycle.state.
73571         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73572         fts.c, with the following changes:
73573         (setup_dir, free_dir): New functions.
73574         (enter_dir): Now returns bool.  Return true if successful, false
73575         if memory exhausted.  All callers changed.
73576         Do not bother partly cleaning up on
73577         memory allocation failure; that is free_dir's job.
73578         However, free ad if hash_insert fails, to avoid memory leak.
73579         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73580         fts->fts_options to see which union member to use.
73581
73582 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73583
73584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73585         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73586
73587 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73590
73591 2005-05-20  Jim Meyering  <jim@meyering.net>
73592
73593         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73594         Now a macro, to pacify GCC.
73595
73596 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73597
73598         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73599         of -1.
73600
73601 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73602
73603         * lib/chown.c (rpl_chown): Return -1 on failure.
73604
73605 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73608         Don't check for stddef.h.
73609         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73610         don't use its results.
73611         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73612         since we include them unconditionally.  Don't require
73613         AM_STDBOOL_H, since stdbool is a prerequisite.
73614         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73615         since we assume C89 or better.
73616         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73617         as we don't use their results.
73618         Don't check for fchdir, memmove, memset, strrchr, as we use
73619         them unconditionally.
73620         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73621         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73622
73623 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73626         Include <stddef.h> unconditionally, since we assume C89 now.
73627         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73628         * lib/fts.c: Include fts_.h first, to check interface.
73629         Do not include intprops.h; no longer needed.
73630         Include cycle-check.h and hash.h, since fts_.h no longer does.
73631         Remove unnecessary casts of closedir to void.
73632         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73633         decide whether to decrement nlinks.
73634         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73635         (FTS): Use struct hash_table * instead of Hash_table, so that
73636         we no longer need to include hash.h here.
73637
73638 2005-05-18  Jim Meyering  <jim@meyering.net>
73639
73640         * modules/dirfd (License): Change to LGPL.  Most of the code
73641         is already in the public domain.
73642
73643 2005-05-18  Jim Meyering  <jim@meyering.net>
73644
73645         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73646         Reported by Yoann Vandoorselaere.
73647
73648 2005-05-17  Jim Meyering  <jim@meyering.net>
73649
73650         * m4/fts.m4: New file, from coreutils.
73651
73652 2005-05-17  Jim Meyering  <jim@meyering.net>
73653
73654         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73655
73656 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         Sync from coreutils.
73659         * m4/unlinkdir.m4: New file.
73660
73661 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         Sync from coreutils.
73664         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73665         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73666         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73667         White space changes only.
73668         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73669         special.
73670         * lib/yesno.c: Include getline.h, not ctype.h.
73671         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73672         Use getline to remove arbitrary restriction on response length.
73673
73674 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * config/srclist-update: Spell out "Street" in FSF postal
73677         mail address; this is the style the FSF seems to prefer.
73678
73679         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73680         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73681         this updates FSF postal mail address.
73682
73683         Sync from coreutils.
73684         * modules/unlinkdir: New file.
73685         * modules/yesno (Depends-on): Add getline.
73686         * MODULES.html.sh (File system functions): Add unlinkdir.
73687
73688 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73691         lib/strsep.h:
73692         Change the initial comment to refer to GPL, not LGPL.
73693         gnulib-tool will change it to LGPL as needed.
73694
73695         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73696         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73697         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73698         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73699         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73700         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73701         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73702         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73703         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73704         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73705         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73706         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73707         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73708         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73709         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73710         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73711         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73712         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73713         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73714         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73715         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73716         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73717         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73718         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73719         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73720         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73721         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73722         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73723         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73724         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73725         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73726         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73727         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73728         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73729         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73730         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73731         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73732         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73733         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73734         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73735         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73736         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73737         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73738         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73739         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73740         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73741         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73742         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73743         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73744         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73745         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73746         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73747         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73748         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73749         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73750         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73751         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73752         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73753         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73754         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73755         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73756         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73757         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73758         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73759         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73760         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73761         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73762         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73763         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73764         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73765         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73766         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73767         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73768         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73769         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73770         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73771         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73772         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73773         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73774         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73775         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73776         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73777         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73778         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73779         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73780         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73781         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73782         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73783         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73784         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73785         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73786         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73787         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73788         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73789         lib/yesno.c, lib/yesno.h:
73790         Update FSF postal mail address.
73791
73792 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73795         tests/test-memmem.c, tests/test-stpncpy.c:
73796         Update FSF postal mail address.
73797
73798 2005-05-13  Bruno Haible  <bruno@clisp.org>
73799
73800         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73801         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73802         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73803         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73804         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73805         Add support for 64-bit integers in the MSVC compiler.
73806
73807 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73808
73809         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73810
73811 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73812
73813         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73814
73815 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         * doc/getdate.texi (General date syntax): Don't say that date
73818         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73819         Problem reported by Nic Ferrier.
73820
73821 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73822
73823         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73824         specified in ai_socktype. Fix invalid ai_protocol
73825         check. ai_protocol is usually set to 0 or depending on
73826         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73827         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73828         ai_socktype / ai_protocol in the returned addrinfo structure.
73829
73830 2005-05-10  Simon Josefsson  <jas@extundo.com>
73831
73832         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73833         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73834
73835 2005-05-10  Karl Berry  <karl@gnu.org>
73836
73837         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73838         (from http://www.gnu.org/licenses).
73839         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73840         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73841         fdl.texi suffices.
73842
73843 2005-05-10  Karl Berry  <karl@gnu.org>
73844
73845         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73846         (COPYING.DOC): remove.
73847
73848         * config/srclist-update: new FSF address.
73849
73850 2005-05-10  Derek Price  <derek@ximbiot.com>
73851
73852         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73853         possible.
73854
73855 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73856             Bruno Haible  <bruno@clisp.org>
73857
73858         * modules/inet_ntop: New file.
73859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73860         inet_ntop.
73861
73862 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73863             Bruno Haible  <bruno@clisp.org>
73864
73865         * m4/inet_ntop.m4: New file.
73866
73867 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73868             Bruno Haible  <bruno@clisp.org>
73869
73870         * lib/inet_ntop.h: New file.
73871         * lib/inet_ntop.c: New file, from glibc with modifications.
73872
73873 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * modules/time_r (License): Change to LGPL.
73876         * modules/extensions (License): Change to LGPL.  Actually,
73877         the license is more permissive than that, but currently gnulib-tool
73878         doesn't know how to handle more-permissive licenses.
73879
73880         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73881         Problem reported by Dave Love.
73882
73883 2005-05-08  Jim Meyering  <jim@meyering.net>
73884
73885         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73886         blank.
73887
73888 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * modules/argmatch (Depends-on): Add stdbool.
73891         * modules/backupfile (Depends-on): Likewise.
73892         * modules/chdir-long (Depends-on): Likewise.
73893         * modules/closeout (Depends-on): Likewise.
73894         * modules/cycle-check (Depends-on): Likewise.
73895         * modules/dirname (Depends-on): Likewise.
73896         * modules/fnmatch (Depends-on): Likewise.
73897         * modules/fsusage (Depends-on): Likewise.
73898         * modules/fwriteerror (Depends-on): Likewise.
73899         * modules/getcwd (Depends-on): Likewise.
73900         * modules/getloadavg (Depends-on): Likewise.
73901         * modules/hard-locale (Depends-on): Likewise.
73902         * modules/makepath (Depends-on): Likewise.
73903         * modules/mountlist (Depends-on): Likewise.
73904         * modules/nanosleep (Depends-on): Likewise.
73905         * modules/posixtm (Depends-on): Likewise.
73906         * modules/quotearg (Depends-on): Likewise.
73907         * modules/readtokens (Depends-on): Likewise.
73908         * modules/readtokens0 (Depends-on): Likewise.
73909         * modules/readutmp (Depends-on): Likewise.
73910         * modules/save-cwd (Depends-on): Likewise.
73911         * modules/strftime (Depends-on): Likewise.
73912         * modules/userspec (Depends-on): Likewise.
73913         * modules/utimecmp (Depends-on): Likewise.
73914         * modules/xgetcwd (Depends-on): Likewise.
73915         * modules/xnanosleep (Depends-on): Likewise.
73916         * modules/xstrtod (Depends-on): Likewise.
73917         * modules/yesno (Depends-on): Likewise.
73918
73919 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73922         needless checks.
73923
73924 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         Merge from coreutils.  Among other things,
73927         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73928         * lib/fd-safer.c: New file.
73929         * lib/fcntl-safer.h, open-safer.c: Remove.
73930         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73931         * lib/dup-safer.c: Include unistd-safer.h first.
73932         Don't include errno.h.
73933         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73934         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73935         * lib/file-type.c: Rely on file-type.h change.
73936         * lib/getloadavg.c: Include unistd-safer.h.
73937         (getloadavg): Use safer open.
73938         * lib/getusershell.c: Include "stdio-safer.h".
73939         (getusershell): Use safer fopen.
73940         * lib/long-options.c (long_options): Use NULL rather than 0.
73941         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73942         'free'.
73943         * lib/modechange.c: Likewise.
73944         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73945         (MODE_DONE): New constant.
73946         (struct mode_change): Remove 'next' member.
73947         (make_node_op_equals): New function; like the old one of the
73948         same name, except it allocates an array.
73949         (mode_compile, mode_create_from_ref): Use it.
73950         (mode_compile): Allocate result as an array, not a linked list.
73951         Parse octal string ourself, so that we catch mistakes like "+0".
73952         (mode_adjust): Arg is an array, not a linked list.
73953         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73954         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73955         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73956         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73957         Remove.  This is now stat-macros.h's job.
73958         (talloc): Remove.  All callers replaced by xalloc, so that
73959         our invokers don't have to worry about reporting memory failures.
73960         (make_node_op_equals): Remove.
73961         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73962         New constants.
73963         (struct mode_change): Moved here from modechange.h.
73964         (mode_append_entry): Remove.
73965         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73966         apps to have incorrect behavior.  Use simpler algorithm for head
73967         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73968         Detect more invalid usages rather than having somewhat-random behavior.
73969         Don't insert an "a=" action, as that leads to incorrect behavior.
73970         (mode_compile, mode_create_from_ref): Return NULL on error instead
73971         of an enum, since now there's only one way to have an error.  All
73972         callers changed.
73973         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73974         at the correct time.  Simplify calculation of "+u" and its ilk.
73975         Don't mishandle "+X".
73976         (mode_free): Remove "register" and localize decls.
73977         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73978         (struct mode_change): Move to modechange.c; callers don't
73979         need to see this stuff.
73980         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73981         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73982         (mode_change, mode_adjust): Reflect the new signatures noted above.
73983         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73984         that might redefine system include files.
73985         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73986         (my_usleep): Use NULL rather than (void *) 0.
73987         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73988         Use siginterrupt to specify that system calls should be interrupted.
73989         (rpl_nanosleep): Move initialization of suspended closer to call of
73990         my_usleep.
73991         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73992         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73993         (desirable_utmp_entry): New function.
73994         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73995         using x2nrealloc, to simplify logic.
73996         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73997         size calculation.  Do not assume utmp file is a regular file.
73998         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73999         (READ_UTMP_CHECK_PIDS): New constant.
74000         * lib/save-cwd.c: Include unistd-safer.h.
74001         (save_cwd): Use fd_safer.
74002         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74003         [!_LIBC] Include "stat-macros.h" instead.
74004         * lib/unistd-safer.h (fd_safer): New decl.
74005
74006 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         * modules/getloadavg (Depends-on): Add unistd-safer.
74009         * modules/getusershell (Depends-on): Add stdio-safer.
74010         * modules/lstat (Depends-on): Remove xalloc.
74011         * modules/mkstemp (Depends-on): Add stat-macros.
74012         * modules/modechange (Depends-on): Remove xstrtol.
74013         Add stat-macros, xalloc.
74014         * modules/save-cwd (Depends-on): Add unistd-safer.
74015         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74016         * modules/unistd-safer (Files): Add lib/fd-safer.c
74017         (Makefile.am): Remove lib_SOURCES.
74018
74019         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74020         Remove fcntl-safer; unistd-safer supersedes it.
74021
74022 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74023
74024         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74025         AC_HEADER_STAT.
74026         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74027         (gl_PREREQ_CHOWN): Remove.
74028         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74029         it.  Don't require AC_HEADER_STAT.
74030         (gl_PREREQ_LSTAT): Remove.
74031         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74032         Don't require AC_HEADER_STAT.
74033         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74034         (gl_PREREQ_RMDIR): Remove.
74035         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74036         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74037         the stat-macros module a prerequisite.
74038         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74039         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74040         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74041         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74042         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74043         variable names.
74044         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74045         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74046         variable prefixes.
74047         * m4/fcntl-safer.m4: Remove.
74048         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74049         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74050         Invoke gl_PREREQ_FD_SAFER.
74051         (gl_PREREQ_FD_SAFER): New macro.
74052         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74053         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74054         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74055         Remove duplicate call to AC_LIBOBJ(readutmp).
74056         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74057
74058         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74059         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74060
74061 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * MODULES.html.sh (Misc): Add byteswap.
74064
74065 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74066
74067         * modules/getcwd (Depends-on): Add extensions.
74068         * modules/openat (Depends-on): Likewise.
74069
74070 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74071
74072         * modules/byteswap: New file.
74073
74074 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74075
74076         * m4/byteswap.m4: New file.
74077
74078 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74079
74080         * lib/byteswap_.h: New file.
74081
74082 2005-04-25  Karl Berry  <karl@gnu.org>
74083
74084         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74085
74086 2005-04-25  Albert Chin  <china@thewrittenword.com>
74087
74088         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74089         Toolkit C bug.
74090
74091 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74092
74093         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74094         (func_ln_if_changed): Remove forcibly for no error message
74095         in case file does not exist.
74096
74097 2005-04-19  Simon Josefsson  <jas@extundo.com>
74098
74099         * gnulib-tool (Options): Make --symlink mean --symbolic.
74100
74101 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74102
74103         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74104
74105 2005-04-16  Simon Josefsson  <jas@extundo.com>
74106
74107         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74108
74109 2005-04-15  Simon Josefsson  <jas@extundo.com>
74110
74111         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74112
74113 2005-04-15  Simon Josefsson  <jas@extundo.com>
74114
74115         * gnulib-tool: Rename --symlink to --symbolic.
74116
74117 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74118
74119         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74120         symbolic links to files instead of copying/moving.  Add --aux-dir,
74121         specifying directory relative --dir where auxiliary build tools
74122         are placed.
74123
74124 2005-04-14  Bruno Haible  <bruno@clisp.org>
74125
74126         * modules/allocsa (License): Change to LGPL.
74127         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74128
74129 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74132         that "UTC +1 second" continues to work.  Problem reported
74133         by Dmitry V. Levin.
74134         (relunit_snumber): New rule.
74135         (relunit): Use it.
74136
74137 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * lib/getdate.y (universal_time_zone_table): New constant.
74140         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74141         universal_time_zone_table.
74142         (lookup_zone): Prefer universal_time_zone_table to
74143         local_time_zone_table, so that "GMT" time stamps are allowed in
74144         London during the summer.  Problem reported by Ian Abbott.
74145
74146 2005-04-12  Jim Meyering  <jim@meyering.net>
74147
74148         * lib/human.c (humblock): Set *options even when returning due to
74149         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74150         warning from gcc-4.
74151
74152 2005-04-09  Jim Meyering  <jim@meyering.net>
74153
74154         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74155         -Wuninitialized: initialize tm0.tm_year.
74156
74157 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74160         count, since there's no maximum.  All uses changed.
74161         Add member dsts_seen.
74162         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74163         not being INT_MAX.
74164         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74165         Use pc_rels_seen to decide whther a date is absolute.
74166
74167         * lib/getdate.y (number): Don't overwrite year.
74168         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74169         check.
74170
74171 2005-04-02  Simon Josefsson  <jas@extundo.com>
74172
74173         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74174         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74175
74176 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74177
74178         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74179         where no absolute path name can be longer than PATH_MAX.
74180
74181 2005-03-27  Jim Meyering  <jim@meyering.net>
74182
74183         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74184
74185 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74186
74187         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74188         "one's complement" -> "ones' complement" in comment, as per Knuth.
74189         "value of type" -> "type or expression" in comment.
74190         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74191
74192 2005-03-26  Jim Meyering  <jim@meyering.net>
74193
74194         Comment nits.
74195         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74196         Correct typos: s/or/of/.
74197
74198 2005-03-26  Jim Meyering  <jim@meyering.net>
74199
74200         * modules/check-include-files: Move to ../ and rename to...
74201         * check-module: ...this.
74202
74203 2005-03-25  Jim Meyering  <jim@meyering.net>
74204
74205         * modules/xvasprintf (Files): Add xalloc.h.
74206
74207 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         * modules/gettext (Files): config/config.rpath ->
74210         build-aux/config.rpath
74211         * modules/iconv (Files): Likewise.
74212         Problem reported by Oskar Liljeblad.
74213
74214 2005-03-23  Jim Meyering  <jim@meyering.net>
74215
74216         * modules/check-include-files: New script to check for
74217         missing dependencies, multiple includes, etc.
74218
74219         * modules/c-strtold (Depends-on): Add xalloc.
74220         * modules/c-strtod (Depends-on): Add xalloc.
74221         * modules/hash (Depends-on): Add xalloc.
74222         (Files): Remove lib/xalloc.h.
74223
74224         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74225         * modules/userspec (Files): Add lib/inttostr.h.
74226
74227 2005-03-23  Jim Meyering  <jim@meyering.net>
74228
74229         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74230
74231 2005-03-22  Jim Meyering  <jim@meyering.net>
74232
74233         * modules/stat-macros: New module.
74234         * modules/canonicalize, modules/euidaccess, modules/file-type,
74235         * modules/filemode, modules/lchown, modules/makepath,
74236         * modules/rmdir, modules/stat: Depend on new stat-macros module
74237         rather than listing lib/stat-macros.h manually.
74238         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74239
74240 2005-03-22  Jim Meyering  <jim@meyering.net>
74241
74242         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74243
74244 2005-03-22  Bruno Haible  <bruno@clisp.org>
74245
74246         * config/srclist.txt: Replace target directory 'config' with
74247         'build-aux'.
74248         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74249         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74250         ../build-aux/.
74251
74252 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74253
74254         * modules/chdir-long (Depends-on): Add mempcpy.
74255
74256         * modules/acl, modules/backupfile, modules/c-strtod,
74257         modules/c-strtold, modules/canon-host, modules/canonicalize,
74258         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74259         modules/exclude, modules/exitfail, modules/file-type,
74260         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74261         modules/getdate, modules/getline, modules/getpagesize,
74262         modules/getpass, modules/getugroups, modules/group-member,
74263         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74264         modules/inttostr, modules/long-options, modules/makepath,
74265         modules/md5, modules/memcasecmp, modules/memcoll,
74266         modules/modechange, modules/mountlist, modules/path-concat,
74267         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74268         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74269         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74270         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74271         modules/strftime, modules/strndup, modules/strverscmp,
74272         modules/timespec, modules/unlocked-io, modules/userspec,
74273         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74274         modules/yesno:
74275         Remove lib_SOURCES line from Makefile.am section, as this is now
74276         done automatically by the corresponding Autoconf macro.
74277
74278 2005-03-21  Jim Meyering  <jim@meyering.net>
74279
74280         Changes imported from coreutils.
74281
74282         * lib/cycle-check.c: Don't include xalloc.h.
74283
74284         * lib/path-concat.c: Don't include assert.h.
74285         (path_concat): Remove assertion that would have triggered
74286         for ABASE starting with more than one slash.
74287         Reported by Andreas Schwab.
74288
74289         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74290         properly when ABASE is an absolute file name.
74291         Correct the description of this function.
74292         Include <assert.h>.
74293         Add an assertion and a test driver.
74294         This fixes a bug introduced on 2004-07-02.
74295         Andreas Schwab reported the resulting failure of cp --parents:
74296         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74297
74298 2005-03-21  Jim Meyering  <jim@meyering.net>
74299
74300         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74301         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74302
74303 2005-03-21  Jim Meyering  <jim@meyering.net>
74304         and  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74307         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74308         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74309         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74310         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74311         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74312         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74313         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74314         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74315         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74316         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74317         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74318         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74319         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74320         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74321         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74322         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74323         for these modules.
74324
74325 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74326
74327         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74328         (which shouldn't happen), generate nothing instead of returning 0
74329         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74330
74331 2005-03-16  Bruno Haible  <bruno@clisp.org>
74332
74333         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74334         HAVE_LONGLONG_64BIT.
74335
74336 2005-03-16  Bruno Haible  <bruno@clisp.org>
74337
74338         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74339         HAVE_LONGLONG_64BIT.
74340
74341 2005-03-16  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74344         HAVE_LONGLONG_64BIT.
74345
74346 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74349         reliably distinguish strftime failure from empty output on POSIX
74350         hosts.
74351
74352 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74355         (iconv_string): Don't guess a size-zero buffer, as that might cause
74356         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74357         result would be 'too large', where 'too large' is (heuristically)
74358         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74359         overflow concerns.  This will prevent some unwanted malloc failures
74360         when the inputs are very large.
74361
74362 2005-03-15  Karl Berry  <karl@gnu.org>
74363
74364         * config/srclist.txt (config.rpath): from gettext.
74365         * config/config.rpath: update.
74366
74367 2005-03-15  Bruno Haible  <bruno@clisp.org>
74368
74369         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74370         to 'negate'.
74371
74372         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74373         variable.
74374
74375         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74376         results.
74377
74378 2005-03-14  Simon Josefsson  <jas@extundo.com>
74379
74380         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74381         <fx@gnu.org>.
74382
74383 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74384
74385         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74386         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74387         intprops.h.
74388         * lib/strtol.c: Likewise.
74389
74390 2005-03-14  Jim Meyering  <jim@meyering.net>
74391
74392         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74393         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74394         to be nonzero so that we (and caller) can detect the difference
74395         between a valid zero-length expansion and an error return, even
74396         when the underlying strftime fails before writing anything into
74397         that location.
74398
74399 2005-03-14  Bruno Haible  <bruno@clisp.org>
74400
74401         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74402         Update from GNU gettext 0.14.3.
74403
74404 2005-03-10  Jim Meyering  <jim@meyering.net>
74405
74406         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74407
74408 2005-03-10  Jim Meyering  <jim@meyering.net>
74409
74410         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74411         so that this module works on systems without fchdir.
74412
74413 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         Factor int-properties macros into a single file, except for
74416         glibc-related files.
74417         * lib/intprops.h: New file.
74418         * lib/getloadavg.c: Include it instead of limits.h.
74419         (INT_STRLEN_BOUND): Remove.
74420         * lib/human.c: Include intprops.h.
74421         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74422         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74423         302/1000.
74424         * lib/inttostr.h: Include intprops.h instead of limits.h.
74425         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74426         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74427         for consistency with intprops.h.
74428         (time_t_is_integer, twos_complement_arithmetic): Use them.
74429         * lib/sig2str.h: Include <signal.h>, intprops.h.
74430         (INT_STRLEN_BOUND): Remove.
74431         * lib/strftime.c (TYPE_SIGNED): Remove.
74432         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74433         * lib/strtol.c: Adjust comments to match intprops.h.
74434         * lib/userspec.c: Include intprops.h.
74435         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74436         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74437         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74438         instead of rolling our own expressions.
74439         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74440
74441         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74442         instead of int.
74443         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74444         the right thing even if adding 1900 would overflow.  Similarly
74445         for tm_mon + 1 and tm_yday + 1.
74446         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74447         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74448         (DO_SIGNED_NUMBER): New macro.
74449         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74450
74451 2005-03-07  Bruno Haible  <bruno@clisp.org>
74452
74453         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74454
74455 2005-03-07  Bruno Haible  <bruno@clisp.org>
74456
74457         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74458
74459 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74460
74461         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74462         (func_import): Only replace files via --import when they have actually
74463         changed.
74464
74465 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74466
74467         * m4/mmap-anon.m4: New file.
74468         * m4/pagealign_alloc.m4: New file.
74469
74470 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74471             Bruno Haible  <bruno@clisp.org>
74472
74473         * modules/pagealign_alloc: New file.
74474         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74475
74476 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74477             Bruno Haible  <bruno@clisp.org>
74478
74479         * lib/pagealign_alloc.h: New file.
74480         * lib/pagealign_alloc.c: New file.
74481
74482 2005-03-03  Bruno Haible  <bruno@clisp.org>
74483
74484         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74485         Use an all-permissive copyright notice, recommended by RMS.
74486
74487 2005-03-02  Bruno Haible  <bruno@clisp.org>
74488
74489         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74490         of AIX, the replacement has to be done only after <string.h> is
74491         included, therefore not in config.h. stpncpy.h does the replacement,
74492         and stpncpy.c uses it.
74493
74494 2005-03-02  Bruno Haible  <bruno@clisp.org>
74495
74496         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74497         stpncpy.c uses it.
74498
74499 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74502         The workaround isn't strictly needed for POSIX conformance, and
74503         it's too much of a pain to configure and maintain.  We'll ask
74504         people to fix their kernels instead.
74505         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74506         (NANOSLEEP_BUG_WORKAROUND): Remove.
74507         (xnanosleep): Remove the workaround.
74508
74509 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74512         Reported by Derek Price.
74513         (Include): Add "timespec.h".
74514
74515         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74516
74517 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74520         to detect nanosleep bug.
74521
74522 2005-03-01  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74525
74526 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74527
74528         * modules/gethrxtime: New file.
74529         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74530         (Depends-on): Add gethrxtime.
74531         (configure.ac): Add gl_XNANOSLEEP.
74532         (Makefile.am): Remove lib_SOURCES line.
74533
74534 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74537         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74538
74539 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74542         * lib/timespec.h (gettime): Return void, since it always
74543         succeeds now.  All uses changed.
74544         * lib/gettime.c (gettime): Likewise.
74545         [HAVE_NANOTIME]: Prefer nanotime.
74546         Assume gettimeofday succeeds, as POSIX requires.
74547         Assime time () succeeds, since other code already does.
74548         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74549         (timespec_subtract): Remove.
74550         (NANOSLEEP_BUG_WORKAROUND): New constant.
74551         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74552         things considerably.  Use it only on GNU/Linux hosts, since the
74553         workaround shouldn't be needed elsewhere.
74554
74555 2005-02-24  Bruno Haible  <bruno@clisp.org>
74556
74557         * modules/gettext (Files): Add m4/glibc2.m4.
74558
74559 2005-02-24  Bruno Haible  <bruno@clisp.org>
74560
74561         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74562         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74563         * m4/progtest.m4:
74564         Update from GNU gettext 0.14.2.
74565         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74566
74567 2005-02-24  Bruno Haible  <bruno@clisp.org>
74568
74569         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74570         * lib/config.charset: Update from GNU gettext 0.14.2.
74571
74572 2005-02-24  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/gettext.h: Update from GNU gettext 0.14.2.
74575
74576 2005-02-23  Simon Josefsson  <jas@extundo.com>
74577
74578         * m4/iconvme.m4: New file.
74579
74580 2005-02-23  Jim Meyering  <jim@meyering.net>
74581
74582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74583         change.
74584         Thanks to Bruno Haible for catching it.
74585
74586 2005-02-22  Simon Josefsson  <jas@extundo.com>
74587
74588         * modules/iconvme: New file.
74589
74590         * MODULES.html.sh: Add iconvme.
74591
74592 2005-02-22  Simon Josefsson  <jas@extundo.com>
74593
74594         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74595
74596 2005-02-22  Simon Josefsson  <jas@extundo.com>
74597
74598         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74599
74600 2005-02-22  Jim Meyering  <jim@meyering.net>
74601
74602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74603         s/ifndef/ifdef/.
74604
74605 2005-02-20  Neil Conway  <neilc@samurai.com>
74606
74607         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74608         returned by OSX/Darwin if the specified buffer is not large
74609         enough for the hostname.
74610
74611 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74612
74613         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74614         pass it to _help, otherwise the latter coredumps trying to
74615         dereference state.root_argp.
74616
74617 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         * modules/chdir-long (Depends-on): Add memrchr.
74620         * modules/memrchr (Files): Add lib/memrchr.h.
74621         (Include): "memrchr.h".
74622
74623 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74626
74627 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         * lib/memrchr.h: New file.
74630         * lib/chdir-long.c: Include it.
74631         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74632         Don't bother including stddef.h.
74633
74634 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74637         inclusion.
74638         Include <sys/types.h>, for dev_t.
74639         (ME_DUMMY, ME_REMOTE): Move from here....
74640         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74641         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74642         Dmitry V. Levin.
74643         Include mountlist.h first, to test the interface.
74644
74645 2005-01-29  Bruno Haible  <bruno@clisp.org>
74646
74647         * lib/progname.c (program_name): Initialize.
74648         Needed when linking statically on MacOS X.
74649
74650 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         Sync from coreutils.
74653         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74654         (Depends-on): Add c-strtod.
74655         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74656
74657 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         Sync from coreutils.
74660         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74661
74662         Remove files that are specific to coreutils.
74663         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74664
74665 2005-01-28  Bruno Haible  <bruno@clisp.org>
74666
74667         * modules/javacomp: New file.
74668         * MODULES.html.sh (Java): Add javacomp.
74669
74670 2005-01-28  Bruno Haible  <bruno@clisp.org>
74671
74672         * m4/javacomp.m4: New file, from GNU gettext.
74673
74674 2005-01-28  Bruno Haible  <bruno@clisp.org>
74675
74676         * lib/javacomp.sh.in: New file, from GNU gettext.
74677         * lib/javacomp.h: New file, from GNU gettext.
74678         * lib/javacomp.c: New file, from GNU gettext.
74679
74680 2005-01-26  Simon Josefsson  <jas@extundo.com>
74681
74682         * lib/gai_strerror.c: Use GPL in header.
74683
74684 2005-01-26  Bruno Haible  <bruno@clisp.org>
74685
74686         * modules/javaexec: New file.
74687         * MODULES.html.sh (Java): Add javaexec.
74688
74689 2005-01-26  Bruno Haible  <bruno@clisp.org>
74690
74691         * m4/javaexec.m4: New file, from GNU gettext.
74692
74693 2005-01-26  Bruno Haible  <bruno@clisp.org>
74694
74695         * lib/javaexec.sh.in: New file, from GNU gettext.
74696         * lib/javaexec.h: New file, from GNU gettext.
74697         * lib/javaexec.c: New file, from GNU gettext.
74698
74699 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74700
74701         * modules/lchown (Depends-on): Remove lchown.h
74702
74703 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74704
74705         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74706         must be defined if the header file was not found, in order
74707         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74708
74709 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74710
74711         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74712         initializers for struct pentry_state.
74713         (__argp_error): Check return value of __asprintf
74714         (__argp_failure): Translate error message
74715
74716         * lib/argp-parse.c: Removed braces around the expansion of N_()
74717
74718 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74721         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74722         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74723         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74724         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74725         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74726         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74727         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74728         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74729         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74730         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74731         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74732         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74733         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74734         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74735         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74736         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74737         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74738         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74739         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74740         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74741         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74742         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74743         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74744         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74745         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74746         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74747         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74748         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74749         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74750         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74751         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74752         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74753         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74754         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74755         Use an all-permissive copyright notice, recommended by RMS.
74756
74757 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         * modules/chdir-long (Depends-on): Remove mempcpy.
74760
74761 2005-01-21  Jim Meyering  <jim@meyering.net>
74762
74763         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74764         same value as for Solaris 9.
74765
74766         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74767         component length.  This included changing the parameter to be
74768         of type `char *' rather than `char const *'.
74769         * lib/chdir-long.h (chdir_long): Update prototype.
74770
74771         * lib/openat.c (fdopendir, fstatat): New functions.
74772         * lib/openat.h: Include headers required for use of DIR and struct
74773         stat.
74774         [AT_SYMLINK_NOFOLLOW]: Define.
74775         (fdopendir, fstatat): Add prototypes.
74776
74777 2005-01-21  Bruno Haible  <bruno@clisp.org>
74778
74779         * modules/classpath: New file.
74780         * MODULES.html.sh (Java): Add classpath.
74781
74782 2005-01-21  Bruno Haible  <bruno@clisp.org>
74783
74784         * lib/classpath.h: New file, from GNU gettext.
74785         * lib/classpath.c: New file, from GNU gettext.
74786
74787 2005-01-20  Simon Josefsson  <jas@extundo.com>
74788
74789         * modules/version-etc-fsf: New file.
74790
74791 2005-01-20  Simon Josefsson  <jas@extundo.com>
74792
74793         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74794         * lib/version-etc.c: Remove version_etc_copyright.
74795         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74796         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74797
74798 2005-01-20  Simon Josefsson  <jas@extundo.com>
74799
74800         * lib/base64.h (isbase64): Add.
74801
74802         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74803         using a unsigned prototype, don't inline.
74804         (base64_decode): Use it.
74805
74806 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74809         it.
74810
74811 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         * lib/save-cwd.c (save_cwd): Remove code to support the case
74814         where fchdir is missing or flaky.
74815
74816 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74819
74820 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74821
74822         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74823         AC_LIBSOURCES now does this.
74824         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74825         with new ullong_max module.
74826
74827 2005-01-19  Bruno Haible  <bruno@clisp.org>
74828
74829         * modules/sh-quote: New file.
74830         * MODULES.html.sh (Executing programs): Add sh-quote.
74831
74832 2005-01-19  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/sh-quote.h: New file, from GNU gettext.
74835         * lib/sh-quote.c: New file, from GNU gettext.
74836
74837 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         Merge from coreutils.
74840         * m4/ullong_max.m4: New file.
74841         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74842         (gl_MACROS): Assume localeconv exists.
74843
74844 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         Merge changes from coreutils, as described below in several
74847         changelogs dated today.
74848
74849         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74850         (O_DIRECTORY): Remove; not needed here, since "." must be
74851         a directory.  All uses removed.
74852         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74853         universal on Suns, and we also need to test for IRIX.
74854         Revamp code to use 'if' rather than '#if'.
74855         Avoid unnecessary comparison of cwd->desc to 0.
74856
74857         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74858         for known valid error numbers rather than observed invalid ones.
74859
74860 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * modules/ullong_max: New file.
74863
74864         * modules/chdir-long, modules/openat: New files.
74865         * modules/save-cwd (Depends-on): Depend on chdir-long.
74866         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74867
74868 2005-01-18  Jim Meyering  <jim@meyering.net>
74869
74870         Merge from coreutils.
74871         * m4/chdir-long.m4, m4/openat.m4: New files.
74872         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74873         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74874         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74875         is sane and DOES follow symlinks.  Besides, testing 20 different
74876         systems found no broken chown implementations.
74877         Prompted by a change in rsync's copy of this macro.
74878         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74879
74880         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74881
74882         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74883         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74884         NULL-means-set-to-current-time semantics.
74885         Remove temporary file immediately, rather than waiting
74886         for configure's at-exit trap code to do it.
74887
74888 2005-01-18  Jim Meyering  <jim@meyering.net>
74889
74890         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74891
74892         * lib/utimens.c (futimens): Account for the fact that futimes
74893         can also fail with errno == ENOSYS or errno == ENOENT.
74894         Patch from Dmitry V. Levin.
74895
74896         Change the name of the robust chdir function from chdir to chdir_long.
74897         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74898         (restore_cwd): Use chdir_long, not chdir.
74899         * lib/chdir-long.c: Renamed from chdir.c.
74900         * lib/chdir-long.h: Renamed from chdir.h.
74901         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74902         Hurd.
74903
74904 2005-01-18  Bruno Haible  <bruno@clisp.org>
74905
74906         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74907         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74908         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74909         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74910         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74911         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74912         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74913         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74914         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74915         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74916         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74917         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74918         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74919         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74920         Use an all-permissive copyright notice, recommended by RMS.
74921
74922 2005-01-18  Bob Proulx  <bob@proulx.com>
74923
74924         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74925         simplify offsetof() macro construct to avoid compile failure with
74926         native HP-UX 11.0 ANSI C compiler.
74927
74928 2005-01-17  Bruno Haible  <bruno@clisp.org>
74929
74930         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74931         redundant because stpncpy.m4 takes care of it.
74932
74933 2005-01-17  Bruno Haible  <bruno@clisp.org>
74934
74935         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74936
74937 2005-01-17  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74940         used.
74941
74942 2005-01-17  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/fwriteerror.h (fwriteerror): Change specification to include
74945         fclose.
74946         * lib/fwriteerror.c: Include <stdbool.h>.
74947         (fwriteerror): At the end, close the file stream. Record whether
74948         stdout was already closed.
74949
74950 2005-01-17  Bruno Haible  <bruno@clisp.org>
74951
74952         * lib/execute.c (environ): Declare if needed.
74953         * lib/pipe.c (environ): Likewise.
74954         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74955
74956 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74957
74958         * modules/argp: Depend on vsnprintf
74959
74960 2005-01-10  Jim Meyering  <jim@meyering.net>
74961
74962         * modules/closeout (Depends-on): Add atexit.
74963
74964 2005-01-06  Bruno Haible  <bruno@clisp.org>
74965
74966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74967
74968 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74971         definitions to be after all include files, to avoid collisions.
74972         Problem reported by Bob Proulx.
74973
74974 2005-01-04  Jim Meyering  <jim@meyering.net>
74975
74976         Changes imported from coreutils.
74977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74978         as the mkstemp template, use a temporary directory and an
74979         8.3-friendly template to avoid trouble on systems like DJGPP.
74980         Reported by Juan M. Guerrero via Stepan Kasal.
74981         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74982         close. Remove the temporary directory right away, rather than waiting
74983         for configure's at-exit trap code to do it.
74984         Suggestion from Stepan Kasal.
74985
74986 2005-01-01  Simon Josefsson  <jas@extundo.com>
74987
74988         * gnulib-tool: Print #include directives when --import'ing.
74989
74990 2004-12-28  Simon Josefsson  <jas@extundo.com>
74991
74992         * tests/test-base64.c: Include required header files.  Remove
74993         unused variables.
74994
74995 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * modules/error (Depends-on): Remove gettext.
74998
74999 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75002         not needed.  This removes a dependency on the gettext module.
75003         [defined _LIBC]: Do not include <libintl.h>; not needed.
75004
75005 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75008         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75009
75010 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75013         HAVE_DECL_STRTOLD.
75014
75015 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * modules/getdate (Depends-on): Remove alloca-opt.
75018
75019 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75022
75023 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * lib/argp-parse.c: Include <stddef.h>.
75026         (alignof, alignto): New macros.
75027         (parser_init): Don't assume that void * is aligned sufficiently
75028         for struct option.
75029
75030         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75031         need to extend the stack.
75032         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75033         large.
75034
75035 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75036
75037         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75038
75039 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75042         (2004-10-24) change.  Apparently this was a false alarm.
75043
75044         * modules/getdate: Depend on alloca-opt, not alloca.
75045
75046 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75047
75048         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75049         Remove now-obsolete comment about AIX.
75050         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75051         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75052         (YYMAXDEPTH): New macro.
75053
75054 2004-12-18  Simon Josefsson  <jas@extundo.com>
75055
75056         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75057
75058 2004-12-18  Bruno Haible  <bruno@clisp.org>
75059
75060         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75061
75062 2004-12-18  Bruno Haible  <bruno@clisp.org>
75063
75064         * lib/fatal-signal.c (fatal_signals): Make non-const.
75065         (init_fatal_signals): New function.
75066         (uninstall_handlers, install_handlers): Ignore signals that were set to
75067         SIG_IGN.
75068         (at_fatal_signal): Call init_fatal_signals.
75069         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75070         SIG_IGN.
75071         Reported by Paul Eggert.
75072
75073 2004-12-18  Bruno Haible  <bruno@clisp.org>
75074
75075         * doc/alloca.texi: New file.
75076         * doc/alloca-opt.texi: New file.
75077
75078 2004-12-17  Jim Meyering  <jim@meyering.net>
75079
75080         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75081         Otherwise, install-sh could exit with improper exit status when
75082         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75083
75084 2004-12-16  Simon Josefsson  <jas@extundo.com>
75085
75086         * tests/test-base64.c: Add license.
75087
75088 2004-12-15  Stepan Kasal  <address@hidden>
75089
75090         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75091
75092 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * modules/getcwd (Files): Add m4/d-ino.m4.
75095         Suggested by Mark D. Baushke.
75096
75097 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         * lib/getdate.y (textint): New member "negative".
75100         (time_zone_hhmm): New function.
75101         Expect 14 shift-reduce conflicts, not 13.
75102         (o_colon_minutes): New rule.
75103         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75104         (yylex): Set the "negative" member of signed numbers.
75105
75106 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75107
75108         * doc/getdate.texi (Time of day items, Time zone items):
75109         Describe new formats +00:00, UTC+00:00.
75110
75111 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75114         spurious "-l"s.  Problem reported by Stepan Kasal.
75115
75116 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75117
75118         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75119         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75120
75121 2004-12-04  Simon Josefsson  <jas@extundo.com>
75122
75123         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75124         Vandoorselaere <yoann@prelude-ids.org>.
75125
75126 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         Changes imported from coreutils.
75129         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75130         exist.
75131         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75132
75133 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         Changes imported from coreutils.
75136         * lib/hard-locale.c: Assume <locale.h> exists.
75137         Include "strdup.h".
75138         (GLIBC_VERSION): New macro.
75139         (hard_locale): Assume setlocale exists.
75140         Rewrite to avoid #ifdef.
75141         Use strdup rather than malloc + strcpy.
75142         * lib/human.c: Assume <locale.h> exists.
75143         (human_readable): Assume localeconv exists.
75144
75145 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75146
75147         * modules/hard-locale (Depends-on): Add strdup.
75148
75149 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75150
75151         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75152         convert T2, not T.  (Imported from libc.)
75153
75154 2004-11-30  Simon Josefsson  <jas@extundo.com>
75155
75156         * modules/restrict (License): Change to LGPL.
75157
75158 2004-11-30  Simon Josefsson  <jas@extundo.com>
75159
75160         * m4/restrict.m4: Add copyright and copying conditions.
75161
75162 2004-11-30  Simon Josefsson  <jas@extundo.com>
75163
75164         * m4/base64.m4: New file.
75165
75166 2004-11-30  Simon Josefsson  <jas@extundo.com>
75167
75168         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75169         base64.
75170
75171         * tests/test-base64.c: New file.
75172
75173         * modules/base64: New file.
75174
75175 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75178         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75179
75180         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75181
75182 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75183
75184         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75185         (__getcwd.c): Don't restore errno; glibc doesn't.
75186         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75187         first, falling back to our code only if its results look suspicious.
75188         Ensure that the resulting buffer is only as large as necessary.
75189
75190         * lib/readutmp.c: Include readutmp.h first.
75191         Include <errno.h>, since readutmp.h no longer does that.
75192         * lib/readutmp.h: Don't include <errno.h>,
75193         <sys/param.h>, <time.h>; not needed to establish interface.
75194         (errno): Remove decl.
75195         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75196         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75197         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75198
75199 2004-11-28  Simon Josefsson  <jas@extundo.com>
75200
75201         * lib/base64.h, base64.c: New file.
75202
75203 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75204
75205         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75206
75207 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75210         (Depends-on): Remove pathmax, same.  Add mempcpy.
75211         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75212         (Makefile.am): Append getcwd.h to lib_SOURCES.
75213         (Include): Add getcwd.h.
75214         (Maintainer): Change from Jim Meyering to "all, glibc",
75215         since getdate now uses intended-for-glibc code.
75216         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75217         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75218
75219 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75220
75221         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75222         HP's ANSI C compiler.
75223         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75224         Declaring int functions causes warnings on some modern systems and
75225         shouldn't be needed to compile on ancient ones.
75226         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75227         defined.
75228
75229         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75230         with the following changes.
75231         (__set_errno): Parenthesize properly.
75232         Include <stdbool.h>.
75233         (MIN, MAX, MATCHING_INO): New macros.
75234         (__getcwd): Define with prototype, not K&R form.
75235         Use heuristics to allocate default buffer on stack if possible.
75236         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75237         behavior, and to avoid the PATH_MAX limit when computing
75238         ../../../../...
75239         Use MATCHING_INO to compare inode number to file.
75240         Check for arithmetic overflow in size calculations.
75241         Fix bug in reallocation of dot array that caused getcwd to fail
75242         on directories nested deeper than 75.
75243         Be more careful about saving errno on error.
75244         Do not use realloc; use only free+malloc, as this is a bit
75245         more flexible and avoids a needless copy operation.
75246         Do not inspect st_dev and st_ino for symbolic links; POSIX
75247         doesn't specify the latter.
75248         Check for closedir errors.
75249         Avoid needless casts.
75250         Use "#ifdef weak_alias" around weak_alias, to be like other
75251         glibc code.
75252         The following changes to getcwd.c have effect only when used in
75253         gnulib; they have no effect inside glibc proper.
75254         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75255         as alloca isn't used.
75256         (alloca, __alloca): Likewise.
75257         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75258         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75259         unconditionally, as gnulib assumes C89 or better.
75260         Do not include <sys/param.h>.
75261         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75262         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75263         better.
75264         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75265         Include <dirent.h> in a way that is compatible with modern Autoconf.
75266         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75267         New macros, if not already defined.
75268         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75269         Use "_LIBC", not "defined _LIBC", for consistency.
75270         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75271         a mempcpy module.
75272         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75273         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75274         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75275         credit only to Jim Meyering and adjust the copyright dates.
75276         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75277         <stdlib.h>, <unistd.h>, "pathmax.h".
75278         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75279         (INITIAL_BUFFER_SIZE): Remove.
75280         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75281
75282 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75283
75284         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75285         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75286         Use the _ONCE methods, for efficiency.
75287         Check for fcntl.h.  In test program, include <errno.h>
75288         and <fcntl.h> if available.  Remove old K&R cruft from
75289         test program.  Check for common errors in GNU/Linux,
75290         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75291         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75292         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75293         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75294         name accordingly.
75295         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75296         accommodate new getcwd.c.
75297         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75298         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75299         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75300         that's all we need now.
75301
75302 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75303
75304         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75305         argp-parse.c depends on getopt internals, that means we should
75306         always use our getopt, to be on the safe side.
75307         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75308         order not to spoil the result of an eventual previous invocation
75309         of gl_GETOPT_SUBSTITUTE.
75310
75311 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75312
75313         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75314         redefinition warnings. To avoid them, include the defines
75315         in `#if !defined __need_getopt ... #endif'. The only place
75316         where __getopt_argv_const is used is in definitions
75317         of getopt_long and getopt_long_only below, which are as well
75318         protected by `#ifndef __need_getopt'.
75319         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75320         __need_getopt after including <stdio.h> and <unistd.h> These
75321         headers might have defined it.
75322
75323 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75326
75327 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75330         (futimens): New function, which uses futimes if available.
75331         (futimens, utimens): Support timespec==NULL, with same semantics
75332         as utime and utimens.
75333         * lib/utimens.h (futimens): New decl.
75334
75335 2004-11-23  Jim Meyering  <jim@meyering.net>
75336
75337         * lib/getopt_.h: Remove trailing blanks.
75338
75339 2004-11-23  Jim Meyering  <jim@meyering.net>
75340
75341         * lib/__fpending.c: Add comment.
75342
75343 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         * modules/canonicalize (Depends-on): Add xreadlink.
75346         Problem reported by James Youngman.
75347
75348 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75351         New macros.
75352         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75353         optopt): Use them instead of invoking ## directly; otherwise, the
75354         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75355
75356 2004-11-19  Bruno Haible  <bruno@clisp.org>
75357
75358         * lib/strtok_r.c: Move comments from here...
75359         * lib/strtok_r.h: ... to here.
75360
75361 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75364         implementations that mishandle size_t overflow.
75365
75366 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75367
75368         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75369         might fail.  Problem reported by Yoann Vandoorselaere.
75370         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75371         implementations that mishandle size_t overflow.
75372
75373 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * modules/canon-host (Depends-on): Add strdup.
75376
75377 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75378
75379         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75380
75381 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/canon-host.c: Include "strdup.h".
75384         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75385         Use strdup instead of malloc/strcpy to duplicate strings.
75386
75387         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75388         (human_space_before_unit): New constant.
75389         * lib/human.c (human_readable): Support it.
75390
75391         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75392         (xgetcwd): Set errno correctly when failing.
75393         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75394         the failure is actually due to a PATH_MAX problem.
75395
75396         Further getopt changes to make it more likely that glibc will
75397         buy the changes back.
75398         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75399         (getopt): Use it, so to preserve glibc semantic
75400         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75401         when compiling for libc.
75402         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75403         (getopt_long, getopt_long_only): Use it.
75404
75405         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75406         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75407         (getopt): Argv is now char * const *, as per standard.
75408         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75409         not char *__getopt_argv_const *.
75410         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75411         _getopt_long_only_r): Likewise.
75412         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75413         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75414         _getopt_long_r, _getopt_long_only_r): Likewise.
75415         * lib/getopt_.h (__getopt_argv_const): Remove.
75416         (getopt): Argv is now char * const *, as per standard.
75417
75418         * lib/getdate.y (tORDINAL): New token.
75419         (day, relunit): Allow it for relative times.
75420         (relative_time_table): Use tORDINAL for ordinals.
75421
75422 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75425         Document that "second" isn't allowed as an ordinal number.
75426
75427 2004-11-16  Jim Meyering  <jim@meyering.net>
75428
75429         * modules/closeout (Depends-on): Add fpending.
75430
75431 2004-11-15  Jim Meyering  <jim@meyering.net>
75432
75433         * lib/closeout.c: Include "__fpending.h" once again.
75434         Include <stdbool.h>.
75435         (close_stdout): Don't fail just because stdout was closed initially,
75436         since some programs don't write to stdout in the normal course of
75437         operation (other than --version and --help), and we don't want this
75438         function to make e.g. `touch file >&-' fail.
75439         But do fail if it was closed and someone has tried to write to it.
75440         E.g., `printf foo >&-' must fail.
75441
75442 2004-11-13  Jim Meyering  <jim@meyering.net>
75443
75444         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75445
75446 2004-11-12  Simon Josefsson  <jas@extundo.com>
75447
75448         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75449         small doc fix is still pending.
75450
75451 2004-11-11  Simon Josefsson  <jas@extundo.com>
75452
75453         * modules/strtok_r: New file.
75454
75455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75456         strtok_r.
75457
75458 2004-11-11  Simon Josefsson  <jas@extundo.com>
75459
75460         * m4/strtok_r.m4: New file.
75461
75462         * m4/getopt.m4: Replace opterr.
75463
75464 2004-11-11  Simon Josefsson  <jas@extundo.com>
75465
75466         * lib/strtok_r.h, strtok_r.c: New file.
75467
75468 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75471         of replacing opterr, getopt, etc.  This should handle the
75472         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75473
75474 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75477         we can stop lying to compilers about the constness of argv when we
75478         are compiled outside glibc.
75479         (getopt, getopt_long, getopt_long_only): Use it.
75480         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75481         _getopt_internal, getopt): Likewise.
75482         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75483         _getopt_long_only_r): Likewise.
75484         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75485         _getopt_long_r, _getopt_long_only_r): Likewise.
75486
75487         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75488         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75489         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75490         the other external symbols.
75491         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75492         declaration, since the above renaming now works around collisions.
75493
75494 2004-11-11  Jim Meyering  <jim@meyering.net>
75495
75496         * lib/linebreak.c: Remove trailing blanks.
75497         * lib/alloca_.h: Likewise.
75498         * lib/acosl.c: Likewise.
75499         * lib/euidaccess.c: Likewise.
75500         * lib/allocsa.h: Likewise.
75501
75502 2004-11-10  Simon Josefsson  <jas@extundo.com>
75503
75504         * m4/getaddrinfo.m4: New file.
75505
75506 2004-11-10  Simon Josefsson  <jas@extundo.com>
75507
75508         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75509
75510 2004-11-10  Simon Josefsson  <jas@extundo.com>
75511
75512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75513         getaddrinfo.
75514
75515         * modules/getaddrinfo: New file.
75516
75517 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75520
75521 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * lib/mktime.c (SHR): New macro, which is a portable
75524         substitute for >> that should work even on Crays.
75525         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75526         Problem reported by Mark D. Baushke in
75527         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75528         * lib/getdate.y (SHR): Likewise.
75529         (tm_diff): Use it.
75530         * lib/strftime.c (SHR): Likewise.
75531         (tm_diff): Use it.
75532         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75533         quote_these_too, so that right shifts are well defined.  All uses
75534         changed.
75535
75536 2004-11-10  Jim Meyering  <jim@meyering.net>
75537
75538         Ensure that no close failure goes unreported.
75539         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75540         return early when it seems there's nothing to flush.
75541         Don't include __fpending.h.
75542
75543 2004-11-10  Jim Meyering  <jim@meyering.net>
75544
75545         * modules/closeout (Depends-on): Remove fpending.
75546
75547 2004-11-10  Jim Meyering  <jim@meyering.net>
75548
75549         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75550
75551 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75554         gl_FUNC_STRFTIME.
75555         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75556         and AC_REQUIRE when possible, to avoid duplicate checks.
75557         Check for <wchar.h>.
75558
75559 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75560
75561         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75562
75563 2004-11-09  Bruno Haible  <bruno@clisp.org>
75564
75565         * m4/sockpfaf.m4: New file.
75566
75567 2004-11-05  Bruno Haible  <bruno@clisp.org>
75568
75569         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75570         Reported by Mark D. Baushke <mdb@cvshome.org>.
75571
75572 2004-11-04  Bruno Haible  <bruno@clisp.org>
75573
75574         2004-09-11  Bruno Haible  <bruno@clisp.org>
75575                 * allocsa.valgrind: New file.
75576         2004-02-06  Bruno Haible  <bruno@clisp.org>
75577                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75578                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75579                 Reported by Christopher Seip <chris.seip@hp.com>.
75580
75581 2004-11-04  Bruno Haible  <bruno@clisp.org>
75582
75583         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75584         (Makefile.am): Distribute it.
75585
75586 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75589         with errno == ERANGE if the buffer is too small.
75590         Problem reported by Mark D. Baushke.
75591
75592 2004-11-03  Albert Chin  <china@thewrittenword.com>
75593             Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75596         equivalent, substitute $ac_type for equivalent type rather than
75597         blindly using uint32_t *always* which won't work if uint32_t is not
75598         available.  Define _UINT32_T to work around typedef of uint32_t if
75599         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75600         2.5.1.
75601
75602 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         * m4/jm-macros.m4: Sync from coreutils.
75605         (gl_MACROS): Check for mbrlen, for pathchk.
75606         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75607
75608 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * lib/xreadlink.c (MAXSIZE): New macro.
75611         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75612         size does not exceed MAXSIZE.  Avoid cast.
75613         As suggested by Mark D. Baushke in
75614         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75615         if readlink fails with buffer size just under MAXSIZE, try again
75616         with MAXSIZE.
75617
75618 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75621
75622 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75623         and  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75626         (get_date): Overparenthesize to avoid GCC warning.
75627
75628 2004-11-02  Bruno Haible  <bruno@clisp.org>
75629
75630         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75631         returns void.
75632
75633 2004-11-02  Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75636         function returns void.
75637
75638 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75639
75640         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75641         fflush_unlocked, flockfile, funlockfile, funlockfile,
75642         fputs_unlocked, putc_unlocked.
75643
75644 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75647         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75648         already declared.
75649
75650 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         * modules/getdate (Files): Add doc/getdate.texi.
75653         (Depends-on): Add setenv, xalloc.
75654
75655 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75656
75657         * lib/getdate.y: Add support for TZ="foo" within a date string.
75658         Fix some bugs near time_t boundaries.  Reject dates with
75659         out-of-range components, e.g., "Sept 31".
75660         Include <stdlib.h>, "setenv.h", "xalloc.h".
75661         (ISDIGIT_LOCALE): Remove; unused.
75662         Note that the TZ and time functions used here are not reentrant.
75663         (mktime_ok, get_tz): New functions.
75664         (TZBUFSIZE): New constant.
75665         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75666         This requires that we sometimes generate our own TZ="XXX..." setting.
75667
75668 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * doc/getdate.texi: New file, from coreutils with modifications for
75671         the new TZ parsing.
75672
75673 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75674
75675         * lib/mktime.c (not_equal_tm): Remove redundant check.
75676
75677 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * modules/regex (lib_SOURCES): Add regex.c.
75680         Reported by James Youngman in
75681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75682
75683 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75684
75685         * lib/getdate.y: Use Bison 1.875 features, and some minor
75686         code cleanups.  This change does not affect semantics.
75687         Don't include <stdlib.h>; no longer needed.
75688         Don't include unlocked-io.h; only the "#if TEST" code uses
75689         stdio, and performance isn't crucial there.
75690         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75691         Bison 1.875 features as described below.
75692         All uses of "PC." replaced by "pc->".
75693         (YYSTYPE): Add a forward declaration.
75694         (yylex, yyerror): Use full prototypes in forward decls.
75695         Use "%pure-parser" rather than obsolescent "%pure_parser".
75696         Use %parse-param and %lex-param instead of obsolescent
75697         YYPARSE_PARAM and YYLEX_PARAM.
75698         (meridian_table, month_and_day_table, time_units_table,
75699         relative_time_table, time_zone_table, military_table,
75700         lookup_zone, lookup_word, get_date):
75701         Use NULL instead of 0 where appropriate.
75702         (to_hour): Avoid abort (), to avoid a dependency on
75703         stdlib.h.
75704         (yyerror, yylex): Now accepts parser_control * arg.
75705         (main) [TEST]: Use '\0' rather than 0 for char.
75706
75707 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75710
75711 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75714         It's now the caller's responsibility to handle the case where
75715         !HAVE_GETPAGESIZE && !defined getpagesize.
75716
75717         * lib/mktime.c (leapyear): Arg is long int, not int.
75718
75719 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75720
75721         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75722
75723 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75726         missing.  Problem reported by James Youngman.
75727
75728 2004-10-16  Simon Josefsson  <jas@extundo.com>
75729
75730         * gnulib-tool: Fix comments.  Fix parse problem.
75731         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75732
75733 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75736         implementation of getopt_long.  Problem reported by Alexander Taler in:
75737         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75738
75739 2004-10-15  Bruno Haible  <bruno@clisp.org>
75740
75741         * gnulib-tool: Untabify. Initialize supplied_libname.
75742         (func_usage): More homogenous output.
75743         (func_modules_transitive_closure, func_modules_to_filelist,
75744         func_emit_lib_Makefile_am): New functions.
75745         (func_import): New function, extracted from big case statement. Use
75746         func_get_license, func_modules_transitive_closure,
75747         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75748         opt_lgpl. Don't use test -a, as it's not portable.
75749         (func_create_testdir): Use func_modules_transitive_closure,
75750         func_modules_to_filelist, func_emit_lib_Makefile_am.
75751
75752 2004-10-15  Bruno Haible  <bruno@clisp.org>
75753
75754         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75755
75756 2004-10-15  Bruno Haible  <bruno@clisp.org>
75757
75758         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75759         the portions belonging to each module.
75760         Suggested by Derek Robert Price <derek@ximbiot.com>.
75761
75762 2004-10-12  Simon Josefsson  <jas@extundo.com>
75763
75764         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75765         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75766         to real functions.
75767
75768 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75769
75770         * modules/vsnprintf: New file.
75771
75772 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75773
75774         * m4/vsnprintf.m4: New file.
75775
75776 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75777
75778         * lib/vsnprintf.h: New file.
75779         * lib/vsnprintf.c: New file.
75780
75781 2004-10-11  Bruno Haible  <bruno@clisp.org>
75782
75783         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75784         vsnprintf.
75785
75786 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75787
75788         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75789
75790 2004-10-07  Bruno Haible  <bruno@clisp.org>
75791
75792         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75793         fits into the provided buffer.
75794
75795 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * lib/diacrit.c, diacrit.h: Add GPL notice.
75798
75799         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75800         notice.
75801         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75802         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75803         This avoids a potential constant-folding bug.
75804
75805 2004-10-05  Bruno Haible  <bruno@clisp.org>
75806
75807         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75808         for the declaration of strsep.
75809
75810 2004-10-05  Bruno Haible  <bruno@clisp.org>
75811
75812         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75813
75814 2004-10-04  Simon Josefsson  <jas@extundo.com>
75815
75816         * modules/memmem: New file.
75817         * tests/test-memmem.c: New file.
75818         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75819
75820 2004-10-04  Simon Josefsson  <jas@extundo.com>
75821
75822         * m4/memmem.m4: New file.
75823
75824 2004-10-04  Simon Josefsson  <jas@extundo.com>
75825
75826         * lib/memmem.h: New file.
75827         * lib/memmem.c: New file, taken from glibc.
75828
75829 2004-10-04  Simon Josefsson  <jas@extundo.com>
75830
75831         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75832         '#ifdef USE_UNLOCKED_IO'.
75833
75834 2004-10-04  Simon Josefsson  <jas@extundo.com>
75835
75836         * config/srclist.txt: Add memmem from glibc.
75837
75838 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75839
75840         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75841
75842         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75843         modules/exclude, modules/getdate, modules/getline,
75844         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75845         modules/getusershell, modules/linebuffer, modules/md5,
75846         modules/mountlist, modules/posixtm, modules/readtokens,
75847         modules/readutmp, modules/regex, modules/sha1,
75848         modules/version-etc, modules/yesno:
75849         Remove dependency on unlocked-io.
75850
75851 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75854
75855         * m4/unlocked-io.m4: Add copyright notice.
75856         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75857
75858 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75859
75860         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75861         * lib/xmalloc.c (xmemdup): Likewise.
75862         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75863         XFREE): Remove these long-obsolescent macros.
75864         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75865         * lib/xstrdup.c: Remove.
75866
75867         * lib/regex.c (re_comp): Cast gettext return value to char *,
75868         Problem reported by Martin Neitzel via Mark D. Baushke.
75869
75870 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75873         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75874         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75875         regex.c, sha1.c, version-etc.c, yesno.c:
75876         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75877         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75878         the includer's responsibility.
75879
75880         Sync from coreutils.
75881
75882         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75883         points to the start of a string, as the C Standard says the
75884         resulting behavior is undefined.
75885
75886         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75887         simple -> simple_backups, numbered_existing ->
75888         numbered_existing_backups, numbered -> numbered_backups
75889         to avoid shadowing problems.  All uses changed.
75890         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75891         * lib/backupfile.c (check_extension, numbered_backup):
75892         Rename locals to avoid shadowing 'basename'.
75893         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75894         once.
75895
75896         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75897         * lib/.cvsignore: Add getopt.h.
75898
75899 2004-10-04  Bruno Haible  <bruno@clisp.org>
75900
75901         * modules/README: New file.
75902         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75903         not a module.
75904
75905 2004-10-02  Jim Meyering  <jim@meyering.net>
75906
75907         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75908
75909 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75910
75911         * modules/strsep: New file.
75912
75913 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75914
75915         * m4/strsep.m4: New file.
75916
75917 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75918
75919         * lib/strsep.h: New file.
75920         * lib/strsep.c: New file.
75921
75922 2004-10-01  Simon Josefsson  <jas@extundo.com>
75923
75924         * lib/snprintf.c (snprintf): Handle size==0.
75925
75926 2004-10-01  Simon Josefsson  <jas@extundo.com>
75927             Bruno Haible  <bruno@clisp.org>
75928
75929         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75930         (snprintf): Declare 'args'.
75931
75932 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * lib/snprintf.c: Remove comments as to why each header is needed.
75935
75936 2004-10-01  Bruno Haible  <bruno@clisp.org>
75937
75938         * MODULES.html.sh: Add strsep.
75939
75940 2004-09-30  Simon Josefsson  <jas@extundo.com>
75941
75942         * modules/snprintf: New file.
75943
75944 2004-09-30  Simon Josefsson  <jas@extundo.com>
75945
75946         * m4/snprintf.m4: New file.
75947
75948 2004-09-30  Simon Josefsson  <jas@extundo.com>
75949
75950         * lib/snprintf.h, lib/snprintf.c: New files.
75951
75952 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75953
75954         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75955         (hol_entry_help): Never translate an empty string.
75956         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75957         * lib/argp.h (OPTION_NO_TRANS): New option.
75958
75959 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         * modules/argp (Maintainer): Replace Simon Josefsson
75962         by Sergey Poznyakoff.
75963
75964 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75967         changes merged back into glibc.
75968
75969 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75972
75973 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75974
75975         * lib/xvasprintf.c: Include xalloc.h.
75976         (xvasprintf): Use xalloc_die, not xmalloc_die.
75977
75978 2004-09-29  Bruno Haible  <bruno@clisp.org>
75979
75980         * modules/alloca-opt: New file, derived from modules/alloca.
75981         * modules/allocsa: Depend on alloca-opt instead of alloca.
75982         * modules/setenv: Likewise.
75983         * modules/vasnprintf: Likewise.
75984         * MODULES.html.sh: Add alloca-opt.
75985
75986 2004-09-28  Simon Josefsson  <jas@extundo.com>
75987
75988         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75989         LGPL, and to replace license template from GPL to LGPL.
75990
75991 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * modules/dummy: Change license to LGPL.
75994
75995 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75998
75999 2004-09-24  Simon Josefsson  <jas@extundo.com>
76000
76001         * modules/minmax (License): Change from GPL to LGPL.
76002
76003 2004-09-23  Simon Josefsson  <jas@extundo.com>
76004
76005         * gnulib-tool (--import): Typo.
76006
76007 2004-09-23  Simon Josefsson  <jas@extundo.com>
76008
76009         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76010
76011 2004-09-22  Bruno Haible  <bruno@clisp.org>
76012
76013         * modules/*: Add 'License' field.
76014         * gnulib-tool: Accept --extract-license option.
76015         (func_get_license): New function.
76016
76017 2004-09-21  Bruno Haible  <bruno@clisp.org>
76018
76019         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76020         Reported by Simon Josefsson.
76021
76022 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76023
76024         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76025         gl_AC_TYPE_LONG_LONG.
76026
76027 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76030
76031 2004-09-18  Simon Josefsson  <jas@extundo.com>
76032         and  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76035         calls with autoreconf.  Define GL_LIB.
76036
76037 2004-09-14  Karl Berry  <karl@gnu.org>
76038
76039         * config/srclist.txt: unsync setenv.c, sigh.
76040
76041 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76042
76043         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76044         Problem reported by Bruno Haible in:
76045         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76046
76047 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * config/srclist.txt: Comment out argp-pvh.c.
76050
76051 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76054         in case some system header has #define'd it.  Problem reported by
76055         Soeren D. Schulze in
76056         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76057
76058 2004-09-09  Karl Berry  <karl@gnu.org>
76059
76060         * regex.[ch]: delete from the root.  These were supposed to be
76061                 synced with emacs cvs, but this has not happened for about
76062                 a year, and anyway nothing else uses emacs regex.[ch].
76063                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76064                 lib/regex[.ch] is untouched.
76065
76066 2004-09-09  Bruno Haible  <bruno@clisp.org>
76067
76068         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76069
76070 2004-09-09  Bruno Haible  <bruno@clisp.org>
76071
76072         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76073         modifications.
76074         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76075
76076 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76077
76078         * modules/xvasprintf: New file.
76079         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76080
76081 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76082
76083         * lib/xvasprintf.h: New file.
76084         * lib/xvasprintf.c: New file.
76085         * lib/xasprintf.c: New file.
76086
76087 2004-09-08  Bruno Haible  <bruno@clisp.org>
76088
76089         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76090
76091 2004-09-08  Bruno Haible  <bruno@clisp.org>
76092
76093         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76094         length is > INT_MAX.
76095         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76096         more.
76097
76098 2004-09-08  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/stdint_.h: New file, taken from GNU clisp.
76101
76102 2004-09-08  Bruno Haible  <bruno@clisp.org>
76103             Oskar Liljeblad  <oskar@osk.mine.nu>
76104
76105         * modules/stdint: New file.
76106         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76107
76108 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         Import from coreutils.
76111         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76112         strings on unbounded length.  alloca's performance benefits aren't
76113         that important here.
76114         (V_STRDUP): Remove.
76115         (parse_with_separator): New function, with most of the internals
76116         of the old parse_user_spec.  Allow user to omit both user and group,
76117         for compatibility with FreeBSD.
76118         Clone only the user name, not the entire spec.
76119         Do not set *uid, *gid unless entirely successful.
76120         Avoid memory leak in some failing cases.
76121         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76122         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76123         (parse_user_spec): Rewrite to use parse_with_separator.
76124
76125 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * modules/userspec: Don't depend on alloca.
76128
76129 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76130
76131         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76132
76133 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76136         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76137         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76138
76139 2004-08-16  Simon Josefsson  <jas@extundo.com>
76140
76141         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76142         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76143         Add --dry-run for --import.
76144         Let user provided command line parameters override configure.ac
76145         settings.
76146
76147 2004-08-12  Simon Josefsson  <jas@extundo.com>
76148
76149         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76150         as discussed with Paul Eggert in threads rooted at
76151         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76152         and
76153         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76154         Before, the test was empty, and relied on ELIDE_CODE in source
76155         code.)
76156         (gl_PREREQ_GETOPT): New macro.
76157         (gl_GETOPT): Use them.
76158
76159 2004-08-12  Simon Josefsson  <jas@extundo.com>
76160
76161         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76162         * lib/getopt_.h: Renamed from getopt.h.
76163
76164 2004-08-12  Simon Josefsson  <jas@extundo.com>
76165
76166         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76167         Change default library name from libfoo to libgnu.
76168         Now, if you have a configure.ac that says:
76169                 gl_SOURCE_BASE(gl)
76170                 gl_M4_BASE(gl/m4)
76171                 gl_MODULES(error getopt etcetera)
76172                 gl_INIT
76173         you can import all you need by running:
76174                 ../gnulib/gnulib-tool --import
76175
76176         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76177         (Makefile.am): Rewrite, use logic from argz.
76178         (Include): Use <getopt.h> instead of "getopt.h".
76179
76180 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76181
76182         * modules/argp (Files): Add m4/unlocked-io.m4.
76183         (Depends-on): Add extensions.
76184
76185 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76188         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76189         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76190         Check for program_invocation_name, program_invocation_short_name,
76191         flockfile, funlockfile, features.h, _getopt_long_only_r.
76192
76193 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76196         its complicated substitute.
76197         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76198         and program_invocation_name.
76199         (__argp_basename) [!_LIBC]: Remove; the only use was
76200         replaced by its body.
76201         (__argp_short_program_name): Change condition from
76202         !defined __argp_short_program_name to
76203         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76204         to match argp-namefrob.h.
76205         (__argp_failure): Don't assume strerror_r returns char *.
76206         * lib/argp-parse.c (N_): Define unconditionally.
76207         (argp_default_options): Fill out initializers with 0 to avoid
76208         gcc warnings.
76209
76210 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76213         getopt1.c.
76214
76215 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         Merge from coreutils.
76218
76219         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76220
76221         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76222         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76223
76224 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76225
76226         Merge from coreutils.
76227
76228         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76229         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76230         for Reliant Unix 5.43.
76231
76232         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76233         (union fooround): Use uintmax_t, not long int.
76234         The rest is a merge from libc:
76235         [defined _LIBC]: Include <shlib-compat.h>.
76236         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76237
76238         * lib/settime.c (settime): Recode to avoid warning with
76239         Sun Forte C 6U2.
76240
76241         * lib/strverscmp.c: Convert to UTF-8.
76242
76243 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76246         m4/uintmax_t.m4.
76247
76248 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76249
76250         * modules/xalloc-die: New file.
76251         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76252
76253         * modules/md5 (Files): Add m4/uint32_t.m4.
76254         * modules/sha1: Renamed from modules/sha.
76255         (Files):
76256         Rename lib/sha.h to lib/sha1.h.
76257         Rename lib/sha.c to lib/sha1.c.
76258         Rename m4/sha.m4 to m4/sha1.m4.
76259         (lib_SOURCES): Likewise.
76260         (configure.ac): Rename gl_SHA to gl_SHA1.
76261         (Include): sha.h -> sha1.h.
76262
76263 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76266         * m4/sha1.m4: Renamed from sha.m4.
76267         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76268
76269 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76270
76271         * lib/obstack.h (obstack_empty_p):
76272         Don't assume that chunk->contents is suitably aligned.
76273         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76274         Likewise. Problem reported by Benno in
76275         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76276
76277         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76278         readable.  This could be improved further but it'd take some work.
76279
76280 2004-08-08  Simon Josefsson  <jas@extundo.com>
76281
76282         * modules/xgethostname (Depends-on): Remove exit and error (not
76283         used).
76284
76285         * modules/getpass-gnu: Add getpass.h.
76286         (Depends-on): Add stdbool.
76287         * modules/getpass: Add getpass.h.
76288
76289 2004-08-08  Simon Josefsson  <jas@extundo.com>
76290
76291         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76292         Check getpass declaration.
76293
76294 2004-08-08  Simon Josefsson  <jas@extundo.com>
76295
76296         * lib/xgethostname.c: Don't include error.h (not used).
76297
76298         * lib/getpass.h: Add.
76299         * lib/getpass.c: Include getpass.h first.
76300
76301 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/xalloc-die.c: New file.
76304         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76305         All uses removed.
76306         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76307         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76308         xalloc-die.c.
76309         (_, N_, xalloc_die): Move to xalloc-die.c.
76310         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76311         so that we needn't mess with xalloc_msg_memory_exhausted.
76312
76313         * lib/sha1.h: Renamed from sha.h.
76314         (SHA1_H): Renamed from _SHA_H.
76315         (sha1_ctx): Renamed from sha_ctx.
76316         (sha1_init_ctx): Renamed from sha_init_ctx.
76317         (sha1_process_block): Renamed from sha_process_block.
76318         (sha1_process_bytes): Renamed from sha_process_bytes.
76319         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76320         (sha1_read_ctx): Renamed from sha_read_ctx.
76321         (sha1_stream): Renamed from sha_stream.
76322         (sha1_buffer): Renamed from sha_buffer.
76323         * lib/sha1.c: Likewise; renamed from sha.c.
76324         Do not include <sys/types.h>.
76325         Include <stddef.h> rather than <stdlib.h>.
76326
76327 2004-08-08  Bruno Haible  <bruno@clisp.org>
76328
76329         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76330         FILESYSTEM_PREFIX_LEN.
76331         * lib/progreloc.c: Likewise.
76332         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76333
76334 2004-08-06  Simon Josefsson  <jas@extundo.com>
76335
76336         * modules/progname (Depends-on): Don't depend on stdbool.
76337
76338 2004-08-06  Simon Josefsson  <jas@extundo.com>
76339
76340         * modules/getsubopt: New file.
76341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76342         getsubopt.
76343
76344 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         More merge from coreutils.
76347
76348         * m4/utimens.m4, m4/utimecmp.m4: New files.
76349         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76350         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76351         prereq.m4, sha.m4: Import changes from coreutils.
76352
76353 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         More merge from coreutils.
76356         * modules/raise, modules/readtokens0, modules/utimens:
76357         * modules/utimecmp, module/xnanosleep: New files.
76358         * modules/strftime: Add lib/strftime.h.
76359         Change include from <time.h> to "strftime.h".
76360         * modules/yesno: Add lib/yesno.h.
76361         * modules/backupfile: Remove lib/addext.c.
76362         * modules/euidaccess: Add stat-macros.h.
76363         * modules/canonicalize, modules/euidaccess,
76364         modules/filemode, modules/lchown, modules/makepath,
76365         modules/rmdir, modules/stat: Likewise.
76366
76367 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76368
76369         Merge from tar.
76370         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76371         SIZE_MAX is a valid preprocessor constant.
76372         (__argp_basename): Change from "#ifndef _LIBC"
76373         to "#ifndef __argp_short_program_name", so that
76374         we don't compile these functions for tar.
76375
76376         More merges from coreutils.
76377         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76378         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76379         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76380         * lib/addext.c: Remove; no longer needed.
76381         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76382         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76383         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76384         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76385         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76386         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76387         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76388         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76389         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76390         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76391         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76392         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76393         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76394         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76395         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76396         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76397         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76398         Import changes from coreutils.
76399
76400 2004-08-05  Simon Josefsson  <jas@extundo.com>
76401
76402         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76403
76404 2004-08-05  Simon Josefsson  <jas@extundo.com>
76405
76406         * m4/getsubopt.m4: New file.
76407
76408 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         Merge from coreutils.
76411
76412         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76413         * m4/getcwd-path-max.m4: New files.
76414
76415         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76416         FILESYSTEM_PREFIX_LEN ->
76417         FILE_SYSTEM_PREFIX_LEN.
76418         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76419         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76420         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76421         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76422
76423         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76424         prerequisite modules now handle the DOS stuff.
76425         Don't check for unistd.h.
76426
76427 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76428
76429         Merge from coreutils.
76430
76431         * lib/.gdb-history: Remove; this doesn't belong here.
76432
76433         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76434         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76435         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76436         * lib/getcwd.c: New files.
76437
76438         * lib/dirname.h: Include <stdbool.h>.
76439         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76440         for consistency with POSIX terminology.  All uses changed.
76441         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76442         (strip_trailing_slashes): Use bool for booleans.
76443         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76444
76445         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76446         sometimes returns a positive errno value even when it succeeds.
76447         (print_errno_message) [!LIBC]: Fall back on strerror if
76448         __strerror_r fails.
76449
76450         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76451         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76452         (longest_relative_suffix): New function.
76453         (path_concat): Use it.  Assume first argument is not NULL.
76454         Port to DOS.  Omit redundant separators.
76455         Report an error instead of returning NULL.
76456         Use mempcpy instead of memcpy.
76457         (xpath_concat): Remove: not declared or used.
76458
76459         * lib/same.h: Include <stdbool.h>
76460         (same_name): Return bool, not int.
76461         * lib/same.c (same_name): Likewise.
76462         (errno): Don't declare; we assume C89 or better now.
76463
76464         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76465         if not already defined.
76466
76467         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76468         * lib/dup-safer.c (errno): Likewise.
76469
76470 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         Merge from coreutils.
76473         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76474         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76475         * modules/path-concat: Don't depend on strdup.
76476
76477 2004-08-03  Simon Josefsson  <jas@extundo.com>
76478
76479         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76480         * lib/progname.h: Don't include stdbool.h.
76481
76482 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76485         * MODULES.html.sh (func_all_modules): Remove fatal.
76486
76487 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76490
76491 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76494         working.
76495
76496 2004-08-02  Simon Josefsson  <jas@extundo.com>
76497
76498         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76499         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76500         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76501
76502 2004-08-01  Simon Josefsson  <jas@extundo.com>
76503
76504         * lib/xgetdomainname.c: Include stdlib.h, for free().
76505
76506 2004-07-19  Bruno Haible  <bruno@clisp.org>
76507
76508         * MODULES.html.sh (func_all_modules): Add dummy.
76509
76510 2004-07-16  Simon Josefsson  <jas@extundo.com>
76511
76512         * modules/dummy: New file.
76513
76514 2004-07-16  Simon Josefsson  <jas@extundo.com>
76515
76516         * lib/dummy.c: New file.
76517
76518 2004-07-16  Bruno Haible  <bruno@clisp.org>
76519
76520         * lib/backupfile.h: Add extern "C" for C++.
76521         * lib/closeout.h: Likewise.
76522         * lib/copy-file.h: Likewise.
76523         * lib/findprog.h: Likewise.
76524         * lib/full-write.h: Likewise.
76525         * lib/pathname.h: Likewise.
76526         * lib/progname.h: Likewise.
76527         * lib/stpcpy.h: Likewise.
76528         * lib/stpncpy.h: Likewise.
76529         * lib/strcase.h: Likewise.
76530         * lib/strstr.h: Likewise.
76531         * lib/xalloc.h: Likewise.
76532
76533         * lib/mbswidth.h: Add extern "C" for C++.
76534         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76535
76536 2004-07-13  Robert Millan  <robertmh@gnu.org>
76537
76538         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76539
76540 2004-07-09  Simon Josefsson  <jas@extundo.com>
76541
76542         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76543         failed without this.)
76544
76545 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * modules/chown (Files): Add lib/fchown-stub.c, since
76548         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76549
76550 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         * lib/fchown-stub.c: New file.
76553
76554 2004-06-24  Jim Meyering  <jim@meyering.net>
76555
76556         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76557
76558 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * modules/argz: Omit "#include".
76561
76562         * MODULES.html.sh (func_all_modules): Add calloc, to match
76563         2004-06-01 addition of calloc module.
76564
76565 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * m4/argz.m4: New file, which is autoupdated from libtool.
76568
76569 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76572         libtool.
76573
76574 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         * config/srclist-update: Don't insist on "USA." before the
76577         close-comment, as libtool omits the period and puts the */ on a
76578         separate line.
76579         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76580         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76581
76582 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76583
76584         * modules/argz: New file.
76585         * MODULES.html.sh (func_all_modules): Add argz.
76586
76587 2004-06-12  Jim Meyering  <jim@meyering.net>
76588         and  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         * modules/hash (Files): Add lib/xalloc.h.
76591         * modules/pipe (Depends-on): Add wait-process.
76592         * modules/stat (Depends-on): Add xalloc.
76593         * modules/userspec (Files): Add lib/userspec.h.
76594         * modules/xstrto
76595
76596         Upgrade from gettext-0.13.
76597         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76598         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76599         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76600
76601 2004-06-10  Jim Meyering  <jim@meyering.net>
76602
76603         * lib/calloc.c: New file.
76604
76605 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * lib/getdate.y (yylex): Allow space between sign and number.
76608         Problem reported by Dan Jacobson.
76609
76610 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         Merge from coreutils CVS.
76613
76614         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76615         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76616         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76617         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76618         xstrtol.m4: Fix copyright date and/or serial number.
76619
76620         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76621         See if we need an fchown replacement.
76622         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76623         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76624         and use the replacement function if we detect either defect.
76625
76626         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76627         gl_UTIMECMP.
76628
76629 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76630         and  Jim Meyering  <jim@meyering.net>
76631
76632         Merge from coreutils CVS.
76633
76634         * lib/stat-macros.h: New file, with contents from file-type.h
76635         and coreutils' system.h.
76636         * lib/file-type.c: Include "stat-macros.h".
76637         * lib/file-type.h (file_type): Move all macro definitions to new file,
76638         stat-macros.h.
76639
76640         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76641         Wrap old code with this conditional.
76642         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76643         function that does not dereference symlinks.
76644         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76645
76646         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76647         dependency problems.
76648         (xreadlink): Accept new arg SIZE, for efficiency.
76649         All decls and uses changed.
76650         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76651
76652         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76653         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76654
76655         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76656         sysexits.h.
76657
76658 2004-06-01  Jim Meyering  <jim@meyering.net>
76659
76660         * m4/calloc.m4: New file.
76661
76662 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76663
76664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76665         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76666         Also, fix a typo in a diagnostic.
76667
76668 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76671         or AC_FUNC_REALLOC.
76672
76673 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76676         macros to be defined.
76677         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76678         the allocator returns NULL because the requested size is zero.
76679
76680 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76683         var.  Add comment explaining why libc still defines it.  This
76684         merges the following patch from glibc:
76685         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76686
76687 2004-05-20  Andreas Schwab  <schwab@suse.de>
76688
76689         * m4/free.m4: Replace free if it not known to work, not the other
76690         way round.
76691
76692 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76695         present in glibc since revision 1.1 of this file.
76696         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76697         obstack_alignment_mask, obstack_alloc, obstack_base,
76698         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76699         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76700         obstack_grow0, obstack_init, obstack_int_grow,
76701         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76702         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76703         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76704         nonexistent functions.
76705
76706 2004-05-18  Karl Berry  <karl@gnu.org>
76707
76708         * config/srclist.txt: break link for vasnprintf.c.
76709
76710 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         Port obstack to the AS/400, where pointers are 16 bytes wide and
76713         you cannot cast an integer to a valid pointer.  This patch is
76714         currently waiting to be integrated into glibc; see
76715         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76716
76717         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76718         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76719         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76720         (struct obstack): temp member is now a union of a pointer and
76721         an integer, instead of an integer.  All integer uses changed.
76722         This does not affect the physical layout of struct obstack,
76723         except on hosts (like the AS/400) where the size or alignment of
76724         void * is greater than that of ptrdiff_t.
76725         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76726         __STDC__)]: Store temporary in pointer member of union, not
76727         integer member.
76728         * lib/obstack.c: Include <stddef.h>, for offsetof.
76729         (struct fooalign): Remove; it doesn't need a name.
76730         (union fooround): Change double to long double, and add void *.
76731         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76732         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76733         not a macro.  Hence the values are always int; so remove all
76734         casts-to-int in uses.
76735
76736 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76739         we can get this patch merged into glibc.
76740
76741 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76742             Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * m4/argp: Depend on alloca.
76745
76746 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76747             Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76750         freecoding.
76751
76752 2004-05-17  Bruno Haible  <bruno@clisp.org>
76753
76754         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76755         precision that consists of a '.' followed by an empty digit string.
76756         Patch by Tor Lillqvist <tml@iki.fi>.
76757
76758 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76761         for backward compatibility with older code.  We need our own
76762         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76763         it under some other name, and our alloca.h will define it.
76764
76765 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76766             Derek Price  <derek@ximbiot.com>
76767
76768         * lib/alloca.c: Include <alloca.h>, to get our interface.
76769         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76770         include <alloca.h> first.  Use C89 prototype for alloca; this
76771         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76772         Use #elif for simplicity, since we can assume C89 now.
76773         Don't try to source the system alloca.h since it will not be found
76774         and to prevent recursively including its replacement.
76775         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76776         * lib/regex.c: Likewise.
76777
76778 2004-05-16  Derek Price  <derek@ximbiot.com>
76779             Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         getline cleanup.  This changes the getndelim2 API: both order of
76782         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76783         no delimiter).
76784
76785         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76786         interface does that.
76787         (getline): Always use getdelim, so that we don't have two
76788         copies of this code.
76789         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76790         if available.
76791         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76792         (GETNDELIM2_MAXIMUM): New macro.
76793         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76794         instead of the old practice of delim2==0.  All callers changed.
76795         Return -1 on overflow, instead of returning junk.
76796         Do not set *linesize unless allocation succeeds.
76797         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76798         that we include sys/types.h.
76799         * lib/getnline.h: Likewise.
76800         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76801         (getndelim2): Reorder arguments.
76802         * lib/getnline.c (getnline, getndelim):
76803         Don't discard the NMAX argument.
76804         (getnline): Invoke getndelim, to avoid code duplication.
76805         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76806         of (size_t) -1 by callers of the getnline family.
76807
76808 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76811         Check for gettimeofday.
76812         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76813         Check for settimeofday, stime.
76814
76815 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * lib/nanosleep.c (suspended): Change its type from int to
76818         sig_atomic_t volatile.
76819         (first_call): Make it private to rpl_nanosleep, and have it
76820         be zero initially as that's a bit faster.
76821         (my_usleep): Round up fractional times instead of truncating them,
76822         as this is the usual meaning for 'sleep'.
76823
76824         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76825         doesn't work.
76826         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76827         (ENOSYS): Define if not defined.
76828         (settime): Fall back on stime if it exists and settimeofday fails.
76829         But don't bother with fallbacks if a method fails with errno == EPERM.
76830
76831 2004-05-11  Jim Meyering  <jim@meyering.net>
76832
76833         Prior to this change, the save_cwd caller required read access to the
76834         current directory on most systems (ones with the fchdir function).
76835
76836         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76837         fails, try write-only, and finally, resort to using xgetcwd.
76838
76839 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * lib/obstack.c, obstack.h: Import changes from libc.
76842
76843 2004-04-28  Bruno Haible  <bruno@clisp.org>
76844
76845         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76846         also implicitly appends .exe to executables.
76847         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76848         accepts Windows pathnames.
76849         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76850         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76851         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76852         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76853         Reported by Derek Robert Price <derek@ximbiot.com>.
76854
76855 2004-04-21  Karl Berry  <karl@gnu.org>
76856
76857         * config/srclist.txt (localcharset.c): break sync.
76858
76859 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76860
76861         * m4/host-os.m4: Add a copyright notice.
76862
76863 2004-04-20  Jim Meyering  <jim@meyering.net>
76864
76865         Change UTILS_ to gl_ in AC_DEFINE'd names.
76866         Change utils_- and jm_-prefixed variables, too.
76867         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76868         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76870
76871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76872         Don't emit trailing blanks.
76873         Also rename jm_-prefixed variables to have gl_ prefix.
76874
76875         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76876         Also rename jm_-prefixed variables to have gl_ prefix.
76877
76878         * m4/jm-macros.m4: Reflect the renamings.
76879         * m4/prereq.m4: Likewise.
76880
76881 2004-04-20  Jim Meyering  <jim@meyering.net>
76882
76883         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76884         memory.
76885
76886 2004-04-20  Jim Meyering  <jim@meyering.net>
76887             Bruno Haible  <bruno@clisp.org>
76888
76889         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76890         memory when realloc fails.
76891
76892 2004-04-19  Jim Meyering  <jim@meyering.net>
76893
76894         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76895         now that readutmp.c may call `free (0)'.
76896
76897 2004-04-19  Bruno Haible  <bruno@clisp.org>
76898
76899         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76900         * m4/inttypes_h.m4: Likewise.
76901         * m4/stdint_h.m4: Likewise.
76902         * m4/intmax_t.m4: Likewise.
76903         * m4/uintmax_t.m4: Likewise.
76904
76905 2004-04-18  Jim Meyering  <jim@meyering.net>
76906
76907         * m4/prereq.m4: Don't forbid jm_ prefix.
76908
76909         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76910         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76911         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76912         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76913         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76914         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76915         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76916         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76917         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76918         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76919         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76920         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76921         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76922         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76923         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76924         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76925         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76926         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76927         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76928
76929 2004-04-18  Jim Meyering  <jim@meyering.net>
76930
76931         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76932         failure, don't leak memory and do call END_UTMP_ENT.
76933
76934 2004-04-16  Jim Meyering  <jim@meyering.net>
76935
76936         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76937         coreutils' stat program.
76938         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76939
76940 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76941
76942         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76943         C89.
76944         (CHAR_BIT): Remove, since we assume C89.
76945         Include <stdint.h> if available, as per current Autoconf CVS advice.
76946
76947 2004-03-31  Jim Meyering  <jim@meyering.net>
76948
76949         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76950         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76951         * m4/xalloc.m4: Likewise.
76952
76953 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76954
76955         Merge from coreutils.
76956
76957         * m4/inttostr.m4: New file.
76958         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76959         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76960         Require gl_CLOCK_TIME.
76961         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76962
76963 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76964
76965         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76966         not bool, to be more consistent with Unix conventions.
76967         Suggested by Bruno Haible.
76968
76969         Merge from coreutils.
76970
76971         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76972         * lib/umaxtostr.c: New files.
76973
76974         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76975         the usual <time.h> dance.
76976         (get_date): Change signature to support fractional time stamps.
76977         All callers changed.
76978         * lib/getdate.y: Include "getdate.h" first, as we can now
76979         assume C89 and don't need to worry about 'const'.
76980         Similarly, include "unlocked-io.h" near start, not in middle.
76981         Include <limits.h>.
76982         (textint.value): Use long int rather than int.
76983         (textint.digits): Use size_t rather than int.
76984         (BILLION, LOG10_BILLION): New constants.
76985         (parser_control): New member rel_ns.  Members day_ordinal,
76986         time_zone, month, day, hour, minutes, rel_year, rel_month,
76987         rel_day, rel_hour, rel_minutes, rel_seconds
76988         are now long int, not int.  Member seconds is now struct timespec,
76989         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76990         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76991         not int.
76992         (%union.intval): Now long int, not int.
76993         New member timespec.
76994         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76995         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76996         (spec): Now is a timespec or an item list.
76997         (timespec, items): New nonterminals.
76998         (time, rel, relunit, number, get_date):
76999         Add support for fractional seconds.
77000         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77001         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77002         (to_hour): First arg is now long int, not int.
77003         (to_year): Returns long int, not int.
77004         Don't treat year -70 like 70.
77005         (tm_diff): Returns long int, not int.
77006         (lookup_word): Use bool instead of int when appropriate.
77007         (yylex): Use size_t for count, not int.
77008         Detect overflow when parsing large integer constants.
77009         Add support for fractions.
77010         (get_date): Make pointers 'const' if possible.
77011         Use more-portable code to detect integer overflow.
77012         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77013         Don't use ctime; it's not reliable if the year has >4 digits.
77014
77015         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77016         This is for compatibility with BSD.
77017
77018         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77019         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77020         From coreutils' system.h.
77021
77022         * lib/userspec.c: Don't include "posixver.h".
77023         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77024         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77025         compatible extension.  Simplify code by removing a boolean int
77026         that was always nonzero if a string was nonnull.
77027
77028 2004-03-30  Jim Meyering  <jim@meyering.net>
77029
77030         Merge from coreutils.
77031
77032         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77033         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77034         on some systems one must include <grp.h> before it.
77035         Reported by Christian Krackowizer.
77036
77037 2004-03-30  Jim Meyering  <jim@meyering.net>
77038
77039         Merge from coreutils.
77040
77041         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77042
77043         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77044         an empty input stream.
77045
77046         * lib/readtokens.c: Include <stdbool.h>.
77047         (readtoken): Use `size_t' rather than int/long.
77048         All callers adjusted.
77049         Use `bool' rather than `int' where appropriate.
77050         Use memset rather than an explicit loop.
77051         Use x2nrealloc rather than xrealloc.
77052         Allow the use of `\0' as a delimiter.
77053         (readtokens): Likewise.
77054         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77055
77056 2004-03-30  Jim Meyering  <jim@meyering.net>
77057
77058         * m4/realloc.m4: Remove file, since now it does no more than
77059         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77060         the `configure.ac' section of module/realloc.
77061         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77062
77063 2004-03-30  Bruno Haible  <bruno@clisp.org>
77064
77065         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77066         nonnull.
77067
77068 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77069
77070         Merge changes to getloadavg.c from coreutils and Emacs.
77071
77072         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77073         Define to an expression, not to the empty string.
77074         Include cloexec.h and xalloc.h.
77075         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77076         Use set_cloexec_flag rather than rolling our own.
77077         * lib/cloexec.c, lib/cloexec.h: New files.
77078
77079 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77080
77081         * m4/cloexec.m4: New file.
77082
77083 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77084
77085         * lib/getopt.h: Sync with libc CVS.
77086
77087 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77088             Bruno Haible  <bruno@clisp.org>
77089
77090         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77091         mbswidth.
77092
77093 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77094             Bruno Haible  <bruno@clisp.org>
77095
77096         * lib/mbswidth.h: Include <wchar.h> only if
77097         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77098         <wchar.h>.
77099         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77100
77101 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77102
77103         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77104         Sync with libc CVS.
77105         * lib/getopt_int.h: New file, also synced from libc.
77106
77107 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77108
77109         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77110         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77111         Bring back getopt.c, getopt.h, getopt1.c.
77112
77113 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77114
77115         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77116         All uses changed.  Check for sa_sigaction member; this fixes
77117         a bug first reported by Jason Andrade in
77118         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77119
77120 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77121
77122         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77123         '#if' expressions.  Unlike the code it replaces, it does not
77124         depend on (defined _SC_PAGESIZE).  However, it does depend on
77125         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77126         first reported by Jason Andrade in
77127         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77128
77129 2004-02-25  Simon Josefsson  <jas@extundo.com>
77130
77131         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77132
77133 2004-02-25  Simon Josefsson  <jas@extundo.com>
77134
77135         * lib/strdup.h: New file.
77136         * lib/strdup.c: Include it.
77137         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77138         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77139
77140 2004-02-23  Karl Berry  <karl@gnu.org>
77141
77142         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77143         (from fencepost.gnu.org:/gd/gnuorg).
77144
77145 2004-02-23  Karl Berry  <karl@gnu.org>
77146
77147         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77148         * config/srclist.txt: add maintain/standards documents.
77149
77150 2004-02-18  Bruno Haible  <bruno@clisp.org>
77151
77152         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77153         Reported by Derek Robert Price <derek@ximbiot.com>.
77154
77155 2004-02-16  Karl Berry  <karl@gnu.org>
77156
77157         * config/mkinstalldirs, install-sh: update from automake.
77158
77159 2004-02-06  Karl Berry  <karl@gnu.org>
77160
77161         * m4/po.m4: update from gettext 0.14.1.
77162
77163 2004-02-06  Karl Berry  <karl@gnu.org>
77164
77165         * lib/config.charset: update from gettext 0.14.1.
77166
77167 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77168
77169         Add comments and code, prompted by suggestions from Bruno Haible
77170         for sh-quote.
77171         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77172         describing the enum quoting_style values.
77173         * lib/quotearg.c (quotearg_alloc): New function.
77174         (quotearg_buffer_restyled): Treat lone { and } as special.
77175         Treat = as special.  Work around bug with older shells
77176         that "see" a '\' that is really the 2nd byte of a multibyte char.
77177         Quote empty string with shell_quoting_style.
77178
77179 2004-02-03  Bruno Haible  <bruno@clisp.org>
77180
77181         * m4/pipe.m4: New file, from GNU gettext.
77182
77183 2004-02-03  Bruno Haible  <bruno@clisp.org>
77184
77185         * lib/pipe.h: New file, from GNU gettext.
77186         * lib/pipe.c: New file, from GNU gettext.
77187
77188 2004-01-27  Bruno Haible  <bruno@clisp.org>
77189
77190         * m4/execute.m4: New file, from GNU gettext.
77191
77192 2004-01-27  Bruno Haible  <bruno@clisp.org>
77193
77194         * lib/execute.h: New file, from GNU gettext.
77195         * lib/execute.c: New file, from GNU gettext.
77196         * lib/w32spawn.h: New file, from GNU gettext.
77197
77198 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77199
77200         Merge from diffutils.
77201
77202         * lib/file-type.c (file_type): Add typed memory objects.
77203         * lib/file-type.h (S_TYPEISTMO): New macro.
77204
77205         * lib/c-stack.h (c_stack_action): Remove argv argument.
77206         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77207         (die): Don't calculate message unless segv_action returns.
77208         (get_stack_location, min_address_from_argv, max_address_from_argv,
77209         volatile stack_base, volatile_stack_size): Remove.
77210         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77211         that every segmentation violation is a stack overflow.  (Ouch!)
77212         See Debian bug 136249 (still outstanding) for more info about why
77213         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77214
77215 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77216
77217         Exit-status fix from coreutils.
77218
77219         Use exit_failure consistently in place of EXIT_FAILURE,
77220         so that program exit statuses are consistent on failure.
77221
77222         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77223         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77224         * lib/argmatch.h: Comment fix to match the above.
77225         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77226         Now a macro referring to exit_failure, instead of a separate
77227         variable.  Include "exitfail.h" to get it.
77228         * lib/xstrtol.h: Include "exitfail.h".
77229         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77230
77231         * lib/long-options.c (parse_long_options): Use prototype
77232         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77233         for clarity.
77234
77235 2004-01-21  Jim Meyering  <jim@meyering.net>
77236
77237         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77238         so as not to conflict with a different-sized __mktime_internal
77239         function in GNU libc.
77240         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77241         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77242
77243 2004-01-20  Karl Berry  <karl@gnu.org>
77244
77245         * config/config.guess: update from config.
77246
77247         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77248
77249 2004-01-20  Bruno Haible  <bruno@clisp.org>
77250
77251         Safer stack allocation.
77252         * lib/setenv.c: Include allocsa.h.
77253         (alloca): Remove fallback definition.
77254         (freea): Remove macro.
77255         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77256         instead of freea.
77257
77258 2004-01-20  Bruno Haible  <bruno@clisp.org>
77259
77260         * m4/eealloc.m4: New file, from GNU gettext.
77261
77262 2004-01-20  Bruno Haible  <bruno@clisp.org>
77263
77264         * m4/allocsa.m4: New file, from GNU gettext.
77265
77266 2004-01-20  Bruno Haible  <bruno@clisp.org>
77267
77268         * lib/xallocsa.h: New file, from GNU gettext.
77269         * lib/xallocsa.c: New file, from GNU gettext.
77270
77271 2004-01-20  Bruno Haible  <bruno@clisp.org>
77272
77273         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77274
77275 2004-01-20  Bruno Haible  <bruno@clisp.org>
77276
77277         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77278         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77279         specially.
77280
77281 2004-01-20  Bruno Haible  <bruno@clisp.org>
77282
77283         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77284         patch.
77285
77286 2004-01-20  Bruno Haible  <bruno@clisp.org>
77287
77288         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77289
77290 2004-01-20  Bruno Haible  <bruno@clisp.org>
77291
77292         * lib/eealloc.h: New file.
77293
77294 2004-01-20  Bruno Haible  <bruno@clisp.org>
77295
77296         * lib/binary-io.h: Avoid warnings on Cygwin.
77297
77298 2004-01-20  Bruno Haible  <bruno@clisp.org>
77299
77300         * lib/allocsa.h: New file, from GNU gettext.
77301         * lib/allocsa.c: New file, from GNU gettext.
77302
77303 2004-01-18  Karl Berry  <karl@gnu.org>
77304
77305         * doc/gpl.texi, doc/lgpl.texi: new files.
77306
77307 2004-01-18  Karl Berry  <karl@gnu.org>
77308
77309         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77310         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77311
77312 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77313
77314         Merge from coreutils.
77315
77316         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77317         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77318         (gl_DEFAULT_POSIX2_VERSION): Move
77319         the documentation from 'configure' into 'config.hin',
77320         so that 'configure --help' isn't burdened by it and
77321         we don't have to worry about its formatting there.
77322         Reword the documentation so that it's more succinct
77323         and can be run together into a single paragraph.
77324         * m4/same.m4 (gl_SAME): Check for pathconf.
77325
77326 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77327
77328         Merge from coreutils.
77329
77330         * lib/posixver.c: Include posixver.h.
77331
77332         * lib/same.c: Include <stdbool.h>, <limits.h>.
77333         (_POSIX_NAME_MAX): Define if not defined.
77334         (MIN): New macro.
77335         (same_name): If file names are silently truncated, report
77336         that the file names are the same if they are the same after
77337         the silent truncation.
77338
77339         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77340         conversion function.
77341         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77342         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77343         longer needed.
77344
77345 2004-01-15  Jim Meyering  <jim@meyering.net>
77346
77347         Merge from coreutils.
77348
77349         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77350         if no library is required.
77351         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77352         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77353         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77354         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77355         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77356         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77357         value, $ac_cv_search_crypt, if it's "none required".
77358         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77359         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77360         not gl_FUNC_GETLOADAVG.
77361         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77362         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77363
77364 2004-01-15  Jim Meyering  <jim@meyering.net>
77365
77366         Merge from coreutils.
77367
77368         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77369         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77370         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77371
77372         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77373         optional configure-time default.
77374
77375         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77376
77377         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77378
77379 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77380
77381         Merge from coreutils.
77382
77383         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77384         value, $ac_cv_search_nanosleep, if it's "none required".
77385
77386 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77387
77388         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77389         with like-named macro in fnmatch.c.
77390         (EXT): Use an internal constant instead.
77391
77392         Merge fnmatch patches from glibc.
77393         * lib/fnmatch.c (mbsinit): Remove define.
77394         Add libc_hidden_ver (__fnmatch, fnmatch).
77395         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77396         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77397
77398 2004-01-14  Karl Berry  <karl@gnu.org>
77399
77400         * config/install-sh: update from automake.
77401
77402 2004-01-13  Karl Berry  <karl@gnu.org>
77403
77404         * config/install-sh: update from automake.
77405
77406 2004-01-09  Karl Berry  <karl@gnu.org>
77407
77408         * config/install-sh: update from automake.
77409
77410 2004-01-05  Karl Berry  <karl@gnu.org>
77411
77412         * config/config.{sub,guess}: update from config.
77413
77414 2003-12-31  Karl Berry  <karl@gnu.org>
77415
77416         * config/depcomp: update from automake.
77417
77418 2003-12-14  Karl Berry  <karl@gnu.org>
77419
77420         * lib/config.charset: update from gettext-runtime.
77421
77422 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77423
77424         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77425         Bug reported by Alfred M. Szmidt.
77426
77427 2003-12-03  Bruno Haible  <bruno@clisp.org>
77428
77429         * m4/gettext.m4: Upgrade from gettext-0.13.
77430         * m4/po.m4: Upgrade from gettext-0.13.
77431         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77432         * m4/intmax.m4: New file, from gettext-0.13.
77433         * m4/printf-posix.m4: New file, from gettext-0.13.
77434
77435 2003-11-29  Karl Berry  <karl@gnu.org>
77436
77437         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77438
77439 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77440             Bruno Haible  <bruno@clisp.org>
77441
77442         * lib/printf-parse.h: Don't include sys/types.h.
77443         (ARG_NONE): New macro.
77444         (char_directive): Change type of *arg_index fields to size_t.
77445         * lib/printf-parse.c: Don't include sys/types.h.
77446         (SSIZE_MAX): Remove macro.
77447         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77448         Remove unnecessary overflow check.
77449         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77450         fields.
77451
77452 2003-11-25  Bruno Haible  <bruno@clisp.org>
77453
77454         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77455
77456 2003-11-25  Bruno Haible  <bruno@clisp.org>
77457
77458         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77459         gt_TYPE_SSIZE_T.
77460
77461 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77462
77463         * modules/alloca: Remove dependency on xalloc.
77464
77465 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77466
77467         * lib/alloca.c: Remove dependency on xalloc module.
77468         (xalloc_die): Remove.
77469         (memory_full) [!defined emacs]: New macro.
77470         [!defined emacs]: Don't include xalloc.h.
77471         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77472         address arithmetic overflows.  Change datatypes a bit to avoid
77473         unnecessary casts.
77474
77475 2003-11-22  Jim Meyering  <jim@meyering.net>
77476
77477         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77478         s/size/size_t/.
77479
77480 2003-11-21  Karl Berry  <karl@gnu.org>
77481
77482         * config/config.{sub,guess}: update from config.
77483
77484 2003-11-18  Karl Berry  <karl@gnu.org>
77485
77486         * config/config.{sub,guess}: update from config.
77487
77488         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77489
77490 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77491
77492         * README: Mention that S+T cannot overflow if S is the size of
77493         an existing object and T is sufficiently small.
77494
77495 2003-11-17  Jim Meyering  <jim@meyering.net>
77496
77497         On systems without utime and without a utimes function capable of
77498         dealing with a NULL struct utimbuf* argument, this utime replacement
77499         could -- in unusual circumstances -- leak a file descriptor.
77500         * lib/utime.c: Include <unistd.h> and <errno.h>.
77501         (utime_null): Be sure to close `fd' and to preserve errno.
77502         Reported by Geoff Collyer via Arnold Robbins.
77503
77504 2003-11-17  Bruno Haible  <bruno@clisp.org>
77505
77506         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77507         (Depends-on): Add xsize.
77508
77509 2003-11-17  Bruno Haible  <bruno@clisp.org>
77510
77511         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77512
77513 2003-11-17  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/vasnprintf.c (alloca): Remove fallback definition.
77516         (freea): Remove definition.
77517         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77518         Reported by Paul Eggert.
77519
77520 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77521             Bruno Haible  <bruno@clisp.org>
77522
77523         Protect against address arithmetic overflow.
77524         * lib/printf-args.h: Include stddef.h.
77525         (arguments): Change type of field 'count' to size_t.
77526         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77527         'unsigned int' where appropriate.
77528         * lib/printf-parse.h: Include sys/types.h.
77529         (char_directive): Change type of *arg_index fields to ssize_t.
77530         (char_directives): Change type of fields 'count', max_*_length to
77531         size_t.
77532         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77533         (SSIZE_MAX): Define fallback value.
77534         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77535         instead of 'int' where appropriate. Check a_allocated, d_allocated
77536         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77537         * lib/vasnprintf.c: Include xsize.h.
77538         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77539         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77540         overflow. Avoid wraparound when converting a width or precision from
77541         decimal to binary.
77542
77543 2003-11-16  Bruno Haible  <bruno@clisp.org>
77544
77545         Update from GNU gettext.
77546         * lib/printf-parse.c: Generalize to it can be compiled for wide
77547         strings.
77548         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77549         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77550         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77551         SNPRINTF): New macros.
77552         Don't include <alloca.h> if the file is used inside libintl.
77553         (local_wcslen): New function, for Solaris 2.5.1.
77554         (VASNPRINTF): Use it instead of wcslen.
77555
77556 2003-11-16  Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/xsize.h (xmax): New function.
77559         (xsum, xsum3, xsum4): Declare as "pure" functions.
77560
77561 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77562
77563         * modules/xalloc (Files): Undo latest change, since xalloc.h
77564         no longer needs SIZE_MAX or PTRDIFF_MAX.
77565
77566 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77567
77568         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77569         gl_PTRDIFF_MAX.
77570
77571 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77572
77573         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77574         "return", to pacify some unknown compiler.  Problem reported
77575         by Joerg Schilling.
77576
77577 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77578
77579         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77580         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77581         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77582         heuristic is just as accurate as far as we know, and it removes a
77583         dependency on size_max.m4 and ptrdiff_max.m4.
77584
77585 2003-11-11  Bruno Haible  <bruno@clisp.org>
77586
77587         * modules/xsize (Files): Add m4/size_max.m4.
77588         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77589
77590 2003-11-11  Bruno Haible  <bruno@clisp.org>
77591
77592         * m4/size_max.m4: New file.
77593         * m4/ptrdiff_max.m4: New file.
77594         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77595         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77596         (gl_XALLOC): Invoke it.
77597
77598 2003-11-11  Bruno Haible  <bruno@clisp.org>
77599
77600         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77601         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77602         defined.
77603
77604 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77605
77606         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77607         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77608         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77609         From Bruno Haible.
77610         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77611         not (size_t) -1, since it's defined here.
77612
77613 2003-11-09  Karl Berry  <karl@gnu.org>
77614
77615         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77616
77617 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77618
77619         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77620         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77621         Reject sizes of exactly SIZE_MAX bytes.
77622         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77623         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77624
77625 2003-11-05  Bruno Haible  <bruno@clisp.org>
77626
77627         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77628         SIZE_MAX defined in <limits.h> on Solaris.
77629
77630 2003-11-04  Jim Meyering  <jim@meyering.net>
77631
77632         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77633         variable names, rather than @VAR@.
77634         * modules/poll: Likewise.
77635
77636 2003-11-04  Bruno Haible  <bruno@clisp.org>
77637
77638         * modules/xsize: New file.
77639         * modules/linebreak: Depend on xsize.
77640         * MODULES.html.sh (func_all_modules): Add xsize.
77641
77642 2003-11-04  Bruno Haible  <bruno@clisp.org>
77643
77644         * m4/xsize.m4: New file.
77645
77646 2003-11-04  Bruno Haible  <bruno@clisp.org>
77647
77648         * lib/xsize.h: New file.
77649         * lib/linebreak.c: Include xsize.h.
77650         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77651         argument for overflow.
77652         Suggested by Paul Eggert.
77653
77654 2003-11-03  Karl Berry  <karl@gnu.org>
77655
77656         * config/config.{guess,sub}: update from config.
77657
77658 2003-11-03  Jim Meyering  <jim@meyering.net>
77659
77660         * modules/userspec (lib_SOURCES): Add userspec.h.
77661         (Include): Add "userspec.h".
77662         Improve description.
77663
77664 2003-11-03  Jim Meyering  <jim@meyering.net>
77665
77666         * lib/userspec.c: Include "userspec.h".
77667         * lib/userspec.h: New file.
77668
77669 2003-11-03  Bruno Haible  <bruno@clisp.org>
77670
77671         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77672
77673 2003-11-03  Bruno Haible  <bruno@clisp.org>
77674
77675         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77676         available, to avoid (extremely rare) race condition.
77677         Suggested by Paul Eggert.
77678
77679 2003-11-02  Karl Berry  <karl@gnu.org>
77680
77681         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77682
77683 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77684
77685         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77686         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77687         (read_filesystem_list): Set and use me_type_malloced.
77688         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77689         whatever the type happens to be), for brevity and consistency.
77690         Check for size calculation overflow on Alphas running OSF/1.
77691
77692 2003-10-31  Jim Meyering  <jim@meyering.net>
77693
77694         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77695
77696         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77697
77698 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77699             Bruno Haible  <bruno@clisp.org>
77700
77701         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77702         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77703
77704 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77705
77706         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77707         netbsd*-gnu*.  Suggested by Robert Millan.
77708
77709 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77710
77711         * modules/group-member: Depend on stdbool.
77712
77713 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77714
77715         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77716
77717 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77718
77719         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77720         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77721         after the 'gnu' in these cases.  This fixes some bugs in the
77722         previous change, and is based on suggestions by Robert Millan.
77723
77724 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77725
77726         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77727         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77728         no longer needed.
77729         * lib/quotearg.c (quotearg_n_options): Use it.
77730         * lib/group-member.c: Include <stdbool.h>.
77731         (free_group_info): Arg is now const *; don't free arg.
77732         (get_group_info): Now returns bool and accepts struct group_info *,
77733         rather than returning a malloc'ed struct group_info *.
77734         All uses changed.  Check for overflow in internal size calculation.
77735
77736         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77737         rather than xmalloc/xrealloc.
77738         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77739         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77740         conformance bug: the old code used a pointer after freeing the
77741         storage that it addressed.
77742         * lib/hash.c (hash_initialize): Simplify the code by using
77743         xalloc_oversized rather than doing it by hand.
77744         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77745         the buffer preserved.  Use free and xmalloc instead.
77746         * lib/quotearg.c (quotearg_n_options): Likewise.
77747         Use a simpler test for size overflow.  Don't use xalloc_oversized
77748         because unsigned int might be wider than size_t (!); this suggests
77749         that we should switch from unsigned int to size_t for slot numbers.
77750
77751 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77752
77753         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77754         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77755         NetBSD kernels.  Requested by Richard Stallman.
77756
77757 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77758
77759         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77760         to allocate the returned structure.  Do not allocate a subarray,
77761         as x2nrealloc will do that.
77762         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77763         instead of xnrealloc.
77764         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77765
77766 2003-10-27  Bruno Haible  <bruno@clisp.org>
77767
77768         * lib/stdbool_.h: Better support for BeOS.
77769
77770 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77771
77772         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77773         now uses inline.
77774
77775 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77776
77777         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77778         callers that want to do their own size-overflow checking.  Include
77779         <stdbool.h>, since xalloc_oversized returns bool.
77780         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77781         to use xalloc_oversized.
77782
77783         Add two functions x2realloc, x2nrealloc, for programs that grow
77784         arrays dynamically by doubling their sizes.
77785         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77786         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77787         New functions.
77788
77789         Port to C99 semantics for 'inline' of external functions.
77790         Bug reported by Bruno Haible.
77791         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77792         with the old contents of xnmalloc.
77793         (xnmalloc, xmalloc): Use it.
77794         (xnrealloc_inline): New static inline function,
77795         with the old contents of xnrealloc.
77796         (xnrealloc, xrealloc): Use it.
77797
77798         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77799         that.
77800
77801 2003-10-26  Karl Berry  <karl@gnu.org>
77802
77803         * config/srclist.txt (COPYING.DOC): no longer available from
77804         /gd/gnuorg; don't know where the ultimate source is.
77805
77806 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77807
77808         Fix several address-calculation bugs in the hash modules,
77809         plus some minor code cleanup.
77810
77811         * lib/hash.h: Include <stdbool.h>, for bool.
77812         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77813         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77814         hash_get_n_entries, hash_get_max_bucket_length,
77815         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77816         hash_rehash): Use size_t rather than unsigned.
77817         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77818         hash_get_n_buckets_used, hash_get_n_entries,
77819         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77820         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77821         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77822         Likewise.
77823         (SIZE_MAX): Define if not defined.
77824         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77825         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77826         hash_print):
77827         Use const * when possible.
77828         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77829         (check_tuning): Fix bug: if tuning parameters were very close to
77830         0 or 1, rounding errors could have caused subscript violations.
77831         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77832         (hash_initialize): Add 'fail:' label
77833         to free table and return NULL, and use it to simplify code.
77834         Use calloc rather than clearing the storage ourself.
77835         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77836         buffer size calculations.
77837         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77838         Include <stddef.h>, for size_t.
77839         * lib/hash-pjw.c (hash_pjw): Likewise.
77840         Switch to method described by Bruno Haible.
77841         Include <limits.h>, for CHAR_BIT.
77842         (SIZE_BITS): New macro.
77843
77844 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77845
77846         * m4/getline.m4 (AM_FUNC_GETLINE):
77847         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77848         hosts.  Problem reported by Derek Robert Price in
77849         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77850         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77851         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77852
77853 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77854
77855         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77856         ceiling the allocation at NMAX bytes rather than silently
77857         discarding input bytes before NMAX is reached.  This makes
77858         a difference only if NMAX exceeds SIZE_MAX / 2.
77859
77860         * lib/obstack.c: Merge from glibc.
77861         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77862         Add libc_hidden_def (_obstack_newchunk).
77863         (_obstack_free) [! defined _LIBC]: Remove.
77864         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77865         a clone of the function body.
77866         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77867         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77868
77869         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77870         glibc.
77871         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77872         arg to memcpy.
77873
77874         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77875         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77876         Don't use lvalue casts, as GCC plans to remove support for them
77877         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77878         was also present in the non-GCC version, indicating that this
77879         code had always been buggy and had never been widely used.
77880         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77881         Use the fast variant of each macro, rather than copying the
77882         definiens of the fast variant; that way, we'll be more likely to
77883         catch future bugs in the fast variants.
77884
77885 2003-10-20  Bruno Haible  <bruno@clisp.org>
77886
77887         * modules/wait-process: New file.
77888         * MODULES.html.sh (func_all_modules): Add wait-process.
77889
77890 2003-10-20  Bruno Haible  <bruno@clisp.org>
77891
77892         * m4/wait-process.m4: New file.
77893
77894 2003-10-20  Bruno Haible  <bruno@clisp.org>
77895
77896         * lib/wait-process.h: New file, from GNU gettext.
77897         * lib/wait-process.c: New file, from GNU gettext.
77898
77899 2003-10-19  Jim Meyering  <jim@meyering.net>
77900
77901         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77902         HPUX 10.20.
77903
77904 2003-10-18  Karl Berry  <karl@gnu.org>
77905
77906         * config/config.guess: update from config.
77907
77908 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77909
77910         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77911         (getgroups): First arg is int, not size_t.
77912         Don't let 'free' mangle errno.
77913
77914 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77915
77916         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77917
77918 2003-10-16  Karl Berry  <karl@gnu.org>
77919
77920         * config/config.{guess,sub}: update from config.
77921
77922 2003-10-16  Jim Meyering  <jim@meyering.net>
77923
77924         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77925         memcpy.
77926
77927 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77928
77929         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77930         (SIZE_MAX): Remove.
77931         (new_exclude, add_exclude_file): Initial size no longer needs to
77932         be a power of 2.
77933         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77934         our own address arithmetic overflow checking.
77935
77936         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77937         (fnmatch): Do not alloca more than 2000 wide characters;
77938         instead, use malloc for large buffers.
77939         Check for address arithmetic overflow, and return -1
77940         with errno set to ENOMEM in that case.
77941         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77942         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77943         instead, return -1.  Check for address arithmetic overflow.
77944
77945 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77946
77947         Handle invalid suffixes and overflow independently, so that
77948         callers can treat them independently as needed.  Fix some bugs in
77949         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77950         suffix for a human-readable blocksize.  The major caller-visible
77951         change is the addition of a new
77952         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77953         that both overflow and suffix chars were found.
77954
77955         * lib/human.c (humblock): Don't check separately for invalid suffix
77956         char; that is xstrtoumax's job (now that its bug is fixed).
77957         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77958         INTMAX_MAX]: New macros.
77959         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77960         TYPE_MAXIMUM): New macros.
77961         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77962         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77963         if overflow occurs, as it's what __strtol does and it's more useful
77964         in practice.
77965         (__xstrtol): If __strtol reports some error other than ERANGE,
77966         reflect it to the caller as LONGINT_INVALID.  If it reports
77967         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77968         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77969         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77970         value.
77971         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77972         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77973         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77974         [defined UINTMAX_MAX]: New macros.
77975
77976 2003-10-14  Bruno Haible  <bruno@clisp.org>
77977
77978         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77979
77980 2003-10-14  Bruno Haible  <bruno@clisp.org>
77981
77982         * m4/sig_atomic_t: New file, from GNU gettext.
77983         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77984
77985 2003-10-14  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77988         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77989         Also use volatile where needed.
77990
77991 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77992
77993         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77994         Change maintainer from Bruno Haible to 'all'.
77995
77996 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77997
77998         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77999
78000 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78001
78002         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78003         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78004         and define in terms of the other primitives.
78005         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78006         (SIZE_MAX): Define if not already defined.
78007         (array_size_overflow): New function.
78008         (xalloc_die): Abort instead of exiting if 'error' returns.
78009         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78010         (xmalloc, xrealloc): Use them.
78011         (xcalloc): Check for address arithmetic overflow.
78012         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78013         a bit faster than strcpy.
78014
78015 2003-10-10  Simon Josefsson  <jas@extundo.com>
78016
78017         * modules/argp (Depends-on): Add restrict and strcase.
78018
78019 2003-10-10  Simon Josefsson  <jas@extundo.com>
78020
78021         * m4/argp.m4: Add AC_C_INLINE.
78022
78023 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78024
78025         Merge getpass from libc, plus a few fixes.
78026
78027         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78028         Include <stdbool.h>.
78029         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78030         __fsetlocking to empty.
78031         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78032         do include <bits/libc-lock.h>.
78033         Do not include <fcntl.h>; not needed.
78034         [_LIBC]: Include <wchar.h>.
78035         (NOTCANCEL_MODE): New macro.
78036         (flockfile, funlockfile) [_LIBC]: New macros.
78037         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78038         [!_LIBC]: New macros.
78039         (call_fclose): New function.
78040         (getpass): Use it.  Save tty stream separately; this simplifies the
78041         code and makes it more reliable if stdin happens to equal stdout.
78042         Invoke __fsetlocking on tty.
78043         Handle thread cancellation if needed.
78044         Namespace cleanup (use __tcgetattr, __getline).
78045         Use bool for Booleans.
78046         [USE_IN_LIBIO]: Handle wide streams.
78047         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78048         stream might go where.
78049
78050         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78051         doesn't have to include <stdio.h> before us.
78052         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78053         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78054         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78055         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78056         if not declared, so that we can use getpass.c code from libc without
78057         rewriting it.
78058         (flockfile, ftrylockfile, funlockfile): New macros.
78059
78060 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78061
78062         * modules/getpass: Depend on stdbool.
78063
78064 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78065
78066         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78067
78068 2003-10-07  Karl Berry  <karl@gnu.org>
78069
78070         * config/config.{guess,sub}: update from config.
78071
78072 2003-10-06  Jim Meyering  <jim@meyering.net>
78073             Bruno Haible  <bruno@clisp.org>
78074
78075         This lets translators provide better translations for the
78076         "Written by ..." part of --version output.
78077         * lib/version-etc.h: Include stdarg.h.
78078         (version_etc_copyright): Declare as readonly.
78079         (version_etc): Make this function variadic with a NULL-terminated list
78080         of author name strings.
78081         (version_etc_va): New declaration.
78082         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78083         (version_etc_copyright): Declare as readonly.
78084         (version_etc_va): New function. Provide a different translatable string
78085         for each possible number of authors < 10. Abbreviate when there are 10
78086         authors or more.
78087         (version_etc): Make this function variadic. Call version_etc_va.
78088         Suggestion from Gary V. Vaughan.
78089
78090         * lib/long-options.h (parse_long_options): Change prototype: the
78091         authors string is moved to the end and becomes variadic.
78092         * lib/long-options.c: Include stdarg.h.
78093         (parse_long_options): Make this function variadic, too.
78094         Call version_etc_va, not version_etc.
78095
78096 2003-10-06  Bruno Haible  <bruno@clisp.org>
78097
78098         * modules/version-etc-2: Remove file.
78099         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78100
78101 2003-10-06  Bruno Haible  <bruno@clisp.org>
78102
78103         * modules/fatal-signal: New file.
78104         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78105
78106 2003-10-06  Bruno Haible  <bruno@clisp.org>
78107
78108         * m4/fatal-signal.m4: New file.
78109         * m4/signalblocking.m4: New file, from GNU gettext.
78110
78111 2003-10-06  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/version-etc-2.h: Remove file.
78114         * lib/version-etc-2.c: Remove file.
78115
78116 2003-10-06  Bruno Haible  <bruno@clisp.org>
78117
78118         * lib/fatal-signal.h: New file, from GNU gettext.
78119         * lib/fatal-signal.c: New file, from GNU gettext.
78120
78121 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78122
78123         * README: Rework advice for preventing empty .o files.
78124         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78125         not <sys/types.h>.
78126
78127 2003-10-04  Karl Berry  <karl@gnu.org>
78128
78129         * lib/argp*: update from libc.
78130
78131 2003-10-04  Karl Berry  <karl@gnu.org>
78132
78133         * config/config.{guess,sub}: update from config.
78134
78135 2003-10-02  Bruno Haible  <bruno@clisp.org>
78136
78137         * modules/lchown (Include): Add lchown.h.
78138         * modules/time_r (Include): Use "..." syntax.
78139         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78140
78141 2003-10-01  Simon Josefsson  <jas@extundo.com>
78142
78143         * MODULES.html.sh (func_all_modules): Move gethostname from section
78144         'based on' to section 'lacking' POSIX:2001.
78145
78146 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78147
78148         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78149         to output mode on the same stream.
78150
78151 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78152
78153         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78154         Fix arg typo in previous patch.
78155
78156 2003-09-28  Jim Meyering  <jim@meyering.net>
78157
78158         * lib/error.c: Correct cpp indentation.
78159
78160 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78161
78162         * modules/free: New file.
78163
78164 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78165
78166         * m4/free.m4: New file.
78167
78168 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78169
78170         * lib/minmax.h (MIN, MAX)
78171         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78172         Omit the special code that used __typeof__, since we worry that
78173         it could be more trouble than it's worth.  See:
78174         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78175         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78176
78177         * lib/free.c: New file.
78178
78179 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78180
78181         Trivial fixes to Makefile.am parts of module listings.
78182         * modules/strstr: Append strstr.h to lib_SOURCES.
78183         * modules/strcase: Likewise, for strcase.h.
78184
78185 2003-09-27  Karl Berry  <karl@gnu.org>
78186
78187         * config/mkinstalldirs: update from automake.
78188
78189 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78190
78191         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78192         (error_tail): Do not loop, reallocating temporary buffer, since
78193         the output cannot contain more wide characters than the input
78194         contains bytes, the size must be big enough already.  This avoids
78195         one potential size overflow calculation.  Check for size overflow
78196         when calculating temporary buffer size.  Free temporary buffer
78197         when done, if it was allocated with malloc; this plugs a memory
78198         leak.  Remove casts from void * to pointers, that are no longer
78199         needed now that we're assuming C89 or better.
78200
78201         Merge error changes from glibc.
78202
78203         * lib/error.c, error.h: Update copyright notice header to match glibc.
78204         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78205         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78206         Disable cancellation while printing error.
78207         * lib/error.h: Prepend __ to parameter names.
78208
78209 2003-09-26  Jim Meyering  <jim@meyering.net>
78210
78211         * lib/error.c (error_tail): Move some declarations
78212         into inner scope where the local variables are used.
78213
78214 2003-09-26  Bruno Haible  <bruno@clisp.org>
78215
78216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78217         stpncpy().
78218         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78219
78220 2003-09-26  Bruno Haible  <bruno@clisp.org>
78221
78222         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78223         (stpncpy): Define as alias for gnu_stpncpy.
78224         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78225
78226 2003-09-25  Simon Josefsson  <jas@extundo.com>
78227
78228         * lib/xgetdomainname.h: New file.
78229         * lib/xgetdomainname.c: New file.
78230
78231 2003-09-25  Simon Josefsson  <jas@extundo.com>
78232             Bruno Haible  <bruno@clisp.org>
78233
78234         * modules/getdomainname: New file.
78235         * modules/xgetdomainname: New file.
78236         * MODULES.html.sh (func_all_modules): Add getdomainname,
78237         xgetdomainname.
78238
78239 2003-09-25  Simon Josefsson  <jas@extundo.com>
78240             Bruno Haible  <bruno@clisp.org>
78241
78242         * m4/getdomainname.m4: New file.
78243
78244 2003-09-25  Simon Josefsson  <jas@extundo.com>
78245             Bruno Haible  <bruno@clisp.org>
78246
78247         * lib/getdomainname.h: New file.
78248         * lib/getdomainname.c: New file.
78249
78250 2003-09-25  Karl Berry  <karl@gnu.org>
78251
78252         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78253
78254 2003-09-25  Karl Berry  <karl@gnu.org>
78255
78256         * config/install-sh: update from automake.
78257
78258 2003-09-25  Bruno Haible  <bruno@clisp.org>
78259
78260         * modules/version-etc-2: New file, from modules/version-etc with
78261         modifications.
78262         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78263
78264 2003-09-25  Bruno Haible  <bruno@clisp.org>
78265
78266         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78267         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78268
78269 2003-09-24  Simon Josefsson  <jas@extundo.com>
78270
78271         * modules/xgethostname: Add xgethostname.h.
78272
78273 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78274
78275         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78276         the buffer associated with the argument.  Bug reported by
78277         Simon Josefsson.
78278
78279 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78280
78281         * README: Document assumptions that 'int' is at least 32 bits
78282         wide, that integer arithmetic is 2's complement without overflow,
78283         that there are no holes in integer values, that adding sizes of
78284         two nonoverlapping objects can't overflow, and that all-bits-zero
78285         yields scalar zero.  Fix spelling and capitalization typos.
78286
78287 2003-09-19  Karl Berry  <karl@gnu.org>
78288
78289         * lib/argp.h: update from libc.
78290
78291 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78292
78293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78294         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78295         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78296
78297 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78298
78299         * gnulib-tool: Use "test -h", not "test -L", for portability
78300         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78301         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78302         (sed_extract_prog): Issue s commands one-by-one, rather than
78303         using \| in one s command.
78304
78305 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78306
78307         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78308         input error, instead of returning NULL the next time we are called
78309         (and therefore losing track of errno).
78310
78311 2003-09-16  Bruno Haible  <bruno@clisp.org>
78312
78313         * gnulib-tool (func_create_testdir): Warn about duplicated
78314         dependencies.
78315
78316 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78317
78318         * modules/argmatch, modules/fatal, modules/obstack,
78319         modules/xalloc, modules/xgethostname: Sort dependencies by
78320         importance, not alphabetically.
78321
78322 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78323
78324         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78325         fails, so that the caller gets the proper errno.
78326
78327         * lib/readutmp.c (read_utmp): Likewise.
78328         Check for fstat error.  Close stream and free storage
78329         when failing.
78330
78331 2003-09-14  Karl Berry  <karl@gnu.org>
78332
78333         * config/srclist.txt (strdup.c): disable for c89 changes.
78334
78335 2003-09-14  Jim Meyering  <jim@meyering.net>
78336
78337         * lib/getloadavg.c: Correct cpp indentation.
78338         * lib/strdup.c: Likewise.
78339         * lib/vasnprintf.c: Likewise.
78340
78341 2003-09-14  Bruno Haible  <bruno@clisp.org>
78342
78343         * modules/fwriteerror: New file.
78344         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78345
78346 2003-09-14  Bruno Haible  <bruno@clisp.org>
78347
78348         * lib/fwriteerror.h: New file.
78349         * lib/fwriteerror.c: New file.
78350
78351 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78352
78353         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78354         modules/xgethostname, modules/xalloc: Depend on exit.
78355
78356 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78357
78358         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78359
78360         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78361         and AC_MINIX, too, so that their extensions are available.
78362
78363         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78364         This macro has been superseded by gl_BACKUPFILE.
78365
78366         More patches to assume C89 or better.
78367
78368         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78369
78370         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78371         unconditionally.
78372         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78373         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78374         Include <string.h>, <stdlib.h> unconditionally.
78375         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78376         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78377         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78378         headers or for string.h.
78379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78380         or strtoul.
78381
78382         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78383         headers.
78384         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78385         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78386         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78387         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78388         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78389         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78390         memcpy, memset.
78391         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78392         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78393         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78394         strtol.
78395         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78396         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78398         strtoul.
78399
78400 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78401
78402         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78403         * lib/obstack.c [!defined _LIBC]: Likewise.
78404         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78405         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78406         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78407
78408         More changes to assume C89 or better.
78409
78410         * lib/error.c (error_tail): Assume vprintf.
78411
78412         * lib/argmatch.c (getenv): Remove decl.
78413         * lib/progreloc.c (get_full_program_name): Define via prototype.
78414         * lib/setenv.c (clearenv): Likewise.
78415         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78416         needed.
78417         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78418         (malloc, memcpy): Remove decls.
78419         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78420         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78421         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78422         (memcpy): Remove macro.
78423         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78424         (__P): Remove.  All uses removed.
78425         (PTR): Remove.  All uses changed to void *.
78426         (CHAR_BIT, NULL): Remove.
78427         (spaces, zeros, memset_space, memset_zero)
78428         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78429         Remove.
78430         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78431         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78432         Define with prototype.
78433         Remove now-unnecessary prototype decl.
78434         (extra_args_spec): Assume ANSI C.  All uses changed.
78435         (extra_args_spec_iso): Remove.
78436         (my_strftime, emacs_strftimeu): Define via prototype.
78437         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78438         unconditionally.
78439         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78440         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78441         (strtoul, strtol): Remove decls.
78442         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78443         LONG_MAX): Remove.
78444         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78445         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78446         (LOCALE_PARAM_PROTO): New macro.
78447         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78448         (INTERNAL (strtol), strtol): Define with a prototype.
78449         (PARAMS): Remove.  All uses removed.
78450         * lib/tempname.c: Include <string.h> unconditionally.
78451         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78452         * lib/xgethostname.c (main): Define with a prototype.
78453         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78454         Include <stdlib.h> unconditionally.
78455         (calloc, malloc, realloc, free): Remove decls.
78456         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78457         Include <stdlib.h> unconditionally.  Sort include file names.
78458         (strtod): Remove.
78459         (xstrtod): Define with a prototype.
78460         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78461         (strtol, strtoul): Remove decls.
78462
78463 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78464
78465         More patches to assume C89 or better.
78466         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78467         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78468         string.h, memchr, STDC_HEADERS.
78469
78470 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78471
78472         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78473         Include <stdlib.h>, <string.h> unconditionally.
78474         Remove now-unnecessary cast to char *.
78475         * lib/strnlen.c: Include <string.h> unconditionally.
78476         * lib/yesno.c (yesno): Define with a prototype.
78477
78478 2003-09-11  Bruno Haible  <bruno@clisp.org>
78479
78480         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78481
78482 2003-09-10  Jim Meyering  <jim@meyering.net>
78483
78484         * lib/error.c: Correct indentation of cpp directives.
78485
78486 2003-09-10  Bruno Haible  <bruno@clisp.org>
78487
78488         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78489         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78490         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78491         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78492         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78493         <stdlib.h> and <string.h> checks.
78494         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78495         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78496
78497 2003-09-10  Bruno Haible  <bruno@clisp.org>
78498
78499         * lib/strcspn.c: Include <string.h> unconditionally.
78500         * lib/strpbrk.c: Include <string.h> unconditionally.
78501         * lib/strstr.c: Include <string.h> unconditionally.
78502         * lib/unicodeio.c: Include <string.h> unconditionally.
78503         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78504         * lib/unsetenv.c: Likewise.
78505         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78506         * lib/yesno.c: Include <stdlib.h> unconditionally.
78507         (rpmatch): Add prototype.
78508
78509 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78510
78511         More patches to assume C89 or better.
78512         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78513         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78514         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78515         or for string.h.
78516         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78517         stdlib.h.
78518         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78519         C headers.
78520         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78521         string.h.
78522         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78523         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78524         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78525         or for string.h.
78526         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78527         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78528         C headers.
78529         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78530         memcpy.
78531         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78532         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78533         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78534         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78535         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78536         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78537         string.h, free.
78538         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78539         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78540         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78541         C headers, or for string.h.
78542         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78543         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78544         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78545         headers, memory.h, stdlib.h, string.h, strings.h.
78546         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78547         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78548         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78549         strchr.
78550         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78551         headers, memory.h, string.h.
78552         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78553         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78554         free.
78555         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78556         headers.
78557         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78558         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78559         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78560         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78561         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78562
78563 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78564
78565         More K&R removal.
78566
78567         * lib/acosl.c (main): Use a prototype.
78568         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78569         tanl.c: Likewise.
78570
78571         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78572
78573         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78574         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78575         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78576         with a prototype.
78577         * lib/getopt.c (const): Remove macro.
78578         Include <string.h> unconditionally.
78579         (my_index): Remove; all uses changed to strchr.
78580         (strlen): Remove decl.
78581         (exchange): Remove forward decl; no longer needed.
78582         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78583         Define with prototype.
78584         * lib/getopt1.c (const): Remove macro.
78585         (getopt_long, getopt_long_only, main): Define with prototype.
78586
78587         * lib/getugroups.c: Include <string.h> unconditionally.
78588
78589         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78590         (getusershell, setusershell, endusershell, readname, main):
78591         Define with prototypes.
78592
78593         * lib/group-member.c: Include group-member.h first.
78594         Include <stdlib.h> unconditionally.
78595
78596         * lib/hard-locale.c: Include hard-locale.h first.
78597         Include <stdlib.h>, <string.h> unconditionally.
78598
78599         * lib/hash.c (free, malloc): Remove decls.
78600         Include <stdlib.h> unconditionally.
78601
78602         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78603         (getenv): Do not declare.
78604
78605         * lib/idcache.c: Include <string.h> unconditionally.
78606
78607         * lib/long-options.c: Include long-options.h first, to test interface.
78608         Include <stdlib.h> unconditionally.
78609
78610         * lib/makepath.c: Include makepath.h first, to test interface.
78611         Include <stdlib.h> and <string.h> unconditionally.
78612
78613         * lib/linebuffer.c: Include <stdlib.h>.
78614         (free): Remove decl.
78615
78616         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78617         stddef.h. rpl_malloc returns void *, not char *.
78618         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78619         prototype.
78620
78621         * lib/md5.h: Include <limits.h> unconditionally.
78622         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78623         (__P): Remove; all uses removed.
78624         * lib/md5.c: Include "md5.h" first.
78625         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78626         md5_buffer, md5_process_bytes, md5_process_block):
78627         Define with prototypes.
78628         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78629         * lib/sha.c: Include "sha.h" first.
78630         Include <stdlib.h>, <string.h> unconditionally.
78631
78632         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78633         * lib/memcmp.c (__ptr_t): Likewise.
78634         * lib/memrchr.c (__ptr_t): Likewise.
78635         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78636         Include <string.h> unconditionally.
78637         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78638         * lib/memchr.c: Include <stdlib.h> unconditionally.
78639         * lib/memchr.c (LONG_MAX): Remove.
78640         * lib/memrchr.c (LONG_MAX): Likewise.
78641         * lib/memchr.c (__memchr): Define via a prototype.
78642         * lib/memrchr.c (__memrchr): Likewise.
78643         * lib/memcmp.c (__P): Remove, and remove all uses.
78644         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78645         Remove forward decls; no longer needed.
78646         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78647         Use types required by C89 in prototype.
78648
78649         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78650         * lib/savedir.c: Likewise.
78651         * lib/mkdir.c (free): Remove decl.
78652         * lib/rmdir.c (rmdir): Define with a prototype.
78653         * lib/savedir.c: Include savedir.h first, to test interface.
78654
78655         * lib/mktime.c (STDC_HEADERS): Remove.
78656         Include <stdlib.h>, <string.h> unconditionally.
78657
78658         * lib/modechange.c: Include <stdlib.h> unconditionally.
78659         (malloc): Remove decl.
78660
78661         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78662         (free): Remove decl.
78663
78664         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78665         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78666         (This type really should be intptr_t, but that's a C99ism.)
78667         (_obstack_memcpy): Remove: all uses changed to memcpy.
78668         Include <string.h> unconditionally.
78669         (struct obstack): Assume __STDC__ for types of members
78670         chunkfun, freefun, extra_arg.
78671         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78672         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78673         obstack_begin, obstack_specify_allocation,
78674         obstack_specify_allocation_with_arg, obstack_chunkfun,
78675         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78676         Remove unprototyped decls and the macros that use them.
78677         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78678         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78679         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78680         (defined __STDC__ && __STDC__)]:
78681         Remove nonprototyped code.
78682         Include <stdlib.h> unconditionally.
78683         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78684         _obstack_allocated_p, _obstack_free, obstack_free,
78685         _obstack_memory_used, print_and_abort):
78686         Define using prototypes.
78687         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78688         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78689         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78690         obstack_next_free, obstack_object_size, obstack_room) [0]:
78691         Remove unused, unprototyped code.
78692
78693         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78694
78695         * lib/physmem.c (physmem_total, physmem_available, main): Define
78696         with prototypes.
78697
78698         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78699         (main): Define with a prototype.
78700
78701         * lib/posixver.c (getenv): Remove decl.
78702
78703         * lib/putenv.c (malloc): Returns void *, not char *.
78704         Include <string.h> unconditionally.
78705         (strchr, memcpy, NULL): Do not define.
78706
78707         * lib/readtokens.c: Include readtokens.h first, to test interface.
78708         Include <stdlib.h>, <string.h> unconditionally.
78709         (init_tokenbuffer): Define with a prototype.
78710
78711         * lib/regex.c (PARAMS): Remove.  All uses removed.
78712         All uses of _RE_ARGS removed, too.
78713         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78714         unconditionally.
78715         (bzero): Assume memset exists.
78716         (memcmp, memcpy, NULL): Remove.
78717         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78718         char, or assignments to local vars of type signed char.
78719         (init_syntax_once, PREFIX(extract_number_and_incr),
78720         PREFIX(print_partial_compiled_pattern),
78721         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78722         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78723         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78724         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78725         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78726         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78727         wcs_compile_range, byte_compile_range, truncate_wchar,
78728         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78729         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78730         count_mbs_length, wcs_re_match_2_internal,
78731         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78732         PREFIX(alt_match_null_string_p),
78733         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78734         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78735         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78736         now-unnecessary declaration, if any.
78737         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78738         regcomp, regexec):
78739         Remove now-unnecessary casts among pointer types.
78740         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78741
78742         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78743         (free): Remove decl.
78744
78745         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78746
78747         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78748         (free): Remove decl.
78749
78750         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78751         * lib/xgetcwd.c: Likewise.
78752
78753         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78754         (free): Remove decl.
78755
78756         * lib/strchrnul.c (strchrnul): Define with a prototype.
78757         Fix bug: c_in was not converted to char before searching.
78758
78759         The following changes are not K&R related:
78760
78761         * lib/group-member.h: Include <sys/types.h>, so that this file is
78762         self-contained.
78763         * lib/makepath.h: Likewise.
78764
78765         * lib/getusershell.c (readname, default_index, line_size, readname):
78766         Use size_t, not int, for sizes.
78767         (readname): If the size overflows, report an error instead of
78768         looping forever.
78769
78770 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78771
78772         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78773         libc.
78774
78775 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78776
78777         * README: New section: portability guidelines.
78778
78779 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78780
78781         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78782         C89 spec.
78783
78784 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78785
78786         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78787
78788 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78789
78790         Assume C89 or better; remove K&R cruft.
78791         A few of these changes were first proposed by Derek Robert Price
78792         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78793
78794         * lib/addext.c: Include <string.h> unconditionally.
78795         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78796         Don't declare getenv or malloc.
78797
78798         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78799         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78800         (NULL): Remove.
78801         (find_stack_direction, alloca): Use prototypes.
78802
78803         * lib/atexit.c (atexit): Define using a prototype.
78804
78805         * lib/basename.c, dirname.c, stripslash.c:
78806         Include <string.h> unconditionally.
78807
78808         * lib/bcopy.c: Include <stddef.h>.
78809         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78810
78811         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78812
78813         * lib/error.h (error, error_at_line, error_print_progname)
78814         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78815         * lib/error.c: Include error.h first, to check interface.
78816         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78817         (VA_START): Remove; all uses changeed to va_start.
78818         (exit, strerror): Remove decls.
78819         (error_print_progname): Prototype uncondionally.
78820         Don't include <errno.h>; no longer needed.
78821         (private_strerror): Remove.
78822         (error_tail): Always define.
78823         (error, error_at_line): Assume C89 or better; always use prototypes.
78824         * lib/fatal.c: Include "fatal.h" first, to test interface.
78825         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78826         (VA_START): Remove; all uses changed to va_start.
78827         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78828         this case.
78829         (exit): Remove decl.
78830         (fatal): Prototype unconditionally.  Assume va_start works.
78831         Abort at end, to pacify gcc.
78832
78833         * lib/euidaccess.c (main): Define with a prototype.
78834
78835         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78836
78837         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78838
78839         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78840         prototypes.
78841         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78842         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78843         (getenv): Remove decl.
78844         (fnmatch): Define using a prototype.
78845         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78846         (FCT): Define using a prototype.
78847
78848         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78849
78850         * lib/gethostname.c: Include <stddef.h>.
78851         (gethostname): Define with prototype.  Length is size_t, not int.
78852
78853 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78854
78855         Assume C89 or better; remove K&R cruft.
78856         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78857         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78858         string.h, getenv, malloc.
78859         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78860         headers.
78861         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78862         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78863         do not check for strerror.
78864         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78865         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78866         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78867         do not check for doprnt or vprintf.
78868         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78869         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78870
78871 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78872
78873         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78874         getversion.c should have been removed then, but was accidentally
78875         preserved.
78876
78877         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78878         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78879
78880 2003-09-08  Karl Berry  <karl@gnu.org>
78881
78882         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78883                 config, forget about prep.
78884
78885         * config/depcomp, missing: update from automake.
78886
78887 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78888
78889         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78891
78892 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78893
78894         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78895         copy_tm_result.  Bug reported by Simon Josefsson in
78896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78897
78898 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78899
78900         * m4/time_r.m4: New file.
78901         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78902         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78903         is. Check for timegm declaration.
78904         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78905         Do not check for gmtime_r.
78906         Replace mktime if __mktime_internal does not exist and if mktime
78907         hasn't been replaced already.
78908
78909 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78910
78911         * lib/time_r.c, lib/time_r.h: New files.
78912
78913         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78914         __localtime_r.
78915         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78916         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78917
78918         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78919         __gmtime_r.
78920         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78921         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78922         Include <time_r.h>.
78923
78924         * lib/timegm.c: Switch to glibc implementation, with the following
78925         changes:
78926         [defined HAVE_CONFIG_H]: Include <config.h>.
78927         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78928         (__mktime_internal) [!defined _LIBC]: New decl.
78929         (__gmtime_r) [!defined _LIBC]: New macro and function.
78930         (timegm): Use a prototype, since gnulib assumes C89.
78931         Do not bother declaring tmp to be const, as it's not really usefu.
78932         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78933         (timegm): Declare only if HAVE_DECL_TIMEGM.
78934
78935 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78936
78937         * MODULES.html.sh (func_all_modules): Add time_r.
78938         * modules/time_r: New file.
78939         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78940         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78941
78942 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78943
78944         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78945         Bug reported by Lute Kamstra in
78946         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78947
78948         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78949         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78950         course with correspondingly smaller numbers for tomorrow and
78951         yesterday.  From Tadayoshi Funaba.  Originally installed into
78952         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78953         coreutils merge?).
78954
78955 2003-08-31  Simon Josefsson  <jas@extundo.com>
78956
78957         * modules/timegm: New file.
78958         * MODULES.html.sh (func_all_modules): Add timegm.
78959
78960 2003-08-31  Simon Josefsson  <jas@extundo.com>
78961
78962         * m4/timegm.m4: New file.
78963
78964 2003-08-31  Simon Josefsson  <jas@extundo.com>
78965
78966         * lib/timegm.h: New file.
78967         * lib/timegm.c: New file.  Based on
78968         wget-1.8.2/src/http.c:mktime_from_utc.
78969
78970 2003-08-31  Karl Berry  <karl@gnu.org>
78971
78972         * lib/argp.h: update from libc.
78973
78974 2003-08-28  Bruno Haible  <bruno@clisp.org>
78975
78976         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78977         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78978         followed by '#define fnmatch fnmatch_posix' gives an error.
78979
78980 2003-08-28  Bruno Haible  <bruno@clisp.org>
78981
78982         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78983         warning on QNX, which defines O_BINARY to 000000.
78984
78985 2003-08-27  Jim Meyering  <jim@meyering.net>
78986
78987         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78988         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78989         would fail after 32.  Reported by Danny Levinson.  Details here:
78990         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78991
78992 2003-08-24  Bruno Haible  <bruno@clisp.org>
78993
78994         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78995         MSVC7 <stdio.h> is included later.
78996
78997 2003-08-22  Simon Josefsson  <jas@extundo.com>
78998
78999         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79000
79001 2003-08-20  Karl Berry  <karl@gnu.org>
79002
79003         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79004
79005 2003-08-20  Bruno Haible  <bruno@clisp.org>
79006
79007         * modules/progname: New file.
79008         * MODULES.html.sh (func_all_modules): Add progname.
79009
79010 2003-08-20  Bruno Haible  <bruno@clisp.org>
79011
79012         * lib/progname.h: New file, from GNU gettext.
79013         * lib/progname.c: New file, from GNU gettext.
79014         * lib/progreloc.c: New file, from GNU gettext.
79015
79016 2003-08-19  Jim Meyering  <jim@meyering.net>
79017
79018         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79019         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79020
79021 2003-08-19  Bruno Haible  <bruno@clisp.org>
79022
79023         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79024         more.
79025
79026 2003-08-19  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/xstrdup.c: Assume <string.h> exists.
79029
79030 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79031
79032         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79033         in makefile rules.
79034
79035 2003-08-18  Jim Meyering  <jim@meyering.net>
79036
79037         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79038         * m4/lib-ld.m4: Likewise.
79039
79040 2003-08-18  Jim Meyering  <jim@meyering.net>
79041
79042         * lib/setenv.h: Indent nested cpp directive.
79043         * lib/vasnprintf.c: Remove trailing blanks.
79044
79045 2003-08-17  Simon Josefsson  <jas@extundo.com>
79046
79047         * modules/xstrndup: New file.
79048         * MODULES.html.sh (func_all_modules): Add xstrndup.
79049
79050 2003-08-17  Simon Josefsson  <jas@extundo.com>
79051
79052         * modules/argp: Fix autoconf macro name. Add more dependencies.
79053
79054 2003-08-17  Simon Josefsson  <jas@extundo.com>
79055
79056         * m4/xstrndup.m4: New file.
79057
79058 2003-08-17  Simon Josefsson  <jas@extundo.com>
79059
79060         * m4/argp.m4: New file.
79061
79062 2003-08-17  Simon Josefsson  <jas@extundo.com>
79063             Bruno Haible  <bruno@clisp.org>
79064
79065         * lib/xstrndup.h: New file.
79066         * lib/xstrndup.c: New file.
79067
79068 2003-08-17  Bruno Haible  <bruno@clisp.org>
79069
79070         * modules/strndup (Files, Include): Add lib/strndup.h.
79071
79072 2003-08-17  Bruno Haible  <bruno@clisp.org>
79073
79074         * modules/euidaccess (Files): Add lib/euidaccess.h.
79075
79076 2003-08-17  Bruno Haible  <bruno@clisp.org>
79077
79078         * lib/strndup.h: New file.
79079
79080 2003-08-17  Bruno Haible  <bruno@clisp.org>
79081
79082         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79083         like AC_GNU_SOURCE.
79084         * modules/extensions (configure.ac): Comment out the invocation of
79085         gl_USE_SYSTEM_EXTENSIONS.
79086
79087 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79088
79089         Merges from coreutils, etc.
79090         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79091         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79092         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79093         fixing a typo.
79094         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79095         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79096
79097 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79098
79099         Document merge from coreutils.
79100         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79101         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79102         * modules/utime: Add m4/utimes-null.m4.
79103
79104 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79105
79106         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79107         space, undoing this 2003-08-12 change:
79108         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79109
79110 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79111
79112         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79113         strtoul.c from libc, undoing this 2003-08-12 change:
79114         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79115
79116 2003-08-16  Jim Meyering  <jim@meyering.net>
79117
79118         Merges from coreutils.
79119         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79120         prefix.  Adjust cache variables similarly.  Create 500 rather than
79121         just 300 files, to exercise bug on Darwin6.5, too.
79122         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79123         $missing_dir.
79124         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79125         AM_SYS_POSIX_TERMIOS.
79126         Reported by mkc@mathdogs.com.
79127         Also change use of $am_cv_sys_posix_termios
79128         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79129         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79130         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79131         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79132         in /proc/mounts until it finds one with matching device number.  This
79133         is unnecessary when the FILE argument *is* a mount point.  No stat call
79134         is necessary in that case.  So, disable the statvfs-testing code on
79135         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79136         as RedHat bug# 84846.
79137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79138         to 1MB, so as not to render systems with no stack size limit (e.g.,
79139         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79140         Include <unistd.h>.  On some systems,
79141         it is required for the definition of _SC_PAGESIZE.
79142
79143 2003-08-16  Jim Meyering  <jim@meyering.net>
79144
79145         Merge from coreutils.
79146         * lib/xstrtoimax.c: #else #if -> #elif.
79147         * lib/xstrtoumax.c: Likewise.
79148
79149 2003-08-16  Jim Meyering  <jim@meyering.net>
79150
79151         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79152         * m4/utimes.m4: Removed.
79153         * m4/utimes-null.m4: Renamed from utimes.m4.
79154
79155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79156         to 1MB, so as not to render systems with no stack size limit (e.g.,
79157         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79158         Include <unistd.h>.  On some systems,
79159         it is required for the definition of _SC_PAGESIZE.
79160
79161 2003-08-16  Jim Meyering  <jim@meyering.net>
79162         and Paul Eggert  <eggert@cs.ucla.edu>
79163
79164         Merges from coreutils, etc.
79165
79166         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79167         using the latest version from cvs.  This avoids problems with #line
79168         directives using a vendor (Sun) compiler.
79169         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79170         Don't set GETGROUPS_LIB here; now it's
79171         done via getgroups.m4's wrapper function.
79172         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79173         rather than just in sh-util/configure.in, so that the
79174         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79175         same.
79176         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79177         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79178         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79179         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79180         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79181         Remove code that is now done by the newly-required macros.
79182         Append $(EXEEXT) to DF_PROG.
79183         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79184         Do not invoke or require the following here,
79185         since prereq.m4 or some gnulib .m4 now does this for us:
79186         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79187         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79188         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79189         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79190         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79191         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79192         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79193         AC_FUNC_OBSTACK.
79194         Do not replace the following functions, as this is now the job
79195         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79196         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79197         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79198         atexit getpass, strdup, getpagesize.
79199         Replace 'raise'.
79200         Do not check for the following functions, as this is now the job
79201         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79202         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79203         setregid.
79204         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79205         Check for sys/sysctl.h.
79206         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79207         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79208         of checking for ssize_t ourselves.
79209
79210         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79211         Require every macro that gnulib/modules/* suggests for us.
79212         (jm_PREREQ_ADDEXT): New macro.
79213         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79214         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79215
79216         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79217         (gl_PHYSMEM): Use it.
79218         Also check for `table' function.
79219         Check for new headers and functions.
79220         Add check for sys/sysmp.h.
79221         With suggestions from Kaveh Ghazi.
79222         Ignore headers that are present but cannot be compiled.  This
79223         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79224         C 5.4.
79225
79226 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79227
79228         Document merge from coreutils.
79229         * modules/userspec: Depend on posixver.
79230         * modules/strftime: Depend on tzset.
79231
79232 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79233
79234         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79235         rather than tab, after '#' in shell-script copyright notices.
79236         Suggested by Bruno Haible.
79237
79238 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79239
79240         * config/srclist-update: Use three spaces, rather than tab, after '#'
79241         in shell-script copyright notices.  Suggested by Bruno Haible.
79242         Remove unnecessary parenthesization in regular expression.
79243
79244 2003-08-15  Jim Meyering  <jim@meyering.net>
79245
79246         Merge from coreutils.
79247         * lib/xgethostname.c: Include <stdlib.h>.
79248         (xghostname): Don't exit for anything other than memory-related
79249         failure; just return NULL.
79250         * lib/userspec.c: Include "posixver.h".
79251         (parse_user_spec): Accept `.' as a separator only
79252         in pre-POSIX-200112 mode.
79253         * lib/strtoimax.c: Use #elif rather than #else #if.
79254         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79255         Remove function, now that we can rely on a working tzset function.
79256         [!_LIBC]: Ensure that the required autoconf test has been run.
79257         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79258         Use underlying_strftime for %r.
79259         * lib/sha.c: Merge in some clean-up and optimization changes from
79260         glibc.
79261         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79262         Ensure that it is a multiple of 64.
79263         Rearrange loop exit tests so as to avoid performing an
79264         additional fread after encountering an error or EOF.
79265         * lib/realloc.c: Update copyright date.
79266
79267 2003-08-15  Jim Meyering  <jim@meyering.net>
79268         and Paul Eggert  <eggert@twinsun.com>
79269
79270         Merge from coreutils.
79271         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79272         member but strut utmpx does not.  Needed for AIX 4.3.3.
79273         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79274
79275 2003-08-15  Jim Meyering  <jim@meyering.net>
79276         and Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         Merges from coreutils, etc.
79279         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79280         Require gl_FUNC_TZSET_CLOBBER.
79281         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79282         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79283         members.
79284
79285 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79286
79287         Help the merge from coreutils.
79288         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79289         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79290         * m4/tzset.m4: Use it too.
79291
79292 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79293
79294         * modules/tzset: New file.
79295
79296 2003-08-14  Jim Meyering  <jim@meyering.net>
79297
79298         Merges from coreutils.
79299         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79300         variable names, rather than @FNMATCH_H@.
79301         * modules/alloca: Likewise for $(ALLOCA_H).
79302
79303         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79304         the three copies of the literal target, `fnmatch.h'.
79305         * modules/alloca (alloca.h): Likewise.
79306
79307 2003-08-14  Jim Meyering  <jim@meyering.net>
79308
79309         Merge from coreutils.
79310         * m4/tzset.m4: New file.
79311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79312         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79313         otherwise, AIX 5.1 systems would end up using the latter.
79314         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79315         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79316         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79317         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79318
79319 2003-08-14  Jim Meyering  <jim@meyering.net>
79320
79321         Merge from coreutils.
79322         * lib/obstack.h: Whitespace changes.
79323         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79324         and xcalloc return values.
79325         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79326         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79327         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79328         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79329         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79330         error from mntctl.
79331         Use mntctl's return value to drive the entry-processing loop, since
79332         we can't rely on the value of the vmt_length member in the last
79333         entry.  On some systems doing so could result in exhausting
79334         virtual memory.  Based in part on a patch from Mike Jetzer.
79335
79336 2003-08-14  Jim Meyering  <jim@meyering.net>
79337         and Paul Eggert  <eggert@twinsun.com>
79338
79339         Merges from coreutils, plus other fixes.
79340         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79341         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79342         for credits and details.  Thanks to Kaveh Ghazi for helping
79343         to keep these files in sync.
79344         (ARRAY_SIZE): Define it.
79345         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79346         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79347         (memcasecmp): Don't assume size_t fits in unsigned int.
79348         Remove casts and duplicate code.
79349         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79350         (memcpy): Remove definition.
79351         Merge in some clean-up and optimization changes from glibc.
79352         [BLOCKSIZE]: Move definition to top of file.
79353         Ensure that it is a multiple of 64.
79354         Rearrange loop exit tests so as to avoid performing an
79355         additional fread after encountering an error or EOF.
79356         * lib/md5.h (md5_uintptr): Define.
79357         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79358         return to the initial working directory.  Preserve errno
79359         for caller.
79360         * lib/idcache.c: Include "xalloc.h".
79361         (xmalloc, xrealloc): Remove decls.
79362         (getuser): Remove casts no longer required in C89.
79363         * lib/human.c: Include stdio.h, for sprintf.
79364         * lib/group-member.c: Include "xalloc.h".
79365         (xmalloc, xrealloc): Remove decls.
79366         (get_group_info): Remove casts no longer required in C89.
79367         * lib/getusershell.c (readname): Remove casts no longer required in
79368         C89.
79369         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79370         * lib/getline.c: Whitespace fix, from coreutils.
79371
79372 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79373
79374         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79375         Check for isascii.
79376
79377         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79378         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79379         Undo previous (whitespace-only) change.
79380
79381 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79382
79383         * lib/exclude.c: Include <ctype.h>
79384         (IN_CTYPE_DOMAIN): New macro.
79385         (is_space): New fn.
79386         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79387         and empty lines.
79388
79389         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79390         Undo previous (whitespace-only) change.
79391
79392 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79393
79394         * config/srclist-update: Change update back to the old behavior,
79395         leaving whitespace alone.  Use one 'sed' command rather than a
79396         pipeline.
79397         (fixlicense): Now a variable, not a function.
79398         (remove_trailing_blanks): Remove.
79399         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79400         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79401         Undo previous (whitespace-only) change.
79402
79403 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79404
79405         Merge from coreutils.
79406         * modules/euidaccess: Add lib_SOURCES, include for new
79407         file euidaccess.h
79408
79409 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79410
79411         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79412         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79413         Normalize leading white space and remove trailing white space.
79414
79415         Merge from coreutils
79416         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79417
79418         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79419         0.12.1.  These files are now being upgraded automatically by
79420         ../config/srclist-update.
79421
79422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79423
79424         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79425         Normalize leading white space and remove trailing white space.
79426         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79427         notice, as per ../config/srclist-update.
79428
79429         Merge from coreutils.
79430         * lib/euidaccess.h: New file.
79431         * lib/euidaccess.c: Include it.
79432         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79433         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79434         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79435
79436 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79437
79438         * config/srclist-update: Add copyright notice.
79439         (remove_id_lines, remove_trailing_blanks): New constants.
79440         (fixfile): Use them to normalize spacing a bit in copied files.
79441         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79442         Normalize leading white space and remove trailing white space.
79443
79444         * config/texinfo.tex: Sync with texinfo.
79445
79446         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79447         strtoul.c from libc, to merge coreutils whitespace changes.
79448
79449         * config/srclist.txt: Get the following m4 files from gettext:
79450         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79451         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79452         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79453         wint_t.m4.
79454
79455 2003-08-12  Karl Berry  <karl@gnu.org>
79456
79457         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79458         been made.
79459
79460 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79461
79462         * modules/gnu-source, m4/gnu-source.m4:
79463         Remove; we're assuming Autoconf 2.54 or later now.
79464         Suggested by Bruno Haible.
79465         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79466
79467 2003-08-11  Bruno Haible  <bruno@clisp.org>
79468
79469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79470
79471 2003-08-11  Bruno Haible  <bruno@clisp.org>
79472
79473         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79474         (vasnprintf): Use it instead of wcslen.
79475
79476 2003-08-11  Bruno Haible  <bruno@clisp.org>
79477
79478         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79479         value to ensure that _Bool promotes to int. Use #define for _Bool when
79480         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79481
79482 2003-08-10  Karl Berry  <karl@gnu.org>
79483
79484         * lib/regex.h: update from libc (whitespace fix).
79485
79486 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79487
79488         Merge some files from coreutils.  These changes were
79489         originally made by Jim Meyering.
79490         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79491         many older Unixes require this.
79492         * lib/alloca.c (alloca): Remove cast to argument of free;
79493         no longer needed in C89.
79494         * lib/alloca_.h, regex.h: Fix white space to match
79495         what GNU indent does.
79496
79497 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79498
79499         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79500         apparently Emacs's Unicode mode got confused before my 2003-08-05
79501         checkin.
79502
79503 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79504
79505         * m4/extensions.m4: New file.
79506         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79507         Require gl_USE_SYSTEM_EXTENSIONS.
79508         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79509         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79510
79511 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79512
79513         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79514         * modules/extensions, modules/gnu-source: New files.
79515         * modules/timespec, modules/unlocked-io: Depend on extensions.
79516
79517 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79518
79519         * modules/restrict: New file.
79520         * MODULES.html.sh (func_all_modules): Add restrict.
79521         * modules/regex: Depend on restrict.
79522
79523 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79524
79525         * m4/restrict.m4: New file.
79526         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79527
79528 2003-08-07  Bruno Haible  <bruno@clisp.org>
79529
79530         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79531         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79532
79533 2003-08-07  Bruno Haible  <bruno@clisp.org>
79534
79535         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79536         makes the module 'getndelim2' compatible with the module 'getline'.
79537
79538 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79539
79540         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79541         byte with "\201" to avoid glitches when editing that source file
79542         with multi-gnome-terminal.
79543
79544 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79545
79546         * lib/bumpalloc.h: Remove.
79547
79548 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79549
79550         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79551         * modules/bumpalloc: Remove.
79552
79553 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79554
79555         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79556         GNU coding style.
79557
79558         Merge from coreutils.
79559         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79560         1. From glibc.
79561         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79562         from Karl Berry, implemented by Jim Meyering.
79563         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79564         from Dmitry V. Levin.
79565         Remove anachronistic cast of xrealloc.
79566         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79567         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79568         type. Otherwise, it wouldn't compile with at least /bin/cc on
79569         ymp-cray-unicos9.0.2.X.
79570         Combine two mostly-identical uses of alloca into one.
79571         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79572
79573 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79574
79575         [From Emacs.]
79576
79577         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79578         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79579         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79580         obsolete NLIST_NAME_UNION.
79581         [__GNU__]: Undef BSD and FSCALE.
79582         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79583
79584 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79585
79586         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79587         an enum type, so that it's guaranteed to promote to int.  See:
79588         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79589
79590 2003-08-03  Karl Berry  <karl@gnu.org>
79591
79592         * config/depcomp: update from automake.
79593
79594 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79595
79596         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79597         (strerror): Don't assume that a printable int fits in 14 bytes.
79598
79599 2003-07-31  Bruno Haible  <bruno@clisp.org>
79600
79601         * modules/getpass-gnu: New file.
79602         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79603
79604 2003-07-31  Bruno Haible  <bruno@clisp.org>
79605
79606         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79607
79608 2003-07-24  Karl Berry  <karl@gnu.org>
79609
79610         * config/missing: update from automake.
79611
79612 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79613             Bruno Haible  <bruno@clisp.org>
79614
79615         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79616         * lib/getline.c (getline, getdelim): Likewise.
79617         Remove _GNU_SOURCE define; now it's defined in config.h through
79618         m4/getline.m4.
79619
79620 2003-07-23  Karl Berry  <karl@gnu.org>
79621
79622         * config/config.sub: update from prep.
79623
79624 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79625
79626         * modules/xalloc (Depends-on): Add exitfail.
79627         * modules/xmemcoll: Likewise.
79628
79629 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79630
79631         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79632         over-parenthesization in macros.
79633
79634         Sync with coreutils.
79635
79636         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79637         required by C99.
79638
79639         Use `exit_failure' for xalloc and xmemcoll instead of their own
79640         private exit-failure variables.
79641         * lib/xalloc.h (xalloc_exit_failure): Remove.
79642         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79643         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79644         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79645         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79646         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79647
79648 2003-07-20  Jim Meyering  <jim@meyering.net>
79649
79650         * modules/closeout (Depends-on): Add exitfail.
79651         Suggestion from Bruno Haible.
79652
79653 2003-07-19  Karl Berry  <karl@gnu.org>
79654
79655         * config/config.sub: update from prep.
79656
79657 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79658
79659         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79660         Remove.
79661         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79662         to test that it can stand by itself.  Include "exitfail.h".
79663         Clients should set exit_failure instead.
79664         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79665
79666 2003-07-18  Bruno Haible  <bruno@clisp.org>
79667
79668         * modules/getndelim2: New file.
79669         * modules/getline: Share files with module getndelim2.
79670         * modules/getnline: Depend on getndelim2 instead of sharing files with
79671         it. Add getnline.c to lib_SOURCES.
79672         * MODULES.html.sh (func_all_modules): Add getndelim2.
79673
79674 2003-07-18  Bruno Haible  <bruno@clisp.org>
79675
79676         * m4/getndelim2.m4: New file.
79677         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79678         invoke gl_PREREQ_GETNDELIM2.
79679         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79680         gl_PREREQ_GETNDELIM2.
79681         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79682         gl_GETNDELIM2.
79683
79684 2003-07-18  Bruno Haible  <bruno@clisp.org>
79685
79686         * lib/getndelim2.h: New file.
79687         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79688         getndelim2.h.
79689         (getndelim2): Make non-static. Change return type to ssize_t.
79690         * lib/getline.h: Change argument names.
79691         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79692         * lib/getnline.c: Include getndelim2.h.
79693
79694 2003-07-18  Andreas Schwab  <schwab@suse.de>
79695
79696         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79697
79698 2003-07-17  Karl Berry  <karl@gnu.org>
79699
79700         * config/config.sub: update from prep.
79701
79702 2003-07-17  Bruno Haible  <bruno@clisp.org>
79703
79704         * modules/getnline: New file.
79705         * modules/getline: Add lib/getndelim2.c to source file list.
79706         * MODULES.html.sh (func_all_modules): Add getnline.
79707
79708 2003-07-17  Bruno Haible  <bruno@clisp.org>
79709
79710         * m4/getnline.m4: New file.
79711
79712 2003-07-17  Bruno Haible  <bruno@clisp.org>
79713
79714         * m4/Makefile.am.in: Remove file.
79715         * m4/Makefile.am: Remove file.
79716         * m4/Makefile.in: Remove file.
79717
79718 2003-07-17  Bruno Haible  <bruno@clisp.org>
79719
79720         * lib/getnline.h: New file.
79721         * lib/getnline.c: New file.
79722         * lib/getndelim2.c: New file, extracted from getline.c.
79723         (getndelim2): Renamed from getdelim2, with added nmax argument.
79724         * lib/getline.c: Include getndelim2.c.
79725         (getdelim2): Moved out to getndelim2.c.
79726         (getline, getdelim): Update.
79727
79728 2003-07-17  Bruno Haible  <bruno@clisp.org>
79729
79730         * lib/Makefile.am: Remove file.
79731         * lib/Makefile.in: Remove file.
79732
79733 2003-07-17  Bruno Haible  <bruno@clisp.org>
79734
79735         * configure.in: Remove file.
79736         * Makefile.in: Remove file.
79737
79738 2003-07-17  Bruno Haible  <bruno@clisp.org>
79739
79740         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79741
79742 2003-07-16  Karl Berry  <karl@gnu.org>
79743
79744         * config/srclist-update: was running fixlicense twice, which caused
79745                 texinfo.tex to be nullified for some reason.  Simplify,
79746                 $gplsrc is no longer needed as far as I can see?
79747
79748 2003-07-16  Jim Meyering  <jim@meyering.net>
79749
79750         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79751
79752 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79753
79754         * config/srclist.txt: Get the following files from gettext-runtime/intl
79755         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79756         ref-del.sin.  From Bruno Haible.
79757         * config/srclist-update (fixfile): Change grep pattern again, since the
79758         previous fix didn't work (there was another trailing $).  Use
79759         '[$]' to escape the $s.
79760
79761 2003-07-15  Karl Berry  <karl@gnu.org>
79762
79763         * lib/vasnprintf.c: update from gettext.
79764
79765 2003-07-15  Karl Berry  <karl@gnu.org>
79766
79767         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79768         gets expanded when surrounded by '$'.
79769
79770 2003-07-15  Jim Meyering  <jim@meyering.net>
79771
79772         * modules/save-cwd: Don't depend on error.  From Derek Price.
79773
79774 2003-07-15  Jim Meyering  <jim@meyering.net>
79775
79776         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79777
79778 2003-07-14  Simon Josefsson  <jas@extundo.com>
79779
79780         * modules/mempcpy: New file.
79781         * MODULES.html.sh (func_all_modules): Add mempcpy.
79782
79783 2003-07-14  Simon Josefsson  <jas@extundo.com>
79784
79785         * m4/mempcpy.m4: New file.
79786
79787 2003-07-14  Simon Josefsson  <jas@extundo.com>
79788
79789         * lib/mempcpy.h: New file.
79790         * lib/mempcpy.c: New file.
79791
79792 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79793
79794         * modules/getdate, modules/posixtm: Depend on mktime.
79795
79796 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79797
79798         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79799         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79800         unicodeio.c, unicodeio.h, unlocked-io.h:
79801         Switch from LGPL to GPL.
79802
79803 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79804
79805         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79806         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79807         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79808         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79809         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79810         updated automatically by ../config/srclist-update.  This changes
79811         their license from LPGL to GPL.
79812
79813 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79814
79815         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79816         assumed to refer to the root of the most recent stable gettext version.
79817         * config/srclistvars.sh: Add defaults for eggert.
79818         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79819         Match "This program" as well as "The program".  This is needed
79820         for gettext.
79821
79822 2003-07-14  Jim Meyering  <jim@meyering.net>
79823
79824         Don't emit diagnostics.  Let callers do that.
79825         * lib/save-cwd.c: Don't include "error.h".
79826         (save_cwd): Don't call error.  Ensure that errno is valid
79827         when returning nonzero.
79828
79829         * lib/save-cwd.h (restore_cwd): Update prototype.
79830         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79831         Simplify.  Don't call error upon failure.  Let callers do that.
79832         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79833         when auditing is enabled.  But don't bother updating the #if.
79834
79835 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79836
79837         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79838         it breaks C++ compilation.
79839         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79840
79841 2003-07-10  Simon Josefsson  <jas@extundo.com>
79842
79843         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79844
79845 2003-07-10  Jim Meyering  <jim@meyering.net>
79846
79847         * m4/clock_time.m4: Remove trailing blank.
79848         * m4/intmax_t.m4: Likewise.
79849
79850 2003-07-10  Jim Meyering  <jim@meyering.net>
79851
79852         * lib/vasnprintf.c: Remove trailing blanks.
79853         Make cpp indentation consistent.
79854
79855 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79856
79857         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79858         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79859         Switch from LGPL to GPL.
79860
79861 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79862
79863         * config/srclist.txt: Sort sublists.  Add
79864         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79865         that differ from gnulib for one reason or another; we'd like this list
79866         to be smaller but for now let's document what we have.
79867
79868 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79869
79870         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79871         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79872         and sweeter "eval x=$x".
79873         * config/srclist.txt: Get lib/argp* from glibc.
79874
79875 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79876
79877         * lib/mktime.c: Fix some boundary cases and remove need for floating
79878         point.
79879
79880         Issue a compile-time diagnostic if time_t is floating point, or if
79881         two's complement arithmetic is not in effect, or if arithmetic
79882         right shift does not propagate the sign.  These assumptions were
79883         all in the original code but they weren't checked.
79884
79885         (TIME_T_MIDPOINT, verify): New macros.
79886         (__isleap): Remove; it has integer overflow problems.
79887         (leapyear): New function, without those problems.
79888         (ydhms_tm_diff): Remove; splitting into two parts.
79889         (ydhms_diff): New function, containing the arithmetic part of
79890         the old ydhms_tm_diff function.  Issue a compile-time
79891         diagnostic if we are not using C99 integer division.
79892         Avoid casts when possible.
79893         (guess_time_tm): New function, containing the checking part of
79894         the old ydhms_tm_diff function.  Return the new value, rather than
79895         the difference between it and the old.  Accept a new argument T
79896         so that *T specifies the old value.  Check for overflow in the result.
79897
79898         (__mktime_internal): Use a time_t offset, not a long int offset.
79899         This undoes the 2003-06-04 change, which is no longer needed now
79900         that we have better overflow checking.
79901         (localtime_offset): Likewise.
79902
79903         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79904         and long are 64-bit but int is only 32-bit.
79905         (ydhms_diff): Use long int to store year1 and yday1.
79906         Issue a compile-time diagnostic if long int is not wide enough.
79907
79908         (__mktime_internal): Use long int to store adjusted year and yday.
79909         Use plain C rather than preprocessor commands, if that doesn't
79910         affect efficiency.
79911         Check for overflow (and try to repair) after each probe
79912         rather than checking only at the very end.  This avoids some bugs
79913         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79914         does not equal GMT offset at maximum time).
79915         Use integer to check for overflow rather than floating point; this
79916         is more portable to non-IEEE hosts, and is a tad faster.
79917         When we detect that we are oscillating between two values,
79918         don't check whether tm_isdst has the requested value, since
79919         we already know the answer.  When tm_isdst has the wrong value,
79920         use a different heuristic to find the right one, based on the
79921         extreme values actually observed in practice in tz2003a,
79922         rather than the (overly optimistic) "previous 3 calendar quarters".
79923
79924         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79925         "T const" to accommodate glibc style.
79926         (check_result): Use less-confusing report format.  "long" -> "long int.
79927         (main): Likewise.
79928         Don't loop if the iteration overflows time_t.
79929         Allow a negative step in the iteration.
79930
79931 2003-07-06  Karl Berry  <karl@gnu.org>
79932
79933         * config/depcomp: update from automake.
79934         * config/config.sub: update from prep.
79935
79936 2003-07-03  Karl Berry  <karl@gnu.org>
79937
79938         * config/config.guess: update from prep.
79939
79940 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79941
79942         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79943         xreadlink.c now includes it unconditionally.
79944
79945 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79946
79947         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79948         having it depend on HAVE_SYS_TYPES_H.
79949
79950 2003-07-01  Bruno Haible  <bruno@clisp.org>
79951
79952         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79953         <sys/types.h> should be sufficient.
79954         Reported by Paul Eggert.
79955
79956 2003-06-26  Karl Berry  <karl@gnu.org>
79957
79958         * config/depcomp: update from automake.
79959
79960 2003-06-26  Bruno Haible  <bruno@clisp.org>
79961
79962         * modules/human: Depend on module stdbool.
79963
79964 2003-06-25  Bruno Haible  <bruno@clisp.org>
79965
79966         * modules/readlink: New file.
79967         * modules/xreadlink: Depend on it.
79968         * MODULES.html.sh (func_all_modules): Add readlink.
79969
79970 2003-06-25  Bruno Haible  <bruno@clisp.org>
79971
79972         * m4/readlink.m4: New file.
79973
79974 2003-06-25  Bruno Haible  <bruno@clisp.org>
79975
79976         * lib/readlink.c: New file.
79977
79978 2003-06-22  Karl Berry  <karl@gnu.org>
79979
79980         * config/srclist.txt: update mkinstalldirs from automake.
79981         * config/mkinstalldirs: update.
79982
79983 2003-06-22  Bruno Haible  <bruno@clisp.org>
79984
79985         Portability to mingw32.
79986         * m4/ssize_t.m4: New file, from GNU gettext.
79987         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79988         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79989
79990 2003-06-22  Bruno Haible  <bruno@clisp.org>
79991
79992         * modules/safe-read: Add m4/ssize_t.m4.
79993         * modules/xreadlink: Add m4/ssize_t.m4.
79994
79995 2003-06-20  Bruno Haible  <bruno@clisp.org>
79996
79997         Assume C89, so PARAMS isn't needed.
79998         * lib/unicodeio.h (PARAMS): Remove.
79999         * lib/unicodeio.c: Don't use PARAMS.
80000
80001 2003-06-18  Karl Berry  <karl@gnu.org>
80002
80003         * config/config.{guess,sub}: update from prep.
80004
80005 2003-06-18  Jim Meyering  <jim@meyering.net>
80006
80007         Merge changes from coreutils.
80008         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80009         Remove explicit declarations of xmalloc and realloc.
80010         Include xalloc.h.
80011         (read_utmp): Remove anachronistic cast of xmalloc.
80012
80013 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80014
80015         Assume C89, so PARAMS isn't needed.
80016         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80017         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80018         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80019         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80020         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80021         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80022         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80023         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80024         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80025         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80026         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80027         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80028         no longer needed. Anyway, config.h should always be included before any
80029         other file.
80030
80031 2003-06-11  Simon Josefsson  <jas@extundo.com>
80032
80033         * modules/sysexits: New file.
80034         * MODULES.html.sh (func_all_modules): Add sysexits.
80035
80036 2003-06-11  Simon Josefsson  <jas@extundo.com>
80037
80038         * lib/sysexit_.h: New file.
80039
80040 2003-06-11  Derek Price  <derek@ximbiot.com>
80041
80042         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80043         necessary.
80044
80045 2003-06-11  Bruno Haible  <bruno@clisp.org>
80046
80047         * m4/sysexits.m4: New file.
80048
80049 2003-06-10  Simon Josefsson  <jas@extundo.com>
80050
80051         * lib/argp.h: New file, from glibc.
80052         * lib/argp-ba.c: New file, from glibc.
80053         * lib/argp-eexst.c: New file, from glibc.
80054         * lib/argp-fmtstream.c: New file, from glibc.
80055         * lib/argp-fmtstream.h: New file, from glibc.
80056         * lib/argp-fs-xinl.c: New file, from glibc.
80057         * lib/argp-help.c: New file, from glibc.
80058         * lib/argp-namefrob.h: New file, from glibc.
80059         * lib/argp-parse.c: New file, from glibc.
80060         * lib/argp-pv.c: New file, from glibc.
80061         * lib/argp-pvh.c: New file, from glibc.
80062         * lib/argp-xinl.c: New file, from glibc.
80063
80064 2003-06-10  Simon Josefsson  <jas@extundo.com>
80065
80066         * modules/strchrnul: New file.
80067
80068 2003-06-10  Simon Josefsson  <jas@extundo.com>
80069
80070         * modules/argp: New file.
80071
80072 2003-06-10  Simon Josefsson  <jas@extundo.com>
80073
80074         * m4/strchrnul.m4: New file.
80075
80076 2003-06-10  Simon Josefsson  <jas@extundo.com>
80077
80078         * lib/strchrnul.h: New file.
80079         * lib/strchrnul.c: New file.
80080
80081 2003-06-10  Bruno Haible  <bruno@clisp.org>
80082
80083         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80084
80085 2003-06-07  Karl Berry  <karl@gnu.org>
80086
80087         * config/config.{guess,sub}: update from prep.
80088
80089 2003-06-07  Jim Meyering  <jim@meyering.net>
80090
80091         * modules/strtod: Use $(...) notation, not @...@ for
80092         AC_REPLACE'd variables.
80093         * modules/localcharset: Likewise.
80094
80095 2003-06-07  Jim Meyering  <jim@meyering.net>
80096
80097         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80098         in place of my name in the copyright comment.
80099         Remove definition and uses of __P.
80100
80101         From coreutils.
80102         * lib/stat.c: Don't declare xmalloc explicitly.
80103         Instead, include "xalloc.h".
80104         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80105         xrealloc, and xcalloc return values.
80106         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80107         Improve comment.
80108         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80109
80110 2003-06-07  Bruno Haible  <bruno@clisp.org>
80111
80112         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80113         avoid AC_CONFIG_LINKS.
80114         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80115         fnmatch.h, to avoid AC_CONFIG_LINKS.
80116         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80117
80118 2003-06-07  Bruno Haible  <bruno@clisp.org>
80119
80120         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80121         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80122         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80123         directory.
80124         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80125         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80126         directory.
80127
80128 2003-06-06  Jim Meyering  <jim@meyering.net>
80129
80130         Merge from coreutils.
80131         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80132         Consolidate declarations and initializations of *_base* locals.
80133
80134         Merge from coreutils.
80135         This avoids a core dump on systems without GNU putenv,
80136         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80137         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80138         (unsetenv): New static function, from GNU libc.
80139         (rpl_putenv): Use it.
80140
80141         * lib/modechange.c: Remove trailing blanks.
80142
80143         Merge from coreutils.
80144         * lib/fsusage.c: Remove declaration of statfs.
80145         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80146
80147         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80148
80149 2003-06-06  Jim Meyering  <jim@meyering.net>
80150
80151         * lib/stdbool_.h: Renamed from stdbool.h.in.
80152
80153 2003-06-06  Jim Meyering  <jim@meyering.net>
80154             Bruno Haible  <bruno@clisp.org>
80155
80156         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80157         Adjust Makefile.am snippet not to redirect directly to target.
80158         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80159
80160 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80161
80162         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80163         mismatch, look in future quarters as well as past.  This fixes a
80164         bug when processing fall-backwards gaps immediately after a long
80165         period of daylight-saving time.
80166
80167         * lib/mktime.c: Assume freestanding C89 or better.
80168         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80169         (__P): Remove; not used.
80170         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80171         (mktime, not_equal_tm, print_tm, check_result,
80172         main): Use prototypes.  Use const * where appropriate.
80173         (main): Fix typo in testing code that uncovered by above changes.
80174         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80175
80176 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80177
80178         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80179         locale.h, localeconv.  This merges changes from coreutils.
80180
80181         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80182         It can be removed after the next Autoconf is released.
80183         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80184         needed.
80185
80186 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80187
80188         * lib/mktime.c: Fix Debian bug 177940
80189         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80190         (localtime_offset): Now long int, not time_t, because we want it
80191         to be guaranteed to be signed.  All uses changed.
80192         (__mktime_internal): If overflow would occur when adding offset,
80193         don't add it.
80194
80195         Merge 'human' changes from coreutils.  Rewrite to support
80196         locale-specific notations like thousands separators.
80197         * lib/human.c: Simplify authorship notice.
80198         Include human.h immediately after config.h.
80199         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80200         <limits.h>: Do not include, since human.h does.
80201         (SIZE_MAX, UINTMAX_MAX): New macros.
80202         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80203         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80204         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80205         (power_letter): Renamed from suffixes.
80206         (generate_suffix_backwards): Remove.
80207         (adjust_value): Now takes int style (because of human.h changes)
80208         and long double value (for greater precision on some platforms).
80209         (group_number): New function.
80210         (human_readable): Use it.  Use integer options, not enum.
80211         Put the options before the sizes in the arg list.
80212         Support all the new options.
80213         The old human_readable function has been removed;
80214         use inttostr.h instead.
80215         (human_readable, default_block_size, humblock):
80216         Use uintmax_t, not int, for block sizes.
80217         (human_readable_inexact, block_size_types): Remove.
80218         (block_size_opts): New constant.
80219         (human_options): Renamed from human_block_size, with new signature
80220         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80221         * lib/human.h: Add copyright and authorship notice.
80222         Include <limits.h> and <stdbool.h> unconditionally.
80223         (PARAMS): Remove.  All uses removed.
80224         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80225         (enum human_inexact_style): Remove tag; now a nameless enum.
80226         (human_floor, human_ceiling, human_round_to_even): Now have
80227         values 2, 0, 1 rather than -1, 1, 0.
80228         (human_group_digits, human_suppress_point_zero, human_autoscale,
80229         human_base_1024, human_SI, human_B): New constants.
80230         (human_readable_inexact, human_block_size): Remove.
80231         (human_readable): Size args are now uintmax_t, not int.
80232         (human_options): New decl.
80233
80234         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80235         unnecessary now that we assume C89 or better.  This change
80236         imported from coreutils.
80237
80238         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80239         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80240         in the 2003-05-30 sync from glibc.
80241
80242         .h files should stand alone, but we shouldn't include <sys/types.h>
80243         if we can get away with just <stddef.h>.
80244
80245         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80246         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80247         rather than <sys/types.h>, as we merely need size_t.
80248         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80249         to get size_t.
80250         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80251         Include <stdio.h>, to get FILE.
80252         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80253         memcasecmp.h has included <stddef.h> and all we need is size_t.
80254         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80255         our interface, instead of including <sys/types.h>
80256
80257 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80258
80259         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80260         now, as glibc mktime is buggy on non-glibc systems.
80261
80262 2003-06-03  Karl Berry  <karl@gnu.org>
80263
80264         * config/config.sub: update from prep.
80265
80266 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80267
80268         [from coreutils]
80269         Fix some minor time-related bugs with POSIX time arguments.
80270         Some valid time stamps were being rejected (notably -1, and
80271         time stamps before 1900 on 64-bit hosts).  And some invalid
80272         time stamps were being accepted, e.g. September 31.
80273
80274         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80275         that we can return (time_t) -1 successfully.
80276         * lib/posixtm.c: Likewise.
80277         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80278         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80279         (t): Remove static var.
80280         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80281         of static var.  All uses changed.
80282         (year): Do not reject years before 1900; they can occur with
80283         64-bit time_t.
80284         (posix_time_parse): Do not check for out-of-range components;
80285         that is now the caller's responsibility, since our checks were
80286         only approximations.
80287         (posixtime): Use mktime to check for out-of-range components,
80288         since it knows them exactly.
80289         If mktime returns (time_t) -1, check whether an error actually occurred
80290         by invoking localtime on -1.
80291         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80292         posixtime failures better.
80293         Improve the test data (in comments only).
80294
80295 2003-06-02  Karl Berry  <karl@gnu.org>
80296
80297         * config/mkinstalldirs (version): new variable.
80298         (--version): new option.
80299         (usage): improve message.
80300
80301 2003-05-30  Karl Berry  <karl@gnu.org>
80302
80303         * lib/mktime.c: update from libc.
80304
80305 2003-05-30  Bruno Haible  <bruno@clisp.org>
80306
80307         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80308         * config/config.rpath: Upgrade to gettext-0.12.1.
80309
80310 2003-05-30  Bruno Haible  <bruno@clisp.org>
80311
80312         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80313         * m4/nls.m4: New file, from gettext-0.12.1.
80314         * m4/po.m4: New file, from gettext-0.12.1.
80315         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80316
80317 2003-05-30  Bruno Haible  <bruno@clisp.org>
80318
80319         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80320         * lib/localcharset.h: Likewise.
80321         * lib/localcharset.c: Likewise.
80322
80323 2003-05-29  Karl Berry  <karl@gnu.org>
80324
80325         * config/config.rpath: update from gettext.
80326
80327 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80328
80329         Assume the headers required for C89 freestanding compilers.
80330         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80331         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80332         * m4/human.m4 (gl_HUMAN): Likewise.
80333         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80334         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80335         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80336         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80338         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80339
80340 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80341
80342         Assume the headers required for C89 freestanding compilers.
80343         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80344         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80345         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80346         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80347         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80348         define, since <limits.h> is guaranteed to do that.
80349         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80350         * lib/exclude.c: Include <stdbool.h> unconditionally.
80351         * lib/tempname.c: Include <stddef.h> unconditionally.
80352         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80353         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80354         <stddef.h> does that.
80355         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80356         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80357         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80358         needed.
80359         * lib/xstrtol.c: Likewise.
80360         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80361         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80362
80363         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80364         warnings on some platforms.
80365
80366         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80367         arbitrarily.
80368
80369 2003-05-26  Jim Meyering  <jim@meyering.net>
80370
80371         Merge in a change from coreutils:
80372         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80373         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80374         that condition, rather than `-1' which is slightly misleading.
80375         Change the name of the cache variable to have the gl_ prefix.
80376         Prompted by a patch from Richard Dawe for DJGPP.
80377
80378 2003-05-24  Karl Berry  <karl@gnu.org>
80379
80380         * config/config.guess: update from prep.
80381
80382 2003-05-22  Karl Berry  <karl@gnu.org>
80383
80384         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80385
80386 2003-05-20  Karl Berry  <karl@gnu.org>
80387
80388         * config/config.guess: update from prep.
80389
80390 2003-05-18  Karl Berry  <karl@gnu.org>
80391
80392         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80393         might actually be set by the user.
80394
80395         * config/depcomp, install-sh, mdate-sh: update from automake.
80396
80397 2003-05-17  Bruno Haible  <bruno@clisp.org>
80398
80399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80400         invalid expansion for AC_EGREP_CPP.
80401         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80402         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80403         Suggested by Akim Demaille <akim@epita.fr> in
80404         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80405
80406 2003-05-12  Jim Meyering  <jim@meyering.net>
80407
80408         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80409         the space-padded-by-default conversion specifiers, %e, %k, %l.
80410
80411 2003-05-12  Bruno Haible  <bruno@clisp.org>
80412
80413         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80414         the string is longer than 4 KB.
80415
80416 2003-05-11  Karl Berry  <karl@gnu.org>
80417
80418         * config/config.{guess,sub}: update from prep.
80419
80420 2003-05-09  Bruno Haible  <bruno@clisp.org>
80421
80422         * modules/error: Add m4/strerror_r.m4 to file list.
80423
80424 2003-05-03  Bruno Haible  <bruno@clisp.org>
80425
80426         Upgrade to Unicode-4.0.
80427         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80428         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80429         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80430         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80431         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80432         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80433         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80434         Change width of U+E0100..U+E01EF from 1 to 0.
80435
80436 2003-04-25  Jim Meyering  <jim@meyering.net>
80437
80438         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80439         of type size_t, not int.
80440
80441 2003-04-25  Bruno Haible  <bruno@clisp.org>
80442
80443         * lib/copy-file.c: Include <stddef.h>, for size_t.
80444
80445 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80446
80447         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80448         code which expansion is under static control.  Patch imported from
80449         Akim Demaille's patch to Bison; see
80450         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80451
80452 2003-04-14  Bruno Haible  <bruno@clisp.org>
80453
80454         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80455
80456 2003-04-11  Jim Meyering  <jim@meyering.net>
80457
80458         Merge changes from Coreutils.
80459
80460         2003-03-22  Jim Meyering  <jim@meyering.net>
80461
80462         * lib/strftime.c (widen): Cast alloca return value to proper type.
80463
80464         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80465
80466         From GNU libc.
80467         * lib/strftime.c (my_strftime): Handle very large width
80468         specifications for numeric values correctly.  Improve checks for
80469         overflow.
80470
80471         2003-01-19  Jim Meyering  <jim@meyering.net>
80472
80473         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80474         definitions.
80475         (nl_get_alt_digit) [! defined my_strftime]: Define.
80476         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80477         _nl_get_alt_digit and _nl_get_walt_digit.
80478
80479         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80480         libc. These changes have no effect outside of _LIBC.
80481
80482 2003-04-10  Bruno Haible  <bruno@clisp.org>
80483
80484         * modules/findprog: New file.
80485         * MODULES.html.sh (func_all_modules): Add it.
80486
80487 2003-04-10  Bruno Haible  <bruno@clisp.org>
80488
80489         * m4/findprog.m4: New file.
80490         * m4/eaccess.m4: New file.
80491
80492 2003-04-10  Bruno Haible  <bruno@clisp.org>
80493
80494         * lib/findprog.h: New file, from GNU gettext.
80495         * lib/findprog.c: New file, from GNU gettext.
80496
80497 2003-04-05  Jim Meyering  <jim@meyering.net>
80498
80499         Merge changes from Coreutils.
80500
80501         * lib/exclude.h (PARAMS): Remove definition and uses.
80502         * lib/exclude.c: Remove uses of `PARAMS'.
80503
80504         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80505         Add test-cases for DOS filenames. Declare program_name.
80506         (main): Set up program_name.  Patch by Rich Dawe.
80507
80508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80509         error from mntctl.
80510         Use mntctl's return value to drive the entry-processing loop, since
80511         we can't rely on the value of the vmt_length member in the last
80512         entry.  On some systems doing so could result in exhausting
80513         virtual memory.  Based in part on a patch from Mike Jetzer.
80514
80515 2003-04-04  Bruno Haible  <bruno@clisp.org>
80516
80517         * modules/linebreak: New file.
80518         * MODULES.html.sh (func_all_modules): Add it.
80519
80520 2003-04-04  Bruno Haible  <bruno@clisp.org>
80521
80522         * m4/linebreak.m4: New file.
80523
80524 2003-04-04  Bruno Haible  <bruno@clisp.org>
80525
80526         * lib/linebreak.h: New file, from GNU gettext.
80527         * lib/linebreak.c: New file, from GNU gettext with slight
80528         modifications.
80529         * lib/lbrkprop.h: New file, from GNU gettext.
80530
80531 2003-04-03  Bruno Haible  <bruno@clisp.org>
80532
80533         * modules/utf8-ucs4: New file.
80534         * modules/utf16-ucs4: New file.
80535         * modules/ucs4-utf8: New file.
80536         * modules/ucs4-utf16: New file.
80537         * MODULES.html.sh (func_all_modules): Add them.
80538
80539 2003-04-03  Bruno Haible  <bruno@clisp.org>
80540
80541         * m4/utf-ucs4.m4: New file.
80542         * m4/ucs4-utf.m4: New file.
80543
80544 2003-04-03  Bruno Haible  <bruno@clisp.org>
80545
80546         * lib/utf8-ucs4.h: New file, from GNU gettext.
80547         * lib/utf16-ucs4.h: New file, from GNU gettext.
80548         * lib/ucs4-utf8.h: New file, from GNU gettext.
80549         * lib/ucs4-utf16.h: New file, from GNU gettext.
80550
80551 2003-04-02  Bruno Haible  <bruno@clisp.org>
80552
80553         * modules/binary-io: New file.
80554         * MODULES.html.sh (func_all_modules): Add it.
80555
80556 2003-04-02  Bruno Haible  <bruno@clisp.org>
80557
80558         * lib/binary-io.h: New file, from GNU gettext.
80559
80560 2003-04-01  Bruno Haible  <bruno@clisp.org>
80561
80562         * modules/pathname: New file.
80563         * MODULES.html.sh (func_all_modules): Add it.
80564
80565 2003-04-01  Bruno Haible  <bruno@clisp.org>
80566
80567         * lib/pathname.h: New file, from GNU gettext.
80568         * lib/concatpath.c: New file, from GNU gettext.
80569
80570 2003-03-30  Bruno Haible  <bruno@clisp.org>
80571
80572         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80573
80574 2003-03-30  Bruno Haible  <bruno@clisp.org>
80575
80576         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80577         function chown() doesn't exist.
80578
80579 2003-03-28  Bruno Haible  <bruno@clisp.org>
80580
80581         * modules/copy-file: New file.
80582         * MODULES.html.sh (func_all_modules): Add it.
80583
80584 2003-03-28  Bruno Haible  <bruno@clisp.org>
80585
80586         * m4/copy-file.m4: New file.
80587
80588 2003-03-28  Bruno Haible  <bruno@clisp.org>
80589
80590         * lib/copy-file.h: New file, from GNU gettext.
80591         * lib/copy-file.c: New file, from GNU gettext.
80592
80593 2003-03-18  Jim Meyering  <jim@meyering.net>
80594
80595         * lib/quote.c (quote_n): Fix typo in comment.
80596
80597 2003-03-18  Bruno Haible  <bruno@clisp.org>
80598
80599         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80600         checking.
80601         * m4/onceonly_2_57.m4: Likewise.
80602
80603 2003-03-17  Bruno Haible  <bruno@clisp.org>
80604
80605         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80606         (m4_quote): Remove macro.
80607         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80608
80609 2003-03-14  Jim Meyering  <jim@meyering.net>
80610
80611         Merge changes from Coreutils.
80612         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80613         to be const, in order to avoid warnings.
80614         (obstack_room): Likewise.
80615         (obstack_empty_p): Likewise.
80616
80617 2003-03-14  Bruno Haible  <bruno@clisp.org>
80618
80619         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80620         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80621
80622 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80623
80624         Merge changes from Bison.
80625         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80626         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80627         when compiling Bison 1.875's `bitset bset = obstack_alloc
80628         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80629         * lib/hash.c: Include <stdbool.h> unconditionally.
80630
80631 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80632
80633         * m4/onceonly.m4 (m4_quote): New macro.
80634         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80635         Quote AC_FOREACH variable-expansions properly.
80636
80637 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80638
80639         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80640
80641 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80642
80643         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80644         Reported by Bruce Becker; see:
80645         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80646
80647 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80648             Bruno Haible  <bruno@clisp.org>
80649
80650         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80651         Reported by John Hughes, see
80652         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80653
80654 2003-02-20  Bruno Haible  <bruno@clisp.org>
80655
80656         * MODULES.html.sh (func_all_modules): Add poll.
80657
80658 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80659
80660         * modules/poll: New file.
80661
80662 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80663
80664         * lib/poll_.h: New file.
80665         * lib/poll.c: New file.
80666
80667 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80668
80669         * m4/poll.m4: New file.
80670
80671 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80672
80673         * modules/mathl: New file.
80674
80675 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80676
80677         * lib/mathl.h: New file.
80678         * lib/acosl.c: New file.
80679         * lib/asinl.c: New file.
80680         * lib/atanl.c: New file.
80681         * lib/ceill.c: New file.
80682         * lib/cosl.c: New file.
80683         * lib/expl.c: New file.
80684         * lib/floorl.c: New file.
80685         * lib/frexpl.c: New file.
80686         * lib/ldexpl.c: New file.
80687         * lib/logl.c: New file.
80688         * lib/sincosl.c: New file.
80689         * lib/sinl.c: New file.
80690         * lib/sqrtl.c: New file.
80691         * lib/tanl.c: New file.
80692         * lib/trigl.c: New file.
80693         * lib/trigl.h: New file.
80694
80695 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80696
80697         * m4/mathl.m4: New file.
80698
80699 2003-02-18  Bruno Haible  <bruno@clisp.org>
80700
80701         * MODULES.html.sh (func_all_modules): Add mathl.
80702
80703 2003-02-17  Bruno Haible  <bruno@clisp.org>
80704
80705         * modules/mkdtemp: New module.
80706         * MODULES.html.sh (func_all_modules): Add it.
80707
80708 2003-02-17  Bruno Haible  <bruno@clisp.org>
80709
80710         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80711
80712 2003-02-17  Bruno Haible  <bruno@clisp.org>
80713
80714         * lib/mkdtemp.h: New file, from GNU gettext.
80715         * lib/mkdtemp.c: New file, from GNU gettext.
80716
80717 2003-02-02  Jim Meyering  <jim@meyering.net>
80718
80719         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80720         e.g. glibc-2.2.93.
80721
80722 2003-01-31  Bruno Haible  <bruno@clisp.org>
80723
80724         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80725         'rpl_rename'.
80726         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80727         'rpl_strnlen'.
80728         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80729         'rpl_strtod'.
80730         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80731         'rpl_utime'.
80732
80733 2003-01-31  Bruno Haible  <bruno@clisp.org>
80734
80735         * lib/rename.c: #undef rename before defining rpl_rename.
80736         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80737
80738 2003-01-30  Bruno Haible  <bruno@clisp.org>
80739
80740         * modules/vasnprintf, modules/vasprintf: New modules.
80741         * MODULES.html.sh (func_all_modules): Add them.
80742
80743 2003-01-30  Bruno Haible  <bruno@clisp.org>
80744
80745         * m4/signed.m4: New file, from GNU gettext.
80746         * m4/longdouble.m4: New file, from GNU gettext.
80747         * m4/wchar_t.m4: New file, from GNU gettext.
80748         * m4/wint_t.m4: New file, from GNU gettext.
80749         * m4/vasnprintf.m4: New file.
80750         * m4/vasprintf.m4: New file.
80751
80752 2003-01-30  Bruno Haible  <bruno@clisp.org>
80753
80754         * lib/printf-args.h: New file, from GNU gettext.
80755         * lib/printf-args.c: New file, from GNU gettext.
80756         * lib/printf-parse.h: New file, from GNU gettext.
80757         * lib/printf-parse.c: New file, from GNU gettext.
80758         * lib/vasnprintf.h: New file, from GNU gettext.
80759         * lib/vasnprintf.c: New file, from GNU gettext.
80760         * lib/asnprintf.c: New file, from GNU gettext.
80761         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80762         * lib/vasprintf.c: New file, from GNU gettext.
80763         * lib/asprintf.c: New file, from GNU gettext.
80764
80765 2003-01-29  Bruno Haible  <bruno@clisp.org>
80766
80767         * modules/stpncpy: New module.
80768         * MODULES.html.sh (func_all_modules): Add it.
80769
80770 2003-01-29  Bruno Haible  <bruno@clisp.org>
80771
80772         * m4/stpncpy.m4: New file.
80773
80774 2003-01-29  Bruno Haible  <bruno@clisp.org>
80775
80776         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80777         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80778
80779 2003-01-28  Bruno Haible  <bruno@clisp.org>
80780
80781         * modules/c-ctype: New module.
80782         * MODULES.html.sh (func_all_modules): Add it.
80783
80784 2003-01-28  Bruno Haible  <bruno@clisp.org>
80785
80786         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80787         Paul Eggert.
80788         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80789         Paul Eggert.
80790
80791 2003-01-27  Bruno Haible  <bruno@clisp.org>
80792
80793         * modules/xsetenv: New module.
80794         * MODULES.html.sh (func_all_modules): Add it.
80795
80796 2003-01-27  Bruno Haible  <bruno@clisp.org>
80797
80798         * lib/xsetenv.h: New file, from GNU gettext.
80799         * lib/xsetenv.c: New file, from GNU gettext.
80800
80801 2003-01-23  Jim Meyering  <jim@meyering.net>
80802
80803         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80804         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80805
80806 2003-01-23  Bruno Haible  <bruno@clisp.org>
80807
80808         * modules/minmax: New module.
80809         * MODULES.html.sh (func_all_modules): Add it.
80810
80811 2003-01-23  Bruno Haible  <bruno@clisp.org>
80812
80813         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80814         Eggert.
80815
80816 2003-01-22  Bruno Haible  <bruno@clisp.org>
80817
80818         * modules/exit: New module.
80819         * MODULES.html.sh (func_all_modules): Add it.
80820
80821 2003-01-22  Bruno Haible  <bruno@clisp.org>
80822
80823         * lib/exit.h: New file, from GNU gettext.
80824
80825 2003-01-19  Bruno Haible  <bruno@clisp.org>
80826
80827         * gnulib-tool: Recognize option --extract-maintainer.
80828         (func_get_maintainer): New function.
80829         * modules/*: Add Maintainer entry.
80830
80831 2003-01-16  Jim Meyering  <jim@meyering.net>
80832
80833         * m4/regex.m4: The `regex' struct is both input and output.
80834         Initialize it before each use.  Patch by Tim Waugh.
80835
80836 2003-01-16  Bruno Haible  <bruno@clisp.org>
80837
80838         * MODULES.html.sh: Add a table of contents. Add the module name as
80839         leftmost column. Add hyperlinks.
80840
80841 2003-01-15  Bruno Haible  <bruno@clisp.org>
80842
80843         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80844
80845 2003-01-15  Bruno Haible  <bruno@clisp.org>
80846
80847         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80848         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80849         suffix.
80850
80851 2003-01-15  Bruno Haible  <bruno@clisp.org>
80852
80853         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80854
80855 2003-01-15  Bruno Haible  <bruno@clisp.org>
80856
80857         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80858         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80859
80860 2003-01-14  Jim Meyering  <jim@meyering.net>
80861
80862         * lib/same.c (same_name): Tweak a comment.
80863
80864 2003-01-14  Bruno Haible  <bruno@clisp.org>
80865
80866         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80867         when a string comparison is sufficient.
80868
80869 2003-01-14  Bruno Haible  <bruno@clisp.org>
80870
80871         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80872         'unsigned int'.
80873
80874 2003-01-14  Bruno Haible  <bruno@clisp.org>
80875
80876         * lib/hash-pjw.c: Add comment about low quality of this function.
80877
80878 2003-01-13  Bruno Haible  <bruno@clisp.org>
80879
80880         * modules/stpcpy: Distribute lib/stpcpy.h.
80881         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80882
80883 2003-01-13  Bruno Haible  <bruno@clisp.org>
80884
80885         * modules/*: Add a description.
80886         * modules/strpbrk: Fix Makefile.am snippet.
80887         * modules/strtoimax: Fix dependencies.
80888         * modules/strtoumax: Likewise.
80889
80890 2003-01-13  Bruno Haible  <bruno@clisp.org>
80891
80892         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80893         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80894         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80895
80896 2003-01-13  Bruno Haible  <bruno@clisp.org>
80897
80898         * gnulib-tool (func_create_testdir): Store config/* files in the main
80899         directory.
80900         * config.rpath: Move to ...
80901         * config/config.rpath: ... here.
80902         * modules/gettext: Contains config/config.rpath, not config.rpath.
80903         * modules/iconv: Likewise.
80904
80905 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80906
80907         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80908         to avoid collisions with libcurses and libreadline.
80909
80910         * m4/getstr.m4: Remove.
80911         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80912
80913 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80914
80915         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80916         to avoid collisions with libcurses and libreadline.
80917
80918         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80919         * lib/getstr.h, getstr.c: Remove.
80920         * lib/getline.c: Include "getline.h", to check interface.
80921         Move body of old getstr.c here: this defines MIN_CHUNK and
80922         declares getdelim2, which is renamed from getstr.
80923         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80924
80925         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80926         All uses changed.
80927         * lib/linebuffer.h: Likewise.
80928         (readline): Remove backward-compatibility macro.
80929
80930 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80931
80932         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80933         to avoid collisions with libcurses and libreadline.
80934         * getstr: Remove.
80935         * MODULES.html.sh: Remove getstr.
80936         * modules/getline: Depend on unlocked-io, not getstr.
80937
80938 2003-01-12  Jim Meyering  <jim@meyering.net>
80939
80940         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80941
80942 2003-01-10  Bruno Haible  <bruno@clisp.org>
80943
80944         * modules/alloca: Change Makefile.am requirements. Simplify Include
80945         requirements. Add lib/alloca_.h to file list.
80946
80947 2003-01-10  Bruno Haible  <bruno@clisp.org>
80948
80949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80950
80951 2003-01-10  Bruno Haible  <bruno@clisp.org>
80952
80953         * lib/alloca_.h: New file.
80954         * lib/getdate.y: Unconditionally include alloca.h.
80955         * lib/makepath.c: Likewise.
80956         * lib/setenv.c: Likewise.
80957         * lib/userspec.c: Likewise.
80958
80959 2003-01-09  Karl Berry  <karl@gnu.org>
80960
80961         * MODULES.html.sh: include `dirname $0` in PATH, to find
80962         gnulib-tool.
80963
80964 2003-01-09  Bruno Haible  <bruno@clisp.org>
80965
80966         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80967         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80968
80969 2003-01-09  Bruno Haible  <bruno@clisp.org>
80970
80971         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80972
80973 2003-01-09  Bruno Haible  <bruno@clisp.org>
80974
80975         * lib/stdbool.h.in: New file.
80976
80977 2003-01-09  Bruno Haible  <bruno@clisp.org>
80978
80979         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80980         * MODULES.html.sh: Likewise.
80981
80982 2003-01-08  Jim Meyering  <jim@meyering.net>
80983
80984         * lib/full-write.c: Undefine and define-away `const' after inclusion
80985         of errno.h, not before.  Suggestion from Bruno Haible.
80986
80987 2003-01-08  Bruno Haible  <bruno@clisp.org>
80988
80989         * modules/full-read: Depend on full-write.
80990
80991 2003-01-08  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/safe-read.c: Include specification header first, to ensure its
80994         selfcontainedness.
80995         * lib/full-write.c: Likewise.
80996
80997 2003-01-07  Jim Meyering  <jim@meyering.net>
80998
80999         * lib/full-write.c: Rework so that it may serve to define full_read,
81000         too.
81001         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81002
81003 2003-01-07  Bruno Haible  <bruno@clisp.org>
81004
81005         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81006         <inttypes.h>.
81007         * lib/xstrtol.h: Likewise.
81008         * lib/xstrtoimax.c: Likewise.
81009         * lib/xstrtoumax.c: Likewise.
81010         * lib/human.h: Likewise.
81011
81012         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81013         on systems that have <inttypes.h> but not <stdint.h>.
81014
81015 2003-01-07  Bruno Haible  <bruno@clisp.org>
81016
81017         * MODULES.html.sh: Add copyright notice.
81018         (missed_files): Omit CVS directory entries.
81019         (func_module): Make it work with sed-3.02.
81020         * MODULES.txt: Remove file.
81021
81022 2003-01-06  Jim Meyering  <jim@meyering.net>
81023
81024         * lib/version-etc.c: Update year in translatable copyright string.
81025
81026 2003-01-03  Karl Berry  <karl@gnu.org>
81027
81028         * config/config.{guess,sub}: update from prep.
81029
81030 2003-01-02  Karl Berry  <karl@gnu.org>
81031
81032         * doc/COPYING.DOC: belatedly updated to 1.2.
81033
81034 2003-01-01  Karl Berry  <karl@gnu.org>
81035
81036         * gnulib-tool (func_verify_module): report module name $module in
81037         error message, not $1.
81038         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81039         be created, only if it doesn't exist.
81040         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81041
81042 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81043
81044         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81045
81046 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81047
81048         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81049         memcmp if strcoll doesn't work.
81050
81051 2002-12-31  Bruno Haible  <bruno@clisp.org>
81052
81053         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81054         nonempty.
81055
81056 2002-12-31  Bruno Haible  <bruno@clisp.org>
81057
81058         * lib/memcoll.c (STRCOLL): New macro.
81059         (memcoll): Use it.
81060
81061 2002-12-31  Bruno Haible  <bruno@clisp.org>
81062
81063         * lib/localcharset.h: New file.
81064         * lib/localcharset.c: Include it.
81065         * lib/unicodeio.c: Likewise.
81066
81067 2002-12-31  Bruno Haible  <bruno@clisp.org>
81068
81069         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81070         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81071
81072 2002-12-31  Bruno Haible  <bruno@clisp.org>
81073
81074         * lib/getline.h: Include <stddef.h>, for size_t.
81075
81076         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81077         * lib/unicodeio.c: Don't include <stddef.h>.
81078
81079 2002-12-31  Bruno Haible  <bruno@clisp.org>
81080
81081         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81082         HAVE_TM_ZONE.
81083
81084 2002-12-24  Karl Berry  <karl@gnu.org>
81085
81086         * config/config.guess: update from prep.
81087
81088 2002-12-24  Bruno Haible  <bruno@clisp.org>
81089
81090         General infrasructure.
81091         * m4/README: Rewritten.
81092         * m4/onceonly.m4: New file.
81093         * m4/onceonly_2_57.m4: New file.
81094
81095         Module atexit.
81096         * m4/atexit.m4: New file.
81097
81098         Module strtod.
81099         * m4/strtod.m4: New file.
81100
81101         Module strtol.
81102         * m4/strtol.m4: New file.
81103
81104         Module strtoul.
81105         * m4/strtoul.m4: New file.
81106
81107         Module memchr.
81108         * m4/memchr.m4: New file.
81109
81110         Module memcmp.
81111         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81112         (jm_FUNC_MEMCMP): Invoke it.
81113
81114         Module memcpy.
81115         * m4/memcpy.m4: New file.
81116
81117         Module memmove.
81118         * m4/memmove.m4: New file.
81119
81120         Module memset.
81121         * m4/memset.m4: New file.
81122
81123         Module strcspn.
81124         * m4/strcspn.m4: New file.
81125
81126         Module strpbrk.
81127         * m4/strpbrk.m4: New file.
81128
81129         Module strstr.
81130         * m4/strstr.m4: New file.
81131
81132         Module strerror.
81133         * m4/strerror.m4: New file.
81134
81135         Module mktime.
81136         * m4/mktime.m4: Renamed from jm-mktime.m4.
81137         (gl_PREREQ_MKTIME): New macro.
81138         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81139
81140         Module malloc.
81141         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81142         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81143         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81144
81145         Module realloc.
81146         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81147         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81148         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81149
81150         Module strftime.
81151         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81152         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81153         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81154         gl_TM_GMTOFF.
81155         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81156
81157         Module xalloc.
81158         * m4/xalloc.m4: New file.
81159
81160         Module alloca.
81161         * m4/alloca.m4: New file.
81162
81163         Module putenv.
81164         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81165         (jm_FUNC_PUTENV): Invoke it.
81166
81167         Module setenv.
81168         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81169         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81170         when invoked twice.
81171         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81172         gt_FUNC_SETENV.
81173
81174         Module memrchr.
81175         * m4/memrchr.m4: New file.
81176
81177         Module stpcpy.
81178         * m4/stpcpy.m4: New file.
81179
81180         Module strcase.
81181         * m4/strcase.m4: New file.
81182
81183         Module strdup.
81184         * m4/strdup.m4: New file.
81185
81186         Module strnlen.
81187         * m4/strnlen.m4: New file.
81188
81189         Module strndup.
81190         * m4/strndup.m4: New file.
81191
81192         Module xstrtod.
81193         * m4/xstrtod.m4: New file.
81194
81195         Module xstrtol.
81196         * m4/xstrtol.m4: New file.
81197
81198         Module getdate.
81199         * m4/getdate.m4: New file.
81200
81201         Module unlocked-io.
81202         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81203         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81204         * m4/jm-glibc-io.m4n: Remove file.
81205
81206         Module long-options.
81207         * m4/long-options.m4: New file.
81208
81209         Module md5.
81210         * m4/md5.m4: New file.
81211
81212         Module sha.
81213         * m4/sha.m4: New file.
81214
81215         Module getstr.
81216         * m4/getstr.m4: New file.
81217
81218         Module getline.
81219         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81220         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81221         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81222         simply getline. Infoke gl_PREREQ_GETLINE.
81223
81224         Module obstack.
81225         * m4/obstack.m4: New file.
81226
81227         Module hash.
81228         * m4/hash.m4: New file.
81229
81230         Module readtokens.
81231         * m4/readtokens.m4: New file.
81232
81233         Module strverscmp.
81234         * m4/strverscmp.m4: New file.
81235
81236         Module stdbool.
81237         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81238         OSF/1.
81239
81240         Module strtoll.
81241         * m4/strtoll.m4: New file.
81242
81243         Module strtoull.
81244         * m4/strtoull.m4: New file.
81245
81246         Module strtoimax.
81247         * m4/strtoimax.m4: New file.
81248
81249         Module strtoumax.
81250         * m4/strtoumax.m4: New file.
81251
81252         Module xstrtoimax.
81253         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81254         jm_AC_PREREQ_XSTRTOIMAX.
81255         Moved the strtol prerequisites to strtol.m4.
81256         Moved the strtoll prerequisites to strtoll.m4.
81257         Moved the strtoimax prerequisites to strtoimax.m4.
81258
81259         Module xstrtoumax.
81260         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81261         jm_AC_PREREQ_XSTRTOUMAX.
81262         Moved the strtoul prerequisites to strtoul.m4.
81263         Moved the strtoull prerequisites to strtoull.m4.
81264         Moved the strtoumax prerequisites to strtoumax.m4.
81265
81266         Module chown.
81267         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81268         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81269
81270         Module dup2.
81271         * m4/dup2.m4: New file.
81272
81273         Module ftruncate.
81274         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81275         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81276
81277         Module getgroups.
81278         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81279         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81280
81281         Module gettimeofday.
81282         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81283         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81284         gl_PREREQ_GETTIMEOFDAY.
81285
81286         Module mkdir.
81287         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81288         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81289
81290         Module mkstemp.
81291         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81292         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81293         jm_AC_TYPE_UINTMAX_T.
81294         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81295
81296         Module stat.
81297         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81298         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81299
81300         Module lstat.
81301         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81302         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81303
81304         Module timespec.
81305         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81306         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81307         * m4/st_mtim.m4: Indentation.
81308
81309         Module nanosleep.
81310         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81311         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81312         gl_PREREQ_NANOSLEEP.
81313
81314         Module regex.
81315         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81316         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81317         (gl_REGEX): New macro.
81318
81319         Module rename.
81320         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81321         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81322
81323         Module rmdir.
81324         * m4/rmdir.m4: New file.
81325
81326         Module utime.
81327         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81328         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81329         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81330
81331         Module dirname.
81332         * m4/dirname.m4: New file.
81333
81334         Module getopt.
81335         * m4/getopt.m4: New file.
81336
81337         Module unistd-safer.
81338         * m4/unistd-safer.m4: New file.
81339
81340         Module fnmatch.
81341         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81342         declaration.
81343         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81344         (gl_FUNC_FNMATCH_POSIX): New macro.
81345         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81346         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81347         simply fnmatch.
81348
81349         Module exclude.
81350         * m4/exclude.m4: New file.
81351
81352         Module human.
81353         * m4/human.m4: New file.
81354
81355         Module acl.
81356         * m4/acl.m4: Nop.
81357
81358         Module backupfile.
81359         * m4/backupfile.m4: New file.
81360         * m4/d-ino.m4: Indentation.
81361
81362         Module fsusage.
81363         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81364         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81365         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81366
81367         Module dirfd.
81368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81369         requirements.
81370
81371         Module euidaccess.
81372         * m4/euidaccess.m4: New file.
81373
81374         Module file-type.
81375         * m4/file-type.m4: New file.
81376
81377         Module fileblocks.
81378         * m4/fileblocks.m4: New file.
81379
81380         Module filemode.
81381         * m4/filemode.m4: New file.
81382
81383         Module isdir.
81384         * m4/isdir.m4: New file.
81385
81386         Module lchown.
81387         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81388         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81389
81390         Module makepath.
81391         * m4/makepath.m4: New file.
81392
81393         Module modechange.
81394         * m4/modechange.m4: New file.
81395
81396         Module mountlist.
81397         * m4/mountlist.m4: New file.
81398         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81399         Indentation.
81400
81401         Module path-concat.
81402         * m4/path-concat.m4: New file.
81403
81404         Module pathmax.
81405         * m4/pathmax.m4: New file.
81406
81407         Module same.
81408         * m4/same.m4: New file.
81409
81410         Module save-cwd.
81411         * m4/save-cwd.m4: New file.
81412
81413         Module savedir.
81414         * m4/savedir.m4: New file.
81415
81416         Module xgetcwd.
81417         * m4/xgetcwd.m4: New file.
81418         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81419
81420         Module xreadlink.
81421         * m4/xreadlink.m4: New file.
81422
81423         Module safe-read.
81424         * m4/safe-read.m4: New file.
81425
81426         Module safe-write.
81427         * m4/safe-write.m4: New file.
81428
81429         Module closeout.
81430         * m4/closeout.m4: New file.
81431
81432         Module stdio-safer.
81433         * m4/stdio-safer.m4: New file.
81434
81435         Module getpass.
81436         * m4/getpass.m4: New file.
81437
81438         Module getugroups.
81439         * m4/getugroups.m4: New file.
81440
81441         Module group-member.
81442         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81443         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81444
81445         Module idcache.
81446         * m4/idcache.m4: New file.
81447
81448         Module userspec.
81449         * m4/userspec.m4: New file.
81450
81451         Module gettime.
81452         * m4/clock_time.m4: New file.
81453         * m4/gettime.m4: New file.
81454
81455         Module settime.
81456         * m4/settime.m4: New file.
81457
81458         Module posixtm.
81459         * m4/posixtm.m4: New file.
81460
81461         Module gethostname.
81462         * m4/gethostname.m4: New file.
81463
81464         Module canon-host.
81465         * m4/canon-host.m4: New file.
81466
81467         Module gettext.
81468         * m4/codeset.m4: New file, from gettext-0.11.5.
81469         * m4/gettext.m4: New file, from gettext-0.11.5.
81470         * m4/glibc21.m4: New file, from gettext-0.11.5.
81471         * m4/iconv.m4: New file, from gettext-0.11.5.
81472         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81473         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81474         * m4/inttypes.m4: New file, from gettext-0.11.5.
81475         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81476         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81477         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81478         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81479         * m4/lib-link.m4: New file, from gettext-0.11.5.
81480         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81481         * m4/progtest.m4: New file, from gettext-0.11.5.
81482         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81483         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81484         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81485
81486         Module localcharset.
81487         * m4/localcharset.m4: New file.
81488
81489         Module hard-locale.
81490         * m4/hard-locale.m4: New file.
81491
81492         Module mbswidth.
81493         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81494         onceonly macros.
81495         * m4/mbrtowc.m4: Add comment.
81496
81497         Module memcasecmp.
81498         * m4/memcasecmp.m4: New file.
81499
81500         Module memcoll.
81501         * m4/memcoll.m4: New file.
81502
81503         Module unicodeio.
81504         * m4/unicodeio.m4: New file.
81505
81506         Module rpmatch.
81507         * m4/rpmatch.m4: New file.
81508
81509         Module yesno.
81510         * m4/yesno.m4: New file.
81511
81512         Module exitfail.
81513         * m4/exitfail.m4: New file.
81514
81515         Module c-stack.
81516         * m4/c-stack.m4 (gl_C_STACK): New macro.
81517         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81518
81519         Module error.
81520         * m4/error.m4 (gl_ERROR): New macro.
81521         (jm_PREREQ_ERROR): Use onceonly macros.
81522
81523         Module fatal.
81524         * m4/fatal.m4: New file.
81525
81526         Module getloadavg.
81527         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81528         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81529
81530         Module getpagesize.
81531         * m4/getpagesize.m4: New file.
81532
81533         Module getusershell.
81534         * m4/getusershell.m4: New file.
81535
81536         Module physmem.
81537         * m4/physmem.m4: New file.
81538
81539         Module posixver.
81540         * m4/posixver.m4: New file.
81541
81542         Module quotearg.
81543         * m4/quotearg.m4: New file.
81544
81545         Module quote.
81546         * m4/quote.m4: New file.
81547
81548         Module readutmp.
81549         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81550
81551         Module sig2str.
81552         * m4/sig2str.m4: New file.
81553
81554         Other.
81555         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81556         ulonglong.m4.
81557         * m4/intmax_t.m4: New file.
81558         * m4/d-type.m4: Indentation.
81559         * m4/jm-macros.m4: Update.
81560         * m4/prereq.m4 (jm_PREREQ): Update.
81561         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81562         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81563         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81564         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81565         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81566         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81567         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81568         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81569         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81570         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81571         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81572         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81573         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81574         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81575         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81576         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81577         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81578         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81579         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81580
81581 2002-12-24  Bruno Haible  <bruno@clisp.org>
81582
81583         * MODULES.txt: Update according to m4/ changes.
81584
81585         Module gettext.
81586         * config.rpath: New file, from gettext-0.11.5.
81587
81588         * modules/*: New module descriptions.
81589         * gnulib-tool: New file.
81590         * MODULES.html.sh: New file.
81591
81592 2002-12-21  Karl Berry  <karl@gnu.org>
81593
81594         * doc/fdl.texi: update to version 1.2.
81595
81596 2002-12-19  Karl Berry  <karl@gnu.org>
81597
81598         * config/config.guess: update from prep.
81599
81600 2002-12-18  Bruno Haible  <bruno@clisp.org>
81601
81602         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81603         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81604
81605 2002-12-17  Bruno Haible  <bruno@clisp.org>
81606
81607         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81608         stdlib.h, string.h.
81609
81610 2002-12-17  Bruno Haible  <bruno@clisp.org>
81611
81612         * lib/canon-host.c (strdup): Remove unused declaration.
81613
81614         * lib/fsusage.c: Include full_read.h.
81615         (get_fs_usage): Use full_read instead of safe_read.
81616
81617         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81618
81619 2002-12-12  Karl Berry  <karl@gnu.org>
81620
81621         * config/config.guess: update from prep.
81622
81623 2002-12-11  Bruno Haible  <bruno@clisp.org>
81624
81625         * m4/setenv.m4: New file, from gettext-0.11.5.
81626
81627 2002-12-11  Bruno Haible  <bruno@clisp.org>
81628
81629         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81630         not unsetenv().
81631         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81632         modifications:
81633
81634         2002-12-11  Bruno Haible  <bruno@clisp.org>
81635
81636                 * setenv.c (alloca): Fall back to malloc.
81637                 (freea): New macro.
81638                 (setenv): Use freea() to free memory allocated with alloca().
81639
81640         2002-11-13  Bruno Haible  <bruno@clisp.org>
81641
81642                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81643                 function declarations.
81644                 * unsetenv.c (unsetenv): Likewise.
81645
81646         2002-03-04  Bruno Haible  <bruno@clisp.org>
81647
81648                 Portability to AIX 4.3.3.
81649                 * unsetenv.c: New file, extracted from setenv.c.
81650                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81651
81652         2001-12-20  Bruno Haible  <bruno@clisp.org>
81653
81654                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81655                 use malloc instead. For SunOS 4.
81656
81657         2001-12-11  Bruno Haible  <bruno@clisp.org>
81658
81659                 * setenv.c: Declare alloca.
81660                 (compar_fn_t): New typedef.
81661                 (KNOWN_VALUE, STORE_VALUE): Use it.
81662
81663         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81664         setenv.h.
81665
81666 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81667
81668         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81669         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81670         Choose values that are less likely to collide with system fnmatch
81671         options.
81672         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81673         defined (e.g., a pure POSIX system).
81674         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81675         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81676
81677 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81678
81679         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81680         a pain in practice to deal with generated m4 files.  This change
81681         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81682
81683         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81684         and jm-glibc-io.m4, as they are no longer a special case.
81685         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81686         kludge and the auto-generation stuff.  Check only whether the
81687         functions are declared, not whether they exist, since older hosts
81688         that don't declare the functions can't use the optimization anyway.
81689
81690 2002-12-06  Jim Meyering  <jim@meyering.net>
81691
81692         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81693
81694         Merge in changes from libc's misc/error.c, in preparation
81695         for the merge of gnulib's changes back into libc.
81696
81697         * lib/error.c (_): Define only if not already defined.
81698         Move definition to follow all #include directives.
81699         Include unlocked-io.h only if !_LIBC.
81700         [_LIBC]: Include <libio/libioP.h>.
81701         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81702         (fflush): Tweak definition to use INTUSE.
81703         (putc): Define.
81704
81705 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81706
81707         * lib/alloca.c [defined emacs]: Include "lisp.h".
81708         (xalloc_die) [defined emacs]: New macro.
81709         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81710         [! defined emacs]: Include <xalloc.h>.
81711         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81712         (pointer): Typedef to POINTER_TYPE *.
81713         (malloc): Remove decl; we now always use xmalloc.
81714         (alloca): Use old-style definition, since Emacs needs this.
81715         Check for arithmetic overflow when computing combined size.
81716
81717 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81718
81719         Do not generate unlocked-io.h automatically, since it's easier to
81720         maintain it by hand.
81721
81722         * lib/unlocked-io.h: New file, from GNU diffutils,
81723         but with proper copyright notice and attribution.
81724         * lib/gen-uio: Remove.
81725         * lib/Makefile.am: Add copyright notice.
81726         (libfetish_a_SOURCES): Add unlocked-io.h.
81727         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81728         (DISTCLEANFILES, io_functions): Remove macros.
81729         (EXTRA_DIST): Remove gen_uio.
81730         (unlocked-io.h): Remove rule.
81731
81732 2002-12-04  Jim Meyering  <jim@meyering.net>
81733
81734         Reflect the fact that stat.c and lstat.c are no longer generated.
81735         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81736         (DISTCLEANFILES): Likewise.
81737         (EXTRA_DIST): Likewise.
81738         (all_local): Don't depend on stat.c or lstat.c.
81739         (stat.c, lstat.c): Remove rules.
81740         (EXTRA_DIST): Remove xstat.in.
81741
81742         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81743         * lib/stat.c: New file.  Contents mostly from xstat.in.
81744         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81745         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81746
81747         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81748         too.
81749         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81750
81751 2002-12-03  Jim Meyering  <jim@meyering.net>
81752
81753         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81754         but not semantics, to minimize the differences between these two files.
81755         (safe_read): Change comment to mention SAFE_READ_ERROR.
81756
81757         * lib/safe-read.c (IS_EINTR): Define.
81758         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81759
81760 2002-12-02  Jim Meyering  <jim@meyering.net>
81761
81762         * lib/safe-read.c (EINTR): Define.
81763         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81764         (INT_MAX): Provide fallback.
81765         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81766
81767         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81768
81769 2002-12-02  Bruno Haible  <bruno@clisp.org>
81770
81771         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81772         Define, taken from safe-read.c.
81773         (INT_MAX): Provide fallback.
81774         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81775         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81776
81777         * lib/safe-read.c (EINTR): Remove definition.
81778         (safe_read): Don't use EINTR if it is absent.
81779
81780 2002-12-01  Jim Meyering  <jim@meyering.net>
81781
81782         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81783         zero.
81784         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81785
81786 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81787
81788         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81789         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81790         with `if (! (value < limit)) abort ();', for readability.
81791
81792 2002-11-26  Karl Berry  <karl@gnu.org>
81793
81794         * lib/strdup.c: copy from libc again, with jim's ok.
81795         * lib/.cppi-disable: re-add strdup.c
81796
81797 2002-11-25  Karl Berry  <karl@gnu.org>
81798
81799         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81800         instead of "strtol.c".
81801
81802 2002-11-25  Karl Berry  <karl@gnu.org>
81803
81804         * config/install-sh: update from automake for variable quoting, $0 in
81805         error msgs, etc.
81806
81807         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81808         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81809         entry.
81810
81811 2002-11-25  Jim Meyering  <jim@meyering.net>
81812
81813         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81814
81815 2002-11-24  Karl Berry  <karl@gnu.org>
81816
81817         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81818         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81819
81820 2002-11-24  Jim Meyering  <jim@meyering.net>
81821
81822         Update from coreutils:
81823
81824         * lib/mktime.c: Merge in changes from libc.
81825
81826         Avoid a link-time failure on some Linux systems.
81827         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81828         (otherwise).
81829         (__mon_yday): Declare with the STATIC attribute.
81830         (__mktime_internal): Likewise.
81831         Based on a report from Greg Schafer.
81832
81833 2002-11-23  Jim Meyering  <jim@meyering.net>
81834
81835         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81836         Use `unsigned', not `int', as type of index.
81837
81838         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81839
81840         * lib/fsusage.c: Remove unneeded parentheses around operands of
81841         `defined'.
81842
81843 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81844
81845         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81846         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81847         so that we can be included first.
81848         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81849         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81850         No need to include stddef.h or sys/types.h any more.
81851         Surround local include files with "", not "<>".
81852         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81853         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81854         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81855         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81856         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81857         (ISPRINT): Remove; no longer needed now that we assume C89.
81858
81859         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81860         Preserve errno.
81861
81862         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81863         quotearg_char): Use SIZE_MAX rather than
81864         (size_t) -1 when we are talking about "infinity".
81865
81866         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81867
81868 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81869
81870         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81871         hint that one should use `if (! x) abort ();' rather than `assert
81872         (x);', and anyway it's one less thing to worry about configuring.
81873         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81874         hash_rehash, hash_insert): Use abort rather than assert.
81875
81876 2002-11-22  Bruno Haible  <bruno@clisp.org>
81877
81878         * lib/safe-read.h: Assume C89. Add comments.
81879         (safe_read): Change return type to size_t.
81880         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81881         byte counts > SSIZE_MAX correctly.
81882         * lib/safe-write.h: New file.
81883         * lib/safe-write.c: New file.
81884         * lib/full-read.h: New file.
81885         * lib/full-read.c: New file.
81886         * lib/full-write.h: Assume C89. Add comments.
81887         * lib/full-write.c: Include safe-write.h.
81888         (full_write): Rewritten to use safe_write.
81889         Suggested by Jim Meyering and Paul Eggert.
81890
81891 2002-11-21  Jim Meyering  <jim@meyering.net>
81892
81893         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81894
81895         Merge in changes from the coreutils.
81896
81897         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81898         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81899         <stdint.h>.
81900         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81901         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81902         int.  Work more efficiently if X is the same width as uintmax_t.
81903         Do not compare X to -1, to avoid bogus compiler warning.
81904         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81905         Don't assume that f_frsize and f_bsize are the same type.
81906
81907         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81908         warning on FreeBSD.
81909
81910         * lib/makepath.c (make_path): Restore umask *before* creating the final
81911         component.
81912         (make_path): Minor reformatting.
81913
81914         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81915         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81916         HAVE_MALLOC/HAVE_REALLOC.
81917
81918         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81919         dummy ones.  At least on GNU/Linux systems, `auto' means something
81920         else.
81921         From Michael Stone.
81922
81923 2002-11-21  Bruno Haible  <bruno@clisp.org>
81924
81925         Remove case insensitive option matching.
81926         * lib/argmatch.h (argcasematch): Remove declaration.
81927         (ARGCASEMATCH): Remove macro.
81928         (__xargmatch_internal): Remove case_sensitive argument.
81929         (XARGMATCH): Update.
81930         (XARGCASEMATCH): Remove macro.
81931         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81932         case_sensitive argument.
81933         (argcasematch): Remove function.
81934         (__xargmatch_internal): Remove case_sensitive argument.
81935         (main): Use XARGMATCH instead of XARGCASEMATCH.
81936
81937         * lib/xmalloc.c: Change compile-time error message. Add comment about
81938         required autoconf version.
81939
81940 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81941
81942         Merge argmatch cleanups from Bison.  Assume C89.
81943
81944         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81945         Include stdlib.h, for EXIT_FAILURE.
81946         Always include <string.h>, since we assume C89.
81947         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81948         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81949         Include <stddef.h> instead, since it's all we need for size_t.
81950         (PARAMS): Remove.  All uses removed.
81951         (ARRAY_CARDINALITY): Do not bother to #undef.
81952         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81953         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81954         Remove unnecessary parentheses.
81955         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81956         Insert necessary parentheses.
81957         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81958         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81959
81960 2002-11-19  Bruno Haible  <bruno@clisp.org>
81961
81962         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81963         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81964
81965         * lib/mbswidth.h (PARAMS): Remove macro.
81966         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81967         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81968
81969         * lib/gcd.h (PARAMS): Remove macro.
81970         (gcd): Use ANSI C function declarations.
81971         * lib/gcd.c (gcd): Likewise.
81972
81973 2002-11-15  Bruno Haible  <bruno@clisp.org>
81974
81975         * lib/strcspn.c: Include <stddef.h>.
81976         (strcspn): Use ANSI C function declaration. Change return type to
81977         size_t. Use NULL.
81978         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81979         (strpbrk): Use NULL.
81980         * lib/strpbrk.h (PARAMS): Remove macro.
81981         (strpbrk): Use ANSI C function declaration.
81982         * lib/strstr.c: Don't include <sys/types.h>.
81983         * lib/strstr.h (PARAMS): Remove macro.
81984         (strstr): Use ANSI C function declarations.
81985
81986 2002-11-14  Karl Berry  <karl@gnu.org>
81987
81988         * config/mkinstalldirs: `do' on separate line, instead of
81989         `for var; do'.
81990
81991 2002-11-06  Bruno Haible  <bruno@clisp.org>
81992
81993         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81994         * lib/gcd.c (gcd): Likewise.
81995
81996 2002-11-05  Bruno Haible  <bruno@clisp.org>
81997
81998         * lib/gcd.h: New file, from gettext-0.11.5.
81999         * lib/gcd.c: New file, from gettext-0.11.5.
82000
82001 2002-11-05  Bruno Haible  <bruno@clisp.org>
82002
82003         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82004         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82005         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82006         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82007
82008         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82009         <libintl.h>.
82010         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82011         <libintl.h>.
82012
82013         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82014         * lib/human.c: Include gettext.h instead of <libintl.h>.
82015         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82016         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82017         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82018         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82019         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82020         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82021         (textdomain): Remove definition.
82022         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82023
82024         * lib/long-options.c: Remove include of <libintl.h> and definition of
82025         _.
82026         * lib/same.c: Remove include of <libintl.h> and definition of _.
82027
82028 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82029
82030         * lib/config.charset: A few additions for Solaris.
82031
82032 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82033
82034         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82035         * lib/localcharset.c (locale_charset): Declare as extern "C".
82036
82037 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82038
82039         * lib/config.charset: msdos in uk_UA uses CP1125.
82040
82041 2002-11-04  Bruno Haible  <bruno@clisp.org>
82042
82043         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82044         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82045         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82046         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82047         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82048
82049 2002-11-04  Bruno Haible  <bruno@clisp.org>
82050
82051         * lib/localcharset.c (locale_charset): Don't return an empty string.
82052
82053 2002-11-04  Bruno Haible  <bruno@clisp.org>
82054
82055         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82056         aliases.
82057
82058 2002-11-04  Bruno Haible  <bruno@clisp.org>
82059
82060         * lib/config.charset: Update for newest glibc. Add canonical names
82061         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82062
82063 2002-11-04  Bruno Haible  <bruno@clisp.org>
82064
82065         * lib/config.charset: Add support for NetBSD.
82066
82067 2002-11-04  Bruno Haible  <bruno@clisp.org>
82068
82069         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82070
82071 2002-11-01  Bruno Haible  <bruno@clisp.org>
82072
82073         * configure.in: Add AC_CONFIG_AUX_DIR call.
82074         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82075         test/Makefile.
82076         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82077
82078 2002-09-28  Karl Berry  <karl@gnu.org>
82079
82080         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82081         installed automake until the next release, since changes have been
82082         made.
82083
82084 2002-09-25  Karl Berry  <karl@gnu.org>
82085
82086         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82087         * lib/getopt*: copy from libc/posix.
82088         * lib/gettext.h: copy from gettext.
82089         * lib/.cppi-disable: add strdup.c, gettext.h.
82090
82091 2002-09-25  Karl Berry  <karl@gnu.org>
82092
82093         * config/srclist.txt: enable gettext.h check.
82094         * config/config.{guess,sub}: update from prep.
82095         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82096                 from automake 1.6.3.
82097         See srclist*.
82098
82099 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82100
82101         * regex.c (PATFETCH): Remove the translating fetch.
82102         (PATFETCH_RAW): Rename to PATFETCH.
82103         (set_image_of_range): New fun.
82104         (SET_RANGE_TABLE_WORK_AREA): Use it.
82105         (regex_compile): Don't translate the pattern chars so eagerly.
82106         Only do it when inserting an `exactn' bytecode or when handling
82107         a char-range.
82108         (mutually_exclusive_p): Avoid empty statement.
82109
82110 2002-07-06  Jim Meyering  <meyering@lucent.com>
82111
82112         * m4/README: Don't mention Makefile.am.in.
82113         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82114
82115 2002-07-01  Jim Meyering  <meyering@lucent.com>
82116
82117         * lib/c-stack.c: Include sys/time.h.
82118         From Volker Borchert.
82119
82120 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82121
82122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82123
82124 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82125
82126         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82127         New macro.  Use it uniformly instead of
82128         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82129         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82130         reported by Vin Shelton.
82131
82132 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82133
82134         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82135         Do not assume SA_SIGINFO behavior.
82136         Bug reported by Jim Meyering on NetBSD 1.5.2.
82137
82138 2002-06-22  Jim Meyering  <meyering@lucent.com>
82139
82140         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82142
82143         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82144         now that configure.ac uses AC_GNU_SOURCE.
82145         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82146         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82147
82148         Update to latest tools.  Suggestions from Paul Eggert.
82149         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82150         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82151         * m4/fnmatch.m4: Likewise.
82152         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82153         to AC_HEADER_STDBOOL
82154
82155 2002-06-22  Jim Meyering  <meyering@lucent.com>
82156
82157         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82158         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82159
82160 2002-06-22  Jim Meyering  <meyering@lucent.com>
82161
82162         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82163
82164         * lib/exitfail.c, exitfail.h: Likewise.
82165         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82166
82167         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82168         of fnmatch.h.
82169         (EXTRA_DIST): Add fnmatch_loop.c.
82170         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82171
82172         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82173         * lib/fnmatch.c: Update from diffutils-2.8.2.
82174         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82175         * lib/fnmatch.h: Remove file.
82176
82177 2002-06-21  Jim Meyering  <meyering@lucent.com>
82178
82179         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82180         * m4/mbrtowc.m4: Likewise.
82181
82182         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82183         * m4/mbswidth.m4: Reflect name change:
82184         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82186
82187         * m4/lib-link.m4: Update from gettext-0.11.2.
82188         * m4/gettext.m4: Likewise.
82189
82190         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82191         From Alfred M. Szmidt.
82192
82193 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82194
82195         * lib/file-type.h: Report an error if neither S_ISREG nor
82196         S_IFREG is defined, instead of using a test specific to glibc
82197         2.2.  This should be safe, since POSIX requires S_ISREG and
82198         Unix Version 7 had S_IFREG.  We don't need to check for
82199         <sys/types.h> since we don't use any symbols that it defines.
82200
82201 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82202
82203         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82204         $@-t, so that each temporary file name is unique and valid in the first
82205         8 characters, for operation under DOS.
82206
82207 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82208
82209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82210
82211 2002-06-15  Jim Meyering  <meyering@lucent.com>
82212
82213         Work even with DJGPP 2.03, which lacks support for symlinks.
82214         From Richard Dawe.
82215         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82216         is defined.
82217         * lib/lchown.c (S_ISLNK): Likewise.
82218
82219 2002-06-15  Jim Meyering  <meyering@lucent.com>
82220
82221         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82222         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82223         have been included before this file.
82224
82225 2002-06-14  Jim Meyering  <meyering@lucent.com>
82226
82227         * lib/file-type.h: Use the version from diffutils-2.8.2.
82228         * lib/file-type.c: Likewise.
82229
82230 2002-06-07  Jim Meyering  <meyering@lucent.com>
82231
82232         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82233         They're needed at least for NetBSD 1.5.2.
82234         ($statxfs_includes): Include those same headers.
82235         ($statxfs_includes): Include sys/vfs.h if available.
82236         ($statxfs_includes): Likewise for sys/statvfs.h.
82237         Check for the following members in both structs statfs and statvfs:
82238         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82239
82240 2002-06-01  Jim Meyering  <meyering@lucent.com>
82241
82242         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82243         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82244
82245 2002-05-28  Jim Meyering  <meyering@lucent.com>
82246
82247         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82248         Reported by Volker Borchert.
82249
82250 2002-05-27  Jim Meyering  <meyering@lucent.com>
82251
82252         Fix a problem seen only on nonconforming systems whereby ls.c's
82253         use of localtime, and then of gettimeofday would cause trouble:
82254         the localtime call used to initialize rpl_gettimeofday's save
82255         mechanism would clobber ls's current local time information so
82256         that in any long listing the first file would always be listed
82257         with date 1970-01-01.  Analysis by Volker Borchert.
82258
82259         * lib/gettimeofday.c (localtime): Undefine.
82260         (rpl_localtime): New function.
82261
82262 2002-05-27  Jim Meyering  <meyering@lucent.com>
82263
82264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82265         localtime.
82266
82267         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82268         use the replacement function; it wouldn't resolve at link time.
82269         Reported by Volker Borchert.
82270
82271 2002-05-22  Jim Meyering  <meyering@lucent.com>
82272
82273         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82274         file-type.h.
82275         * lib/file-type.h: New file.
82276         * lib/file-type.c (file_type): New file/function.  Extracted from
82277         diffutils.
82278
82279 2002-04-30  Jim Meyering  <meyering@lucent.com>
82280
82281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82282
82283 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82284
82285         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82286
82287 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82288
82289         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82290         Do not check for alloca.h (no longer used) or stdbool.h (was never
82291         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82292
82293 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82294
82295         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82296
82297 2002-04-29  Jim Meyering  <meyering@lucent.com>
82298
82299         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82300         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82301         Use AC_FUNC_STRNLEN here instead.
82302
82303         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82304         With autoconf-2.53a, it's part of AC_PROG_CC.
82305
82306 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82307
82308         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82309         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82310
82311 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82312
82313         * lib/sig2str.h, lib/sig2str.c: New files.
82314         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82315
82316 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82317
82318         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82319         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82320         of 127, since 64 is the largest conceivable number for ancient
82321         nonstandard hosts.
82322         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82323
82324 2002-04-28  Jim Meyering  <meyering@lucent.com>
82325
82326         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82327
82328 2002-04-24  Jim Meyering  <meyering@lucent.com>
82329
82330         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82331         (jm_PREREQ): Use it.
82332
82333         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82334         mach/mach.h fcntl.h.
82335         Check for this function: setlocale.
82336
82337 2002-04-24  Jim Meyering  <meyering@lucent.com>
82338
82339         * lib/gettext.h: New file, from Gettext.
82340         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82341         (libfetish_a_SOURCES): Add gettext.h.
82342
82343 2002-04-16  Jim Meyering  <meyering@lucent.com>
82344
82345         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82346         ut_pid, ut_id, ut_exit.
82347
82348 2002-04-16  Jim Meyering  <meyering@lucent.com>
82349
82350         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82351         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82352         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82353
82354 2002-04-12  Jim Meyering  <meyering@lucent.com>
82355
82356         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82357         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82358         existence of the getmntinfo function.  Needed for Darwin 5.3.
82359
82360         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82361         This is necessary at least on Darwin 5.3.
82362
82363         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82364         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82365         strnlen.o in the library, and that makes some versions of ranlib
82366         object.
82367
82368 2002-04-12  Jim Meyering  <meyering@lucent.com>
82369
82370         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82371
82372 2002-04-09  Jim Meyering  <meyering@lucent.com>
82373
82374         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82375         to be more precise.  Rather than saying we're checking whether the
82376         function `works', say what we're testing.
82377         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82378         Reported by Bruno Haible.
82379
82380 2002-03-10  Jim Meyering  <meyering@lucent.com>
82381
82382         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82383         Suggestion from Santiago Vila.
82384
82385 2002-03-08  Jim Meyering  <meyering@lucent.com>
82386
82387         * lib/rename.c: Mention that this wrapper is needed also on
82388         mips-dec-ultrix4.4 systems.
82389
82390 2002-03-02  Jim Meyering  <meyering@lucent.com>
82391
82392         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82393         not HAVE_CLOCK_SETTIME.
82394
82395 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82396
82397         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82398         Check for clock_settime.
82399
82400 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82401
82402         * lib/nanosleep.h: Rename to....
82403         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82404
82405         * lib/gettime.c: New file.
82406         * lib/settime.c: New file.
82407         * lib/stime.c: Remove.
82408
82409         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82410         timespec.h.  Remove nanosleep.h.
82411
82412 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82413
82414         * m4/acl.m4: New file.
82415         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82416         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82417
82418 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82419
82420         * lib/acl.c, lib/acl.h: New files.
82421         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82422
82423 2002-02-24  Jim Meyering  <meyering@lucent.com>
82424
82425         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82426         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82427         cause trouble.  Reported by Nelson Beebe.
82428
82429 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82430
82431         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82432         compilers that don't know that xalloc_die never returns.
82433
82434 2002-02-20  Jim Meyering  <meyering@lucent.com>
82435
82436         * lib/getdate.c: Regenerate using bison-1.33.
82437
82438 2002-02-17  Jim Meyering  <meyering@lucent.com>
82439
82440         * config/config.guess (main): Don't use `head -1'; it's no longer
82441         portable. Use `sed 1q' instead.
82442
82443 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82444
82445         * m4/codeset.m4: Upgrade to gettext-0.11.
82446         * m4/gettext.m4: Upgrade to gettext-0.11.
82447         * m4/glibc21.m4: Upgrade to gettext-0.11.
82448         * m4/iconv.m4: Upgrade to gettext-0.11.
82449         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82450         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82451         * m4/lib-ld.m4: New file, from gettext-0.11.
82452         * m4/lib-link.m4: New file, from gettext-0.11.
82453         * m4/lib-prefix.m4: New file, from gettext-0.11.
82454         * m4/progtest.m4: Upgrade to gettext-0.11.
82455
82456 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82457
82458         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82459         (jm_PREREQ): Use it.
82460
82461 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82462
82463         * lib/posixver.c, lib/posixver.h: New files.
82464         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82465
82466 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82467             Bruno Haible  <bruno@clisp.org>
82468
82469         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82470         (fwrite_success_callback): New declaration.
82471         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82472         print_unicode_char. Call failure callback instead of error.
82473         (fwrite_success_callback): New function.
82474         (exit_failure_callback): New function.
82475         (fallback_failure_callback): New function.
82476         (print_unicode_char): Call unicode_to_mb.
82477
82478 2002-01-26  Jim Meyering  <meyering@lucent.com>
82479
82480         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82481         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82482
82483 2002-01-26  Jim Meyering  <meyering@lucent.com>
82484
82485         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82486
82487 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82488
82489         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82490
82491 2002-01-22  Jim Meyering  <meyering@lucent.com>
82492
82493         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82494         Otherwise, some versions of automake would omit the rule that makes
82495         Makefile from Makefile.in.
82496
82497 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82498
82499         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82500         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82501         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82502         (memcoll): Set errno to zero if there is no error.
82503
82504         * lib/quotearg.c (quotearg_buffer_restyled):
82505         Fix bug with quoting buffers containing NUL when backslashing escapes.
82506         This bug was exposed by the other changes in this patch.
82507         (quotearg_n_options): New arg ARGSIZE.
82508         All callers changed.
82509         (quoting_options_from_style): New function.
82510         (quotearg_n_style): Use it.
82511         (quotearg_n_style_mem): New function.
82512
82513         * lib/quotearg.h (quotearg_n_style_mem): New function.
82514
82515 2002-01-19  Jim Meyering  <meyering@lucent.com>
82516
82517         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82518         Remove useless quotes: DF_PROG="df".
82519         * m4/strnlen.m4: New file.
82520
82521 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/backupfile.c (ISDIGIT): Comment fix.
82524         * lib/getdate.y (ISDIGIT): Likewise.
82525         * lib/posixtm.c (ISDIGIT, year): Likewise.
82526         * lib/strverscmp.c (ISDIGIT): Likewise.
82527         * lib/userspec.c (ISDIGIT): Likewise.
82528
82529 2002-01-16  Jim Meyering  <meyering@lucent.com>
82530
82531         * lib/getdate.y: Add three semicolons, each just before a closing
82532         brace. Bison (as of version 1.31) no longer papers over that mistake.
82533
82534 2002-01-05  Jim Meyering  <meyering@lucent.com>
82535
82536         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82537
82538 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82539
82540         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82541         not silently exit merely because the output buffer happens to
82542         have nothing pending.
82543
82544 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82545
82546         See the big note in ../ChangeLog.
82547         * lib/human.c (suffixes): Prefer K to k for 1024.
82548         (generate_suffix_backwards): New function.
82549         (human_readable_inexact): Use it.
82550         * lib/xstrtol.c (__xstrtol): If there is no number but there
82551         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82552         Accept 'K' as well as 'k'.
82553
82554 2001-12-15  Jim Meyering  <meyering@lucent.com>
82555
82556         * lib/regex.h (__restrict_arr): Update from libc.
82557
82558         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82559         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82560         (STREQ): Define.
82561
82562 2001-12-14  Jim Meyering  <meyering@lucent.com>
82563
82564         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82565         Suggestion from Bruno Haible.
82566
82567 2001-12-10  Jim Meyering  <meyering@lucent.com>
82568
82569         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82570         xrealloc, Instead, include "xalloc.h".
82571         (initbuffer): Don't cast xmalloc return value to char*.
82572         (readline): Reword comment.
82573         Don't cast xrealloc return value to char*
82574         Return NULL, not 0.
82575
82576 2001-12-09  Jim Meyering  <meyering@lucent.com>
82577
82578         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82579         about `signed and unsigned type in conditional expression'.
82580         * lib/posixtm.c (posix_time_parse): Likewise.
82581
82582         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82583
82584         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82585         to avoid a pedantic warning.
82586
82587         * lib/getstr.c: Don't include assert.h.
82588         (getstr): Remove warning-evoking assertions.
82589         Return -1 if offset parameter is out of bounds.
82590         Change the type of a local from int to size_t.
82591
82592         * lib/strftime.c (my_strftime_localtime_r): Include this function
82593         definition in the `#if ! HAVE_TM_GMTOFF' block.
82594
82595         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82596         Include xalloc.h instead.
82597
82598 2001-12-02  Jim Meyering  <meyering@lucent.com>
82599
82600         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82601         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82602         included.
82603
82604         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82605         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82606
82607 2001-11-30  Akim Demaille  <akim@epita.fr>
82608
82609         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82610         before being defined.
82611
82612 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82613
82614         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82615         First arg is int, not unsigned.
82616         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82617         (SIZE_MAX, UINT_MAX): New macros.
82618         (quotearg_n_options): Abort if N is negative.
82619         Avoid overflow check on hosts where size_t is 64 bits and int
82620         is 32 bits, as overflow is impossible there.
82621         Fix off-by-one typo that caused unnecessary reallocation.
82622
82623 2001-11-27  Jim Meyering  <meyering@lucent.com>
82624
82625         * lib/tempname.c: Merge with version from libc.
82626         * lib/regex.c: Likewise.
82627
82628         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82629         systems for which STDC_HEADERS is 0, it was not included, resulting in
82630         a warning about an integer-to-pointer conversion problem with getenv.
82631         Reported by Volker Borchert.
82632
82633 2001-11-26  Jim Meyering  <meyering@lucent.com>
82634
82635         * lib/gtod.h: Remove file.
82636         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82637         * lib/gettimeofday.c: Don't include gtod.h.
82638         (GTOD_init): Remove function.
82639         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82640         Suggestion from Volker Borchert.
82641
82642 2001-11-23  Jim Meyering  <meyering@lucent.com>
82643
82644         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82645         it.
82646         * lib/hash.c (struct hash_table): Define it here instead.
82647
82648 2001-11-22  Jim Meyering  <meyering@lucent.com>
82649
82650         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82651
82652 2001-11-20  Jim Meyering  <meyering@lucent.com>
82653
82654         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82655         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82656
82657 2001-11-19  Jim Meyering  <meyering@lucent.com>
82658
82659         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82660         directory.  Use "conftestXXXXXX" as the template.
82661         Suggestion from Paul Eggert.
82662
82663         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82664         immediately, so the test doesn't mistakenly hit the max-open-files
82665         limit.
82666
82667 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82668
82669         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82670         (TEMPORARIES): New macro.
82671         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82672         removes an artificial limitation (e.g. HP-UX 10.20, where
82673         TMP_MAX is 17576).
82674
82675 2001-11-18  Jim Meyering  <meyering@lucent.com>
82676
82677         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82678
82679 2001-11-18  Jim Meyering  <meyering@lucent.com>
82680
82681         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82682         on SunOS 4.
82683
82684         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82685         files will be created before anything else.
82686
82687 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82688
82689         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82690         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82691
82692 2001-11-17  Jim Meyering  <meyering@lucent.com>
82693
82694         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82695         Prompted by a report from Bob Proulx.
82696
82697         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82698         Instead, require UTILS_FUNC_MKSTEMP.
82699
82700 2001-11-17  Jim Meyering  <meyering@lucent.com>
82701
82702         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82703         Now, that's done as part of AC_FUNC_STRTOD.
82704
82705 2001-11-17  Jim Meyering  <meyering@lucent.com>
82706
82707         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82708         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82709         rather than group writable.  Patch by Juan F. Codagnone.
82710
82711         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82712         xrealloc, Instead, include "xalloc.h".
82713
82714         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82715         Remove explicit declarations of xmalloc, xrealloc,
82716         and xstrdup.  Instead, include "xalloc.h".
82717
82718         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82719         unlocked-io.h.
82720         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82721         Likewise.
82722         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82723
82724         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82725         Reported by Padraig Brady.
82726
82727         * lib/mkstemp.c: #undef mkstemp.
82728         Include config.h.
82729         (rpl_mkstemp): Rename from mkstemp.
82730         Protoize.
82731
82732 2001-11-16  Jim Meyering  <meyering@lucent.com>
82733
82734         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82735         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82736         determine the amount of total physical memory, use pstat_getstatic.
82737         HPUX-11 doesn't define _SC_PHYS_PAGES.
82738         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82739         If sysconf couldn't be used to determine the amount of available
82740         physical memory, use both pstat_getstatic and pstat_getdynamic.
82741         Based on a patch from Bob Proulx.
82742
82743 2001-11-10  Jim Meyering  <meyering@lucent.com>
82744
82745         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82746         (jm_PREREQ): Use it.
82747
82748 2001-11-09  Jim Meyering  <meyering@lucent.com>
82749
82750         * m4/jm-macros.m4: Require autoconf-2.52f.
82751         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82752         Use these AC_-prefixed names, not the AM_-prefixed ones.
82753
82754         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82755
82756 2001-11-05  Jim Meyering  <meyering@lucent.com>
82757
82758         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82759
82760 2001-11-04  Jim Meyering  <meyering@lucent.com>
82761
82762         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82763         $DEFS.
82764
82765 2001-11-03  Jim Meyering  <meyering@lucent.com>
82766
82767         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82768         of AC_DEFUN.
82769
82770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82771         know the name of the variable in the macro definition.
82772
82773 2001-11-03  Jim Meyering  <meyering@lucent.com>
82774
82775         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82776         in argmatch_to_argument call.
82777
82778         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82779         argument.
82780
82781         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82782         e.g., a fault due to an attempt to free a NULL pointer.
82783
82784 2001-11-01  Jim Meyering  <meyering@lucent.com>
82785
82786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82787         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82788
82789 2001-11-01  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/dirfd.c, lib/dirfd.h: New files.
82792         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82793
82794         * lib/hash.c (hash_print) [TESTING]: Clean up.
82795
82796 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82797
82798         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82799         to avoid a warning if -Wall.
82800
82801 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82802
82803         * README: New file
82804         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82805         (per RMS's instructions, this is now the canonical source)
82806         * lgpl/, gpl/: New directories.
82807
82808 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82809
82810         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82811
82812 2001-10-21  Jim Meyering  <meyering@lucent.com>
82813
82814         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82815         this code would end up calling gettext even in packages built
82816         with --disable-nls.
82817         * lib/getopt.c (_): Likewise.
82818         * lib/regex.c (_): Likewise.
82819
82820 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82821
82822         * m4/error.m4 (jm_PREREQ_ERROR):
82823         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82824         AC_FUNC_STRERROR_R does that.
82825         Check for strerror declaration.
82826
82827         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82828         are supposed to have them these days.
82829         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82830         Merge changes from latest Autoconf CVS.
82831         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82832         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82833         POSIX decided to standardize on the int flavor of strerror_r.
82834
82835 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82836
82837         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82838         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82839         Use strerror_r that is only a macro, even if it is not a function.
82840         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82841         (private_strerror): Use prototypes, not old-style function definition.
82842         (print_errno_message): New function.
82843         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82844         char*-flavored one.
82845         (error_tail, error, error_at_line): Use it.
82846
82847 2001-10-11  Jim Meyering  <meyering@lucent.com>
82848
82849         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82850         and quote_n (1, ... to avoid clobbering a buffer.
82851
82852 2001-10-05  Jim Meyering  <meyering@lucent.com>
82853
82854         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82855         hash-pjw.h.
82856         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82857         * lib/hash-pjw.h: New file.
82858
82859 2001-09-30  Jim Meyering  <meyering@lucent.com>
82860
82861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82862         `struct fsstat' has the `f_fstypename' member.
82863         Use that to define FS_TYPE, which is now used to make
82864         the getfsstat link test tighter.
82865
82866 2001-09-30  Jim Meyering  <meyering@lucent.com>
82867
82868         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82869         Include <sys/ucred.h>, for Apple Darwin.
82870         Include sys/mount.h and sys/fs_types.h only if available.
82871         (FS_TYPE): Define.
82872         (read_filesystem_list): Use FS_TYPE.
82873
82874 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82875
82876         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82877         a boolean context.
82878
82879 2001-09-29  Jim Meyering  <meyering@lucent.com>
82880
82881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82882         [one-argument getmntent function]): Include stdio.h before mntent.h.
82883         SunOS 4.1.x needs it for the declaration of `FILE'.
82884         Patch by Volker Borchert.
82885
82886         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82887         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82888         sys/fs_types.h, and make the link-test for getfsstat guard #include
82889         directives with appropriate #if HAVE_*_H tests so that we can
82890         detect getfsstat on Apple Darwin1.3.7 systems.
82891         Reported by Nelson Beebe.
82892         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82893
82894 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82895
82896         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82897         #defines strtoimax.  Also treat the other strto* functions
82898         like strtoimax.
82899
82900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82901         Check for strtoul and strtoumax,
82902         as those declarations are made even in the signed case.
82903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82904         Likewise, for strtol and strtoimax.
82905
82906 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82907
82908         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82909         #defines strtoimax.  Also treat the other strto* functions
82910         like strtoimax.
82911
82912         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82913         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82914         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82915
82916 2001-09-26  Jim Meyering  <meyering@lucent.com>
82917
82918         Most macros in unlocked-io.h had the wrong number of arguments.
82919         * lib/gen-uio: New script.
82920         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82921         * lib/unlocked-io.hin: Remove file.
82922         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82923         rather than trying to embed it here.
82924         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82925         Reported by Padraig Brady.
82926
82927 2001-09-25  Volker Borchert  <bt@teknon.de>
82928
82929         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82930         `result'.
82931
82932 2001-09-24  Jim Meyering  <meyering@lucent.com>
82933
82934         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82935
82936 2001-09-23  Jim Meyering  <meyering@lucent.com>
82937
82938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82939         instead of the mere test for existence of mntent.h.  The latter
82940         would get a false-positive on AIX 3.4 systems.
82941         In the outer getmntent if-block, don't die if neither of the getmntent
82942         tests succeeds.  Instead, just fall through and continue with the
82943         remaining tests.
82944
82945 2001-09-23  Jim Meyering  <meyering@lucent.com>
82946
82947         * lib/mountlist.c: Remove useless parentheses in #if directives.
82948         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82949         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82950
82951 2001-09-22  Jim Meyering  <meyering@lucent.com>
82952
82953         * m4/gettext.m4: New file.  From gettext.
82954         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82955         * m4/progtest.m4: Likewise
82956         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82957         * m4/glibc21.m4: Likewise.
82958
82959         * m4/libintl.m4: Remove.  No longer used.
82960
82961 2001-09-22  Jim Meyering  <meyering@lucent.com>
82962
82963         * lib/localcharset.c: Update from latest gettext.
82964         * lib/config.charset: Likewise.
82965
82966 2001-09-20  Jim Meyering  <meyering@lucent.com>
82967
82968         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82969         strtoimax.
82970         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82971         strtoumax.
82972
82973 2001-09-20  Jim Meyering  <meyering@lucent.com>
82974
82975         * lib/xstrtol.c (strtoimax): Guard declaration with
82976         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82977         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82978         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82979         (strtoumax): Likewise, for completeness (it wasn't necessary).
82980
82981 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82982
82983         * lib/strtoimax.c (HAVE_LONG_LONG):
82984         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82985         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82986         to work around bug in IBM C compiler.
82987
82988 2001-09-17  Jim Meyering  <meyering@lucent.com>
82989
82990         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82991         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82992         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82993         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82994         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82995         whenever the right hand side need not be expanded by the shell.
82996
82997 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82998
82999         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83000         library.  It's not correct, as some older glibcs are buggy.
83001         fnmatch wasn't fixed until glibc 2.2.
83002
83003         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83004         special shell magic here.
83005
83006 2001-09-16  Jim Meyering  <meyering@lucent.com>
83007
83008         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83009         * m4/jm-macros.m4: Require it.
83010
83011 2001-09-16  Jim Meyering  <meyering@lucent.com>
83012
83013         * lib/mkdir.c: New file.
83014
83015 2001-09-15  Jim Meyering  <meyering@lucent.com>
83016
83017         * m4/jm-macros.m4: Check for help2man.
83018
83019 2001-09-11  Jim Meyering  <meyering@lucent.com>
83020
83021         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83022         The body, by Paul Eggert, was moved here from configure.in.
83023         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83024
83025 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83026
83027         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83028         (jm_PREREQ): Use it.
83029
83030 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83031
83032         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83033         Use ssize_t, not int, to store result of readlink.
83034         Check for ssize_t overflow as well as size_t overflow,
83035         as POSIX says the result of readlink is implementation-defined
83036         when ssize_t overflows.
83037         Remove unnecessary cast to char*.
83038         Use free+malloc instead of realloc, as the storage doesn't need
83039         to be preserved and it's clearer and can be more efficient that way.
83040         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83041         * lib/xreadlink.h (xreadlink): Update prototype.
83042
83043 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83044
83045         * lib/xgetcwd.c: Revert some of the previous change; intead,
83046         fix the HAVE_GETCWD_NULL code to behave more like the
83047         !HAVE_GETCWD_NULL code used to.
83048
83049         Include "xalloc.h".
83050         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83051         invoke xalloc_die.
83052
83053 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83054
83055         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83056         sys/param.h, as pathmax.h includes them.
83057
83058 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83059
83060         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83061         (jm_PREREQ_XGETCWD): New macro.
83062
83063         * m4/getcwd.m4: New file.
83064
83065 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83066
83067         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83068         like the HAVE_GETCWD_NULL code.
83069         Include pathmax.h if not HAVE_GETCWD.
83070         Do not include xalloc.h.
83071         (INITIAL_BUFFER_SIZE): New symbol.
83072         Do not use xmalloc / xrealloc, since the caller is responsible for
83073         handling errors.  Preserve errno around `free' during failure.
83074         Do not overrun buffer when using getwd.
83075
83076 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83077
83078         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83079         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83080         getcwd (NULL, 0).
83081
83082 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83083
83084         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83085         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83086         spotted by Jim Meyering.
83087
83088 2001-09-03  Jim Meyering  <meyering@lucent.com>
83089
83090         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83091         failure.
83092
83093 2001-09-02  Jim Meyering  <meyering@lucent.com>
83094
83095         * lib/error.c: Update from GNU libc.
83096
83097 2001-09-01  Jim Meyering  <meyering@lucent.com>
83098
83099         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83100         Used by df.
83101
83102 2001-09-01  Jim Meyering  <meyering@lucent.com>
83103
83104         * lib/xreadlink.c: New file.
83105         * lib/xreadlink.h: New file.
83106         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83107         xreadlink.h.
83108
83109         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83110         doesn't conflict with sparc Solaris 7's definition in
83111         /usr/include/sys/int_types.h.
83112
83113         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83114         files.
83115         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83116         and strncasecmp as r-values.  Unixware didn't have declarations.
83117
83118 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83119
83120         * lib/xstrtol.h: Add copyright notice.
83121         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83122         LONGINT_INVALID_SUFFIX_CHAR.
83123
83124 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/xstrtol.c (strtoimax): New decl.
83127
83128 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83129
83130         * lib/xgetcwd.c: Don't include pathmax.h.
83131         Include stdlib.h and unistd.h if available.
83132         Include xalloc.h.
83133         (xmalloc, xstrdup, free): Remove decls.
83134         (xgetcwd): Don't assume sizes fit in unsigned.
83135         Check for overflow when computing sizes.
83136         Simplify reallocation code.
83137
83138 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83139
83140         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83141         a directory's st_size can have an arbitrary value, so the old
83142         usage could waste an arbitrary amount of memory.  All uses
83143         changed.
83144         * lib/savedir.h: Update prototype.
83145
83146 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83147
83148         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83149
83150         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83151         old strtoimax.c.
83152
83153         Also, make the following further changes to make this file's
83154         configuration more similar to that of strtol.c:
83155         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83156         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83157         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83158         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83159         changed to signed values.
83160
83161         And make the following changes as well:
83162         Fix copyright notice, as 1999 was missing.
83163         (verify): New macro.
83164         (strtoimax): Check sizes at compile-time, not run-time.
83165         Prefer strtol to strtoll if both work.
83166         (main): Remove; it was not that useful and was a pain to maintain.
83167
83168         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83169
83170 2001-08-31  Jim Meyering  <meyering@lucent.com>
83171
83172         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83173         Use an initial, malloc'd, buffer of length 128 rather than
83174         a statically allocated one of length 1024.
83175
83176 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83177
83178         Simplify code, partly by assuming autoconf 2.52 semantics.
83179
83180         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83181
83182         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83183         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83184         All uses removed.
83185         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83186         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83187         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83188         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83189         jm_AC_HEADER_INTTYPES_H.
83190         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83191
83192         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83193
83194         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83195         Quote first arg of AC_DEFUN.
83196         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83197         since they are needed to parse the include file even if we need
83198         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83200         but with opposite signedness.
83201
83202 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83203
83204         Merge 'exclude' changes from tar 1.13.22.
83205         This fixes one or two unlikely storage allocation overflow bugs,
83206         but doesn't change user-visible behavior otherwise.
83207
83208 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83209
83210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83211         (jm_PREREQ_EXCLUDE): New macro.
83212
83213 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83214
83215         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83216         tm to be declared.
83217
83218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83219
83220         * lib/hash.c: Remove '2001' from copyright notice.
83221
83222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83223
83224         * lib/full-write.h: New file.
83225         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83226         * lib/full-write.c: Correct credits, as cccp.c no longer
83227         exists and anyway it was so heavily changed from the old cccp
83228         code as to be unrecognizable.  Include full-write.h.
83229         (full_write): Return size_t, with short writes meaning failure.
83230         All callers changed.  This fixes a bug with large buffers
83231         on 64-bit hosts.
83232         * lib/utime.c: Include full-write.h.
83233
83234 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83235
83236         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83237         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83238         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83239         Include if available.
83240         (<xalloc.h>): Include
83241         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83242         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83243         collide with FNM macros.
83244         (struct patopts): New struct.
83245         (struct exclude): Use it, as exclude patterns now come with options.
83246         (new_exclude): Support above changes.
83247         (new_exclude, add_exclude_file):
83248         Initial size must now be a power of two to simplify overflow checking.
83249         (free_exclude, fnmatch_no_wildcards): New function.
83250         (excluded_filename): No longer requires options arg, as the options
83251         are determined by add_exclude.  Now returns bool, not int.
83252         (excluded_filename, add_exclude):
83253         Add support for the fancy new exclusion options.
83254         (add_exclude, add_exclude_file): Now takes int options arg.
83255         Check for arithmetic overflow when computing sizes.
83256         (add_exclude_file): xrealloc might modify errno, so don't
83257         realloc until after errno might be used.
83258
83259         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83260         New macros.
83261         (free_exclude): New decl.
83262         (add_exclude, add_exclude_file): Now takes int options arg.
83263         (excluded_filename): No longer requires options arg, as the options
83264         are determined by add_exclude.  Now returns bool, not int.
83265
83266 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83267
83268         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83269
83270 2001-08-27  Jim Meyering  <meyering@lucent.com>
83271
83272         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83273
83274         * lib/version-etc.c (N_): Remove definition.
83275         Revert most of last change.
83276         Instead, simply don't mark the `Copyright...' string for translation.
83277         Based on advice from Paul Eggert.
83278
83279         * lib/strtoxmax.c: Tweak comment.
83280
83281 2001-08-26  Jim Meyering  <meyering@lucent.com>
83282
83283         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83284
83285         * m4/xstrtoimax.m4: New file.
83286         * m4/xstrtoumax.m4: Add comments explaining why we
83287         AC_REPLACE_FUNCS(strtol).
83288
83289 2001-08-26  Jim Meyering  <meyering@lucent.com>
83290
83291         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83292         of copyright with `%s' so translators don't get an untranslated
83293         message in 2002.
83294         (COPYRIGHT_YEAR): Define.
83295         (version_etc): Use fprintf rather than fputs.
83296         Suggestion from Ulrich Drepper.
83297
83298         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83299
83300         * lib/strtoll.c: New file, from GNU libc.
83301         * lib/xstrtoimax.c: New file.
83302
83303         * lib/xstrtol.h: Add xstrtoimax.
83304         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83305         * lib/strtoimax.c: New file.  Likewise, but first define
83306         STRTOUXMAX_SIGNED.
83307
83308         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83309         ...
83310         * lib/strtoxmax.c: ... then renamed to this.
83311
83312 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83313
83314         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83315         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83316         (jm_AC_TYPE_INTMAX_T): New macro.
83317         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83318
83319         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83320
83321         * m4/longlong.m4: Renamed from ulonglong.m4.
83322         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83323         * m4/uintmax_t.m4: Removed.
83324
83325 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83326
83327         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83328         Port to Solaris 8, where 'sed' requires a space after the 'r'
83329         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83330         Redirect output to $tmp just once.
83331
83332 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83333
83334         * lib/addext.c (<errno.h>): Include.
83335         (errno): Declare if not defined.
83336         (addext): Work correctly when pathconf returns -1 and leaves
83337         errno alone because there is no limit.  Also, work even if
83338         pathconf returns a value greater than SIZE_MAX.
83339
83340 2001-08-12  Jim Meyering  <meyering@lucent.com>
83341
83342         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83343         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83344         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83345         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83346         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83347         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83348         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83349         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83350         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83351         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83352         utime.m4, utimes.m4, xstrtoumax.m4:
83353         Quote the first argument in each use of AC_DEFUN.
83354
83355 2001-08-12  Jim Meyering  <meyering@lucent.com>
83356
83357         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83358         Simply `return getcwd (NULL, 0);'.
83359         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83360         Use 1300 as initial value for length, not PATH_MAX.
83361
83362         * lib/pathmax.h: Clean up cpp syntax.
83363
83364 2001-08-12  Jim Meyering  <meyering@lucent.com>
83365
83366         * lib/gettimeofday.c: New file.
83367         * lib/gtod.h: New file.
83368         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83369
83370 2001-08-05  Jim Meyering  <meyering@lucent.com>
83371
83372         * m4/jm-macros.m4: Require autoconf-2.52.
83373
83374 2001-08-04  Jim Meyering  <meyering@lucent.com>
83375
83376         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83377         stmt, to get in sync with glibc.
83378
83379 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83380
83381         The following changes are from gettext 0.10.39 as maintained by
83382         Bruno Haible.
83383
83384         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83385         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83386         with inverted sense.  All uses changed.
83387
83388         * lib/mbswidth.c: Don't include <limits.h>.
83389         Include <stdlib.h> and <string.h> unconditionally.
83390         (iswcntrl, mbsinit, ISCNTRL): New macros.
83391         (mbsnwidth): Use K&R style function declarations.
83392         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83393         can optimize it when MB_CUR_MAX == 1.
83394         The width of control characters is zero, not 1.
83395
83396 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83397
83398         The following changes are from gettext 0.10.39 as maintained by
83399         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83400
83401         * m4/codeset.m4: Upgrade to serial AM1.
83402         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83403         all uses changed.  Quote first arg of AC_DEFUN.
83404         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83405
83406         * m4/iconv.m4: Upgrade to serial AM2.
83407         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83408         Add --with-libconv-prefix.
83409         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83410         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83411         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83412         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83413         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83414
83415         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83416         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83417         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83418         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83419         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83420         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83421         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83422         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83423         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83424
83425         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83426         string.h any more.
83427
83428         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83429         not the default value.
83430
83431         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83432         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83433         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83434         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83435         Also check for iswcntrl, used for wcwidth fallback.
83436         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83437         to Autoconf 2.13.
83438
83439 2001-08-03  Jim Meyering  <meyering@lucent.com>
83440
83441         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83442         as it was in the original.  Reported by Paul Eggert.
83443
83444 2001-07-16  Jim Meyering  <meyering@lucent.com>
83445
83446         * m4/gettimeofday.m4: New file.
83447         Prompted by a report from Bernhard Baehr.
83448
83449 2001-07-15  Jim Meyering  <meyering@lucent.com>
83450
83451         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83452         stuff. Now it's in ../Makefile.cfg.
83453
83454 2001-07-15  Jim Meyering  <meyering@lucent.com>
83455
83456         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83457         (BUILT_SOURCES): Add unlocked-io.h.
83458         (io_functions): Define.
83459         (unlocked-io.h): New rule.
83460         (DISTCLEANFILES): Add unlocked-io.h.
83461         (all-local): Depend on unlocked-io.h, to ensure it is created.
83462
83463         * lib/unlocked-io.hin: New file
83464
83465         * lib/regex.c: Update from glibc.
83466
83467 2001-07-05  Jim Meyering  <meyering@lucent.com>
83468
83469         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83470         recommendation.
83471         (libfetish_a_SOURCES): Put all .h files here instead.
83472         Remove a thus-exposed (better checks in automake) duplicate and
83473         two unnecessary .h files.
83474
83475 2001-07-04  Jim Meyering  <meyering@lucent.com>
83476
83477         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83478         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83479         distcheck failure.
83480
83481 2001-07-02  Jim Meyering  <meyering@lucent.com>
83482
83483         The following changes were prompted by suggestions from Bruno Haible.
83484
83485         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83486         is now generated.
83487         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83488         definition of EXTRA_DIST.
83489         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83490         ensure that the generated file is created/updated whenever the list
83491         of $(unlocked_functions) is changed.
83492         (jm-glibc-io.m4): New rule.
83493         (unlocked-io.h): New rule -- currently unused.
83494
83495 2001-06-24  Jim Meyering  <meyering@lucent.com>
83496
83497         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83498         unmatched right bracket, rather than kludging it with an extra,
83499         falsely-matching quote in a comment.  Patch by Akim Demaille.
83500
83501 2001-06-11  Jim Meyering  <meyering@lucent.com>
83502
83503         * lib/regex.c: Update from GNU libc.
83504
83505 2001-05-27  Jim Meyering  <meyering@lucent.com>
83506
83507         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83508         Check for ut_type in struct utmp.
83509
83510 2001-05-27  Jim Meyering  <meyering@lucent.com>
83511
83512         * lib/readutmp.h (UT_TYPE): Define.
83513
83514 2001-05-24  Jim Meyering  <meyering@lucent.com>
83515
83516         * lib/argmatch.c: Include "quote.h".
83517         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83518         quote function.  Reported by Göran Uddeborg.
83519
83520 2001-05-22  Jim Meyering  <meyering@lucent.com>
83521
83522         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83523         now that we use the package-supplied version unconditionally.
83524         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83525
83526 2001-05-21  Jim Meyering  <meyering@lucent.com>
83527
83528         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83529         shell syntax errors.
83530
83531 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83532
83533         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83534
83535 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83536
83537         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83538         Don't bother to check library strftime, since
83539         we'll be using our own my_strftime function anyway.
83540         Define my_strftime instead of strftime.
83541
83542 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83543
83544         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83545         which is not yet declared.
83546
83547 2001-05-15  Jim Meyering  <meyering@lucent.com>
83548
83549         * m4/regex.m4: Use proper quoting so brackets appear in the test
83550         program.
83551         Reported by, and with help from, Bruno Haible.
83552
83553 2001-05-13  Jim Meyering  <meyering@lucent.com>
83554
83555         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83556         undefined.
83557
83558 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83559
83560         dirname code cleanup.  base_name now behaves more compatibly
83561         with POSIX basename when given file names that have trailing
83562         slashes, and similarly for dir_name.  Add new primitives
83563         base_len and dir_len.  Put the directory-name-related decls
83564         into dirname.h.
83565
83566         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83567         * lib/backupfile.c (base_name): Likewise.
83568         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83569         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83570         * lib/makepath.c (strip_trailing_slashes): Likewise.
83571         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83572         ISSLASH): Likewise.
83573         * lib/rename.c (strip_trailing_slashes): Likewise.
83574         * lib/same.c (base_name): Likewise.
83575         * lib/stripslash.c (ISSLASH): Likewise.
83576
83577         * lib/addext.c: Include <dirname.h> after size_t is defined.
83578         * lib/backupfile.c: Likewise.
83579
83580         * lib/addext.c (addext): Use base_len to trim redundant
83581         trailing slashes instead of doing it ourselves.
83582         But do not trim the last slash if it is not redundant.
83583
83584         * lib/backupfile.c (find_backup_file_name,
83585         max_backup_version): Use base_len instead of rolling it ourselves.
83586         Handle the case of "" and (on DOS) "C:" correctly.
83587
83588         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83589         needed. Include <string.h>, <dirname.h>.
83590         (base_name): Allow file names ending in slashes, other than names
83591         that are all slashes.  In this case, return the basename followed
83592         by the slashes.  This is more general, and can be used in places
83593         where the original base_name purposely had an assertion failure.
83594         (base_len): New function.
83595
83596         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83597         Do not include <assert.h>; no longer needed.
83598         Include xalloc.h.
83599         (memrchr): Remove decl.
83600         (dir_name_r): Remove.
83601         (dir_len): Renamed from dirlen.  All callers changed.
83602         Rewrite in terms of base_name, for simplicity and consistency.
83603         (dir_name): Never return NULL.  All callers changed.
83604         Do not include <stdlib.h> in test program; no longer needed.
83605         return 0; is fine for test program.
83606
83607         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83608         New macros.
83609         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83610
83611         * lib/path-concat.c (path_concat): Use base_len to compute
83612         base length, not strlen; this means we cannot rely on memcpy
83613         to null-terminate.
83614
83615         * lib/same.c (STREQ): Remove.
83616         (same_name): Handle the case where the basename ends in trailing '/'.
83617
83618         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83619         a slash was stripped.  Do not strip the last slash after a
83620         file system prefix.
83621
83622 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83623
83624         * lib/Makefile.am (libfetish_a_SOURCES):
83625         Add strftime.c, since we now compile it on all hosts.
83626
83627         * lib/strftime.c (my_strftime):
83628         Define to nstrftime if emacs, but only if my_strftime is not defined.
83629         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83630         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83631         Add one more extra argument: a nanoseconds value.
83632         All uses changed.
83633         (ns): New macro.
83634         (my_strftime function): Add %N format.
83635         (emacs_strftimeu): Renamed from emacs_strftime,
83636         with extra ut argument.
83637
83638 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83639
83640         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83641
83642 2001-04-21  Jim Meyering  <meyering@lucent.com>
83643
83644         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83645         doesn't interfere.
83646
83647 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83648
83649         * m4/ftruncate.m4: Check for chsize.
83650         Link with ftruncate.o unconditionally if ftruncate is missing.
83651         This was required when cross-compiling to i586-mingw32msvc.
83652
83653 2001-04-08  Jim Meyering  <meyering@lucent.com>
83654
83655         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83656         recomputed; that's necessary when the offset spans a DST transition.
83657         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83658
83659 2001-04-02  Jim Meyering  <meyering@lucent.com>
83660
83661         * lib/regex.h, regex.c: Update from GNU libc.
83662
83663 2001-03-24  Jim Meyering  <meyering@lucent.com>
83664
83665         * m4/jm-macros.m4: Require autoconf-2.49d.
83666
83667 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83668
83669         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83670
83671 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83672
83673         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83674
83675 2001-03-17  Jim Meyering  <meyering@lucent.com>
83676
83677         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83678         now that the version in autoconf is equivalent.
83679         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83680
83681         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83682         Suggestion from Akim Demaille.
83683
83684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83685         (jm_PREREQ_TEMPNAME): New function.
83686
83687 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83688
83689         * lib/tempname.c (uint64_t): Define to uintmax_t if
83690         not defined, and if UINT64_MAX is not defined.
83691         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83692         Reported by John David Anglin.
83693
83694 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83695
83696         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83697         resolve alias if codeset is empty.
83698         * lib/config.charset (BeOS): Use wildcard syntax.
83699
83700 2001-03-13  Jim Meyering  <meyering@lucent.com>
83701
83702         * lib/path-concat.c (path_concat)
83703         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83704         concatenating e.g., `C:' and `foo'.
83705         From Bruno Haible.
83706
83707 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83708
83709         * lib/localcharset.c (locale_charset): Don't use
83710         setlocale(LC_CTYPE,NULL). Don't return NULL.
83711         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83712
83713 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83714
83715         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83716         support for DOS/DJGPP.
83717
83718 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83719
83720         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83721         lacks mkstemp.  Compile our own tempname.c if we compile our own
83722         mkstemp.c, as mkstemp relies on tempname.
83723
83724 2001-03-01  Jim Meyering  <meyering@lucent.com>
83725
83726         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83727         AH_VERBATIM really does output its argument verbatim.
83728
83729 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83730
83731         * lib/Makefile.am (libfetish_a_SOURCES):
83732         Add dup-safer.c, fopen-safer.c.
83733         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83734
83735         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83736         * lib/unistd-safer.h: New files.
83737
83738 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83739
83740         The mkstemp replacement is taken from glibc 2.2.2, with some
83741         portability fixes for use outside glibc, as follows:
83742
83743         * lib/tempname.c (struct_stat64): New macro.
83744         (direxists, __gen_tempname): Use it.
83745         This avoids a portability problem with Solaris 8.
83746
83747         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83748         (<stddef.h>, <stdint.h>, <string.h>):
83749         Include only if STDC_HEADERS || _LIBC.
83750         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83751         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83752         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83753         (__set_errno): Define this macro if <errno.h> doesn't.
83754         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83755         Define these macros if <stdio.h> doesn't.
83756         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83757         Define these macros if <sys/stat.h>
83758         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83759         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83760         __xstat64): Define if not _LIBC.
83761         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83762         (__gen_tempname): Invoke gettimeofday only if
83763         HAVE_GETTIMEOFDAY || _LIBC;
83764         otherwise, fall back on plain "time".
83765         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83766
83767         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83768
83769         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83770
83771 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83772
83773         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83774
83775 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83776
83777         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83778         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83779         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83780         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83781
83782 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83783
83784         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83785         Remove workaround macros for hosts that have mbrtowc but not
83786         mbstate_t, as we now insist on proper declarations for both
83787         before using mbrtowc.
83788
83789 2001-02-17  Jim Meyering  <meyering@lucent.com>
83790
83791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83792         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83793         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83794         UnixWare 7.1.1.
83795
83796         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83797         rather than AC_CACHE_VAL.
83798
83799 2001-02-17  Jim Meyering  <meyering@lucent.com>
83800
83801         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83802         around included file name.
83803
83804         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83805
83806         * lib/strftime.c: Update from GNU libc (the only changes were to
83807         comments).
83808
83809 2001-02-17  Jim Meyering  <meyering@lucent.com>
83810
83811         * lib/regex.c: Update from libc.
83812
83813 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83814
83815         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83816         clash.
83817
83818 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83819
83820         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83821         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83822         Reported by Mark Hounschell via Paul Eggert.
83823
83824 2001-02-07  Jim Meyering  <meyering@lucent.com>
83825
83826         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83827
83828 2001-02-05  Jim Meyering  <meyering@lucent.com>
83829
83830         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83831         it includes the patch required for `large file' support with at least
83832         HP-UX's 10.20 /bin/cc.
83833
83834 2001-02-03  Jim Meyering  <meyering@lucent.com>
83835
83836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83837         AS_IF, now that it works once again (mysteriously).
83838         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83839
83840 2001-01-30  Jim Meyering  <meyering@lucent.com>
83841
83842         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83843         * m4/chown.m4: Rename conftestchown to conftest.chown.
83844         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83845         s/conftestdir2/conftest.d2/.
83846         * m4/utimes.m4: s/conftestdata/conftest.data/
83847         Inspired by Pavel Roskin's change in autoconf.
83848
83849 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83850
83851         * lib/config.charset: Update for FreeBSD 4.2.
83852
83853 2001-01-27  Jim Meyering  <meyering@lucent.com>
83854
83855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83856         a use of AS_IF.
83857         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83858
83859 2001-01-26  Jim Meyering  <meyering@lucent.com>
83860
83861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83862         quotearg.c includes it.
83863
83864 2001-01-26  Jim Meyering  <meyering@lucent.com>
83865
83866         * lib/quotearg.c: Include stddef.h.
83867         * lib/quote.c: Include stddef.h.
83868         Reported by Axel Kittenberger.
83869
83870         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83871         line in double quotes so that it evokes a better diagnostic.
83872         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83873         Reported by Axel Kittenberger.
83874
83875 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83876
83877         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83878         as if it was a `charset'.
83879
83880 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83881
83882         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83883         has const.
83884
83885 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83886
83887         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83888         to avoid a warning.  Add back 'const' to inptr.
83889
83890 2001-01-20  Jim Meyering  <meyering@lucent.com>
83891
83892         Be sure that headers are checked before used in code compiled
83893         for the type checks.
83894         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83895         In place of that, invoke jm_CHECK_ALL_TYPES.
83896         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83897         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83898         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83899         The check for ssize_t was mistakenly run before the test for unistd.h.
83900
83901         The configure-time check for stdbool.h was missing.
83902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83903         (jm_PREREQ_HASH): New function.
83904
83905 2001-01-17  Jim Meyering  <meyering@lucent.com>
83906
83907         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83908         for autoconf-2.49c.
83909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83910
83911 2001-01-16  Jim Meyering  <meyering@lucent.com>
83912
83913         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83914         From Bruno Haible.
83915
83916 2001-01-14  Jim Meyering  <meyering@lucent.com>
83917
83918         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83919         foo and bar.  Create conftestdir/ in the script, not in the C code.
83920         Remove directories in the script, not in the C code.
83921         Remove conftestdir{,2} before trying to create the directory.
83922         Make the entire configure script fail if the mkdir fails.
83923
83924 2001-01-14  Jim Meyering  <meyering@lucent.com>
83925
83926         * lib/rename.c: New file.  From Volker Borchert.
83927         Include stdlib.h, string.h or strings.h, and xalloc.h.
83928         Use strip_trailing_slashes rather than open-coding it.
83929
83930 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83931
83932         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83933
83934 2001-01-03  Jim Meyering  <meyering@lucent.com>
83935
83936         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83937         of local `inptr' to avoid warning with some system declarations of
83938         iconv.
83939
83940 2001-01-02  Volker Borchert  <bt@teknon.de>
83941
83942         * m4/rename.m4: New file.
83943         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83944
83945 2001-01-01  Jim Meyering  <meyering@lucent.com>
83946
83947         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83948         even on systems with utmpx.h.  It's necessary for the declaration of
83949         utmp's ut_user member.  Reported by Andreas Jaeger.
83950
83951         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83952         available. They are required for the declarations of getgrgid and
83953         getpwuid resp.
83954         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83955         Reported by Andreas Jaeger.
83956
83957 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83958
83959         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83960         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83961         so `make install' also works in VPATH builds.
83962
83963 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83964
83965         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83966         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83967         can be used in subdirectories.
83968
83969 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83970
83971         * lib/modechange.c: Do not assume that mode_t uses the
83972         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83973         the other-execute bit of FOO even if S_IXOTH != 1.
83974
83975         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83976         WOTH, XOTH, ALLM): New macros.
83977         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83978          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83979         Use them.
83980         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83981         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83982         (mode_compile):
83983         No need to use uintmax_t; unsigned long is long enough.
83984         Don't bother to get suffix since we don't use it.
83985
83986 2000-12-26  Jim Meyering  <meyering@lucent.com>
83987
83988         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83989         better with autoheader.
83990
83991 2000-12-24  Jim Meyering  <meyering@lucent.com>
83992
83993         * lib/hash.c (is_prime): Return explicit boolean values.
83994         (hash_get_first): Return NULL to appease Irix5.6's 89.
83995         Reported by Nelson Beebe.
83996
83997 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83998
83999         * lib/localcharset.c (locale_charset): Add support for Win32.
84000
84001 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84002
84003         * lib/physmem.h, lib/physmem.c: New files.
84004
84005         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84006         (noinst_HEADERS): Add physmem.h.
84007
84008         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84009         't' for compatibility with Solaris 8 sort.
84010
84011 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84012
84013         * lib/config.charset: Add support for BeOS.
84014
84015 2000-12-17  Jim Meyering  <meyering@lucent.com>
84016
84017         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84018         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84019
84020 2000-12-16  Jim Meyering  <meyering@lucent.com>
84021
84022         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84023         N and M) would have treated it like `chown N:N FILE'.
84024
84025         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84026
84027 2000-12-16  Jim Meyering  <meyering@lucent.com>
84028
84029         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84030         SHELLS_FILE to a file name that's useful on djgpp systems.
84031         Include stdlib.h.
84032         (ADDITIONAL_DEFAULT_SHELLS): Define.
84033         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84034         Based mostly on a patch from Prashant TR.
84035
84036 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84037
84038         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84039         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84040         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84041
84042 2000-12-08  Andreas Schwab  <schwab@suse.de>
84043
84044         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84045         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84046
84047 2000-12-07  Jim Meyering  <meyering@lucent.com>
84048
84049         * lib/stripslash.c (ISSLASH): Define.
84050         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84051         `/'.
84052         From Prashant TR.
84053
84054         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84055         (dir_name_r): Declare this function as static.
84056         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84057         manifest itself on a name containing a mix of slashes and
84058         backslashes.
84059         Make this function work with names starting with a DOS-style
84060         drive letter and colon prefix.
84061         (dir_name): Append `.' if necessary.
84062         Based mostly on patches from Prashant TR and Eli Zaretskii.
84063
84064         * lib/dirname.h (dir_name_r): Remove prototype.
84065
84066 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84067
84068         * m4/off_t-format.m4: Remove this file.
84069         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84070
84071 2000-12-06  Jim Meyering  <meyering@lucent.com>
84072
84073         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84074         replacement strtoull, we may well need the replacement strtoul, too.
84075         Check for declarations of strtoul and strtoull.
84076         Check for strtol.  Mainly as a cue to cause automake to include
84077         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84078         Check for limits.h -- strtol.c needs it.
84079
84080 2000-12-05  Jim Meyering  <meyering@lucent.com>
84081
84082         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84083
84084 2000-12-04  Jim Meyering  <meyering@lucent.com>
84085
84086         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84087         Also include memory.h, stdlib.h, unistd.h if appropriate.
84088         Reported by Andreas Jaeger (conflicting declaration of malloc).
84089
84090 2000-12-02  Jim Meyering  <meyering@lucent.com>
84091
84092         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84093         * m4/jm-macros.m4 (jm_MACROS): require it.
84094
84095 2000-12-02  Jim Meyering  <meyering@lucent.com>
84096
84097         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84098
84099 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84100
84101         * lib/memrchr.c: Include <config.h> before any system include file.
84102
84103 2000-11-30  Jim Meyering  <meyering@lucent.com>
84104
84105         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84106
84107 2000-11-30  Jim Meyering  <meyering@lucent.com>
84108
84109         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84110
84111 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84112
84113         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84114
84115 2000-11-26  Jim Meyering  <meyering@lucent.com>
84116
84117         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84118
84119 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84120
84121         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84122         size of (size_t) -1; it's not portable.
84123
84124 2000-11-17  Jim Meyering  <meyering@lucent.com>
84125
84126         * lib/strstr.c: Update from GNU libc.
84127
84128 2000-11-17  Akim Demaille  <akim@epita.fr>
84129
84130         * lib/obstack.h: Formatting changes.
84131         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84132         prevent type checking.
84133         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84134         cast the value to (void *): assigning a `foo *' to a `void *'
84135         variable is valid.
84136         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84137
84138 2000-11-16  Jim Meyering  <meyering@lucent.com>
84139
84140         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84141
84142 2000-11-11  Jim Meyering  <meyering@lucent.com>
84143
84144         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84145
84146 2000-11-10  Jim Meyering  <meyering@lucent.com>
84147
84148         * lib/obstack.h: Update from GNU libc.
84149         * lib/obstack.c: Likewise.
84150
84151 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84152
84153         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84154
84155 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84156
84157         * lib/getusershell.c (setusershell): Use rewind rather than
84158         fseek/fseeko, to avoid configuration hassles with fseeko.
84159         Don't bother opening SHELLS_FILE if shellstream is NULL;
84160         it's not necessary.
84161
84162 2000-11-05  Jim Meyering  <meyering@lucent.com>
84163
84164         * lib/makepath.h (make_dir): Declare.
84165         * lib/makepath.c (make_dir): Remove `static' attribute.
84166         Tweak a comment.
84167
84168 2000-11-04  Jim Meyering  <meyering@lucent.com>
84169
84170         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84171
84172 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84173
84174         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84175         last one in a bucket, advance to the next bucket.
84176
84177 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84178
84179         * lib/fnmatch.c: Do not comment out all the code if we are using
84180         the GNU C library, because in some cases we are replacing buggy
84181         code in the GNU C library itself.
84182
84183 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84184
84185         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84186         (regex_compile): Catch bogus \(\1\).
84187
84188 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84191         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84192         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84193
84194 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84195
84196         * lib/error.h, getline.h, modechange.h:
84197         Remove "2000" from Copyright line, as the file hasn't been
84198         changed this year other than in the copyright notice.
84199
84200         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84201         was changed this year.
84202
84203 2000-10-29  Jim Meyering  <meyering@lucent.com>
84204
84205         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84206         renaming.
84207         * m4/ls-mntd-fs.m4: Likewise
84208
84209 2000-10-29  Jim Meyering  <meyering@lucent.com>
84210
84211         * lib/xstat.in: Fix grammar in comment.
84212
84213 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84214
84215         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84216         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84217         doesn't define __restrict_arr.
84218
84219 2000-10-28  Jim Meyering  <meyering@lucent.com>
84220
84221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84222         (jm_PREREQ_MEMCHR): New function.
84223
84224 2000-10-28  Jim Meyering  <meyering@lucent.com>
84225
84226         * lib/memchr.c: Update from libc.
84227         Adjust for portability:
84228         [HAVE_STDLIB_H]: Include stdlib.h.
84229         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84230         Undef __memchr, too.
84231         [!weak_alias]: Define __memchr to memchr.
84232
84233         * lib/regex.c: Update from libc.
84234         * lib/regex.h: Likewise.
84235         * lib/getopt1.c: Likewise.
84236         * lib/memcmp.c: Likewise.
84237
84238         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84239         Avoid using fseek, when possible -- it's broken by design.
84240         Patch by Ulrich Drepper.
84241
84242 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84243
84244         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84245         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84246         Giving in to popular pressure to shut up the compiler with casts.
84247
84248 2000-10-26  Jim Meyering  <meyering@lucent.com>
84249
84250         * lib/strftime.c: Update from libc.
84251
84252 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84253
84254         * regex.c: More `unsigned char' -> `re_char' changes.
84255         Also change several `int' into `re_wchar_t'.
84256         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84257         (PUSH_FAILURE_POINTER): Don't cast any more.
84258         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84259         We want GCC to complain, since this piece of code makes
84260         re_match non-reentrant, which *should* be fixed.
84261         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84262         (EXTEND_BUFFER): Use RETALLOC.
84263         (SET_LIST_BIT): Don't cast.
84264         (re_wchar_t): New type.
84265         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84266         that those two functions will always properly return.
84267         (IMMEDIATE_QUIT_CHECK): Cast to void.
84268         (analyse_first): Use recursion rather than an explicit stack.
84269         (re_compile_fastmap): Can't fail anymore.
84270         (re_search_2): Don't check re_compile_fastmap for failure.
84271         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84272         Now also sets the new value (passed in a new argument).
84273         (re_match_2_internal): Use it.
84274         Also, use a new var `reg' of type size_t when looping through regs
84275         rather than reuse the inappropriate `mcnt'.
84276
84277 2000-10-25  Jim Meyering  <meyering@lucent.com>
84278
84279         * lib/obstack.c: Update from libc.
84280
84281 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84282
84283         * regex.c (regex_compile): Change the way of handling a range from
84284         a char less than 256 to a char not less than 256.
84285
84286 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84287
84288         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84289         NT-Emacs only.
84290         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84291         so that re_search functions only quit when callers expect them to.
84292
84293 2000-10-23  Jim Meyering  <meyering@lucent.com>
84294
84295         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84296         wrong.  That set_locale call must not have any side effects.
84297         From Paul Eggert.
84298
84299 2000-10-22  Jim Meyering  <meyering@lucent.com>
84300
84301         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84302         [CYCLIC]: Remove now-unused definition.
84303
84304         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84305         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84306         Suggestion from Ulrich Drepper.
84307
84308 2000-10-21  Jim Meyering  <meyering@lucent.com>
84309
84310         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84311         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84313
84314 2000-10-21  Jim Meyering  <meyering@lucent.com>
84315
84316         * lib/dirname.c (memrchr): Declare if necessary.
84317         (dir_name): Remove the restriction that there be no
84318         trailing slashes.  Now, this code skips past them, effectively
84319         ignoring them.
84320         [TEST_DIRNAME] (main): New unit tests.
84321
84322         * lib/memrchr.c: New file from GNU libc.
84323         Undef __memrchr, too.
84324         [!weak_alias]: Define __memrchr to memrchr.
84325         Guard weak_alias use with `#ifdef weak_alias'.
84326
84327 2000-10-21  Jim Meyering  <meyering@lucent.com>
84328
84329         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84330         (dir_name): Use dir_name_r.
84331         * lib/dirname.h (dir_name_r): Declare it.
84332
84333 2000-10-17  Jim Meyering  <meyering@lucent.com>
84334
84335         * lib/quote.h (PARAMS): Define and use.
84336         Reported by Akim Demaille.
84337
84338         * lib/getopt.c: Update from libc.
84339
84340 2000-10-16  Jim Meyering  <meyering@lucent.com>
84341
84342         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84343         setlocale.
84344         From Jan Fedak.
84345
84346 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84347
84348         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84349
84350 2000-09-25  Jim Meyering  <meyering@lucent.com>
84351
84352         * lib/md5.h (rol): Define (from GnuPG).
84353
84354         * lib/sha.c: Give credit (GnuPG) where due.
84355         (M): Use rol rather than open-coding it.
84356         Add a FIXME comment.
84357
84358 2000-09-21  Jim Meyering  <meyering@lucent.com>
84359
84360         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84361         Reported by Michael Stone.
84362
84363 2000-09-20  Jim Meyering  <meyering@lucent.com>
84364
84365         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84366         (noinst_HEADERS): Add sha.h.
84367         Based on code from Scott G. Miller and from GnuPG.
84368
84369 2000-09-18  Jim Meyering  <meyering@lucent.com>
84370
84371         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84372         LIBS. Otherwise, everyone ends up linking with -lelf for some
84373         configurations.
84374         Reported by Mike Stone.
84375
84376 2000-09-15  Jim Meyering  <meyering@lucent.com>
84377
84378         * lib/regex.c: Update from libc.
84379
84380 2000-09-10  Jim Meyering  <meyering@lucent.com>
84381
84382         * lib/getopt.c (_getopt_internal): Update from glibc.
84383
84384 2000-09-09  Jim Meyering  <meyering@lucent.com>
84385
84386         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84387         think it should be used as a general replacement for isascii.
84388         * lib/fnmatch.c: Likewise.
84389         * lib/mbswidth.c: Likewise
84390         * lib/regex.c: Likewise.
84391
84392         Don't use atoi.
84393         * lib/userspec.c: Include sys/param.h and limits.h.
84394         Include xstrtol.h.
84395         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84396         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84397         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84398         UID, GID.  Check range.
84399
84400 2000-09-06  Jim Meyering  <meyering@lucent.com>
84401
84402         * lib/getopt.c (_getopt_internal): Update from glibc.
84403
84404 2000-08-30  Jim Meyering  <meyering@lucent.com>
84405
84406         * lib/strftime.c: Merge in changes from GNU libc.
84407
84408 2000-08-26  Jim Meyering  <meyering@lucent.com>
84409
84410         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84411         * m4/fpending.m4: New file.
84412
84413 2000-08-26  Jim Meyering  <meyering@lucent.com>
84414
84415         * lib/closeout.c: Include "__fpending.h".
84416         (close_stdout_status): Return right away if there's nothing to flush.
84417
84418         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84419         * lib/__fpending.c: New file.
84420         * lib/__fpending.h: New file.
84421
84422 2000-08-20  Jim Meyering  <meyering@lucent.com>
84423
84424         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84425         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84426         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84427
84428 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84429
84430         Improve fileutils installation on systems where running
84431         programs (like install) can't be unlinked.
84432         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84433         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84434
84435 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84436
84437         Standardize on "memory exhausted" instead of "Memory exhausted"
84438         or "virtual memory exhausted".
84439         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84440         "virtual memory exhausted".
84441         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84442         our own message.
84443         * lib/userspec.c (parse_user_spec): Likewise.
84444         * lib/bumpalloc.h: comment fix
84445         * lib/same.c, userspec.c: Include xalloc.h.
84446
84447         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84448         not char *const and pointing to a constant array.
84449         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84450         (xrealloc): Comment fix.
84451
84452         * lib/userspec.c (parse_user_spec):
84453         Don't translate a message until just before returning,
84454         to avoid unnecessary translation.
84455
84456 2000-08-07  Jim Meyering  <meyering@lucent.com>
84457
84458         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84459         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84460         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84461         getgroups.c, gethostname.c, getopt.h, group-member.c,
84462         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84463         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84464         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84465         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84466         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84467         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84468         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84469         yesno.c: Back out Copyright date changes for each file with no change
84470         this year.  This eases coordination with other programs using the same
84471         source code modules.  From Paul Eggert.
84472
84473 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84474
84475         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84476         not char, for compatibility with glibc 2.1.3 strftime.c.
84477
84478 2000-08-03  Greg McGary  <greg@mcgary.org>
84479
84480         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84481         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84482         (EXTEND_BUFFER): Use them.
84483
84484 2000-08-01  Jim Meyering  <meyering@lucent.com>
84485
84486         * lib/dirname.c (ISSLASH): Define.
84487         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84488         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84489         both `\' and `/' may be use as path separators.
84490         Based on a patch from Prashant TR.
84491
84492 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84493
84494         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84495         slot vector a constant, since it might get modified.
84496
84497 2000-07-31  Jim Meyering  <meyering@lucent.com>
84498
84499         * lib/xmalloc.c: Use `virtual memory exhausted', not
84500         `Memory exhausted'.
84501         * lib/obstack.c (print_and_abort): Likewise.
84502
84503 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84504
84505         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84506         buffer, so that the caller can always quote one small
84507         component of a "memory exhausted" message in slot 0.
84508         From a suggestion by Jim Meyering.
84509
84510 2000-07-30  Jim Meyering  <meyering@lucent.com>
84511
84512         * lib/makepath.c (make_path): Quote the other instance, too.
84513
84514         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84515         (STATIC_BUF_SIZE): Define.
84516         (quotearg_n_options): Use only statically allocated storage when
84517         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84518         than STATIC_BUF_SIZE.
84519
84520 2000-07-29  Jim Meyering  <meyering@lucent.com>
84521
84522         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84523         * lib/dirname.c (dir_name): Likewise.
84524
84525         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84526         `/'.
84527
84528         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84529         (dir_name): Assert that there are no trailing slashes.
84530
84531 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84532
84533         * lib/mbswidth.h (mbswidth): Add a flags argument.
84534         (mbswidth): New declaration.
84535         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84536         * lib/mbswidth.c (mbswidth): Add a flags argument.
84537         (mbsnwidth): New function.
84538
84539 2000-07-24  Jim Meyering  <meyering@lucent.com>
84540
84541         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84542
84543 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84544
84545         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84546
84547 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84548
84549         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84550         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84551         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84552         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84553         invoke multibyte primitives.
84554
84555 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84556
84557         * lib/quotearg.c:
84558         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84559         so that mbstate_t is always defined.
84560
84561         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84562         be 1 in at least one GCC installation, and this configuration
84563         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84564         performance on hosts that have mbrtowc but have only unibyte
84565         locales, but I assume these hosts are rare.
84566
84567 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84568
84569         * lib/mbswidth.c (_XOPEN_SOURCE):
84570         Don't define; this causes problems on Solaris 7.
84571         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84572
84573 2000-07-23  Jim Meyering  <meyering@lucent.com>
84574
84575         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84576         too: getgrgid, getpwuid, getuid.
84577
84578 2000-07-23  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/basename.c (base_name): Add an assertion.
84581
84582 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84583
84584         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84585         shadow its mbsinit function.
84586
84587 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84588
84589         * lib/mbswidth.h: New file.
84590         * lib/mbswidth.c: New file.
84591         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84592         (noinst_HEADERS): Add mbswidth.h.
84593
84594 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84595
84596         * lib/config.charset: Add support for FreeBSD. Improve support for
84597         HP-UX and IRIX 6.
84598
84599 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84600
84601         * m4/mbswidth.m4: New file.
84602         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84603
84604 2000-07-15  Jim Meyering  <meyering@lucent.com>
84605
84606         * lib/makepath.c: Include quote.h.
84607         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84608         corresponding argument in a `quote (...)' call.
84609         Give better diagnostics.
84610
84611         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84612         (noinst_HEADERS): Add quote.h.
84613
84614         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84615         from tar's src/misc.c.
84616         * lib/quote.h: New file.  Prototypes for same.
84617
84618 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84619
84620         From a suggestion by Bruno Haible.
84621         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84622         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84623         to decide whether to define the BeOS workaround macro;
84624         this adjusts to the change to AC_MBSTATE_T.
84625
84626 2000-07-14  Jim Meyering  <meyering@lucent.com>
84627
84628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84629         jm_AC_TYPE_UINTMAX_T.
84630
84631 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84632
84633         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84634
84635         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84636         quotearg_buffer_restyled): Add support for
84637         clocale_quoting_style.  Undo previous change to
84638         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84639         and "{RIGHT QUOTATION MARK}" msgids.
84640
84641 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84642
84643         From a suggestion by Bruno Haible.
84644         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84645         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84646         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84647         and mbstate_t, to a single-part test that simply defines mbstate_t.
84648         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84649         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84650
84651 2000-07-10  Jim Meyering  <meyering@lucent.com>
84652
84653         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84654
84655         * m4/gnu-source.m4: Output to confdefs.h directly.
84656         Suggestion from Akim Demaille.
84657
84658 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84659
84660         The old behavior of quoting `like this' doesn't look good with
84661         newer, ISO-style fonts.  See:
84662         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84663
84664         Instead, quote "like this" by default.  Let the translator
84665         tailor the locale-specific quoting behavior by providing
84666         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84667
84668         * lib/quotearg.c (N_): New macro.
84669         (gettext_default): New function.
84670         (quotearg_buffer_restyled): Use
84671         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84672         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84673
84674 2000-07-09  Jim Meyering  <meyering@lucent.com>
84675
84676         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84677         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84678
84679         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84681
84682 2000-07-09  Jim Meyering  <meyering@lucent.com>
84683
84684         * lib/Most files: Update copyright dates to include 2000.
84685
84686 2000-07-08  Jim Meyering  <meyering@lucent.com>
84687
84688         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84689         if not defined.
84690         (xgethostname): Remove now-unnecessary #ifdef.
84691         Move declaration of `err' into loop where it's used.
84692
84693 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84694         and Bruno Haible  <haible@clisp.cons.org>
84695
84696         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84697         only if the test for an object-type mbstate_t fails.  This
84698         prevents us from mistakenly reporting that mbstate_t is a
84699         system object type after we "#define mbstate_t int" to work
84700         around its lack.
84701
84702 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84703         and Bruno Haible  <haible@clisp.cons.org>
84704
84705         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84706
84707 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84708
84709         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84710         to strerror_r.
84711         Include <ctype.h> for use of isalpha.
84712
84713 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84714
84715         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84716         by allocating a larger buffer. Test the gethostname return value for
84717         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84718         returns an error and ENAMETOOLONG isn't defined.
84719
84720 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84721
84722         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84723         dimension.
84724
84725 2000-07-04  Jim Meyering  <meyering@lucent.com>
84726
84727         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84728         of the deprecated AC_CHECKING.
84729
84730 2000-07-04  Jim Meyering  <meyering@lucent.com>
84731
84732         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84733         Reported by Bruno Haible.
84734
84735 2000-07-04  Jim Meyering  <meyering@lucent.com>
84736
84737         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84738         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84739         lacks mbrtowc.
84740
84741 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84742
84743         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84744         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84745
84746 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84747         and Bruno Haible  <haible@clisp.cons.org>
84748
84749         * lib/quotearg.c (mbrtowc):
84750         Assign to *pwc, and return 1 only if result is nonzero.
84751         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84752
84753 2000-07-03  Jim Meyering  <meyering@lucent.com>
84754
84755         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84756
84757 2000-07-03  Jim Meyering  <meyering@lucent.com>
84758
84759         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84760         This is necessary to get a definition of e.g., UTMP_FILE on
84761         HP-UX 10.20.
84762         From Bob Proulx.
84763
84764 2000-07-02  Jim Meyering  <meyering@lucent.com>
84765
84766         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84767
84768         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84769         AC_LIBOBJ(function_name).
84770         * m4/chown.m4: Likewise.
84771         * m4/fnmatch.m4: Likewise.
84772         * m4/ftruncate.m4: Likewise.
84773         * m4/getgroups.m4: Likewise.
84774         * m4/getline.m4: Likewise.
84775         * m4/group-member.m4: Likewise.
84776         * m4/jm-macros.m4: Likewise.
84777         * m4/lstat.m4: Likewise.
84778         * m4/malloc.m4: Likewise.
84779         * m4/memcmp.m4: Likewise.
84780         * m4/nanosleep.m4: Likewise.
84781         * m4/putenv.m4: Likewise.
84782         * m4/realloc.m4: Likewise.
84783         * m4/regex.m4: Likewise.
84784         * m4/stat.m4: Likewise.
84785         * m4/strftime.m4: Likewise.
84786
84787 2000-07-02  Jim Meyering  <meyering@lucent.com>
84788
84789         * lib/quotearg.c (mbstate_t): Don't define here.
84790
84791 2000-07-02  Jim Meyering  <meyering@lucent.com>
84792
84793         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84794
84795 2000-07-01  Jim Meyering  <meyering@lucent.com>
84796
84797         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84798
84799 2000-07-01  Jim Meyering  <meyering@lucent.com>
84800
84801         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84802         problem.
84803
84804 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84805
84806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84807         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84808
84809 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84810
84811         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84812         per change in ../m4/ls-mntd-fs.m4.
84813         (read_filesystem_list): Ignore symbolic links.
84814
84815 2000-06-29  Jim Meyering  <meyering@lucent.com>
84816
84817         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84818         for declaration of strcmp.
84819
84820         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84821
84822         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84823         Avoid warning by casting result to `char *' to remove `const'.
84824
84825 2000-06-28  Jim Meyering  <meyering@lucent.com>
84826
84827         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84828         included by quotearg.c, for which we perform this test.  From
84829         Bruno Haible.
84830
84831 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84832
84833         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84834         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84835         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84836
84837 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84838
84839         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84840
84841 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84842
84843         savedir now sets errno on failure and invokes xmalloc to get memory.
84844         Fix a couple of other minor bugs while we're at it.
84845
84846         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84847         (NAMLEN): Remove macro.
84848         (malloc, realloc): Remove decls.
84849         (stpcpy): Likewise.
84850         ("xalloc.h"): Include.
84851         (NAME_SIZE_DEFAULT): New macro.
84852         (savedir): Use xmalloc / xrealloc to allocate memory.
84853         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84854         Skip "" directory entries.
84855         Use strlen to calculate directory entry length, since the old method
84856         is rarely used these days and isn't worth supporting.
84857         Don't use a pointer after freeing it.
84858         Check for integer overflow when calculating allocation size.
84859         Use memcpy to copy entries, instead of stpcpy.
84860         Set errno properly when returning NULL.
84861         Check for readdir error.
84862
84863 2000-06-26  Jim Meyering  <meyering@lucent.com>
84864
84865         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84866
84867 2000-06-25  Jim Meyering  <meyering@lucent.com>
84868
84869         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84870         Linux header bug when _XOPEN_SOURCE is defined to 500.
84871
84872 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84873
84874         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84875         deficiency.
84876
84877 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84878
84879         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84880         Include xalloc.h.
84881         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84882
84883 2000-06-24  Jim Meyering  <meyering@lucent.com>
84884
84885         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84886         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84887         for which strerror does return char*, but which lacks a conveniently
84888         accessible declaration of the function.  If the compile-test says
84889         strerror_r doesn't work, then resort to a `run'-test that works on
84890         BeOS and segfaults on DEC Unix.
84891
84892 2000-06-24  Jim Meyering  <meyering@lucent.com>
84893
84894         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84895
84896 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84897
84898         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84899         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84900
84901 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84902
84903         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84904         (mbrtowc, mbstate_t): Define substitutes if
84905         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84906         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84907         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84908
84909 2000-06-23  Jim Meyering  <meyering@lucent.com>
84910
84911         * m4/afs.m4: Add missing AC_MSG_RESULT.
84912         Reported by Bruno Haible.
84913
84914         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84915         Suggestion from Bruno Haible.
84916
84917 2000-06-23  Jim Meyering  <meyering@lucent.com>
84918
84919         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84920
84921 2000-06-21  Jim Meyering  <meyering@lucent.com>
84922
84923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84924
84925 2000-06-21  Jim Meyering  <meyering@lucent.com>
84926
84927         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84928         (noinst_HEADERS): Add getstr.h.
84929
84930         * lib/getline.c (getstr): Move into a separate file.
84931         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84932         the following changes: new parameter, delim2; both delim[12]
84933         parameters have type `int', not `char'.  The latter would lose
84934         with 8-bit delimiters.
84935         * lib/getstr.h: New file.
84936
84937 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84938
84939         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84940         than 1024, return a memory chunk of least possible size, instead
84941         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84942         Use free/xmalloc instead of xrealloc to avoid copying for very long
84943         paths.
84944
84945 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84946
84947         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84948         the empty string.
84949
84950 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84951
84952         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84953         address, not strdup.  Include <stdlib.h> and don't declare free().
84954
84955 2000-06-19  Jim Meyering  <meyering@lucent.com>
84956
84957         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84958
84959 2000-06-18  Jim Meyering  <meyering@lucent.com>
84960
84961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84962
84963         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84964         `checking whether...' message to be consistent with that of the
84965         lstat test.
84966
84967 2000-06-18  Jim Meyering  <meyering@lucent.com>
84968
84969         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84970         Besides, these days every porting target provides a mkdir function.
84971
84972         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84973         needed. (this snippet comes from src/system.h).
84974
84975 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84976
84977         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84978
84979 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84980
84981         * lib/human.c (adjust_value): New function.
84982         (human_readable_inexact): Apply rounding style even when
84983         printing approximate values.
84984
84985 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84986
84987         * lib/human.c (human_readable_inexact): Allow an input block
84988         size that is not a multiple of the output block size, and vice versa.
84989         Reported by Piergiorgio Sartor.
84990
84991 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84992
84993         * lib/getdate.y (get_date): Apply relative times after time
84994         zone indicator, not before.  Reported by Todd A. Jacobs.
84995
84996 2000-06-13  Jim Meyering  <meyering@lucent.com>
84997
84998         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84999
85000         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85001
85002 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85003
85004         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85005
85006 2000-06-12  Jim Meyering  <meyering@lucent.com>
85007
85008         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85009         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85010         optional argument.
85011         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85012         the optional argument, `lib'.
85013
85014 2000-06-08  Jim Meyering  <meyering@lucent.com>
85015
85016         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85017
85018 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85019
85020         Rewrite largefile configuration so that we don't need to run
85021         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85022         AC_CANONICAL_HOST in configure.in -- jmm]
85023
85024         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85025         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85026         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85027         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85028         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85029         All uses changed.
85030         Instead of inspecting the output of getconf, try to compile the
85031         test program without and with the macro definition.
85032         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85033         for getconf.  Instead, check for the needed flags by compiling
85034         test programs.
85035
85036 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85037
85038         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85039
85040 2000-06-04  Jim Meyering  <meyering@lucent.com>
85041
85042         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85043         SunOS 4.1.4 for which gid_t is an unsigned type.
85044
85045 2000-06-03  Jim Meyering  <meyering@lucent.com>
85046
85047         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85048         now that autoconf requires that.
85049
85050         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85051         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85052         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85053
85054 2000-06-03  Jim Meyering  <meyering@lucent.com>
85055
85056         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85057
85058 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85059
85060         * m4/glibc21.m4: New file.
85061         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85062
85063 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85064
85065         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85066         newer, don't install charset.alias.
85067         * lib/config.charset: Change the Linux/glibc rules so they become empty
85068         on glibc-2.1 or newer.
85069
85070 2000-06-02  Jim Meyering  <meyering@lucent.com>
85071
85072         * lib/mountlist.c: Back out last change.  Instead, do this...
85073         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85074         me_dummy member using the same `ignore'-testing code.
85075         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85076         fs_type strings.
85077         From Mark D. Roth.
85078
85079 2000-05-29  Jim Meyering  <meyering@lucent.com>
85080
85081         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85082         mounts with the `ignore' attribute.  Based on a patch from
85083         Mark D. Roth.
85084
85085 2000-05-28  Jim Meyering  <meyering@lucent.com>
85086
85087         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85088         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85089         * m4/stat.m4: Likewise.
85090         * m4/lstat.m4: Likewise.
85091         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85092
85093         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85094         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85095
85096 2000-05-26  Jim Meyering  <meyering@lucent.com>
85097
85098         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85099
85100 2000-05-24  Jim Meyering  <meyering@lucent.com>
85101
85102         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85103         autoconf requires that.
85104         * m4/lib-check.m4: Likewise.
85105         * m4/jm-macros.m4: Likewise.
85106         * m4/strftime.m4: Likewise.
85107
85108         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85109         AC_CHECK_DECLS, now that autoconf requires that.
85110
85111 2000-05-22  Jim Meyering  <meyering@lucent.com>
85112
85113         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85114         * m4/lstat.m4: Likewise.
85115
85116 2000-05-22  Jim Meyering  <meyering@lucent.com>
85117
85118         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85119
85120 2000-05-20  Jim Meyering  <meyering@lucent.com>
85121
85122         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85123         (jm_PREREQ): Use it.
85124
85125 2000-05-18  Jim Meyering  <meyering@lucent.com>
85126
85127         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85128         back, too, since it may have been modified by allocate_entry.
85129         (hash_delete): Rewrite to use neither the assignment operator
85130         nor the comma operator in an if-expression.
85131
85132 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85133
85134         * lib/closeout.c:
85135         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85136         Remove; no longer needed.
85137         "quotearg.h": Add include.
85138         (file_name): Do not bother to explicitly initialize to NULL; it's less
85139         efficient on some hosts.
85140         (close_stdout_status): Remove test as to whether stdout was already
85141         closed; it breaks for the case "echo x | sort >&-".
85142         Quote file name colons.
85143         Do not assume that _("write error") lacks format strings.
85144
85145 2000-05-15  Jim Meyering  <meyering@lucent.com>
85146
85147         * lib/version-etc.c (version_etc_copyright): Update the copyright
85148         string used in all --version output.
85149
85150 2000-05-14  Jim Meyering  <meyering@lucent.com>
85151
85152         * lib/closeout.c (close_stdout_set_file_name): New function.
85153         (close_stdout_status): Use new file-scoped global.
85154         Return right away if fstat says the stdout file descriptor is invalid.
85155         * lib/closeout.h (close_stdout_set_file_name): Declare.
85156
85157 2000-05-10  Jim Meyering  <meyering@lucent.com>
85158
85159         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85160         (close_stdout_set_status): New function.
85161         * lib/closeout.h (close_stdout_set_status): Declare.
85162
85163 2000-05-09  Jim Meyering  <meyering@lucent.com>
85164
85165         * m4/gettext.m4: Rename this...
85166         * m4/libintl.m4: ...to this.
85167
85168 2000-05-08  Jim Meyering  <meyering@lucent.com>
85169
85170         * lib/long-options.c: Don't include closeout.h.
85171         (parse_long_options): Don't call close_stdout for --version.
85172
85173 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85174
85175         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85176         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85177         2.1.3 bug.  This avoids a clash when files like regex.c define
85178         _GNU_SOURCE.
85179
85180 2000-05-06  Jim Meyering  <meyering@lucent.com>
85181
85182         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85183         (AC_REPLACE_FUNCS): Add strnlen.
85184
85185         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85186         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85187
85188         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85189         AC_SEARCH_LIBS call for nanosleep.
85190         (LIB_NANOSLEEP): Set and AC_SUBST.
85191
85192 2000-05-06  Jim Meyering  <meyering@lucent.com>
85193
85194         * lib/strnlen.c: Undefine __strnlen and strnlen.
85195         [!weak_alias]: Define __strnlen to strnlen.
85196
85197         * lib/atexit.c: New file, from libiberty.
85198
85199 2000-05-06  Jim Meyering  <meyering@lucent.com>
85200
85201         * lib/closeout.c (close_stdout_status): Also check for errors on the
85202         stderr stream.
85203
85204 2000-05-05  Jim Meyering  <meyering@lucent.com>
85205
85206         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85207         AC_SEARCH_LIBS call for clock_gettime.
85208         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85209
85210         * m4/search-libs.m4: Update from autoconf.
85211
85212         su doesn't work on Solaris 2.6.
85213         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85214         <shadow.h>.  Reported by Dragos Harabor.
85215
85216 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85217
85218         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85219         memcpy instead of xmalloc, xrealloc, path_concat.
85220         (locale_charset): Treat empty environment variables as absent.
85221         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85222
85223 2000-05-04  Jim Meyering  <meyering@lucent.com>
85224
85225         * lib/getopt.c: Update from glibc.
85226         * lib/obstack.c: Likewise.
85227         * lib/obstack.h: Likewise.
85228         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85229         file
85230
85231         * lib/regex.h: Likewise.
85232         * lib/strndup.c: Likewise.
85233         * lib/strnlen.c: New file, from glibc.
85234
85235 2000-05-03  Jim Meyering  <meyering@lucent.com>
85236
85237         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85238
85239 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85240
85241         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85242         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85243         compile-time test, rather than inspecting host and OS, to
85244         decide whether to define _LARGEFILE_SOURCE.
85245
85246 2000-05-01  Jim Meyering  <meyering@lucent.com>
85247
85248         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85249
85250         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85251         Based on a patch from Bruno Haible.
85252
85253 2000-05-01  Jim Meyering  <meyering@lucent.com>
85254
85255         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85256
85257 2000-04-29  Jim Meyering  <meyering@lucent.com>
85258
85259         * lib/path-concat.c: Declare strdup only if it's not defined.
85260         * lib/canon-host.c: Likewise.
85261
85262 2000-04-28  Jim Meyering  <meyering@lucent.com>
85263
85264         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85265         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85266         is included first, then limits.h is included by locale.h by libintl.h.
85267         From John David Anglin.
85268
85269 2000-04-25  Jim Meyering  <meyering@lucent.com>
85270
85271         * lib/makepath.c (S_IRWXUGO): Define.
85272         (make_path): Always perform explicit chmod if MODE specifies any
85273         of the `special' permission bits.  Prompted by a bug report against
85274         install from Mate Wierdl and Joost van Baal.
85275
85276 2000-04-18  Jim Meyering  <meyering@lucent.com>
85277
85278         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85279         (jm_PREREQ): Use it.
85280
85281 2000-04-18  Jim Meyering  <meyering@lucent.com>
85282
85283         * lib/README: New file.
85284
85285         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85286         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85287
85288 2000-04-17  Jim Meyering  <meyering@lucent.com>
85289
85290         Get it right :-)
85291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85292         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85293         Suggestion from Akim Demaille.
85294
85295 2000-04-17  Jim Meyering  <meyering@lucent.com>
85296
85297         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85298         the definition of it to rpl_strftime also defined-away the system's
85299         declaration.
85300
85301 2000-04-15  Jim Meyering  <meyering@lucent.com>
85302
85303         Use `C' to denote so-called `contiguous' files, the same way
85304         that tar does.
85305         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85306         (ftypelet): Use S_ISCTG.
85307         From Michael Deutschmann.
85308
85309 2000-04-14  Jim Meyering  <meyering@lucent.com>
85310
85311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85312         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85313         clobbered.
85314
85315 2000-04-14  Jim Meyering  <meyering@lucent.com>
85316
85317         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85318
85319 2000-04-13  Jim Meyering  <meyering@lucent.com>
85320
85321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85322         AH_VERBATIM to insert required #ifndef into config.h.in.
85323         Suggestion from Akim Demaille.
85324
85325 2000-04-12  Jim Meyering  <meyering@lucent.com>
85326
85327         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85328         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85329         Christian Krackowizer.
85330
85331         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85332         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85333         (AC_SYS_LARGEFILE): Require.
85334         (AM_C_PROTOTYPES): Require.
85335
85336 2000-04-08  Jim Meyering  <meyering@lucent.com>
85337
85338         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85339         names don't conflict.  Reported by Eli Zaretskii.
85340
85341 2000-04-07  Jim Meyering  <meyering@lucent.com>
85342
85343         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85344         sys/types.h, to work around system header problems on AIX 3.2.5.
85345         From Bruno Haible.
85346
85347 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85348
85349         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85350         bug.  Deal with the different error behavior of Irix iconv.
85351
85352 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85353
85354         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85355         IRIX if the installer said otherwise.
85356
85357 2000-04-05  Jim Meyering  <meyering@lucent.com>
85358
85359         Portability tweaks required for ultrix4.3.
85360         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85361         (jm_CHECK_DECLS): Add getutent to the list of functions.
85362         (_jm_DECL_HEADERS): Add utmpx.h.
85363         From John David Anglin.
85364
85365         * m4/strftime.m4: Back out the 2000-04-02 change.
85366         Instead of that change, simply undefine putenv in the test program.
85367
85368 2000-04-05  Jim Meyering  <meyering@lucent.com>
85369
85370         Portability tweaks required for ultrix4.3.
85371         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85372         getutent.
85373         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85374         * lib/canon-host.c: Declare strdup.
85375         * lib/path-concat.c: Likewise.
85376         From John David Anglin.
85377
85378 2000-04-04  Jim Meyering  <meyering@lucent.com>
85379
85380         Be more DOS 8.3-friendly.
85381         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85382         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85383         * lib/Makefile.am: Reflect renaming.
85384         Reported by Eli Zaretskii.
85385
85386         Use a temporary file name that won't clash with `charset.alias'
85387         in the DOS 8.3 name space.
85388         * lib/Makefile.am (charset_tmp): Define.
85389         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85390         (uninstall-local): Likewise.
85391         Reported by Eli Zaretskii.
85392
85393 2000-04-03  Jim Meyering  <meyering@lucent.com>
85394
85395         * m4/gettext.m4: Fix typo in comment.
85396
85397         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85398         textutils/configure.in).  Suggestion from Paul Eggert.
85399         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85400
85401 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85402
85403         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85404         variable in the shell rather than using putenv, which isn't
85405         portable.  This avoids the configure-time inter-test dependency
85406         on the potentially-renamed putenv function.
85407
85408 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85409
85410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85411         before checking struct stat.st_blksize, so that
85412         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85413
85414 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85415
85416         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85417         since strftime.c uses HAVE_STRFTIME to decide whether to use
85418         the underlying strftime.
85419
85420 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85421
85422         * lib/time/strftime.c (my_strftime): Make sure we call the system
85423         strftime, not ourselves, when invoking the underlying strftime.
85424
85425 2000-03-24  Jim Meyering  <meyering@lucent.com>
85426
85427         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85428         (charset_alias): Define.
85429         (install-exec-local): Factor out common code.
85430         (uninstall-local): Split lines longer than 80.
85431         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85432         (SUFFIXES): Define.
85433         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85434         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85435
85436 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85437
85438         * lib/config.charset: Output a line containing "Packages using this
85439         file".
85440         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85441         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85442         ref-del.sed): New rules.
85443
85444 2000-03-17  Jim Meyering  <meyering@lucent.com>
85445
85446         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85447         Otherwise, include <strings.h>
85448
85449 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85450
85451         * lib/unicodeio.c (utf8_wctomb): New function.
85452         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85453         format instead of in UCS-4 with platform dependent endianness.
85454
85455 2000-03-10  Jim Meyering  <meyering@lucent.com>
85456
85457         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85458         From Marco Franzen.
85459
85460 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85461
85462         * lib/savedir.c (savedir): Work even if directory size is
85463         negative; this can happen with some screwy NFS configurations.
85464
85465 2000-03-06  Jim Meyering  <meyering@lucent.com>
85466
85467         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85468         if it's NULL (because we ran out of memory).  From Bruno Haible.
85469
85470 2000-03-05  Jim Meyering  <meyering@lucent.com>
85471
85472         * lib/localcharset.c ("path-concat.h"): Include.
85473         (get_charset_aliases): Use path_concat instead of ANSI string
85474         concatenation.
85475
85476         * lib/unicodeio.h (PARAMS): Define.
85477         Use it to guard prototype.
85478
85479 2000-03-04  Jim Meyering  <meyering@lucent.com>
85480
85481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85482         for lib/localcharset.c.
85483
85484 2000-03-04  Jim Meyering  <meyering@lucent.com>
85485
85486         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85487         installing into it.
85488         (uninstall-local): Uncomment this rule so `make distcheck' works
85489         once again.
85490
85491         * lib/unicodeio.c (<errno.h>): Include it.
85492         (errno): Declare if not defined.
85493
85494         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85495
85496         * lib/config.charset: New version, incorporating remarks from a linux
85497         i18n mailing list.  From Bruno Haible.
85498
85499 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85500
85501         * m4/codeset.m4: New file.
85502         * m4/iconv.m4: New file.
85503         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85504
85505 2000-03-03  Jim Meyering  <meyering@lucent.com>
85506
85507         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85508
85509 2000-03-02  Jim Meyering  <meyering@lucent.com>
85510
85511         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85512         the messages come out on separate lines.
85513
85514         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85515         rather than jm_CHECK_DECLARATIONS.
85516         * m4/decl.m4: Remove now-unused file.
85517
85518         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85519         geteuid.
85520
85521 2000-03-02  Jim Meyering  <meyering@lucent.com>
85522
85523         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85524
85525 2000-03-01  Jim Meyering  <meyering@lucent.com>
85526
85527         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85528         * lib/unicodeio.c: Likewise.
85529
85530 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85531
85532         * lib/config.charset: New file.
85533         * lib/localcharset.c: New file.
85534         * lib/unicodeio.h, lib/unicodeio.c: New files.
85535         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85536         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85537         (noinst_HEADERS): Add unicodeio.h.
85538         (all-local, install-exec-local, charset.alias): New targets.
85539
85540 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85541
85542         * lib/quotearg.c (ALERT_CHAR): New macro.
85543         (quotearg_buffer_restyled): Use it.
85544
85545 2000-02-27  Jim Meyering  <meyering@lucent.com>
85546
85547         * m4/check-decl.m4: Add getenv to the list.
85548
85549 2000-02-27  Jim Meyering  <meyering@lucent.com>
85550
85551         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85552         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85553
85554         * lib/backupfile.c: Guard inclusion of stdlib.h with
85555         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85556         Declare malloc if needed.
85557
85558         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85559         `#ifndef HAVE_DECL..'
85560         now that autoconf always defines the HAVE_DECL_ symbols.
85561         * lib/human.c: Likewise.
85562         * lib/same.c: Likewise.
85563         * lib/strtoumax.c: Likewise.
85564
85565         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85566         declaration check was not run.
85567         * lib/hash.c: Likewise.
85568         * lib/human.c: Likewise.
85569         * lib/same.c: Likewise.
85570         * lib/strtoumax.c: Likewise.
85571
85572         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85573         `.', then first look up the entire `.'-containing string as a login
85574         name.
85575
85576 2000-02-23  Jim Meyering  <meyering@lucent.com>
85577
85578         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85579         in place of my hack.
85580
85581 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85584         (textint): New typedef.
85585         (parser_control): Member year changed from int to textint.
85586         All uses changed.
85587         (YYSTYPE): Removed; replaced by %union with int and textint members.
85588         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85589         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85590         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85591         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85592         (date, number, to_year): Use width of number in digits, not its value,
85593         to determine whether it's a 2-digit year, or a 2-digit time.
85594         (yylex): Store number of digits of numeric tokens.
85595         Reported by John Kendall.
85596
85597         (parser_control): Changed from struct parser_control to typedef (for
85598         consistency).  All uses changed.
85599
85600         (tID): Removed; not used.
85601         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85602
85603 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85604
85605         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85606         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85607
85608 2000-02-12  Jim Meyering  <meyering@lucent.com>
85609
85610         * lib/userspec.c (ISDIGIT): Define it.
85611         (isdigit): Remove definition.
85612         (is_number): Use ISDIGIT, not isdigit.
85613         <libintl.h>: Include.
85614         (_ and N_): Define.
85615         (parse_user_spec): Mark translatable strings.
85616
85617 2000-02-10  Jim Meyering  <meyering@lucent.com>
85618
85619         With these changes, nanosleep.[ch] are finally enough like the other
85620         lib/* replacement files to compile on a few more losing systems.
85621
85622         * lib/nanosleep.h: Don't include config.h.
85623         Remove prototype from declaration of nanosleep.
85624         (PARAMS): Remove now-unneeded definition.
85625         * lib/nanosleep.c: #undef nanosleep.
85626         (rpl_nanosleep): Rename from nanosleep.
85627
85628 2000-02-10  Jim Meyering  <meyering@lucent.com>
85629
85630         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85631         gnu_nanosleep to rpl_nanosleep.
85632
85633 2000-02-09  Jim Meyering  <meyering@lucent.com>
85634
85635         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85636         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85637
85638 2000-02-08  Akim Demaille  <akim@epita.fr>
85639
85640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85641         `[' and `]' and remove uses of `changequote'.
85642         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85643         (AC_SYS_LARGEFILE): Likewise.
85644         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85645         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85646         of changequote.
85647         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85648         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85649         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85650         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85651
85652 2000-02-05  Jim Meyering  <meyering@lucent.com>
85653
85654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85655         Remove explicit use of AC_HEADER_TIME.  It is required by
85656         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85657         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85658         in autoconf whereby the expansion of the latter ended up preceding
85659         the expansion of its prerequisite, AC_HEADER_TIME.
85660         Reported by Volker Borchert.
85661
85662 2000-02-03  Jim Meyering  <meyering@lucent.com>
85663
85664         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85665
85666 2000-02-03  Jim Meyering  <meyering@lucent.com>
85667
85668         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85669         rather than with `#if HAVE_UTMPNAME'.
85670
85671 2000-02-02  Jim Meyering  <meyering@lucent.com>
85672
85673         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85674         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85675         Reported by Eli Zaretskii.
85676
85677 2000-02-01  Jim Meyering  <meyering@lucent.com>
85678
85679         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85680
85681 2000-01-31  Jim Meyering  <meyering@lucent.com>
85682
85683         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85684         functions.  Add the time.h and sys/time.h headers along with the
85685         AC_REQUIRE'ment of AC_HEADER_TIME.
85686
85687 2000-01-31  Jim Meyering  <meyering@lucent.com>
85688
85689         * lib/nanosleep.h (nanosleep): Guard declaration with
85690         `#if ! HAVE_DECL_NANOSLEEP'.
85691         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85692         the declaration in that vendor's sys/timers.h.
85693         Reported by Christian Krackowizer.
85694
85695         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85696         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85697         (ISPRINT): Likewise.
85698         Reported by Tom Tromey.
85699
85700 2000-01-30  Jim Meyering  <meyering@lucent.com>
85701
85702         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85703
85704         * m4/prereq.m4 (utmp_includes): Define.
85705         Check for ut_user and ut_name members in both struct utmpx
85706         and struct utmp.
85707
85708 2000-01-30  Jim Meyering  <meyering@lucent.com>
85709
85710         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85711         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85712         header files where only utmpx.ut_user is declared.
85713
85714         * lib/readutmp.h (UT_USER): Define.
85715
85716 2000-01-29  Jim Meyering  <meyering@lucent.com>
85717
85718         * m4/lib-check.m4: New file containing library-related checks from
85719         fileutils and sh-utils (textutils had none).
85720
85721 2000-01-28  Jim Meyering  <meyering@lucent.com>
85722
85723         * m4/perl.m4: Change format of warning message to look more like that
85724         from the missing script.  Suggestion from François Pinard.
85725
85726 2000-01-25  Jim Meyering  <meyering@lucent.com>
85727
85728         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85729         well as time.h in the compile check.
85730         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85731         Fix typo in cross-compiling case: s/yes/no/.
85732
85733 2000-01-23  Jim Meyering  <meyering@lucent.com>
85734
85735         * m4/jm-macros.m4: Move df-related tests here from
85736         fileutils/configure.in
85737
85738         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85739         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85740
85741         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85742         s/space/ac_fsusage_space/.
85743         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85744
85745         * m4/ftruncate.m4: New file (derived from part of
85746         fileutils/configure.in).
85747         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85748         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85749
85750         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85751         AC_SUBST these here, rather than just in sh-util/configure.in, so
85752         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85753         all the same.
85754         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85755         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85756         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85757         (AC_SUBST(POW_LIBM)): Likewise.
85758         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85759
85760 2000-01-23  Jim Meyering  <meyering@lucent.com>
85761
85762         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85763         obstack.c.
85764
85765 2000-01-22  Jim Meyering  <meyering@lucent.com>
85766
85767         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85768
85769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85770
85771         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85772         configure.in
85773         (AC_CHECK_HEADERS): Likewise for sh-utils.
85774         (AC_CHECK_HEADERS): Likewise for textutils.
85775         Merge the three lists of headers.
85776
85777         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85778         from fileutils' configure.in.
85779
85780         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85781         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85782         check-decl.m4.
85783
85784         * m4/check-decl.m4: Use #if rather than #ifdef.
85785         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85786         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85787         (_jm_DECL_HEADERS): Define new function.
85788         (jm_CHECK_DECLARATIONS): Require it.
85789
85790 2000-01-22  Jim Meyering  <meyering@lucent.com>
85791
85792         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85793         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85794         Required for some AIX systems.  Reported by Christian Krackowizer.
85795         [TESTING] (main): New function.
85796
85797         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85798         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85799         letters.
85800
85801         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85802         iswprint.
85803
85804         * lib/strverscmp.c (ISDIGIT): Define.
85805         (strverscmp): Use ISDIGIT, not isdigit.
85806
85807 2000-01-19  Jim Meyering  <meyering@lucent.com>
85808
85809         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85810         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85811         defines `struct timespec' in <sys/time.h>
85812
85813         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85814         Thanks to Akim for explaining.
85815
85816 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85817
85818         * lib/nanosleep.c (nanosleep):
85819         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85820         POSIX.1 doesn't require SA_INTERRUPT and some systems
85821         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85822         it's been part of POSIX.1 since day 1 (in 1988).
85823
85824 2000-01-17  Jim Meyering  <meyering@lucent.com>
85825
85826         * lib/interlock: Remove unused file.  Reported by François Pinard.
85827
85828 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85829
85830         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85831         alert, backslash, formfeed, and vertical tab unnecessarily in
85832         shell quoting style.
85833
85834 2000-01-16  Jim Meyering  <meyering@lucent.com>
85835
85836         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85837         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85838         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85839         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85840
85841 2000-01-16  Jim Meyering  <meyering@lucent.com>
85842
85843         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85844         because the latter didn't work.
85845
85846 2000-01-15  Jim Meyering  <meyering@lucent.com>
85847
85848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85849         (AC_REPLACE_FUNCS): Add memcpy and memset.
85850         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85851         Add strpbrk.
85852         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85853
85854 2000-01-12  Jim Meyering  <meyering@lucent.com>
85855
85856         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85857         (jm_PREREQ): Use it.
85858         (jm_PREREQ_READUTMP): New macro.
85859         (jm_PREREQ): Use it.
85860
85861 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85862
85863         Quote multibyte characters correctly.
85864         * m4/c-bs-a.m4: New file.
85865         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85866         (jm_PREREQ): Use it.
85867
85868 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85869
85870         * m4/uintmax_t.m4: Port to autoconf 2.13.
85871
85872 2000-01-08  Jim Meyering  <meyering@ascend.com>
85873
85874         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85875         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85876
85877 2000-01-04  Jim Meyering  <meyering@ascend.com>
85878
85879         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85880         jm_STRUCT_DIRENT_D_TYPE.
85881         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85882         jm_STRUCT_DIRENT_D_INO.
85883         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85884         jm_STRUCT_UTIMBUF.
85885         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85886         renamings.
85887         * m4/utime.m4: Likewise.
85888
85889         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85890         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85891
85892 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85893
85894         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85895         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85896
85897 2000-01-02  Jim Meyering  <meyering@ascend.com>
85898
85899         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85900         remember if this is necessary.
85901
85902 1999-12-26  Jim Meyering  <meyering@ascend.com>
85903
85904         * m4/jm-macros.m4: Use it here.
85905         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85906
85907 1999-12-23  Jim Meyering  <meyering@ascend.com>
85908
85909         * m4/jm-macros.m4: Check for clock_gettime (moved from
85910         fileutils/configure.in)
85911         Check for gettimeofday.
85912
85913 1999-12-20  Jim Meyering  <meyering@ascend.com>
85914
85915         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85916         autoconf-2.14a-1999-12-20.
85917
85918 1999-12-19  Jim Meyering  <meyering@ascend.com>
85919
85920         * m4/lstat-slash.m4: New file.
85921         * m4/jm-macros.m4: Use the new macro:
85922         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85923
85924 1999-12-07  Jim Meyering  <meyering@ascend.com>
85925
85926         * m4/perl.m4: Require that File::Compare be available, too.
85927         Too many systems seem to lack it.
85928
85929         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85930         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85931
85932 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85933
85934         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85935         problem with the QNX 4.25 shell, which doesn't propagate exit
85936         status of failed commands inside shell assignments.
85937
85938 1999-11-17  Jim Meyering  <meyering@ascend.com>
85939
85940         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85941
85942 1999-11-07  Jim Meyering  <meyering@ascend.com>
85943
85944         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85945
85946 1999-11-06  Jim Meyering  <meyering@ascend.com>
85947
85948         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85949         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85950
85951 1999-11-05  Jim Meyering  <meyering@ascend.com>
85952
85953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85954         configure.in of textutils, fileutils, and sh-utils into this one
85955         (shared between those packages) file.
85956         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85957         AC_STRUCT_ST_BLKSIZE.
85958
85959 1999-11-03  Jim Meyering  <meyering@ascend.com>
85960
85961         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85962         of AC_CHECK_TYPE checks includes unistd.h.
85963         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85964         Suggestion from Akim Demaille.
85965
85966 1999-10-30  Jim Meyering  <meyering@ascend.com>
85967
85968         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85969         m4-quoted string.
85970         * m4/ls-mntd-fs.m4: Likewise.
85971         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85972         * m4/jm-winsz1.m4: Likewise.
85973
85974         * m4/const.m4: Remove file, since the fix made it into the experimental
85975         version of autoconf.
85976         * m4/mktime.m4: Likewise.
85977
85978         * m4/check-type.m4: Remove file, now that the latest version of
85979         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85980
85981         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85982         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85983         AC_CHECK_TYPE.
85984
85985 1999-10-04  Jim Meyering  <meyering@ascend.com>
85986
85987         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85988
85989 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85990
85991         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85992         2.95.1 bug with HP-UX 10.20.
85993
85994 1999-09-17  Jim Meyering  <meyering@ascend.com>
85995
85996         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85997         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85998         due to missing strdup (against sh-utils-2.0).
85999
86000 1999-08-29  Jim Meyering  <meyering@ascend.com>
86001
86002         * m4/jm-macros.m4: Require jm_BISON.
86003         * m4/bison.m4: New file.
86004
86005 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86006
86007         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86008         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86009
86010 1999-08-05  Jim Meyering  <meyering@ascend.com>
86011
86012         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86013         to avoid conflicts with `conftest' on 8+3 filesystems.
86014         Suggestion from Eli Zaretskii.
86015
86016 1999-08-04  Jim Meyering  <meyering@ascend.com>
86017
86018         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86019         fileutils and sh-utils (textutils's getline test was inadequate).
86020         (AM_FUNC_GETLINE): Run this test.
86021         (AC_CHECK_FUNCS): Check for getdelim.
86022         Reported by Bob Proulx.
86023
86024 1999-08-02  Jim Meyering  <meyering@ascend.com>
86025
86026         * m4/jm-macros.m4: Add a comment.
86027
86028 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86029
86030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86031         <inttypes.h> defines strtoumax as a macro (and not as a
86032         function).
86033
86034 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86035
86036         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86037         that we can shift, multiply and divide unsigned long long
86038         values; Ultrix cc can't do it.
86039
86040 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86041
86042         * m4/mktime.m4: New file, which is a preview of what should appear
86043         in the next public autoconf release.
86044
86045 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86046
86047         * m4/lfs.m4: Remove this file.
86048         * m4/largefile.m4: New file.  It contains the old contents of
86049         lfs.m4, except that all names with prefix AC_LFS have been
86050         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86051         compatible with future autoconf versions.  Also, some minor m4
86052         quoting problems have been fixed.
86053
86054 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86055
86056         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86057         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86058         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86059         and simplify the shell code.
86060
86061 1999-08-01  Jim Meyering  <meyering@ascend.com>
86062
86063         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86064         m4.
86065
86066 1999-07-20  Jim Meyering  <meyering@ascend.com>
86067
86068         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86069
86070 1999-07-15  Jim Meyering  <meyering@ascend.com>
86071
86072         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86073
86074 1999-05-22  Jim Meyering  <meyering@ascend.com>
86075
86076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86077
86078 1999-05-20  Jim Meyering  <meyering@ascend.com>
86079
86080         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86081         Add a colon after each `then' in case $4 is empty.
86082
86083 1999-05-16  Jim Meyering  <meyering@ascend.com>
86084
86085         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86086
86087 1999-05-10  Jim Meyering  <meyering@ascend.com>
86088
86089         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86090
86091         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86092         AC_FUNC_MKTIME.
86093
86094 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86095
86096         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86097
86098 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86099
86100         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86101         not CPPFLAGS, so that linking works correctly in IRIX.
86102
86103 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86104
86105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86106
86107 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86108
86109         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86110         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86112         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86113         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86114
86115         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86116
86117 1999-04-20  Jim Meyering  <meyering@ascend.com>
86118
86119         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86120         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86121         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86122
86123 1999-04-18  Jim Meyering  <meyering@ascend.com>
86124
86125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86126         * m4/jm-macros.m4: Use it.
86127
86128 1999-04-06  Jim Meyering  <meyering@ascend.com>
86129
86130         * m4/strftime.m4: Remove test for %f.
86131
86132 1999-03-29  Jim Meyering  <meyering@ascend.com>
86133
86134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86135         superset of the AC_TYPE_* checks in the textutils, fileutils,
86136         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86137         AC_TYPE_PID_T.
86138
86139 1999-03-28  Jim Meyering  <meyering@ascend.com>
86140
86141         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86142         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86143         replaced e.g., in the *.sh files of the sh-utils.
86144
86145 1999-03-20  Jim Meyering  <meyering@ascend.com>
86146
86147         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86148         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86149         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86150
86151 1999-03-19  Jim Meyering  <meyering@ascend.com>
86152
86153         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86154
86155 1999-03-12  Jim Meyering  <meyering@ascend.com>
86156
86157         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86158
86159 1999-03-07  Jim Meyering  <meyering@ascend.com>
86160
86161         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86162         declared.
86163
86164 1999-02-17  Jim Meyering  <meyering@ascend.com>
86165
86166         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86167         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86168
86169 1999-02-07  Jim Meyering  <meyering@ascend.com>
86170
86171         * m4/group-member.m4: New file -- extracted from sh-utils'
86172         configure.in.
86173
86174         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86175         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86176
86177 1999-02-06  Jim Meyering  <meyering@ascend.com>
86178
86179         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86180         * m4/fnmatch.m4: Likewise.
86181         * m4/getgroups.m4: Likewise.
86182         * m4/lstat.m4: Likewise.
86183         * m4/malloc.m4: Likewise.
86184         * m4/putenv.m4: Likewise.
86185         * m4/realloc.m4: Likewise.
86186         * m4/regex.m4: Likewise.
86187         * m4/stat.m4: Likewise.
86188         * m4/strftime.m4: Likewise.
86189         Suggestion from Alain Magloire.
86190
86191         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86192         * m4/fnmatch.m4: Likewise.
86193         * m4/getgroups.m4: Likewise.
86194         * m4/getline.m4: Likewise.
86195         * m4/lstat.m4: Likewise.
86196         * m4/malloc.m4: Likewise.
86197         * m4/memcmp.m4: Likewise.
86198         * m4/putenv.m4: Likewise.
86199         * m4/realloc.m4: Likewise.
86200         * m4/regex.m4: Likewise.
86201         * m4/stat.m4: Likewise.
86202         * m4/strftime.m4: Likewise.
86203         Suggestion from Alain Magloire.
86204
86205         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86206         an argument.
86207
86208         * m4/regex.m4: Add a run-time Test for proper operation of
86209         re_compile_pattern.
86210
86211 1999-01-31  Jim Meyering  <meyering@ascend.com>
86212
86213         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86214
86215 1999-01-30  Jim Meyering  <meyering@ascend.com>
86216
86217         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86218
86219         * m4/jm-mktime.m4: Make this a wrapper around the official
86220         AM_FUNC_MKTIME rather than my private copy, now that the official one
86221         is up to date.
86222         * m4/mktime.m4: Remove file.
86223
86224         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86225         * m4/uptime.m4: Likewise.
86226         * m4/uintmax_t.m4: Likewise.
86227
86228 1999-01-28  Jim Meyering  <meyering@ascend.com>
86229
86230         * m4/jm-macros.m4: Use jm_AFS.
86231         * m4/afs.m4: New file (from fileutils' configure.in).
86232
86233         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86234         * m4/chown.m4: Likewise.
86235         * m4/d-ino.m4: Likewise.
86236         * m4/d-type.m4: Likewise.
86237         * m4/fnmatch.m4: Likewise.
86238         * m4/getgroups.m4: Likewise.
86239         * m4/gettext.m4: Likewise.
86240         * m4/jm-mktime.m4: Likewise.
86241         * m4/jm-winsz2.m4: Likewise.
86242         * m4/lcmessage.m4: Likewise.
86243         * m4/ls-mntd-fs.m4: Likewise.
86244         * m4/malloc.m4: Likewise.
86245         * m4/memcmp.m4: Likewise.
86246         * m4/putenv.m4: Likewise.
86247         * m4/realloc.m4: Likewise.
86248         * m4/st_mtim.m4: Likewise.
86249         * m4/strftime.m4: Likewise.
86250
86251 1999-01-16  Jim Meyering  <meyering@ascend.com>
86252
86253         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86254         (ARGMATCH_DIE_DECL): Define.
86255
86256 1999-01-12  Jim Meyering  <meyering@ascend.com>
86257
86258         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86259         Reported by Lars Hecking.
86260
86261 1999-01-10  Jim Meyering  <meyering@ascend.com>
86262
86263         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86264         gross kludge.
86265         * m4/inttypes_h.m4: Likewise.
86266         * m4/lstat.m4: Likewise.
86267         * m4/malloc.m4: Likewise.
86268         * m4/readdir.m4: Likewise.
86269         * m4/realloc.m4: Likewise.
86270         * m4/st_dm_mode.m4: Likewise.
86271         * m4/stat.m4: Likewise.
86272         * m4/utimbuf.m4: Likewise.
86273         * m4/utimes.m4: Likewise.
86274
86275         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86276         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86277         comments in config.h.in are meaningful.
86278
86279         * m4/jm-macros.m4: Require autoconf-2.13 here.
86280
86281         * m4/regex.m4: By default, don't use the included regex.c on systems
86282         with glibc 2.  Suggestion from Uli Drepper.
86283
86284 1999-01-02  Jim Meyering  <meyering@ascend.com>
86285
86286         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86287
86288 1998-12-18  Jim Meyering  <meyering@ascend.com>
86289
86290         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86291         Based on a suggestion from Lars Hecking.
86292
86293 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86294
86295         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86296
86297 1998-11-16  Jim Meyering  <meyering@ascend.com>
86298
86299         * m4/lfs.m4: Double-quote the `uname...` expression.
86300
86301 1998-11-14  Jim Meyering  <meyering@ascend.com>
86302
86303         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86304         * m4/stat.m4: Likewise.
86305
86306 1998-11-03  Jim Meyering  <meyering@ascend.com>
86307
86308         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86309         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86310
86311 1998-10-18  Jim Meyering  <meyering@ascend.com>
86312
86313         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86314
86315 1998-10-17  Jim Meyering  <meyering@ascend.com>
86316
86317         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86318         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86319         calls for those previously hard-coded headers.  Instead, take a new
86320         parameter.
86321         (jm_CHECK_DECLARATIONS): Reflect interface change.
86322         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86323         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86324
86325         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86326
86327 1998-10-14  Jim Meyering  <meyering@ascend.com>
86328
86329         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86330         instead of "TZ=America/Vancouver".  From Paul Eggert.
86331
86332 1998-10-11  Jim Meyering  <meyering@ascend.com>
86333
86334         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86335         This adds a test for a recently added compatibility fix for mktime.c.
86336         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86337
86338 1998-09-27  Jim Meyering  <meyering@ascend.com>
86339
86340         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86341
86342         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86343         ../configure.in, including a change from Gordon Matzigkeit to allow
86344         cross-compiling for the Hurd.
86345
86346         * m4/glibc.m4: New file/macro to test for the GNU C Library
86347         versions 1 and 2.  From Gordon Matzigkeit.
86348         Indent.
86349
86350 1998-09-21  Jim Meyering  <meyering@ascend.com>
86351
86352         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86353
86354 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86355
86356         Port nanosecond-resolution times to UnixWare 2.1.2 and
86357         pedantic Solaris 2.6.
86358
86359         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86360         AC_STRUCT_ST_MTIM.
86361         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86362         Generate name of ns member, instead of just 1 or undef.
86363         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86364
86365 1998-08-15  Jim Meyering  <meyering@ascend.com>
86366
86367         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86368         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86369         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86370         instead of jm_TYPE_SSIZE_T.
86371
86372 1998-08-12  Jim Meyering  <meyering@ascend.com>
86373
86374         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86375
86376 1998-08-02  Jim Meyering  <meyering@ascend.com>
86377
86378         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86379         in acconfig.h manually.
86380
86381 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86382
86383         * m4/st_mtim.m4: New file.
86384
86385 1998-07-28  Jim Meyering  <meyering@ascend.com>
86386
86387         * m4/utimes.m4: Undef stat.
86388
86389 1998-07-25  Jim Meyering  <meyering@ascend.com>
86390
86391         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86392         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86393
86394 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86395
86396         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86397         uid and gid actually remain unchanged.
86398
86399 1998-07-07  Jim Meyering  <meyering@ascend.com>
86400
86401         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86402
86403 1998-07-04  Jim Meyering  <meyering@ascend.com>
86404
86405         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86406         to prove that this macro can be used in packages without regex.c.
86407
86408 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86409
86410         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86411         is to be used.
86412
86413 1998-07-03  Jim Meyering  <meyering@ascend.com>
86414
86415         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86416
86417         * m4/gettext.m4: New file -- from gettext-0.10.35.
86418         * m4/lcmessage.m4: Likewise.
86419         * m4/progtest.m4: Likewise.
86420
86421         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86422         * m4/jm-macros.m4: Require the new macro.
86423
86424 1998-06-29  Jim Meyering  <meyering@ascend.com>
86425
86426         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86427         for the definition of NGROUPS (used in a system header included
86428         by sys/mount.h).
86429
86430 1998-06-28  Jim Meyering  <meyering@ascend.com>
86431
86432         * m4/ls-mntd-fs.m4: New file.
86433         * m4/fstypename.m4: New file.
86434
86435         * m4/jm-macros.m4: Require the new macro.
86436         * m4/jm-glibc-io.m4: New file.
86437
86438 1998-05-19  Jim Meyering  <meyering@ascend.com>
86439
86440         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86441         * m4/lchown.m4: New file.
86442
86443         * m4/Makefile.am.in: New file.
86444         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86445
86446 1998-05-14  Jim Meyering  <meyering@ascend.com>
86447
86448         * m4/Makefile.am (EXTRA_DIST): Add them.
86449         * m4/jm-macros.m4: New file.
86450         * m4/utimbuf.m4: New file.
86451
86452 1998-05-12  Jim Meyering  <meyering@ascend.com>
86453
86454         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86455
86456 1998-05-11  Jim Meyering  <meyering@ascend.com>
86457
86458         * m4/isc-posix.m4: New file.
86459
86460 1998-05-10  Jim Meyering  <meyering@ascend.com>
86461
86462         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86463
86464 1998-05-09  Jim Meyering  <meyering@ascend.com>
86465
86466         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86467         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86468         with automake.
86469
86470         * m4/ssize_t.m4: New file.
86471         * m4/mktime.m4: Remove file -- the new automake has this now.
86472
86473 1998-04-26  Jim Meyering  <meyering@ascend.com>
86474
86475         * m4/assert.m4: New file.
86476         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86477
86478 1998-04-05  Jim Meyering  <meyering@ascend.com>
86479
86480         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86481         (jm_PREREQ): Use it here.
86482
86483 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86484
86485         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86486         in acconfig.h.
86487
86488 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86489
86490         * m4/prereq.m4: New file.
86491         * m4/error.m4: New file.
86492         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86493
86494 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86495
86496         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86497         cache-check for the same variable -- that defeated the purpose of
86498         the test; the test program was never run.  This was a problem only
86499         on systems with losing getline functions -- HP-UX 10.20 is one.
86500         Reported by Bjorn Helgaas.
86501
86502 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86503
86504         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86505
86506 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86507
86508         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86509
86510         * m4/const.m4: New file.  Use an initializer in this declaration
86511         typedef int charset[2]; const charset x;
86512         Reported by Bob Glickstein.
86513
86514 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86515
86516         * m4/chown.m4: Fix reversed types on -1 args to chown.
86517         From Kaveh Ghazi.
86518
86519 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86520
86521         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86522         Add lseek and memchr.
86523
86524         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86525         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86526         have a 20-character limit on names.
86527
86528 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86529
86530         * m4/inttypes_h.m4: New file.
86531         * m4/uintmax_t.m4: New file.
86532         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86533
86534
86535         -----
86536
86537         Local Variables:
86538         coding: utf-8
86539         End:
86540
86541         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86542
86543         Copying and distribution of this file, with or without
86544         modification, are permitted provided the copyright notice
86545         and this notice are preserved.